a test error when I use ElmerSolver

Discussion about building and installing Elmer
zhang liangfu
Posts: 22
Joined: 20 Nov 2014, 05:06
Antispam: Yes

Re: a test error when I use ElmerSolver

Post by zhang liangfu »

Hi Mr Anil,
I do it as the suggestion as you refer the attachment file is my config.log ,but it make many errors ,where I was wrong. I install the dependences before and i install
the elmer again.

Code: Select all

#!/bin/sh -f
	#Compile Elmer modules and install it
	#
	#The Elmer path is in home directory
	export ELMER_HOME=$HOME/elmer-inst/
	export TCLTK_INCPATH="/usr/include/tcl8.4"
	
	#replace these with your compiles:
	export CC="gcc"
	export CXX="g++"
	export FC="gfortran"
	export F77="gfortran"
	
	modules="matc umfpack mathlibs elmergrid meshgen2d dio hutiter"
	
	for m in $modules; do
	cd $m
	./configure --prefix="ELMER_HOME"  --with-tcltk="-ltcl8.4 -ltk8.4"
	make clean
	make 
	make install
	cd ..
	cd fem/
	./configure --prefix="ELMER_HOME" --with-tcltk="-ltcl8.4 -ltk8.4"  --with-mpi-inc-dir=/usr/include/mpi
	make clean
	make 
	make install
	cd ..
done
















yours sincerely
zhang liangfu
Attachments
anyname.log
(316.35 KiB) Downloaded 286 times
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: a test error when I use ElmerSolver

Post by annier »

Hi Zhang Liangfu,
in your above script,please make sure you have installed "eio" and not "dio" in modules.

Code: Select all

    #!/bin/sh -f
       #Compile Elmer modules and install it
       #
       #The Elmer path is in home directory
       export ELMER_HOME=$HOME/elmer-inst/
       export TCLTK_INCPATH="/usr/include/tcl8.4"
       
       #replace these with your compiles:
       export CC="gcc"
       export CXX="g++"
       export FC="gfortran"
       export F77="gfortran"
       
       modules="matc umfpack mathlibs elmergrid meshgen2d eio hutiter"
       
       for m in $modules; do
       cd $m
       ./configure --prefix="ELMER_HOME"  --with-tcltk="-ltcl8.4 -ltk8.4"
       make clean
       make
       make install
       cd ..
       cd fem/
       ./configure --prefix="ELMER_HOME" --with-tcltk="-ltcl8.4 -ltk8.4"  --with-mpi-inc-dir=/usr/include/mpi
       make clean
       make
       make install
       cd ..
    done
Since, you seem using

Code: Select all

modules="matc umfpack mathlibs elmergrid meshgen2d dio hutiter"
the compilation process cannot access "hutiter" as it doesnot recognize "dio". Since the modules name is "eio". in your logfile, the compilation has terminated after meshgen2d since it is unable to recognize dio.

Yours
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Post Reply