|
[Sponsors] |
[OpenFOAM.com] OpenFOAM 1.7.1 installation on LINUX UBUNTU 10.10 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 7, 2011, 10:22 |
|
#21 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi,
I think that Code:
sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu <maverick> main >> /etc/apt/sources.list" Code:
sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu maverick main >> /etc/apt/sources.list"
__________________
Regards, Gijs |
|
February 7, 2011, 10:27 |
|
#22 | |
New Member
Rogelio Chovet
Join Date: Feb 2011
Posts: 4
Rep Power: 15 |
Quote:
Thank You very much |
||
February 7, 2011, 10:41 |
|
#23 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
That's good to hear!
__________________
Regards, Gijs |
|
February 21, 2011, 15:56 |
|
#24 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Dear Foamers,
I am trying to install OF-1.7.1 on a RedHat cluster whose gcc version is 4.4.4 and it is a 64 bit machine. I was following the steps from the site but I get the following errors when I try to run ./Allwmake make: *** [/turing/home/lee263/OpenFOAM/OpenFOAM-1.7.1/lib/linuxPPC64GccDPOpt/libdynamicMesh.so] Error 1 + wmake libso dynamicFvMesh /bin/sh: /turing/home/lee263/OpenFOAM/OpenFOAM-1.7.1/wmake/bin/linuxPPC64Gcc/wmkdep: No such file or directory /bin/sh: /turing/home/lee263/OpenFOAM/OpenFOAM-1.7.1/wmake/bin/linuxPPC64Gcc/wmkdep: No such file or directory Further I get the following error when I do a foamInstallation test. Checking basic setup... ------------------------------------------------------------------------------- Shell: tcsh Host: turing-4.turing.cse.uiuc.edu OS: Linux version 2.6.32.26-175.fc12.ppc64 ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /turing/home/lee263/OpenFOAM yes yes $WM_PROJECT_USER_DIR ...ng/home/lee263/OpenFOAM/lee263-1.7.1 no no $WM_THIRD_PARTY_DIR ...ome/lee263/OpenFOAM/ThirdParty-1.7.1 yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR .../home/lee263/OpenFOAM/OpenFOAM-1.7.1 yes yes yes $FOAM_APPBIN .../applications/bin/linuxPPC64GccDPOpt no yes $FOAM_SITE_APPBIN ...AM/site/1.7.1/bin/linuxPPC64GccDPOpt no no $FOAM_USER_APPBIN .../applications/bin/linuxPPC64GccDPOpt no no $WM_DIR ...lee263/OpenFOAM/OpenFOAM-1.7.1/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...penFOAM-1.7.1/lib/linuxPPC64GccDPOpt yes yes yes $FOAM_SITE_LIBBIN ...AM/site/1.7.1/lib/linuxPPC64GccDPOpt no no $FOAM_USER_LIBBIN .../lee263-1.7.1/lib/linuxPPC64GccDPOpt no no $MPI_ARCH_PATH ...latforms/linuxPPC64Gcc/openmpi-1.4.1 yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- gcc 4.4.4 /usr/bin/gcc gzip 1.3.12 /bin/gzip tar 1.22 /bin/tar icoFoam WARNING: Conflicting installations: OpenFOAM settings : /turing/home/lee263/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linuxPPC64GccDPOpt/icoFoam current path : CRITICAL ERROR ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. *** The foam installation contains 1 critical error(s) *** Review the output for warning messages and consult *** the installation guide for trouble shooting. done. Could you guys kindly help me out. Thanks |
|
February 22, 2011, 00:57 |
|
#25 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi Vishal,
Was the dynamicMesh error really the first one, or did you run into trouble earlier? Do you have a build log? If so, just look for "rror" and try to find the very first problem, this may be in ThirdParty already. Also, it seems you are using openmpi as provided in ThirdParty. On a cluster it's probably better to find the right MPI paths etc and use those. When I compiled on a cluster I found that I needed to use several local libraries instead of ThirdParty ones and also make my own wmake rules for the cluster's compiler. Have a look here, where I explain the steps that worked for me ...
__________________
Regards, Gijs |
|
February 22, 2011, 10:47 |
|
#26 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Thanks for the reply. I will look into the link and would get back to you soon.
|
|
February 24, 2011, 11:20 |
|
#27 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Dear Gijsbert,
I did go through your .pdf file and you were right the first error was in Thirdparty and in choosing the MPI and flex command was not found. Here are the first set of errors, ./Allwmake gcc -m64 -mcpu=power5+ -Wall -O3 -fPIC dirToString.c -o /turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/wmake/bin/linuxPPC64Gcc/dirToString flex wmkdep.l make: flex: Command not found make: *** [/turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/wmake/bin/linuxPPC64Gcc/wmkdep] Error 127 ======================================== Start ThirdParty Allwmake ======================================== ======================================== Compile specific mpi libraries + cd openmpi-1.4.1 + make distclean + rm -rf /turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/platforms/linuxPPC64Gcc/openmpi-1.4.1 + unset mpiWith + '[' -n '' ']' + ./configure --prefix=/turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/platforms/linuxPPC64Gcc/openmpi-1.4.1 --disable-mpirun-prefix-by-default --disable-orterun-prefix-by-default --enable-shared --disable-static --disable-mpi-f77 --disable-mpi-f90 --disable-mpi-cxx --disable-mpi-profile checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking how to create a ustar tar archive... gnutar ================================================== ========================== == Configuring Open MPI ================================================== ========================== The cluster supports MPICH-Mx and i was told MPICH_GM and MX are the same, so I changed in the cshrc and settings.csh the following things in cshrc file # WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI | MPI | QSMPI WM_MPLIB = MPICH-GM in settings.csh file case MPICH-GM: setenv MPI_ARCH_PATH /opt/mpich-mx-gcc-32/ setenv MPICH_PATH $MPI_ARCH_PATH setenv GM_LIB_PATH /opt/mx/lib64 Still the same problem exits. Further, flex was installed in the cluster, still the same flex error was found. I want to know where should the flex be installed. Thanks a lot for the help. Regards Vishal |
|
February 24, 2011, 11:41 |
|
#28 | |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Dear Vishal,
Quote:
Code:
export PATH=/usr/bin/flex:$PATH alias flex++='flex -+'
__________________
Regards, Gijs |
||
February 24, 2011, 12:42 |
|
#29 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Dear Gijsbert,
I did try which flex but couldn't see any file, hence I decided to download and install the same in my own account and added the path to the cshrc file and now compiled ./Allwmake. I didn't get any flex error. That problem is resolved, however, I get some errors regarding Thirdparty. Following were the first error that I observed. Can you give your comments for the same. make[2]: Entering directory `/turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch' gcc -O3 -fPIC -DCOMMON_TIMING_OLD -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -DSCOTCH_VERSION=\""5.1"\" dummysizes.c -o dummysizes -lz -lm -lrt ./dummysizes library.h scotch.h ./dummysizes libraryf.h scotchf.h gcc -O3 -fPIC -DCOMMON_TIMING_OLD -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -c arch.c -o arch.o gcc -O3 -fPIC -DCOMMON_TIMING_OLD -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -c arch_build.c -o arch_build.o ^Cmake[2]: *** wait: No child processes. Stop. make[2]: *** Waiting for unfinished jobs.... make[2]: *** wait: No child processes. Stop. make[1]: *** [scotch] Error 2 make: *** [scotch] Interrupt Thanks Vishal |
|
February 25, 2011, 02:35 |
|
#30 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Dear Vishal,
Good, so the flex issue is solved . I see in your error message "^C". Did you press Ctrl+C because it got stuck or something? For recompiling, did you clean up? Perhaps I'm a bit of a "compiling purist", but before (re)compiling I always do Code:
rmdepall wcleanLnIncludeAll Code:
cd $WM_THIRD_PARTY_DIR rmdepall wcleanLnIncludeAll cd $WM_PROJECT_DIR rmdepall wcleanLnIncludeAll
__________________
Regards, Gijs |
|
February 25, 2011, 10:56 |
|
#31 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Dear Gijsbert,
I did give Ctrl C when I saw the error in the first instant. However, I again compiled it to see what were other errors (didn't clean before compilation) and I created a make file for the same (using ./Allwmake >> make.log &). When I do this I see that along with the output displayed in the make file some error messages were also displayed in the terminal, I wonder why that is happening. I did try your command in the pdf file you had written for installation in cluster (./Allwmake >make.log 2>make.err &) but it gives me error. Anyways regarding other errors when I tried to build I find that in all applications it gives the same error that is make[2]: Leaving directory `/turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/IFCLookUpTableGen make[2]: Entering directory `/turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/mixtureAdiabaticFlameT' make[2]: Leaving directory `/turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/applications/utilities/thermophysical/mixtureAdiabaticFlameT' Thanks |
|
February 25, 2011, 11:44 |
|
#32 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi Vishal,
Strange that splitting the log doesn't work. But it doesn't matter really, it's just convenient. make leaving and entering directories is not an error, it should do that. Do you have anywhere in your log somewhere saying "Error"? Does your foamInstallationTest give any errors now? If so, I really suggest you clean the installation as I mentioned above and try again (after you made flex known to the installation ...).
__________________
Regards, Gijs |
|
February 25, 2011, 12:08 |
|
#33 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Dear Gijsbert,
I am cleaning the entire thing and rebuilding it to see the errors using the commands you had mentioned by typing the following in the home directory. rmdepall wcleanLnIncludeAll I would recompile once I finish cleaning them. Just for your information, the errors I got from previous build make[2]: *** [/turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linuxPPC64GccDPOpt/IFCLookUpTableGen] Error 1 make[1]: *** [IFCLookUpTableGen] Error 2 Making dependency list for source file mixtureAdiabaticFlameT.C could not open file ListI.H for source file mixtureAdiabaticFlameT.C could not open file List.C for source file mixtureAdiabaticFlameT.C could not open file SubList.H for source file mixtureAdiabaticFlameT.C could not open file SLList.H for source file mixtureAdiabaticFlameT.C could not open file parRun.H for source file mixtureAdiabaticFlameT.C could not open file IStringStream.H for source file mixtureAdiabaticFlameT.C could not open file sigFpe.H for source file mixtureAdiabaticFlameT.C could not open file sigInt.H for source file mixtureAdiabaticFlameT.C could not open file sigQuit.H for source file mixtureAdiabaticFlameT.C could not open file sigSegv.H for source file mixtureAdiabaticFlameT.C could not open file dictionary.H for source file mixtureAdiabaticFlameT.C could not open file IFstream.H for source file mixtureAdiabaticFlameT.C could not open file OSspecific.H for source file mixtureAdiabaticFlameT.C could not open file specieThermo.H for source file mixtureAdiabaticFlameT.C could not open file janafThermo.H for source file mixtureAdiabaticFlameT.C could not open file perfectGas.H for source file mixtureAdiabaticFlameT.C could not open file mixture.H for source file mixtureAdiabaticFlameT.C /usr/bin/ld: cannot find -lOpenFOAM collect2: ld returned 1 exit status make[2]: *** [/turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linuxPPC64GccDPOpt/mixtureAdiabaticFlameT] Error 1 make[1]: *** [mixtureAdiabaticFlameT] Error 2 make[1]: Target `application' not remade because of errors. make: *** [thermophysical] Error 2 make: Target `application' not remade because of errors. and when I did do a foamInstallation test from my previous build and got 1 critical error. Here is test results Executing ./foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: tcsh Host: turing-4.turing.cse.uiuc.edu OS: Linux version 2.6.32.26-175.fc12.ppc64 ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /turing/home/nandiga1/OpenFOAM yes yes $WM_PROJECT_USER_DIR ...ome/nandiga1/OpenFOAM/nandiga1-1.7.1 no no $WM_THIRD_PARTY_DIR ...e/nandiga1/OpenFOAM/ThirdParty-1.7.1 yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR ...ome/nandiga1/OpenFOAM/OpenFOAM-1.7.1 yes yes yes $FOAM_APPBIN .../applications/bin/linuxPPC64GccDPOpt yes yes yes $FOAM_SITE_APPBIN ...AM/site/1.7.1/bin/linuxPPC64GccDPOpt no no $FOAM_USER_APPBIN .../applications/bin/linuxPPC64GccDPOpt no no $WM_DIR ...ndiga1/OpenFOAM/OpenFOAM-1.7.1/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...penFOAM-1.7.1/lib/linuxPPC64GccDPOpt yes yes yes $FOAM_SITE_LIBBIN ...AM/site/1.7.1/lib/linuxPPC64GccDPOpt no no $FOAM_USER_LIBBIN ...andiga1-1.7.1/lib/linuxPPC64GccDPOpt no no $MPI_ARCH_PATH ...latforms/linuxPPC64Gcc/openmpi-1.4.1 yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- gcc 4.4.4 /usr/bin/gcc gzip 1.3.12 /bin/gzip tar 1.22 /bin/tar icoFoam WARNING: Conflicting installations: OpenFOAM settings : /turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/applications/bin/linuxPPC64GccDPOpt/icoFoam current path : CRITICAL ERROR ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. *** The foam installation contains 1 critical error(s) *** Review the output for warning messages and consult *** the installation guide for trouble shooting. done. Thanks Vishal |
|
February 25, 2011, 12:26 |
|
#34 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Dear Gijsbert,
I am building it again after cleaning everything, the first error I get is this [nandiga1@turing-4 OpenFOAM-1.7.1]$ ./Allwmake >> make.log & [1] 6144 [nandiga1@turing-4 OpenFOAM-1.7.1]$ + cd scotch_5.1/src + mkdir -p /turing/home/nandiga1/OpenFOAM/OpenFOAM-1.7.1/lib/linuxPPC64GccDPOpt/openmpi-1.4.1 + make ptscotch /usr/bin/ld: skipping incompatible /turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/platforms/linuxPPC64Gcc/openmpi-1.4.1/lib/libmpi.so when searching for -lmpi /usr/bin/ld: cannot find -lmpi collect2: ld returned 1 exit status make[2]: *** [dummysizes] Error 1 make[1]: *** [ptscotch] Error 2 make: *** [ptscotch] Error 2 + cd metis-5.0pre2 + cpMakeFiles metis + set +x I would like to say that the cluster I use support MPICH-MX. Could you suggest how to resolve the following error. Thanks Vishal |
|
February 26, 2011, 02:17 |
|
#35 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Dear Vishal,
I think it is best to make your own wmake rules, as I explain in the document I shared with you. For MPI in particular, you need to find out where the MPI libraries live and make those paths known by adjusting the WM_MPLIB and MPICH_PATH in $WM_PROJECT_DIR/etc/bashrc, as explained on p.5 and in Appendix A of my notes.
__________________
Regards, Gijs |
|
February 27, 2011, 06:38 |
install problems
|
#36 |
New Member
Tobias
Join Date: Feb 2011
Posts: 2
Rep Power: 0 |
Dear all,
I'm a newbie on openfoam. I tried to install it on ubuntu 10.10 according to the instructions. Now when I write: ecoFoam -help I receive how to start (with -parallel etc) Then I try to start ecoFoam but receive the message Code:
--> FOAM FATAL IO ERROR: cannot open file file: /home/tobias/system/controlDict at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 61. FOAM exiting |
|
February 27, 2011, 08:16 |
|
#37 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings to all! Tobias, welcome to the forum!
I think you skipped an important section of the installation instructions: Getting Started Also, refer to the user guide as stated in that section, to start learning how to use OpenFOAM. It's not as easy as simply running the solver Best regards and good luck! Bruno
__________________
|
|
February 28, 2011, 19:34 |
|
#38 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Dear Gijsbert
I have followed your document and incorporated changes to the settings.csh and cshrc file to the following to include the MPI parth as that was the first error Here is the modified changes to settings.csh file # Communications library # ~~~~~~~~~~~~~~~~~~~~~~ unsetenv MPI_ARCH_PATH MPI_HOME switch ("$WM_MPLIB") case MPT: setenv MPI_ARCH_PATH /opt/mpich-mx-gcc-32 setenv MPICH_PATH $MPI_ARCH_PATH setenv GM_LIB_PATH /opt/mpich-mx-gcc-32/lib _foamAddPath $MPI_ARCH_PATH/bin _foamAddLib $MPI_ARCH_PATH/lib _foamAddLib $GM_LIB_PATH and the cshrc file # WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI | MPI | QSMPI setenv WM_MPLIB MPT But I get the same error. -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -DSCOTCH_PTSCOTCH" CC="mpicc" SCOTCHLIB=ptscotch \ scotch.h \ scotchf.h \ libptscotch.so \ libptscotcherr.so \ libptscotcherrexit.so make[2]: Entering directory `/turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch' mpicc -O3 -fPIC -DCOMMON_TIMING_OLD -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME -DSCOTCH_PTSCOTCH -DSCOTCH_VERSION=\""5.1"\" dummysizes.c -o dummysizes -lz -lm -lrt /usr/bin/ld: skipping incompatible /turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/platforms/linuxPPC64Gcc/openmpi-1.4.1/lib/libmpi.so when searching for -lmpi /usr/bin/ld: cannot find -lmpi collect2: ld returned 1 exit status make[2]: *** [dummysizes] Error 1 make[2]: Leaving directory `/turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch' make[1]: *** [ptscotch] Error 2 make[1]: Leaving directory `/turing/home/nandiga1/OpenFOAM/ThirdParty-1.7.1/scotch_5.1/src/libscotch' make: *** [ptscotch] Error 2 Kindly let me know your suggestion. Thanks Vishal |
|
March 1, 2011, 01:08 |
|
#39 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi Vishal,
If your MPI lives in /opt/mpich-mx-gcc-32, then it looks alright. But the system still can't find mpi.h or similar, so did you make new wmake rules for your own compiler? One needs to specify new rules and paths in $WM_PROJECT_DIR/wmake/rules. I called the compiler crayxt, so I made a directory $WM_PROJECT_DIR/wmake/rules/crayxt, where I specified the files in Appendix B of my report (p.18-22). In particular, if you use the MPT library, you need to specify what that means for the compiler, i.e. you need to create $WM_PROJECT_DIR/wmake/rules/crayxt/mplibMPT in that case. Just follow the recipe in Section 3.3 and Appendix B. Then you also need to make sure that these paths are added in settings.sh and bashrc in $WM_PROJECT_DIR/etc (with the paths and names for your system of course).
__________________
Regards, Gijs |
|
July 1, 2014, 07:55 |
|
#40 |
New Member
Jens
Join Date: Apr 2014
Posts: 28
Rep Power: 12 |
I had a similar problem with foam-ext-3.1 on OpenSuse 13.1. I think just adding
export OPENMPI_DIR=/usr/lib64/mpi/gcc/openmpi (installation directory of openmpi) export OPENMPI_BIN_DIR= \$OPENMPI_DIR\/bin to foam-extend-3.1/etc/prefs.sh and running foam-extend-3.1/src/Pstream/Allwmake solved the problem. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.7.1. using openmpi on Ubuntu 12.04 | dasMopo | OpenFOAM Installation | 5 | February 17, 2013 10:14 |
Openfoam 2.1 installation in ubuntu 12.04 | jsm | OpenFOAM Installation | 11 | May 7, 2012 04:56 |
OpenFOAM vs Ubuntu 10.10 64 bit | vkrastev | OpenFOAM Installation | 12 | April 23, 2011 10:14 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 14:43 |
OpenFOAM Installation Ubuntu 9.04 Problems | Sumontro | OpenFOAM Installation | 8 | July 21, 2009 21:40 |