Compilation error for parallel computing

Hi everyone,

I’m trying to simulate 3D-porous media by using the basic tutorial of computing permeability (permeability.cpp). After editing the Makefile MPI_PARALLEL=true and recompiling I get the following error:

scons: Building targets …
mpicxx -o permeability permeability.o /tmp/Anesme/Palabos/palabos-v0.7r3/lib/libplb_mpi.a
/usr/lib64/gcc/x86_64-suse-linux/4.4/…/…/…/…/x86_64-suse-linux/bin/ld: cannot find -lmpi_cxx
collect2: ld returned 1 exit status
scons: *** [permeability] Error 1
scons: building terminated because of errors.

does anybody know what the error can be?
I will appreciate your help!

regards

Anuhar

Hi,

To be sure, you can type a “make clean” and then recompile with “make”. Considering the error message, this rather looks like an installation error of MPI, though. You should check with your sysadmin, or try re-installing MPI, if this is your own computer.

Hi Jonas,

thanks a lot for your prompt reply, I did many times the “make clean” and recompiled with “make” and the error is still appearing. I will ask my sysadmin about this error. By the way, for running the simulation should I use:

mpirun -np 8 ./permeability porous_100x100x100.dat tmp/ 100 100 100 0.00005.

thanks

Anuhar

Dear Anuhar,

That certainly is the problem with your mpicxx compiler. Try to reinstall it from YAST - for example OpenMPI.

Cheers,
Alex