mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: IOstreams with float/double instead of floatScalar/doubleScalar
- consistent with defining IO of int32_t/int64_t and with recent changes to ensightFile. Using the primitives directly instead of typedefs to them makes the code somewhat less opaque.
This commit is contained in:
@ -232,13 +232,13 @@ vtk::outputOptions getOutputOptions(const argList& args)
|
||||
|
||||
if (!args.found("ascii"))
|
||||
{
|
||||
if (sizeof(floatScalar) != 4 || sizeof(label) != 4)
|
||||
if (sizeof(float) != 4 || sizeof(label) != 4)
|
||||
{
|
||||
opts.ascii(true);
|
||||
|
||||
WarningInFunction
|
||||
<< "Using ASCII rather than legacy binary VTK format since "
|
||||
<< "floatScalar and/or label are not 4 bytes in size."
|
||||
<< "float and/or label are not 4 bytes in size."
|
||||
<< nl << endl;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user