My Project
programmer's documentation
Functions/Subroutines
findpt.f90 File Reference

This subroutine looks for the nearest element to the position (xx, yy, zz) among the element of xyzcen array. More...

Functions/Subroutines

subroutine findpt (ncelet, ncel, xyzcen, xx, yy, zz, node, ndrang)
 

Detailed Description

This subroutine looks for the nearest element to the position (xx, yy, zz) among the element of xyzcen array.

Function/Subroutine Documentation

◆ findpt()

subroutine findpt ( integer  ncelet,
integer  ncel,
double precision, dimension(3,ncelet)  xyzcen,
double precision  xx,
double precision  yy,
double precision  zz,
integer  node,
integer  ndrang 
)
Parameters
[in]nceletnumber of extended (real + ghost) elements
[in]ncelnumber of element
[in]xyzceninterleaved array containing vector positions
[in]xxX component of the point position to be compared with
[in]yyY component of the point position to be compared with
[in]zzZ component of the point position to be compared with
[in]nodeelement of xyzcen which is the nearest to (xx,yy,zz)
[in]ndrangindex of the Rank containing the nearest element