mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Feature merge OpenFOAM.org
This commit is contained in:
committed by
Andrew Heather
parent
0027ba3226
commit
e6f8dfecec
28
tutorials/IO/dictionary/good-if.dict
Normal file
28
tutorials/IO/dictionary/good-if.dict
Normal file
@ -0,0 +1,28 @@
|
||||
/*--------------------------------*- 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
|
||||
Reference in New Issue
Block a user