diff --git a/src/thermophysicalModels/specie/specie/specie.C b/src/thermophysicalModels/specie/specie/specie.C index 621cd043ab43038908b9099d41ca520c6f0d2a41..fa4bea7ca99a39270bc47a290c2055a463767569 100644 --- a/src/thermophysicalModels/specie/specie/specie.C +++ b/src/thermophysicalModels/specie/specie/specie.C @@ -38,6 +38,8 @@ const Foam::scalar Foam::specie::Pstd = constant::standard::Pstd.value(); //- Standard temperature (default in [K]) const Foam::scalar Foam::specie::Tstd = constant::standard::Tstd.value(); +defineTypeNameAndDebug(Foam::specie, 0); + // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // diff --git a/src/thermophysicalModels/specie/specie/specie.H b/src/thermophysicalModels/specie/specie/specie.H index 6a64f02198936b2e1dbf16e0a0c15276db3aa63a..fd7c69c1283efa6d2d2903a0af4364ccab9d69e2 100644 --- a/src/thermophysicalModels/specie/specie/specie.H +++ b/src/thermophysicalModels/specie/specie/specie.H @@ -74,6 +74,10 @@ class specie public: + //- Runtime type information + ClassName("specie"); + + // Public constants // Thermodynamic constants diff --git a/src/thermophysicalModels/specie/thermo/janaf/janafThermoI.H b/src/thermophysicalModels/specie/thermo/janaf/janafThermoI.H index eac1663e1156f76d5fcbf703d3d846bdfdd3e603..4e0a5b4ff23fdae42522c1555ffd4d7775f8e671 100644 --- a/src/thermophysicalModels/specie/thermo/janaf/janafThermoI.H +++ b/src/thermophysicalModels/specie/thermo/janaf/janafThermoI.H @@ -241,7 +241,7 @@ inline void Foam::janafThermo<EquationOfState>::operator+= Tlow_ = max(Tlow_, jt.Tlow_); Thigh_ = min(Thigh_, jt.Thigh_); - if (notEqual(Tcommon_, jt.Tcommon_)) + if (janafThermo<EquationOfState>::debug && notEqual(Tcommon_, jt.Tcommon_)) { FatalErrorIn ( @@ -288,7 +288,7 @@ inline void Foam::janafThermo<EquationOfState>::operator-= Tlow_ = max(Tlow_, jt.Tlow_); Thigh_ = min(Thigh_, jt.Thigh_); - if (notEqual(Tcommon_, jt.Tcommon_)) + if (janafThermo<EquationOfState>::debug && notEqual(Tcommon_, jt.Tcommon_)) { FatalErrorIn ( @@ -353,7 +353,11 @@ inline Foam::janafThermo<EquationOfState> Foam::operator+ + molr2*jt2.lowCpCoeffs_[coefLabel]; } - if (notEqual(jt1.Tcommon_, jt2.Tcommon_)) + if + ( + janafThermo<EquationOfState>::debug + && notEqual(jt1.Tcommon_, jt2.Tcommon_) + ) { FatalErrorIn ( @@ -411,7 +415,11 @@ inline Foam::janafThermo<EquationOfState> Foam::operator- - molr2*jt2.lowCpCoeffs_[coefLabel]; } - if (notEqual(jt1.Tcommon_, jt2.Tcommon_)) + if + ( + janafThermo<EquationOfState>::debug + && notEqual(jt1.Tcommon_, jt2.Tcommon_) + ) { FatalErrorIn (