|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Ho Hsing
Join Date: Mar 2009
Posts: 13
Rep Power: 17 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 ![]() |
My guess is try the mpi2cxx/ subdirectory of that include directory.
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 13:12 |
Ssh problem for LAMMPI | parallelauvi | OpenFOAM Installation | 3 | April 12, 2006 02:28 |
LAMMPI troubles | mer | OpenFOAM Installation | 4 | September 13, 2005 06:41 |
Library | JB | Phoenics | 0 | June 20, 2004 16:12 |