mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Filter out zero-sized patches; add generic capability
This commit is contained in:
@ -9,4 +9,5 @@ EXE_LIBS = \
|
|||||||
-ltecio \
|
-ltecio \
|
||||||
-llagrangian \
|
-llagrangian \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
|
-lgenericPatchFields \
|
||||||
-lmeshTools
|
-lmeshTools
|
||||||
|
|||||||
@ -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();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user