diff --git a/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.C b/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.C index c676703e9dafc60e4e69b5c73a4f7842892d6c52..16a11b154a898ba6593f9e649d3d352477cf8457 100644 --- a/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.C +++ b/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -284,6 +284,16 @@ bool Foam::codedFunctionObject::read(const dictionary& dict) ); } + if(!dataPtr && !readPtr && !execPtr && !writePtr && !endPtr) + { + IOWarningInFunction + ( + dict + ) << "No critical \"code\" prefixed keywords were found." + << " Please check the code documentation for more details." + << nl << endl; + } + updateLibrary(name_); return redirectFunctionObject().read(dict); } diff --git a/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.H b/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.H index e57e24180246fd88e6082a16cfb3f2d7b8af5487..bc949c92a3442d2be2612a6cbce05cc5bce6aed9 100644 --- a/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.H +++ b/src/functionObjects/utilities/codedFunctionObject/codedFunctionObject.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,16 +30,18 @@ Group Description Provides a general interface to enable dynamic code compilation. - The entries are - codeInclude : include files - codeOptions : include paths; inserted into EXE_INC in Make/options - codeLibs : link line; inserted into LIB_LIBS in Make/options - codeData : c++; local member data (null constructed); - localCode : c++; local static functions - codeRead : c++; upon functionObject::read(); - codeExecute : c++;upon functionObject::execute(); - codeWrite : c++; upon functionObject::write() - codeEnd : c++; upon functionObject::end(); + The entries are: + \plaintable + codeInclude | include files + codeOptions | include paths; inserted into EXE_INC in Make/options + codeLibs | link line; inserted into LIB_LIBS in Make/options + codeData | c++; local member data (null constructed); + localCode | c++; local static functions; + codeRead | c++; upon functionObject::read(); + codeExecute | c++; upon functionObject::execute(); + codeWrite | c++; upon functionObject::write() + codeEnd | c++; upon functionObject::end(); + \endplaintable Example of function object specification: \verbatim