Tutorial 2-2

Hi everyone,

I have a problem running the tutorial number 2-2. I had no problems running any of the examples from the first tutorial, but compiling the tutorial number 2-2 gives me the following error message:


tutorial_2_2.cpp: In function ‘int main(int, char**)’:
tutorial_2_2.cpp:128: error: ‘MultiBlockDistribution2D’ was not declared in this scope
tutorial_2_2.cpp:128: error: expected `;' before ‘blockDistribution’
tutorial_2_2.cpp:129: error: ‘blockDistribution’ was not declared in this scope
tutorial_2_2.cpp:139: error: expected primary-expression before ‘>’ token
tutorial_2_2.cpp:139: error: expected primary-expression before ‘)’ token
tutorial_2_2.cpp:140: error: expected primary-expression before ‘>’ token
tutorial_2_2.cpp:140: error: expected primary-expression before ‘)’ token

How can I declare the MultiBlockDistribution?

Thank you very much!
Konstantin

The complete message after the make command is:


python ../../../scons/scons.py -f ../../../SConstruct palabosRoot=../../.. projectFiles="tutorial_2_2.cpp" precompiled=false optimize=true debug=false profile=false MPIparallel=false SMPparallel=false usePOSIX=true useCVMLCPP=false serialCXX=g++ parallelCXX=mpicxx compileFlags="" linkFlags="" optimFlags="-O3" debugFlags="-g" profileFlags="-pg" libraryPaths="" includePaths="" libraries=""
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o tutorial_2_2.o -c -O3 -DPLB_USE_POSIX -~/konstantin/palabos-v0.7r0/src -~/konstantin/palabos-v0.7r0/externalLibraries tutorial_2_2.cpp
tutorial_2_2.cpp: In function ‘int main(int, char**)’:
tutorial_2_2.cpp:128: error: ‘MultiBlockDistribution2D’ was not declared in this scope
tutorial_2_2.cpp:128: error: expected `;' before ‘blockDistribution’
tutorial_2_2.cpp:129: error: ‘blockDistribution’ was not declared in this scope
tutorial_2_2.cpp:139: error: expected primary-expression before ‘>’ token
tutorial_2_2.cpp:139: error: expected primary-expression before ‘)’ token
tutorial_2_2.cpp:140: error: expected primary-expression before ‘>’ token
tutorial_2_2.cpp:140: error: expected primary-expression before ‘)’ token
scons: *** [tutorial_2_2.o] Error 1
scons: building terminated because of errors.
make: *** [compile] Error 2

Thanks for the info!

Indeed, there has been a slight change in the interface of Palabos, where the MultiBlockDistributionXD has been replaced by the SparseBlockStructureXD. This is connected with the new abilities of Palabos to change the structure of a block dynamically, in middle of a simulation.

We obviously forgot to adapt Tutorial 2 correspondingly; there will be a release with the corresponding updates very shortly.