CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   error:compiling a porous dict/solver in cylindricalCS (https://www.cfd-online.com/Forums/openfoam-programming-development/91352-error-compiling-porous-dict-solver-cylindricalcs.html)

calim_cfd August 8, 2011 10:36

error:compiling a porous dict/solver in cylindricalCS
 
1 Attachment(s)
Hello Foamers!

I'm trying to compile some libraries to use a solver for porous media in cylindrical CS and im getting this error.. i'm not too good in c++ and the like so i'd like to ask u if this is a compiling/version kinda error or is it a bad implementation case...



here's my wmake error folloed by the log
******************************
In file included from cylPorousZone.C:27:
cylPorousZone.H: In constructor ‘Foam::cylPorousZone::iNew::iNew(const Foam::fvMesh&)’:
cylPorousZone.H:223: error: no matching function for call to ‘Foam::coordinateSystems::coordinateSystems() ’
/opt/OpenFOAM/OpenFOAM-2.0.0/src/meshTools/lnInclude/coordinateSystems.H:85: note: candidates are: Foam::coordinateSystems::coordinateSystems(const Foam::IOobject&, const Foam::Xfer<Foam::PtrList<Foam::coordinateSystem> >&)
/opt/OpenFOAM/OpenFOAM-2.0.0/src/meshTools/lnInclude/coordinateSystems.H:78: note: Foam::coordinateSystems::coordinateSystems(const Foam::IOobject&, const Foam::PtrList<Foam::coordinateSystem>&)
/opt/OpenFOAM/OpenFOAM-2.0.0/src/meshTools/lnInclude/coordinateSystems.H:75: note: Foam::coordinateSystems::coordinateSystems(const Foam::IOobject&)
/opt/OpenFOAM/OpenFOAM-2.0.0/src/meshTools/lnInclude/coordinateSystems.H:61: note: Foam::coordinateSystems::coordinateSystems(const Foam::coordinateSystems&)
/opt/OpenFOAM/OpenFOAM-2.0.0/src/meshTools/lnInclude/coordinateSystems.H: In constructor ‘Foam::cylPorousZone::iNew::iNew(const Foam::fvMesh&, const Foam::coordinateSystems&)’:
/opt/OpenFOAM/OpenFOAM-2.0.0/src/meshTools/lnInclude/coordinateSystems.H:61: error: ‘Foam::coordinateSystems::coordinateSystems(c onst Foam::coordinateSystems&)’ is private
cylPorousZone.H:229: error: within this context
cylPorousZone.H: In member function ‘Foam::autoPtr<Foam::cylPorousZone> Foam::cylPorousZone::iNew::operator()(Foam::Istrea m&) const’:
cylPorousZone.H:236: error: ‘rewriteDict’ was not declared in this scope
cylPorousZone.H: In member function ‘const Foam::vector& Foam::cylPorousZone::axis() const’:
cylPorousZone.H:280: warning: returning reference to temporary
make: ** [Make/linux64GccDPOpt/cylPorousZone.o] Erro 1

log

SOURCE=cylPorousZone.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/triSurface/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.0.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/cylPorousZone.o
rousMedia
**************************

PS:files compiled are attached

thanks a lot

/calim


All times are GMT -4. The time now is 06:55.