Filter out zero-sized patches; add generic capability

This commit is contained in:
mattijs
2009-12-09 17:42:30 +00:00
parent 352ef55b6d
commit e8af5d62d5
2 changed files with 101 additions and 91 deletions

View File

@ -9,4 +9,5 @@ EXE_LIBS = \
-ltecio \ -ltecio \
-llagrangian \ -llagrangian \
-lfiniteVolume \ -lfiniteVolume \
-lgenericPatchFields \
-lmeshTools -lmeshTools

View File

@ -909,6 +909,8 @@ int main(int argc, char *argv[])
const polyPatch& pp = patches[patchID]; const polyPatch& pp = patches[patchID];
//INTEGER4 strandID = 1 + i; //INTEGER4 strandID = 1 + i;
if (pp.size() > 0)
{
Info<< " Writing patch " << patchID << "\t" << pp.name() Info<< " Writing patch " << patchID << "\t" << pp.name()
<< "\tstrand:" << strandID << nl << endl; << "\tstrand:" << strandID << nl << endl;
@ -1010,6 +1012,13 @@ int main(int argc, char *argv[])
writer.writeConnectivity(ipp); writer.writeConnectivity(ipp);
} }
else
{
Info<< " Skipping zero sized patch " << patchID
<< "\t" << pp.name()
<< nl << endl;
}
}
writer.writeEnd(); writer.writeEnd();