Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / src / equationReader / include / createEquationReader.H
blobfd54f97fc9ae99d45ba2dec448b48108a60fb931
1 //
2 // createEquationReader.H
3 // ~~~~~~~~~~~~~~~~~~~~~~
5     Foam::IOEquationReader eqns
6     (
7         IOobject
8         (
9             "equations",
10             runTime.timeName(),
11             runTime,
12             IOobject::NO_READ,
13             runTime.controlDict().found("outputEquations")
14           ? Switch(runTime.controlDict().lookup("outputEquations")) == true
15             ? IOobject::AUTO_WRITE
16             : IOobject::NO_WRITE
17           : IOobject::NO_WRITE
18         ),
19         runTime.controlDict().found("outputEquationDataSources")
20       ? bool(Switch(runTime.controlDict().lookup("outputEquationDataSources")))
21       : false
22     );