CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   simpleFunctionObjects and OpenFOAM 2.0.x (http://www.cfd-online.com/Forums/openfoam-programming-development/94667-simplefunctionobjects-openfoam-2-0-x.html)

olauer November 22, 2011 10:47

simpleFunctionObjects and OpenFOAM 2.0.x
 
Hello everybody,

is there already a version of simpleFunctionObjects which compiles with OpenFOAM 2.0.x? For me
wmake libso
ends up with

SOURCE=patch/patchAverageFunctionObject/patchAverageFunctionObject.C ; g++-4.3 -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Woldstyle-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/data/rod/simulation/OpenFOAM/OpenFOAM-2.0.x/src/finiteVolume/lnInclude -I/data/rod/simulation/OpenFOAM/OpenFOAM-2.0.x/src/meshTools/lnInclude -I/data/rod/simulation/OpenFOAM/OpenFOAM-2.0.x/src/sampling/lnInclude -I/data/rod/simulation/OpenFOAM/OpenFOAM-2.0.x/src/triSurface/lnInclude -I/data/rod/simulation/OpenFOAM/OpenFOAM-2.0.x/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/data/rod/simulation/OpenFOAM/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude -I/data/rod/simulation/OpenFOAM/OpenFOAM-2.0.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/patchAverageFunctionObject.o
/data/rod/simulation/OpenFOAM/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude/functionObject.H: In static member function 'static Foam::autoPtr<Foam::functionObject> Foam::functionObject::adddictionaryConstructorToTa ble<functionObjectType>::New(const Foam::word&, const Foam::Time&, const Foam::dictionary&) [with functionObjectType = Foam::PatchAverageFunctionObject]':
/data/rod/simulation/OpenFOAM/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude/functionObject.H:91: instantiated from 'Foam::functionObject::adddictionaryConstructorToT able<functionObjectType>::adddictionaryConstructor ToTable(const Foam::word&) [with functionObjectType = Foam::PatchAverageFunctionObject]'
patch/patchAverageFunctionObject/patchAverageFunctionObject.C:44: instantiated from here
/data/rod/simulation/OpenFOAM/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude/functionObject.H:84: error: cannot allocate an object of abstract type 'Foam::PatchAverageFunctionObject'
patch/patchAverageFunctionObject/patchAverageFunctionObject.H:54: note: because the following virtual functions are pure within 'Foam::PatchAverageFunctionObject':
/data/rod/simulation/OpenFOAM/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude/functionObject.H:152: note: virtual bool Foam::functionObject::execute(bool)
make: *** [Make/linux64GccDPOpt/patchAverageFunctionObject.o] Error 1

Thanks for any ideas

Oliver

wyldckat November 22, 2011 15:26

Greetings Oliver,

Here's a quote from the wiki page dedicated to simpleFunctionObjects:
Quote:

Originally Posted by http://openfoamwiki.net/index.php/Contrib_simpleFunctionObjects
Note: This library will be integrated into swak4Foam starting with OF 2.0. The library is still compilable independently of the other parts of swak

:)

Best regards,
Bruno

gschaider November 22, 2011 17:48

Quote:

Originally Posted by wyldckat (Post 333153)
Greetings Oliver,

Here's a quote from the wiki page dedicated to simpleFunctionObjects:
:)

Best regards,
Bruno

There is even a link to download it via SVN at the bottom of the page. Haven't you seen it? It's been there for .... er .... almost 2 minutes

olauer November 23, 2011 04:50

Thank you very much.

As always, it is an advantage if you can read :)

Quote:

Originally Posted by gschaider (Post 333176)
There is even a link to download it via SVN at the bottom of the page. Haven't you seen it? It's been there for .... er .... almost 2 minutes

Nevertheless, my original posting wasn't completely useless :)


All times are GMT -4. The time now is 08:18.