Permalink
Browse files

Merge pull request #12504 from permcody/nearest_node_fixes

Nearest node fixes
  • Loading branch information...
andrsd committed Nov 20, 2018
2 parents 3b80287 + 1fb0f0e commit 79e0fea78d51b1ffe36056120ec300d51822ee3d
@@ -50,7 +50,7 @@ class MultiAppNearestNodeTransfer : public MultiAppTransfer
* @return The maximum distance between the point p and the eight corners of
* the bounding box bbox.
*/
Real bboxMaxDistance(Point p, BoundingBox bbox);
Real bboxMaxDistance(const Point & p, const BoundingBox & bbox);
/**
* Return the distance between the given point and the nearest corner of the
@@ -60,9 +60,11 @@ class MultiAppNearestNodeTransfer : public MultiAppTransfer
* @return The minimum distance between the point p and the eight corners of
* the bounding box bbox.
*/
Real bboxMinDistance(Point p, BoundingBox bbox);
Real bboxMinDistance(const Point & p, const BoundingBox & bbox);
void getLocalNodes(MooseMesh * mesh, std::vector<Node *> & local_nodes);
void getLocalEntities(MooseMesh * mesh,
std::vector<std::pair<Point, DofObject *>> & local_entities,
bool nodal);
AuxVariableName _to_var_name;
VariableName _from_var_name;
@@ -88,11 +88,16 @@ class MultiAppTransfer : public Transfer
/// True if displaced mesh is used for the target mesh, otherwise false
bool _displaced_target_mesh;
///@{
/**
* Return the bounding boxes of all the "from" domains, including all the
* domains not local to this processor.
* Return the bounding boxes of all the "from" domains, including all the domains not local to
* this processor. The is a boundary restricted version which will return a degenerate minimum
* boundary box (min, min, min, min, min, min) in the case where the source domain doesn't
* have any active nodes on the boundary.
*/
std::vector<BoundingBox> getFromBoundingBoxes();
std::vector<BoundingBox> getFromBoundingBoxes(BoundaryID boundary_id);
///@}
/**
* Return the number of "from" domains that each processor owns.
Oops, something went wrong.

0 comments on commit 79e0fea

Please sign in to comment.