mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
janafThermo: Reverted FatalError concerning mismatching Tcommon to be on a debug switch
This commit is contained in:
@ -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 * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -74,6 +74,10 @@ class specie
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
ClassName("specie");
|
||||
|
||||
|
||||
// Public constants
|
||||
|
||||
// Thermodynamic constants
|
||||
|
||||
@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user