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 \
-llagrangian \
-lfiniteVolume \
-lgenericPatchFields \
-lmeshTools

View File

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