CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

OpenFOAM1.7.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2011, 07:27
Default
  #21
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
here they are:
Attached Files
File Type: gz make.log5.tar.gz (23.7 KB, 1 views)
File Type: gz make.log6.tar.gz (23.7 KB, 1 views)
pere is offline   Reply With Quote

Old   July 27, 2011, 09:36
Default
  #22
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Pere,

Mmm, something's not right on make6.log. There is no indication that the modifications were implemented. For example, I'll quote an excerpt of the output from it:
Code:
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I/prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude   -fPIC Make/linux64GccDPOpt/laplacianFoam.o -L/prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/lib/linux64GccDPOpt \
         -lfiniteVolume -lOpenFOAM -liberty -ldl   -lm -o /prod/OPENFOAM1.7.1/OpenFOAM-1.7.1-SGI/OpenFOAM-1.7.1/applications/bin/linux64GccDPOpt/laplacianFoam
In bold is the code that is included by the variable PROJECT_LIBS at the general file. Therefore, the modification that I suggested was not implemented!

I've edited a bit the respective part from the post I made before, so let's try again:
  1. Edit the wmake/rules/linux64Gcc/general file;
  2. On the line that says:
    Code:
    PROJECT_LIBS = -l$(WM_PROJECT) -ldl
    Edit to also include the MPI:
    Code:
    PROJECT_LIBS = -l$(WM_PROJECT) -ldl -L/opt/sgi/mpt/mpt-2.03/lib -lmpi
    (Adapt where necessary.)
  3. Save and close.
At the very least, the string "-L/opt/sgi/mpt/mpt-2.03/lib -lmpi" should appear on the output... even if it still doesn't build.

Good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 28, 2011, 04:59
Default
  #23
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
Ok I think it's good now but the error is the same again.....
Attached Files
File Type: gz make.log7.tar.gz (23.7 KB, 1 views)
pere is offline   Reply With Quote

Old   July 28, 2011, 05:13
Default
  #24
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Pere,

This is so strange... OK, check this thread: http://www.cfd-online.com/Forums/ope...pt-2-03-a.html - You're not alone on using SGIMPI!

Unfortunately I don't have access to a system that does have SGI-MPI, so I'm unable to help much more than this and with what I said on that thread.
The main focus are the definitions "-DSGIMPI -DMPI_NO_CPPBIND" that seem to be the missing link for OpenFOAM to build on your system!

You'll need to rebuild at least Pstream for things to start working once again!

Good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 29, 2011, 03:43
Default
  #25
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
I've changed PFLAGS=.... in mplibSGIMPI and the error is the same again:
Attached Files
File Type: gz make.log8.tar.gz (23.7 KB, 4 views)
pere is offline   Reply With Quote

Old   July 29, 2011, 04:40
Default
  #26
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Pere,

Wow, SGI MPI is starting to be more of a pain than most...

OK, with the new options, I'd advise to rebuild OpenFOAM from scratch. Nonetheless, I've found this link: http://www.lrz.de/services/software/...el/mpi/sgimpt/
I don't know which type of machine you are using, so I can't deduce what's needed. But I suggest that you check which libraries are necessary for your machine + SGIMPI.

To rebuild OpenFOAM from scratch, run:
Code:
foam
wcleanAll
wcleanLnIncludeAll
./Allwmake > make.log 2>&1
If this still fails... I'm out of ideas Without access to a machine that has SGIMPI, I'm unable to deduce anything else

The only last thing that comes to mind is that you are having a problem with 32-64 bit library conflicts, where in some cases it's linking to the 32bit version and on others it's linking to the 64bit versions.

Last but not least, consider contacting OpenCFD (www.openfoam.com), since they should know how to make this work for SGI MPI!


__________
edit: this last part is actually for Anirban... I've confused the two threads

Hold on, I just remembered a similar issue, although this might not be the solution:
  1. Edit the wmake/rules/linux64Gcc/general file once again;
  2. On the line that says:
    Code:
    PROJECT_LIBS = -l$(WM_PROJECT) -ldl
    Edit to also include the Pstream:
    Code:
    PROJECT_LIBS = -l$(WM_PROJECT) -ldl -L$(FOAM_MPI_LIBBIN) -lPstream
This way it's enforced where to look for the Pstream library.

Best regards,
Bruno
__________________

Last edited by wyldckat; July 29, 2011 at 04:44. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   July 29, 2011, 05:35
Default
  #27
Member
 
pere
Join Date: Mar 2011
Location: barcelona
Posts: 46
Rep Power: 15
pere is on a distinguished road
I'm using Altix UV 1000
pere is offline   Reply With Quote

Old   July 29, 2011, 17:08
Default
  #28
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Pere,

OK, my theory is that something from the OpenMPI build is conflicting with the SGIMPI build and it's this which is showing us those errors.

So the best option right now I can think of, in order to isolate the error, would be to do a very clean rebuild of OpenFOAM. For this, lets try it this way:
Code:
foam3rdParty
wclean libso metis-5.0pre2/GKlib
wclean libso metis-5.0pre2/libmetis
wclean libso ParMetis-3.1/METISLib
wclean libso ParMetis-3.1/ParMETISLib

wclean libso ParMGridGen-1.0/MGridGen/IMlib
wclean libso ParMGridGen-1.0/MGridGen/Lib

rm -r platforms  #this way we clear up the libraries that might be conflicting with the OpenFOAM installation

foam
rm -r $FOAM_LIBBIN  #this will remove the currently built libraries
wcleanAll
wcleanLnIncludeAll
export WM_NCOMPPROCS=8   #where 8 represents the number of cores on your local machine, so change if necessary, so OpenFOAM will build faster.
./Allwmake > make.log 2>&1
Hopefully this way we will be able to isolate or at the very least confirm the real problem!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 24, 2011, 07:58
Default
  #29
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
News update about building with SGI MPT (or so I hope): http://www.cfd-online.com/Forums/ope...tml#post325458 post#7
__________________
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
reactingFoam in openfoam1.7.1 Farshad_Noravesh OpenFOAM 10 November 30, 2010 02:38
A New Model Implementation! T.D. OpenFOAM Running, Solving & CFD 12 September 13, 2010 09:09


All times are GMT -4. The time now is 11:23.