mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: errors found in feature-vtm merge !213
- vtkWrite with moving mesh was not updated the subsets properly, which caused it to crash. - foamToVTK -overwrite ignored for single region cases, was working for multi-region cases - minor documentation changes
This commit is contained in:
@ -157,8 +157,8 @@ bool Foam::functionObjects::vtkWrite::update()
|
||||
if
|
||||
(
|
||||
meshState_ == polyMesh::UNCHANGED
|
||||
&& !meshSubsets_.empty()
|
||||
&& !vtuMappings_.empty()
|
||||
&& (meshes_.size() == meshSubsets_.size())
|
||||
&& (meshes_.size() == vtuMappings_.size())
|
||||
)
|
||||
{
|
||||
return false;
|
||||
@ -174,7 +174,7 @@ bool Foam::functionObjects::vtkWrite::update()
|
||||
|
||||
if (meshSubsets_.set(regioni))
|
||||
{
|
||||
meshSubsets_.clear();
|
||||
meshSubsets_[regioni].clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -200,9 +200,12 @@ bool Foam::functionObjects::vtkWrite::update()
|
||||
++regioni;
|
||||
}
|
||||
|
||||
regioni = 0;
|
||||
for (auto& subsetter : meshSubsets_)
|
||||
{
|
||||
updateSubset(subsetter);
|
||||
vtuMappings_[regioni].reset(subsetter.mesh());
|
||||
++regioni;
|
||||
}
|
||||
|
||||
meshState_ = polyMesh::UNCHANGED;
|
||||
|
||||
Reference in New Issue
Block a user