BUGFIX: Illegal use of uninitialised value (backport)
[foam-extend-3.2.git] / applications / utilities / postProcessing / dataConversion / foamToGMV / readConversionProperties.H
blob35f30932b4afce83a14691d634ddeeaa1763d8e1
1 IOdictionary conversionProperties
3     IOobject
4     (
5         "conversionProperties",
6         runTime.constant(),
7         mesh,
8         IOobject::MUST_READ,
9         IOobject::NO_WRITE
10     )
14 scalar startTime
16     readScalar(conversionProperties.lookup("startTime"))
19 word vComp
21     conversionProperties.lookup("vector")
24 word format
26     conversionProperties.lookup("format")
29 if ( (format != "ascii") && (format != "ieeei4r8") )
31     FatalError << "format type: " << format << " unknown."
32         << " Valid options are: ascii ieeei4r8"
33         << abort(FatalError);
36 word cells
38     conversionProperties.lookup("cells")
43     (cells != "hex")
46     FatalError << "cells type: " << cells << " unknown."
47         << abort(FatalError);