openfoam/tutorials/IO/dictionary/good-if1.dict
2024-12-24 11:17:31 +00:00

31 lines
1.1 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2412 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
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
// ************************************************************************* //