mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
committed by
Andrew Heather
parent
7a5e72978a
commit
773ec00d4b
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user