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

32 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;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// (label == scalar) ?
#ifeq 0 0.0
labelEqScalar true;
#else
labelEqScalar false; } // Provoke parse error if we see this branch
#endif
// (scalar == label) ?
#ifeq 0.0 0
scalarEqLabel true;
#else
scalarEqLabel false; } // Provoke parse error if we see this branch
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //