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
committed by Andrew Heather
parent 7a5e72978a
commit 773ec00d4b
14 changed files with 145 additions and 41 deletions

View File

@ -250,7 +250,7 @@ void Foam::mergeAndWrite
false // serial - already merged
);
writer.writeGeometry();
writer.write();
writer.clear();
}
}
@ -264,7 +264,7 @@ void Foam::mergeAndWrite
false // serial - already merged
);
writer.writeGeometry();
writer.write();
writer.clear();
}
}