mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user