ENH: add stub function to codedFixedValueFvPatchScalarField for version checking

- eg, fixedValue10_<SHA1>, its existence indicates that the correct
  library has been loaded
This commit is contained in:
Mark Olesen
2011-02-24 08:54:12 +01:00
parent b0e39f71c3
commit 6eb982573c
5 changed files with 81 additions and 28 deletions

View File

@ -35,6 +35,20 @@ ${codeInclude}
namespace Foam
{
// * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * //
extern "C"
{
// unique function name that can be checked if the correct library version
// has been loaded
bool ${typeName}_${SHA1sum}()
{
return true;
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
${typeName}FixedValueFvPatchScalarField::