Revision [74]

This is an old revision of CompileElmer made by BenoitAudouard on 2006-02-17 02:54:55.

 

in CompilePrograms

Elmer is a tool using finite element method for multi-physics problems

see http://www.csc.fi/elmer/index.phtml
http://www.csc.fi/elmer/download/index.phtml download page
ftp://ftp.funet.fi/pub/sci/physics/elmer/ files to download
http://www.csc.fi/elmer/compiling.phtml instructions to compile

for m in matc-5.0.0 umfpack-4.4a mathlibs-1.0.0 elmergrid-5.0.2 meshgen2d-5.0.0 eio-5.0.0 hutiter-5.0.0 fem-5.0.2 ; do cd $m ; ./configure --prefix=/home/baud/elmerbin > ../compile_${m}.txt 2>&1 && make >> ../compile_${m}.txt 2>&1 && make install >> ../compile_${m}.txt 2>&1 && cd ..; done


In hutiter & fem modules, it seems I've got problems with 2005 LE

fem-5.0.2]$ ./configure --prefix=/home/baud/elmerbin
[snip]
checking for Fortran libraries of g77... -L/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3 -L/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/../../.. -lfrtbegin -lg2c -lm -lgcc_s
checking for dummy main to link with Fortran libraries... none
checking for Fortran name-mangling scheme... lower case, underscore, extra underscore
checking for Fortran char* mangling scheme... char_ptr
checking for fortran intrinsic etime... found
checking for fortran intrinsic flush... found
checking for shl_load in -ldld... no is it a problem ?*
checking for shl_load... no
checking for shl_findsym... no
checking for dlopen in -ldl... yes
checking for dlopen... yes
checking for dlsym... yes
checking for dlerror... yes
checking for dlclose... yes
checking for mpi-directory... /usr/local/mpich
checking for mpi-lib-directory... /usr/local/mpich/lib
checking for mpi-inc-directory... /usr/local/mpich/include
checking for mpf90... no
checking for mpxlf90... no
checking for sgemm_... no
checking for ATL_xerbla in -latlas... no
checking for sgemm_ in -lblas... yes
checking for dgemm_ in -ldgemm... no is it a problem ?*
checking for sgemm_ in -lcxml... no
checking for sgemm_ in -ldxml... no
checking for sgemm_ in -lscs... no
checking for sgemm_ in -lcomplib.sgimath... no
checking for sgemm_ in -lblas... (cached) yes
checking for sgemm_ in -lessl... no
checking for sgemm_ in -lessl... (cached) no
checking for sgemm_ in -lblas... (cached) yes
checking for cheev_... no
checking for cheev_ in -llapack... yes

hutiter-5.0.0]$ ./configure --prefix=/home/baud/elmerbin > ../compile3_hutiter.txt 2>&1
[snip]
checking for Fortran libraries of g77... -L/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3 -L/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/../../.. -lfrtbegin -lg2c -lm -lgcc_s
checking for dummy main to link with Fortran libraries... none
checking for Fortran name-mangling scheme... lower case, underscore, extra underscore
checking whether we are using the Microsoft C compiler... no
checking for e_wsfe in -lg2c... yes
checking for sgemm_... no
checking for ATL_xerbla in -latlas... no
checking for sgemm_ in -lblas... yes
checking for dgemm_ in -ldgemm... no
checking for sgemm_ in -lcxml... no
checking for sgemm_ in -ldxml... no
checking for sgemm_ in -lscs... no
checking for sgemm_ in -lcomplib.sgimath... no
checking for sgemm_ in -lblas... (cached) yes
checking for sgemm_ in -lessl... no
checking for sgemm_ in -lessl... (cached) no
checking for sgemm_ in -lblas... (cached) yes

