Commit 5a1bb130 authored by jouke's avatar jouke
Browse files

matching root nodes that are close enough to the boundary of the mesh,

but just outside.
parent 2bb9fb13
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -940,7 +940,7 @@ void Mesh_base::matchNodes(const Coordinate & posC, std::vector<int> & indexes,


	//!check if the root is within the fem grid, otherwise ignore it
	if (xr > xmax || xr < xmin || yr > ymax || yr < ymin || zr > zmax || zr < zmin) {
	if (xr > xmax+dx/2 || xr < xmin-dx/2 || yr > ymax+dy/2 || yr < ymin-dy/2 || zr > zmax+dz/2 || zr < zmin-dz/2) {
		if(zr < zmax) msg::warning("Mesh::matchNodes: Ignoring root node outside FEM grid below the surface");
		indexes.push_back(-1);
		return;