error in compiling the code

nikul@nikul-desktop:~/PALABOS/palabos-v0.6r0/examples/nikul$ make
python …/…/…/scons/scons.py -f …/…/…/SConstruct palabosRoot=…/…/… projectFiles=“cavity2d.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=""
python: can’t open file ‘…/…/…/scons/scons.py’: [Errno 2] No such file or directory
make: *** [compile] Error 2

what is Error 2, and how it can be resolved.

nikul

I see from your path that you are using Palabos version 0.6. Please download the latest version from our website and try again.

think@ubuntu:~/Desktop/palabos-v1.3r0/examples/showCases/rectangularChannel3d$ make
python /scons/scons.py -j 2 -f /SConstruct palabosRoot= projectFiles=“rectangularChannel3D.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=""
python: can’t open file ‘/scons/scons.py’: [Errno 2] No such file or directory
make: *** [compile] Error 2
think@ubuntu:~/Desktop/palabos-v1.3r0/examples/showCases/rectangularChannel3d$ make
python /scons/scons.py -j 2 -f /SConstruct palabosRoot= projectFiles=“rectangularChannel3D.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=""
python: can’t open file ‘/scons/scons.py’: [Errno 2] No such file or directory
make: *** [compile] Error 2

I have downloaded the latest version from uour website.
what is Error 2, and how it can be resolved.

Hello,

you need to set the environment variable PALABOS_ROOT to be the Palabos directory in your filesystem (~/Desktop/palabos-v1.3r0/), or go to the Makefile at “palabos-v1.3r0/examples/showCases/rectangularChannel3d” at the line where you define “palabosRoot” and set:

palabosRoot = …/…/…

Cheers,
D.

Thanks a lot dimitris@flowkit

new problems as follows:

