mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: polyMesh constructor AUTO_WRITE flag, ignored readOpt (#1147)
- fixed some more places with an explicit AUTO_WRITE. BUG: revert handling of the readOption. It should not be NO_READ. In cases where the user a IOobject without specifying read/write, it defaults to NO_READ anyhow. However, the move constructor can also be called with empty lists and a read option. This has the same signature, but obviously will not work with NO_READ.
This commit is contained in:
@ -213,7 +213,9 @@ int main(int argc, char *argv[])
|
||||
(
|
||||
fvMesh::defaultRegion,
|
||||
runTime.timeName(),
|
||||
runTime
|
||||
runTime,
|
||||
IOobject::NO_READ,
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
pointField(mesh.points()), // Could we safely re-use the data?
|
||||
faceList(mesh.faces()),
|
||||
|
||||
Reference in New Issue
Block a user