BUG: surfaceWriter::expire() should not affect the expected nFields() count

- the writer nFields() is a separate type of accounting (currently
  only needed by VTK legacy) and is independent of the geometry.
This commit is contained in:
Mark Olesen
2019-04-05 12:03:41 +02:00
committed by Andrew Heather
parent ae94509f42
commit 693afb5408

View File

@ -384,9 +384,11 @@ bool Foam::surfaceWriter::expire()
upToDate_ = false;
wroteGeom_ = false;
nFields_ = 0;
merged_.clear();
// Field count (nFields_) is a different type of accounting
// and is unaffected by geometry changes
return changed;
}