GridGetNearestNode

This function returns the node nearest to the given point on which the field is defined, or -1 if the node is not contained in the local mesh.

Synopsis

#include "grid.h" 
#include "gvec.h" 
int GridGetNearestNode(Grid grid, int field, double x, double y, double z, int *node)
Not collective

Input Parameters

mesh - The mesh
field - The field
x,y,z - The node coordinates

Output Parameter

node -The nearest node

Keywords

grid, node, point location

See Also

MeshNearestNode(), MeshLocatePoint()

Level:beginner
Location:
src/grid/interface/grid.c
Index of all Grid routines
Table of Contents for all manual pages
Index of all manual pages