hutiter-5.0.0]$ make
make all-recursive
make[1]: Entering directory `/home/baud/Developpement/elmer/hutiter-5.0.0'
Making all in src
make[2]: Entering directory `/home/baud/Developpement/elmer/hutiter-5.0.0/src'
g77 -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -O -I. -I/home/baud/elmerbin/include -c -o huti_aux_C.o huti_aux_C.F90
g77: huti_aux_C.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -O -I. -I/home/baud/elmerbin/include -c -o huti_aux_D.o huti_aux_D.F90
g77: huti_aux_D.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -O -I. -I/home/baud/elmerbin/include -c -o huti_aux_S.o huti_aux_S.F90
g77: huti_aux_S.F90: linker input file unused because linking not done
[snip]
ar cru libhuti.a huti_aux_C.o huti_aux_D.o huti_aux_S.o huti_aux_Z.o huti_bicgstab_2_C.o huti_bicgstab_2_D.o huti_bicgstab_2_S.o huti_bicgstab_2_Z.o huti_bicgstab_C.o huti_bicgstab_D.o huti_bicgstab_S.o huti_bicgstab_Z.o huti_cg_C.o huti_cg_D.o huti_cgs_C.o huti_cgs_D.o huti_cg_S.o huti_cgs_S.o huti_cgs_Z.o huti_cg_Z.o huti_gmres_C.o huti_gmres_D.o huti_gmres_S.o huti_gmres_Z.o huti_qmr_C.o huti_qmr_D.o huti_qmr_S.o huti_qmr_Z.o huti_tfqmr_C.o huti_tfqmr_D.o huti_tfqmr_S.o huti_main.o huti_sfe_c_C.o huti_sfe_c_D.o huti_sfe_c_S.o huti_sfe_c_Z.o huti_tfqmr_Z.o
ar: huti_aux_C.o: No such file or directory
make[2]: *** [libhuti.a] Erreur 1

other problems with cooker 20060216

hutiter-5.0.0]$ ./configure
checking how to get verbose linking output from ... configure: WARNING: compilation failed
checking for Fortran libraries of ...
checking for dummy main to link with Fortran libraries... none
checking for Fortran name-mangling scheme... configure: error: cannot compile a simple Fortran program
See `config.log' for more details.

\o/ g95 is available in cooker \o/ g95-0.50-1.403_20060111.1mdk let's replace g77
it seems to work a lot better with :
#!/bin/bash
# http://www.csc.fi/elmer/compiling.phtml
export CC=gcc
export F77=g95
export FC=g95
export CXX=g++
for m in matc-5.0.0 umfpack-4.4a mathlibs-1.0.0  elmergrid-5.0.2 meshgen2d-5.0.0  eio-5.0.0 hutiter-5.0.0 fem-5.0.2 elmerpost-5.0.3 ;
do
	    previous_dir=$m
	    cd $m || echo "exit sur erreur dans $previous_dir";
	    #echo ===== $m ===== ; make clean ; cd ..
	    ./configure --prefix=/home/baud/elmerbin > ../compile_${m}.txt 2>&1  && make >> ../compile_${m}.txt 2>&1 && make install >> ../compile_${m}.txt 2>&1 && cd ..;
done



check similar errors

google g77 F90 linker input file unused because linking not done
http://www.democritos.it/pipermail/pw_forum/2004-November/001573.html

packages added, with or without success to compile

urpmi libblas3 libblas3-devel # as advised by http://blog.gmane.org/gmane.comp.science.photonic-bands/month=20000301 (found with google checking for dgemm_ in -ldgemm... no)
urpmi --fuzzy libscalapack1-devel liblapack3-devel
urpmi lapack

using cooker on 20060216 :
urpmi g77
Pour satisfaire les dépendances, les paquetages suivants vont être installés:
gcc3.3-3.3.6-3mdk.i586
gcc3.3-cpp-3.3.6-3mdk.i586
gcc3.3-g77-3.3.6-3mdk.i586
libf2c0-3.3.6-3mdk.i586

First use of elmer

http://www.csc.fi/elmer/examples/radiation/index.html
http://www.csc.fi/elmer/examples/radiation/Radiation.tar.gz see README
tar zxvf Radiation.tar.gz
ELMER_HOME=/home/baud/elmerbin
Radiation2]$ $ELMER_HOME/bin/ElmerSolver # it computes

Radiation2]$ $ELMER_HOME/bin/ElmerPost # display graphical result
- File / Open
- /mnt/data_linux_hda9/Developpement/elmer/Radiation2/MESHDIR/Mesh/Radiation.ep
- button Read Header then button Read File
- Display (check further to display colors...)

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki