Commit 8a459cdb authored by Mark Olesen's avatar Mark Olesen Committed by Andrew Heather
Browse files

ENH: use 0.0-value instead of -value for inv(dimensionSet)

- the automatic rounding avoids generation of negative zero values.
  For other exponent values it has no effect.
parent d50c5ce8
......@@ -463,13 +463,13 @@ Foam::dimensionSet Foam::inv(const dimensionSet& ds)
{
return dimensionSet
(
-ds[dimensionSet::MASS],
-ds[dimensionSet::LENGTH],
-ds[dimensionSet::TIME],
-ds[dimensionSet::TEMPERATURE],
-ds[dimensionSet::MOLES],
-ds[dimensionSet::CURRENT],
-ds[dimensionSet::LUMINOUS_INTENSITY]
0.0-ds[dimensionSet::MASS],
0.0-ds[dimensionSet::LENGTH],
0.0-ds[dimensionSet::TIME],
0.0-ds[dimensionSet::TEMPERATURE],
0.0-ds[dimensionSet::MOLES],
0.0-ds[dimensionSet::CURRENT],
0.0-ds[dimensionSet::LUMINOUS_INTENSITY]
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment