From 08e6eca301b53e81e61afa3c23494bbcfd0533de Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Wed, 27 Dec 2017 10:58:37 +0000 Subject: [PATCH] ENH: sampledTriSurfaceMesh: add warning about surface completely outside. Fixes #575. --- .../sampledTriSurfaceMesh/sampledTriSurfaceMesh.C | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sampling/sampledSurface/sampledTriSurfaceMesh/sampledTriSurfaceMesh.C b/src/sampling/sampledSurface/sampledTriSurfaceMesh/sampledTriSurfaceMesh.C index f2542e4cc11..9732f9b70d8 100644 --- a/src/sampling/sampledSurface/sampledTriSurfaceMesh/sampledTriSurfaceMesh.C +++ b/src/sampling/sampledSurface/sampledTriSurfaceMesh/sampledTriSurfaceMesh.C @@ -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()); -- GitLab