BUG: incorrect test for triangulate/filtering in sampledIsoSurfaceTopo

This commit is contained in:
Mark Olesen
2019-11-19 07:20:13 +01:00
committed by Andrew Heather
parent 7c2ad98834
commit f2eb3e1cee
2 changed files with 3 additions and 3 deletions

View File

@ -180,10 +180,10 @@ Foam::sampledIsoSurfaceTopo::sampledIsoSurfaceTopo
prevTimeIndex_(-1),
meshCells_()
{
if (triangulate_ && filter_ != isoSurfaceBase::filterType::NONE)
if (triangulate_ && filter_ == isoSurfaceBase::filterType::NONE)
{
FatalIOErrorInFunction(dict)
<< "Cannot both use triangulate and regularise" << nl
<< "Cannot triangulate without a regularise filter" << nl
<< exit(FatalIOError);
}
}

View File

@ -102,7 +102,7 @@ class sampledIsoSurfaceTopo
//- Filtering for iso-surface triangles
const isoSurfaceBase::filterType filter_;
//- Whether to triangulate
//- Whether to triangulate (after filtering)
const bool triangulate_;