|
[Sponsors] |
[OpenFOAM.org] OpenFOAM-2.3.1 on opensuse Leap-42.1 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 24, 2015, 08:19 |
OpenFOAM-2.3.1 on opensuse Leap-42.1
|
#1 |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
I am trying to install openFOAM 2.3.1 on opensuse Leap-42.1. I have followed instructions given on
HTML Code:
https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-2.3.1/openSUSE Please help. |
|
November 24, 2015, 16:31 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: I've got the feeling you're following the instructions that were written for openSUSE 12.3.
You should be following the instructions that were tested in openSUSE 13.2: https://openfoamwiki.net/index.php/I...#openSUSE_13.2 For example, step #9 tells you how to create a symbolic link to the existing installation of CGAL. edit: I've tested the instructions I mentioned on openSUSE Leap 42.1 and it worked fine for me. Last edited by wyldckat; November 28, 2015 at 19:42. Reason: see "edit:" |
|
December 3, 2015, 17:39 |
|
#3 |
Senior Member
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13 |
following the wiki page I'm getting issues as well with the Allwmake of the thirdparty on OF2.4, as the environment variable CGAL_ARCH does not exist . Note paraview installs fine when you follow the instructions in the Wiki.
I'm currently building OF2.4 as interim to 3.0 and then trying foam extend 3.2 all with Leap 42.1, OPENMPI 1.10.1, OFED 3.18-1 for a 10 server 112 core cluster (none of the releases a month old ... )
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET |
|
December 6, 2015, 14:39 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
As for the environment variable, it's meant to be named "CGAL_ARCH_PATH" and not "CGAL_ARCH" . Did you shorten it for writing here in the post or is the whole name you've tried to use? |
||
December 6, 2015, 18:30 |
|
#5 | |
Senior Member
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13 |
Quote:
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET |
||
December 6, 2015, 18:32 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Mmm... OK, then we will need to do some debugging of the shell environment variables. With the respective OpenFOAM shell environment activated, please run:
Code:
export > log.export 2>&1 gzip < log.export > log.export.gz |
|
December 8, 2015, 12:41 |
|
#7 |
Senior Member
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13 |
I repeated the install on a fresh copy of leap 42.1 with OFED 3.18-1 and OpenMPI 1.10-1 (combined rpm with infiniband support)
and folowed the install meticulously missing installing openmpi-devel as this was already included correcttng a typo Code:
mkdir -p ~/.OpenFOAM/2.4.0/config echo export METIS_VERSION=metis-5.1.0 > ~/.OpenFOAM/2.4.0/config/metis.sh echo export METIS_ARCH_PATH=/usr >> ~/.OpenFOAM/2.4.0/config/metis.sh Code:
mkdir -p ~/.OpenFOAM-2.4.0/config echo export METIS_VERSION=metis-5.1.0 > ~/.OpenFOAM-2.4.0/config/metis.sh echo export METIS_ARCH_PATH=/usr >> ~/.OpenFOAM-2.4.0/config/metis.sh Code:
/opt/OpenFOAM # instead of $HOME/OpenFOAM Code:
cd $WM_THIRD_PARTY_DIR mkdir -p $CGAL_ARCH_PATH ln -s /usr/include $CGAL_ARCH_PATH/include
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET |
|
December 8, 2015, 16:26 |
|
#8 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Derek,
Many thanks for the feedback! But I'm finding this change you did very strange: Quote:
Code:
foamEtcFile config/metis.sh foamEtcFile -list The second one shows the folders it looks into, for example in my case: Code:
/home/ofuser/.OpenFOAM/2.4.0 /home/ofuser/.OpenFOAM /home/ofuser/OpenFOAM/site/2.4.0 /home/ofuser/OpenFOAM/site /home/ofuser/OpenFOAM/OpenFOAM-2.4.0/etc Code:
echo $METIS_VERSION echo $METIS_ARCH_PATH Bruno |
||
December 9, 2015, 06:46 |
|
#9 |
Senior Member
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13 |
Note I have my installation at /opt/OpenFOAM not in $HOME. I now see the metis definitions are per user and in $HOME/.OpenFOAM/2.4.0/config/metis.sh
its a bit difficult in the wiki entry to see which bits are per installation and which bits are per user I'm now Reading the $WM_PROJECT_DIR/etc/bashrc file trying to understand what the bits do
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET |
|
December 9, 2015, 07:21 |
|
#10 |
Senior Member
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13 |
The metis.sh file does not get called from $WM_PROJECT_DIR/etc/bashrc
. This is the excerpt from the $WM_PROJECT_DIR/etc/bashrc where you would expect it. There is not instance of the characters 'metis' in the entire file Code:
# Source user setup files for optional packages # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/paraview.sh` _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/ensight.sh` _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/gperftools.sh` _foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/CGAL.sh` if I have this in my $HOME/.bashrc Code:
export FOAM_VERBOSE=TRUE ulimit -l unlimited export PATH=/usr/lib64/openmpi/:$PATH export LD_LIBRARY_PATH=/usr/lib64/openmpi/:$LD_LIBRARY_PATH export FOAM_INST_DIR=/opt/OpenFOAM foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.4.0/etc/bashrc [ -f $foamDotFile ] && . $foamDotFile Code:
Sourcing: /opt/OpenFOAM/OpenFOAM-2.4.0/etc/config/settings.sh Sourcing: /opt/OpenFOAM/OpenFOAM-2.4.0/etc/config/aliases.sh Sourcing: /opt/OpenFOAM/OpenFOAM-2.4.0/etc/config/paraview.sh Using paraview ParaView_DIR : /opt/OpenFOAM/ThirdParty-2.4.0/platforms/linux64Gcc/ParaView-4.1.0 ParaView_LIB_DIR : /opt/OpenFOAM/ThirdParty-2.4.0/platforms/linux64Gcc/ParaView-4.1.0/lib/paraview-4.1 ParaView_INCLUDE_DIR : /opt/OpenFOAM/ThirdParty-2.4.0/platforms/linux64Gcc/ParaView-4.1.0/include/paraview-4.1 PV_PLUGIN_PATH : /opt/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/paraview-4.1 Sourcing: /opt/OpenFOAM/OpenFOAM-2.4.0/etc/config/ensight.sh Sourcing: /opt/OpenFOAM/OpenFOAM-2.4.0/etc/config/gperftools.sh Sourcing: /opt/OpenFOAM/OpenFOAM-2.4.0/etc/config/CGAL.sh Using CGAL and boost CGAL-4.6 at /opt/OpenFOAM/ThirdParty-2.4.0/platforms/linux64Gcc/CGAL-4.6 boost-system at /opt/OpenFOAM/ThirdParty-2.4.0/platforms/linux64Gcc/boost-system derekm@linux-jnen:~>
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET |
|
December 9, 2015, 18:55 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: I didn't mention how "metis.sh" is used, because I was more concerned on the correct file being found.
But I had completely forgotten that the "metis.sh" is used only when it's necessary to use it for building the library that uses it. It's only used/called in "OpenFOAM-*/src/parallel/decompose/metisDecomp/Allwmake" and "ThirdParty-*/Allwmake". |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 07:54 |
[foam-extend.org] foam-extend-4.0 openSUSE Leap 42.1 Installation Problem | icab | OpenFOAM Installation | 5 | April 8, 2017 08:09 |
[OpenFOAM.org] OpenFOAM 2.4.x and OpenFOAM 3.0.x on openSUSE Leap 42.1 | cbcoutinho | OpenFOAM Installation | 7 | April 10, 2016 16:15 |
[OpenFOAM.org] Setting OpenFOAM Environment Variables During Installation on OpenSuse 13.2 | m_ridzon | OpenFOAM Installation | 1 | March 30, 2015 18:56 |
[OpenFOAM.org] OpenFOAM 2.3.1 compile on opensuse 12.3 needs MPFR | derekm | OpenFOAM Installation | 4 | January 17, 2015 13:43 |