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

Lammpi library

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 1, 2005, 15:09
Default Can I use the lam/mpi package
  #1
New Member
 
Ho Hsing
Join Date: Mar 2009
Posts: 13
Rep Power: 8
hsing is on a distinguished road
Can I use the lam/mpi package downloaded from OpenCFD when I developing my own parallel code? I am too lazy to downlaod the source code from www.lam-mpi.org and re-install the whole package again;)

But I can not find the lam/mpi library. When I test an example code, here is the erro message I got,

[hsing@localhost hello]$ mpic++ cxxhello.cc -I/home/hsing/OpenFOAM/OpenFOAM-1.1/src/lam-7.1.1/platforms/linuxAMD64Opt/includ e -lm
cxxhello.cc: In function `int main(int, char**)':
cxxhello.cc:28: error: `MPI' has not been declared
cxxhello.cc:28: error: `Init' undeclared (first use this function)
cxxhello.cc:28: error: (Each undeclared identifier is reported only once for each function it appears in.)
cxxhello.cc:30: error: `MPI' has not been declared
cxxhello.cc:30: error: `COMM_WORLD' undeclared (first use this function)
cxxhello.cc:31: error: `MPI' has not been declared
cxxhello.cc:35: error: `MPI' has not been declared
cxxhello.cc:35: error: `Finalize' undeclared (first use this function)
mpic++: No such file or directory

Does anyone know where should I set the library directory for mpicxx?
hsing is offline   Reply With Quote

Old   September 1, 2005, 22:53
Default My guess is try the mpi2cxx/ s
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
My guess is try the mpi2cxx/ subdirectory of that include directory.
mattijs is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
About AMR Library C.-G. CHEN Main CFD Forum 0 October 31, 2007 01:34
UDF Function Library Dave FLUENT 2 October 23, 2006 12:12
Ssh problem for LAMMPI parallelauvi OpenFOAM Installation 3 April 12, 2006 01:28
LAMMPI troubles mer OpenFOAM Installation 4 September 13, 2005 05:41
Library JB Phoenics 0 June 20, 2004 15:12


All times are GMT -4. The time now is 15:22.