FreeFem++
====== Installation ======
* installé dans /local/apps/freefem++-3.13-2
====== exemple ======
[henry@octopus ~]$ /local/apps/freefem++-3.13-2/bin/FreeFem++ /local/apps/src/freefem++-3.13-2/examples++-tutorial/LaplaceP1.edp
EXEC of the plot : ffglut
-- FreeFem++ v 3.130002 (date Mar 28 jui 2011 09:22:37 CEST)
Load: lg_fem lg_mesh lg_mesh3 eigenvalue
1 : mesh Th=square(10,10);
2 : fespace Vh(Th,P1); // P1 FE space
3 : Vh uh,vh; // unkown and test function.
4 : func f=1; // right hand side function
5 : func g=0; // boundary condition function
6 :
7 : problem laplace(uh,vh,solver=GMRES,tgv=1e5) = // definion of the problem
8 : int2d(Th)( dx(uh)*dx(vh) + dy(uh)*dy(vh) ) // bilinear form
9 : + int1d(Th,1)( uh*vh)
10 : - int1d(Th,1)( vh)
11 : - int2d(Th)( f*vh ) // linear form
12 : + on(2,3,4,uh=g) ; // boundary condition form
13 :
14 : laplace; // solve the problem plot(uh); // to see the result
15 : plot(uh,ps="LaplaceP1.eps",value=true);
16 : sizestack + 1024 =1896 ( 872 )
-- Square mesh : nb vertices =121 , nb triangles = 200 , nb boundary edges 40
GMRES converges: 27 1.116e-07 0.154071 7.24338e-07 < 1e-06
-- Solve :
min 1.62405e-12 max 0.361312
times: compile 0s, execution 0s, mpirank:0
Err ReadOnePlot 1
CodeAlloc : nb ptr 2299, size :305528 mpirank: 0
Bien: On a fini Normalement
====== compilation ======
[devel1@octopus freefem++-3.13-2]$ pwd
/local/apps/src/freefem++-3.13-2
./configure --prefix=/local/apps/freefem++-3.13-2 --enable-m64 --with-x --enable-download | & tee CONFIG.LOG
make | & tee MAKE.LOG
make install | & tee INSTALL.LOG
====== Erreurs ======
g++ -shared -fPIC -g -m64 -fPIC -DNDEBUG -O3 -mmmx -msse -msse2 -DDRAWING -DBAMG_LONG_LONG -DNCHECKPTR -fPIC 'fflapack.o' -o fflapack.so -llapack -lblas
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.a(dgeev.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/liblapack.a: could not read symbols: Bad value
collect2: ld returned 1 exit status