ENH: provide a 'dimensioned' null-like constructor for dimensionedType

- The null constructor already creates a dimensionless Zero,
  but named "undefined".

  Provide an constructor for a dimensioned Zero,
  but named "0" for universal clarity to its value.
This commit is contained in:
Mark Olesen
2016-12-02 08:48:01 +01:00
parent 8628ddac43
commit 8563f892a9
3 changed files with 22 additions and 3 deletions

View File

@ -81,6 +81,10 @@ int main(int argc, char *argv[])
}
Pout<< "zero scalar (time): " << dimensionedScalar(dimTime) << endl;
Pout<< "zero vector: " << dimensionedVector(dimLength) << endl;
Pout<< "zero tensor: " << dimensionedTensor(dimLength) << endl;
Info<< "End\n" << endl;
return 0;