FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

checkData.H

Go to the documentation of this file.
00001 // ignore special fields or fields that we don't handle
00002 //
00003 bool variableGood = true;
00004 for (label n1=startTime; n1<endTime && variableGood; ++n1)
00005 {
00006     // ignore _0 fields
00007     if (fieldName.size() > 2 && fieldName(fieldName.size() - 2, 2) == "_0")
00008     {
00009         variableGood = false;
00010     }
00011     else
00012     {
00013         variableGood = IOobject
00014         (
00015             fieldName,
00016             Times[n1].name(),
00017             mesh,
00018             IOobject::NO_READ
00019         ).headerOk();
00020     }
00021 }
00022 
00023 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines