Modifying dsmcFields to allow negative rhoNMean values, only cheching for min(mag(rhoNMean)) < VSMALL

This commit is contained in:
Graham
2009-03-18 10:29:05 +00:00
parent 6dc53f429f
commit 6d265b0a5f

View File

@ -137,7 +137,7 @@ void Foam::dsmcFields::write()
iDofMeanName
);
if (min(rhoNMean).value() > VSMALL)
if (min(mag(rhoNMean)).value() > VSMALL)
{
Info<< "Calculating dsmcFields." << endl;
@ -223,10 +223,9 @@ void Foam::dsmcFields::write()
}
else
{
Info<< "Small or negative value (" << min(rhoNMean)
Info<< "Small value (" << min(mag(rhoNMean))
<< ") found in rhoNMean field. "
<< "Not calculating dsmcFields to avoid division by zero "
<< "or invalid results."
<< "Not calculating dsmcFields to avoid division by zero."
<< endl;
}
}