getdp-2.4.2-source/README.txt 000644 001750 001750 00000005635 12010200205 017265 0 ustar 00geuzaine geuzaine 000000 000000 This is GetDP, a General environment for the treatment of Discrete Problems.
GetDP is distributed under the terms of the GNU General Public License, Version
2 or later. See doc/LICENSE.txt and doc/CREDITS.txt for more information.
See the doc/ and demos/ directories for documentation. The reference manual is
located in doc/texinfo/. See the web site http://geuz.org/getdp for additional
examples.
Building a bare-bones version of GetDP from its source code requires a C++
compiler and CMake (http://cmake.org). By default GetDP also uses the GSL
(http://www.gnu.org/software/gsl) and PETSc (http://www.mcs.anl.gov/petsc),
using either real or complex arithmetic. If PETSc is available, GetDP can use
SLEPc (http://www.grycap.upv.es/slepc) to solve eigenvalue problems. Instead of
PETsc (and SLEPc), GetDP can also use a built-in set of linear solvers derived
from Sparskit Version 2 (http://www-users.cs.umn.edu/~saad/) and eigensolvers
from Arpack (http://www.caam.rice.edu/software/ARPACK). Sparskit and Arpack, as
well GetDP's special mathematical functions require a Fortan compiler and
BLAS/LAPACK.
Build GetDP using CMake's graphical user interface
-------------------------------------------------
* Launch CMake and fill-in the two top input fields (telling where the GetDP
source directory is located and where you want the GetDP binary to be
created).
* Click on "Add entry" and define the variable CMAKE_PREFIX_PATH, of type
"PATH", pointing to the location(s) of any external package(s) (BLAS/LAPACK,
etc.) installed in non-standard directories.
* Click on "Configure" and choose your compiler.
* Optionally change some configuration options (re-run "Configure" every time
you change some options).
* Once you are happy with all the configuration options, click on "Generate".
* Go to the build directory and build Gmsh using your chosen compiler.
Build GetDP from the command line
--------------------------------
* Create a build directory, for example as a subdirectory of GetDP's source
directory:
mkdir build
* Run cmake from within the build directory, pointing to GetDP's source
directory:
cd build
cmake ..
* To build and install GetDP then simply type
make
make install
* To change build options you can use "ccmake" instead of "cmake", e.g.:
ccmake ..
or you can specify options directly on the command line. For example, you can
use
cmake -DCMAKE_PREFIX_PATH=/opt/local ..
to specify the location of external packages installed in non-standard
directories. You can use
cmake -DCMAKE_INSTALL_PREFIX=/opt
to change the installation directory. Or you can use
cmake -DENABLE_PETSC=0 -DENABLE_SPARSKIT=1 ..
to build a version of GetDP that uses Sparskit instead of PETSc.
* You can keep multiple builds with different build options at the same time:
just configure the builds in separate directories.
* To see a detailed compilation log use
make VERBOSE=1
getdp-2.4.2-source/utils/misc/onelab_sync.sh 000755 001750 001750 00000000564 12210577720 022536 0 ustar 00geuzaine geuzaine 000000 000000 #!/bin/sh
SRC=../../benchmarks
DST=/onelab_files
MODELS='machines relay inductor'
# sync files from local svn checkout
for m in ${MODELS}; do
sudo rsync -avz ${SRC}/${m} ${DST} --delete --exclude .svn
done
# create zip file
for m in ${MODELS}; do
cd ${DST} && sudo zip -r ${DST}/${m}.zip ${m} -x \*.svn\*
done
# fix permissions
sudo chown -R onelab:onelab ${DST}/
getdp-2.4.2-source/utils/misc/getdp_framework.plist 000644 001750 001750 00000001040 12010200204 024100 0 ustar 00geuzaine geuzaine 000000 000000
CFBundleNameGetDP
CFBundleExecutableGetDP
CFBundlePackageTypeFMWK
CFBundleVersionGETDP_VERSION
CFBundleSignatureGETDP
CFBundleIdentifierorg.geuz.GetDP
getdp-2.4.2-source/utils/misc/onelab_screenshot.sh 000755 001750 001750 00000000313 12205340467 023727 0 ustar 00geuzaine geuzaine 000000 000000 #!/bin/sh
if [ $# -lt 1 ]; then
echo "Usage: $0 number" 1>&2;
exit 1;
fi
NUMBER=$1
screencapture -Wi screenshot${NUMBER}.png
convert -scale 512 screenshot${NUMBER}.png screenshot${NUMBER}_512.png
getdp-2.4.2-source/utils/misc/update_copyright.sh 000755 001750 001750 00000000544 12116424200 023577 0 ustar 00geuzaine geuzaine 000000 000000 #!/bin/sh -
files=`find ../.. -not -path "*.svn*" -and -not -path "*lib*" -and -not -path "*bin*" -and -not -name "update_copyright.sh" | xargs grep 'Copyright (C) 1997-2012 P. Dular, C. Geuzaine' -sl`
echo $files
for file in $files
do
sed "s|(C) 1997-2012 P|(C) 1997-2013 P|g" $file > $file.tmp
echo modified $file
rm -f $file
mv $file.tmp $file
done
getdp-2.4.2-source/utils/misc/pyram.c 000644 001750 001750 00000002627 11266605602 021202 0 ustar 00geuzaine geuzaine 000000 000000 /* $Id: pyram.c,v 1.1 2008-07-10 10:27:47 geuzaine Exp $ */
/*
Calcul des points de Gauss pour une pyramide
cf. ../Integration/Gauss_Pyramid.h
ref.: Coulomb et al., IEEE tr.mag. 32(3) May 1996, p.1395
Note: Pyramid de reference de sommets [(0,0,0),(1,0,0),(0,1,0),(0,0,1)]
a la difference de l'article de Coulomb
*/
#include "stdlib.h"
#include "math.h"
#include "../Integration/Gauss_Quadrangle.h"
/*
double x[1] = {0.75};
double b[1] = {0.33};
*/
double x[2] = {0.455848155988775, 0.877485177344559};
double b[2] = {0.100785882079825, 0.232547451253508};
/*
double x[4] = {0.204148582103227, 0.482952704895632, 0.761399262448138, 0.951499450553003};
double b[4] = {0.010352240749918, 0.068633887172923, 0.143458789799214, 0.110888415611278};
*/
void printout(int i, double * s, char * item){
int m;
printf("double %s%d[%d] = {",item,i,i);
for(m=0 ; m