fvMesh: Split construction

This provides finer control as to when the changes get constructed and
initial stitching is performed. These is needed by certain processes,
notably decomposition and reconstruction.

By default, the mesh still performs all these operations on a "normal"
read-construction. A flag has to be passed explicitly to the constructor
in order to prevent the post-construction steps.
This commit is contained in:
Will Bainbridge
2024-01-30 08:26:43 +00:00
parent f1ab9882c7
commit 716cab7618
9 changed files with 132 additions and 83 deletions

View File

@ -477,10 +477,11 @@ void Foam::vtkPVFoam::updateFoamMesh()
dbPtr_(),
IOobject::MUST_READ
),
false,
fvMesh::stitchType::nonGeometric
false
);
meshPtr_->postConstruct(false, fvMesh::stitchType::nonGeometric);
meshChanged_ = true;
}
else