sdr_qValByNode Subroutine

public subroutine sdr_qValByNode(proto, geometry, dx, iDir, origin, node_pos, qVal)

This routine computes the minimum distance of a given link and all the geometries in a given node:\n the link is given by a vector and a origin point.\n the node is given by the node position in the protoTree.\n If there is no intersection, qVal returns -1.0

Arguments

TypeIntentOptionalAttributesName
type(sdr_protoTree_type), intent(in) :: proto

preliminary tree

type(sdr_geometry_type), intent(in) :: geometry

contains all geometrical objects

real(kind=rk), intent(in) :: dx

dx of current level

integer, intent(in) :: iDir

Direction

real(kind=rk), intent(in) :: origin(3)

current element barycenter

integer :: node_pos

position of node to find the geometries

real(kind=rk), intent(out) :: qVal

distance from boundary for all 26 neighbor directions


Calls

proc~~sdr_qvalbynode~~CallsGraph proc~sdr_qvalbynode sdr_qValByNode proc~intersect_raytriangle intersect_RayTriangle proc~sdr_qvalbynode->proc~intersect_raytriangle proc~fraction_pointline fraction_PointLine proc~sdr_qvalbynode->proc~fraction_pointline

Called by

proc~~sdr_qvalbynode~~CalledByGraph proc~sdr_qvalbynode sdr_qValByNode proc~flood_periphery flood_periphery proc~flood_periphery->proc~sdr_qvalbynode proc~sdr_find_periodic_neighbor sdr_find_periodic_neighbor proc~sdr_find_periodic_neighbor->proc~sdr_qvalbynode proc~getbcid_and_calcqval getBCID_and_calcQval proc~getbcid_and_calcqval->proc~sdr_qvalbynode proc~getbcid_and_calcqval->proc~sdr_find_periodic_neighbor proc~sdr_flood_tree sdr_flood_tree proc~sdr_flood_tree->proc~flood_periphery proc~sdr_identify_boundary sdr_identify_boundary proc~sdr_identify_boundary->proc~getbcid_and_calcqval proc~create_target create_target proc~create_target->proc~sdr_find_periodic_neighbor proc~traverse_tree traverse_tree proc~traverse_tree->proc~create_target proc~traverse_tree->proc~traverse_tree proc~proto2treelm proto2Treelm proc~traverse_tree->proc~proto2treelm proc~proto2treelm->proc~sdr_identify_boundary program~seeder seeder program~seeder->proc~sdr_flood_tree proc~sdr_proto2treelm sdr_proto2treelm proc~sdr_proto2treelm->proc~traverse_tree

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: iSpatialObj
integer, private :: obj_pos
integer, private :: geom_prim
integer, private :: atb_pos
integer, private :: prim_pos
logical, private :: intersected
type(tem_line_type), private :: line
type(tem_point_type), private :: intersect_p
real(kind=rk), private :: qVal_t
integer, private :: intersected_first
integer, private :: intersected_last