Commit a6a46d23 authored by mattijs's avatar mattijs
Browse files

BUG: polyMesh: set AUTO_WRITE flag. See #1147.

parent 3a374bf3
......@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2019 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -346,7 +346,9 @@ bool Foam::domainDecomposition::writeDecomposition(const bool decomposeSets)
(
this->polyMesh::name(), // region of undecomposed mesh
facesInstance(),
processorDb
processorDb,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
std::move(facesInstancePoints),
std::move(procFaces),
......@@ -361,7 +363,9 @@ bool Foam::domainDecomposition::writeDecomposition(const bool decomposeSets)
(
this->polyMesh::name(), // region of undecomposed mesh
facesInstance(),
processorDb
processorDb,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
std::move(procPoints),
std::move(procFaces),
......
......@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-2017 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2015-2017 OpenCFD Ltd.
\\/ M anipulation | Copyright (C) 2015-2019 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -166,6 +166,7 @@ Foam::autoPtr<Foam::fvMesh> Foam::loadOrCreateMesh
// Create dummy mesh. Only used on procs that don't have mesh.
IOobject noReadIO(io);
noReadIO.readOpt() = IOobject::NO_READ;
noReadIO.writeOpt() = IOobject::AUTO_WRITE;
fvMesh dummyMesh(noReadIO, Zero, false);
// Add patches
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment