ENH: sampledTriSurfaceMesh: add warning about surface completely outside. Fixes #575.

This commit is contained in:
mattijs
2017-12-27 10:58:37 +00:00
parent fb152bd9c9
commit 08e6eca301

View File

@ -787,6 +787,12 @@ bool Foam::sampledTriSurfaceMesh::update()
{
// Surface and mesh do not overlap at all. Guarantee a valid
// bounding box so we don't get any 'invalid bounding box' errors.
WarningInFunction
<< "Surface " << surface_.searchableSurface::name()
<< " does not overlap bounding box of mesh " << mesh().bounds()
<< endl;
bb = treeBoundBox(mesh().bounds());
const vector span(bb.span());