Files
openfoam/tutorials/IO/dictionary/good-if.dict
2019-01-10 10:10:06 +00:00

29 lines
1.0 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1812 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2;
format ascii;
class dictionary;
object dictionary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifeq $WM_PROJECT_VERSION plus
// Get version number as dictionary entry
versionNo ${FOAM_API};
// Do comparison
#if #calc "$versionNo<1812";
version "pre-1812";
#else
version "post-1812";
#endif
#else
version "other";
#endif