BUGFIX: Illegal use of uninitialised value (backport)
[foam-extend-3.2.git] / applications / utilities / postProcessing / dataConversion / foamToEnsight / checkData.H
blob1144833a0136070251c67aec0d4f5ca2eec118f2
1 // ignore special fields or fields that we don't handle
2 //
3 bool variableGood = true;
4 for (label n1=startTime; n1<endTime && variableGood; ++n1)
6     // ignore _0 fields
7     if (fieldName.size() > 2 && fieldName(fieldName.size() - 2, 2) == "_0")
8     {
9         variableGood = false;
10     }
11     else
12     {
13         variableGood = IOobject
14         (
15             fieldName,
16             Times[n1].name(),
17             mesh,
18             IOobject::NO_READ
19         ).headerOk();
20     }