think@ubuntu:~/Desktop/palabos-v1.3r0/examples/showCases/gridRefinement2d$ make
python …/…/…/scons/scons.py -j 2 -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="" optimFlags="-O3" debugFlags="-g" profileFlags="-pg" libraryPaths="" includePaths="." libraries=""
scons: Reading SConscript files …
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/think/Desktop/palabos-v1.3r0/src -I/home/think/Desktop/palabos-v1.3r0/externalLibraries -I. cavity2d.cpp
mpicxx -o /home/think/Desktop/palabos-v1.3r0/src/io/serializerIO_2D.o -c -Wall -Wnon-virtual-dtor -O3 -DPLB_MPI_PARALLEL -DPLB_USE_POSIX -I/home/think/Desktop/palabos-v1.3r0/src -I/home/think/Desktop/palabos-v1.3r0/externalLibraries -I. /home/think/Desktop/palabos-v1.3r0/src/io/serializerIO_2D.cpp
mpicxx -o /home/think/Desktop/palabos-v1.3r0/src/io/multiBlockReader3D.o -c -Wall -Wnon-virtual-dtor -O3 -DPLB_MPI_PARALLEL -DPLB_USE_POSIX -I/home/think/Desktop/palabos-v1.3r0/src -I/home/think/Desktop/palabos-v1.3r0/externalLibraries -I. /home/think/Desktop/palabos-v1.3r0/src/io/multiBlockReader3D.cpp
mpicxx -o /home/think/Desktop/palabos-v1.3r0/src/io/parallelIO.o -c -Wall -Wnon-virtual-dtor -O3 -DPLB_MPI_PARALLEL -DPLB_USE_POSIX -I/home/think/Desktop/palabos-v1.3r0/src -I/home/think/Desktop/palabos-v1.3r0/externalLibraries -I. /home/think/Desktop/palabos-v1.3r0/src/io/parallelIO.cpp
cavity2d.cpp: In function ‘int main(int, char**)’:
cavity2d.cpp:139:16: error: ‘class plb::MultiGridManagement2D’ has no member named ‘parallelizeX’
cavity2d.cpp:149:52: error: no matching function for call to ‘plb::MultiGridLattice2D<double, plb::descriptors::D2Q9Descriptor>::MultiGridLattice2D(plb::MultiGridManagement2D&, std::vectorplb::BlockCommunicator2D*, std::vectorplb::CombinedStatistics*, plb::Dynamics<double, plb::descriptors::D2Q9Descriptor>&, plb::plint&)’
cavity2d.cpp:149:52: note: candidates are:
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:171:1: note: plb::MultiGridLattice2D<T, Descriptor>::MultiGridLattice2D(const plb::MultiGrid2D&, plb::Box2D, bool) [with T = double, Descriptor = plb::descriptors::D2Q9Descriptor, plb::MultiGrid2D = plb::MultiGrid2D]
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:171:1: note: candidate expects 3 arguments, 5 provided
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:154:1: note: plb::MultiGridLattice2D<T, Descriptor>::MultiGridLattice2D(const plb::MultiGrid2D&) [with T = double, Descriptor = plb::descriptors::D2Q9Descriptor, plb::MultiGrid2D = plb::MultiGrid2D]
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:154:1: note: candidate expects 1 argument, 5 provided
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:134:1: note: plb::MultiGridLattice2D<T, Descriptor>::MultiGridLattice2D(const plb::MultiGridLattice2D<T, Descriptor>&, plb::Box2D, bool) [with T = double, Descriptor = plb::descriptors::D2Q9Descriptor]
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:134:1: note: candidate expects 3 arguments, 5 provided
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:111:1: note: plb::MultiGridLattice2D<T, Descriptor>::MultiGridLattice2D(const plb::MultiGridLattice2D<T, Descriptor>&) [with T = double, Descriptor = plb::descriptors::D2Q9Descriptor]
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:111:1: note: candidate expects 1 argument, 5 provided
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:42:1: note: plb::MultiGridLattice2D<T, Descriptor>::MultiGridLattice2D(plb::MultiGridManagement2D, plb::Dynamics<T, Descriptor>
, plb::plint, plb::FineGridInterfaceInstantiator<T, Descriptor>, plb::CoarseGridInterfaceInstantiator<T, Descriptor>) [with T = double, Descriptor = plb::descriptors::D2Q9Descriptor, plb::plint = int]
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:42:1: note: no known conversion for argument 2 from ‘std::vectorplb::BlockCommunicator2D*’ to ‘plb::Dynamics<double, plb::descriptors::D2Q9Descriptor>
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:70:1: note: plb::MultiGridLattice2D<T, Descriptor>::MultiGridLattice2D(plb::MultiGridManagement2D, std::vectorplb::BlockCommunicator2D*, std::vectorplb::CombinedStatistics*, plb::Dynamics<T, Descriptor>
, plb::plint, plb::FineGridInterfaceInstantiator<T, Descriptor>, plb::CoarseGridInterfaceInstantiator<T, Descriptor>) [with T = double, Descriptor = plb::descriptors::D2Q9Descriptor, plb::plint = int]
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:70:1: note: candidate expects 7 arguments, 5 provided
In file included from /home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.h:47:0,
from /home/think/Desktop/palabos-v1.3r0/src/multiGrid/headers2D.h:37,
from /home/think/Desktop/palabos-v1.3r0/src/palabos2D.h:36,
from cavity2d.cpp:25:
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridGenerator2D.h: At global scope:
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridGenerator2D.h: In instantiation of ‘plb::FineGridInterfaceInstantiator<double, plb::descriptors::D2Q9Descriptor>’:
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:106:5: instantiated from ‘plb::MultiGridLattice2D<T, Descriptor>::~MultiGridLattice2D() [with T = double, Descriptor = plb::descriptors::D2Q9Descriptor]’
cavity2d.cpp:149:52: instantiated from here
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridGenerator2D.h:100:7: warning: ‘class plb::FineGridInterfaceInstantiator<double, plb::descriptors::D2Q9Descriptor>’ has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridGenerator2D.h: In instantiation of ‘plb::CoarseGridInterfaceInstantiator<double, plb::descriptors::D2Q9Descriptor>’:
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridLattice2D.hh:107:5: instantiated from ‘plb::MultiGridLattice2D<T, Descriptor>::~MultiGridLattice2D() [with T = double, Descriptor = plb::descriptors::D2Q9Descriptor]’
cavity2d.cpp:149:52: instantiated from here
/home/think/Desktop/palabos-v1.3r0/src/multiGrid/multiGridGenerator2D.h:115:7: warning: ‘class plb::CoarseGridInterfaceInstantiator<double, plb::descriptors::D2Q9Descriptor>’ has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]
scons: *** [cavity2d.o] Error 1
scons: building terminated because of errors.
make: *** [compile] Error 2

how it can be resolved.