The EqType
solver property defined in the session file, as in,
<SOLVERINFO>
<I PROPERTY="EQTYPE" VALUE="UnsteadyNavierStokes"/>
is not registered to the session reader. As a consequence, method SessionReader::verifySolverInfo
will not check validity of EqType
values.
Although an error will eventually be raised from the IncNavierStokes
constructor, registering EqType
to the session reader would allow SessionReader::verifySolverInfo
to also check if the property is registered or not.
EqType
property along with possible values are registered using SessionReader::RegisterEnumValue
method just like other solver properties are, see from instance Driver.cpp
.
With this patch, the following
<SOLVERINFO>
<I PROPERTY="EQTYPE" VALUE="NavierStokes"/>
will cause the session reader to error out with
Value 'NavierStokes' is not valid for property 'EqType'
Eventually, a test could check error status with bogus session file.
Please add any other information that could be useful for reviewers.