Commit c7e5f4a9 authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

BUG: surfaceWriter pointData merging fails on single processor

- if surface is only on a single processor, no point merging occurs
  and the pointsMap is empty.
parent 0d8601f2
......@@ -504,7 +504,12 @@ Foam::tmp<Foam::Field<Type>> Foam::surfaceWriter::mergeFieldTemplate
globalIndex::gatherOp(fld, allFld);
// Renumber (point data) to correspond to merged points
if (Pstream::master() && this->isPointData())
if
(
Pstream::master()
&& this->isPointData()
&& merged_.pointsMap().size()
)
{
inplaceReorder(merged_.pointsMap(), allFld);
allFld.resize(merged_.points().size());
......
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