error using palabos installation and running examples

scons: Reading SConscript files …
KeyError: ‘palabosRoot’:
File “/home/nikul/Parabolas/palabos-v1.0r1/SConstruct”, line 17:
palabosRoot = argdict[‘palabosRoot’]

i am not able to run example file when i am compiling cavity2d problem using make command following appears on my screen

python …/…/…/scons/scons.py -j 2 -f …/…/…/SConstruct palabosRoot=…/…/… projectFiles=“cavity2d.cpp” optimize=true debug=false profile=false MPIparallel=true SMPparallel=false usePOSIX=true serialCXX=g++ parallelCXX=mpicxx compileFlags="-Wall -Wnon-virtual-dtor" linkFlags="" optima
scons: done reading SConscript files.
scons: Building targets …
mpicxx -o cavity2d.o -c -Wall -Wnon-virtual-dtor -O3 -DPLB_MPI_PARALLEL -DPLB_USE_POSIX -I/home/nikul/Parabolas/palabos-v1.0r1/src -I/home/nikul/Parabolas/palabos-v1.0r1/externalLibraries cavity2d.cpp
sh: mpicxx: not found
scons: *** [cavity2d.o] Error 127
mpicxx -o /home/nikul/Parabolas/palabos-v1.0r1/src/io/serializerIO_2D.o -c -Wall -Wnon-virtual-dtor -O3 -DPLB_MPI_PARALLEL -DPLB_USE_POSIX -I/home/nikul/Parabolas/palabos-v1.0r1/src -I/home/nikul/Parabolas/palabos-v1.0r1/externalLibraries /home/nikul/Parabolas/palabos-v1.0r1/src/io/serializerIO_2D.cpp
sh: mpicxx: not found
scons: *** [/home/nikul/Parabolas/palabos-v1.0r1/src/io/serializerIO_2D.o] Error 127
scons: building terminated because of errors.
make: *** [compile] Error 2

Hi,
You need to install MPI (I’d suggest either OpenMPI or mpich, both of which are available in the software repository of standard Linux distributions). Alternatively, you can switch to non-parallel compilation by setting MPIparallel = false in the Makefile.

Cheers,
Jonas

Hi,

I have installed OpenMPI, but bug is as follows:

make
python …/…/…/scons/scons.py -j 2 -f …/…/…/SConstruct palabosRoot=…/…/… projectFiles=“poiseuille.cpp” optimize=true debug=false profile=false MPIparallel=true SMPparallel=false usePOSIX=true serialCXX=g++ parallelCXX=mpicxx compileFlags="-Wall -Wnon-virtual-dtor" linkFlags="" optimFlags="-O3" debugFlags="-g" profileFlags="-pg" libraryPaths="" includePaths="" libraries=""
scons: Reading SConscript files …
scons: done reading SConscript files.
scons: Building targets …
mpicxx -o poiseuille.o -c -Wall -Wnon-virtual-dtor -O3 -DPLB_MPI_PARALLEL -DPLB_USE_POSIX -I/home/think/Desktop/palabos-v1.2r0/src -I/home/think/Desktop/palabos-v1.2r0/externalLibraries poiseuille.cpp
sh: 1: mpicxx: not found
scons: *** [poiseuille.o] Error 127
mpicxx -o /home/think/Desktop/palabos-v1.2r0/src/multiGrid/multiScale.o -c -Wall -Wnon-virtual-dtor -O3 -DPLB_MPI_PARALLEL -DPLB_USE_POSIX -I/home/think/Desktop/palabos-v1.2r0/src -I/home/think/Desktop/palabos-v1.2r0/externalLibraries /home/think/Desktop/palabos-v1.2r0/src/multiGrid/multiScale.cpp
sh: 1: mpicxx: not found
scons: *** [/home/think/Desktop/palabos-v1.2r0/src/multiGrid/multiScale.o] Error 127
scons: building terminated because of errors.
make: *** [compile] Error 2

What’s wrong? and I do want

Set MPI-parallel mode on/off (parallelism in cluster-like environment)

MPIparallel = true

How should I do with it?

Help!

thanks!

To use MPI you have to adapt your PATH and LD_LIBRARY_PATH environment variable.

export PATH=/usr/local/openmpi/bin
export LD_LIBRARY_PATH=/usr/local/openmpi/lib

replace the address “/usr/local/” if the openmpi folder is saved in different location.