ENH: improved consistency of surface writers (#1232)

- remove writeGeometry() in favour of write() and make it pure virtual
  so that all writers must explicitly deal with it.

- establish proxy extension at construction time and treated as an
  invariant thereafter. This avoids potentially surprising changes in
  behaviour when writing.
This commit is contained in:
Mark Olesen
2019-03-11 15:09:03 +01:00
parent 304249932e
commit 48538810e8
14 changed files with 145 additions and 41 deletions

View File

@ -560,7 +560,7 @@ bool Foam::sampledSurfaces::performAction(unsigned request)
// Write geometry if no fields would otherwise be written
if (!outWriter.nFields() || outWriter.separateGeometry())
{
outWriter.writeGeometry();
outWriter.write();
continue;
}