fossil_projection
Source: src/lib/fossil_projection.f90
Dependencies
Contents
- projection_target_t
- build_target_3d
- build_target_2d
- build_patch_trees
- bvh_build
- select_items
- patch_boundary_edges
- unique_edges
- chain_curves
- sort_keys
- project_points
- project_points_2d
- classify_points
- classify_points_2d
- project_block_face
- project_block_side
- classify_one
- project_one
- closest_in_tree
- closest_on_curves
- nearest_corner
- item_before
- other_end
- next_edge
- closest_on_segment
- box_d2
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
PROJ_FREE | integer(kind=I4P) | parameter | |
PROJ_PATCH | integer(kind=I4P) | parameter | |
PROJ_CURVE | integer(kind=I4P) | parameter | |
PROJ_CORNER | integer(kind=I4P) | parameter | |
LEAF | integer(kind=I4P) | parameter | |
PROJ_STATUS_OK | integer(kind=I4P) | parameter | |
PROJ_STATUS_BAD_INPUT | integer(kind=I4P) | parameter |
Derived Types
projection_target_t
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
dims | integer(kind=I4P) | ||
ne | integer(kind=I4P) | ||
el | real(kind=R8P) | allocatable | |
el_id | integer(kind=I4P) | allocatable | |
el_patch | integer(kind=I4P) | allocatable | |
np | integer(kind=I4P) | ||
patch_root | integer(kind=I4P) | allocatable | |
node_box | real(kind=R8P) | allocatable | |
node | integer(kind=I4P) | allocatable | |
perm | integer(kind=I4P) | allocatable | |
nc | integer(kind=I4P) | ||
curve_first | integer(kind=I4P) | allocatable | |
seg | real(kind=R8P) | allocatable | |
seg_curve | integer(kind=I4P) | allocatable | |
seg_root | integer(kind=I4P) | ||
seg_box | real(kind=R8P) | allocatable | |
seg_node | integer(kind=I4P) | allocatable | |
seg_perm | integer(kind=I4P) | allocatable | |
nk | integer(kind=I4P) | ||
corner | real(kind=R8P) | allocatable |
Subroutines
build_target_3d
fortran
subroutine build_target_3d(v, fv, fpatch, angle, corner_angle, target)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
v | real(kind=R8P) | in | ||
fv | integer(kind=I4P) | in | ||
fpatch | integer(kind=I4P) | in | ||
angle | real(kind=R8P) | in | ||
corner_angle | real(kind=R8P) | in | ||
target | type(projection_target_t) | out |
Call graph
build_target_2d
fortran
subroutine build_target_2d(u, v, next, prev, spatch, corner_angle, target)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
u | real(kind=R8P) | in | ||
v | real(kind=R8P) | in | ||
next | integer(kind=I4P) | in | ||
prev | integer(kind=I4P) | in | ||
spatch | integer(kind=I4P) | in | ||
corner_angle | real(kind=R8P) | in | ||
target | type(projection_target_t) | out |
Call graph
build_patch_trees
fortran
subroutine build_patch_trees(target, boxes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
target | type(projection_target_t) | inout | ||
boxes | real(kind=R8P) | in |
Call graph
bvh_build
fortran
subroutine bvh_build(boxes, nbox, nodes, perm)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
boxes | real(kind=R8P) | in | ||
nbox | real(kind=R8P) | out | allocatable | |
nodes | integer(kind=I4P) | out | allocatable | |
perm | integer(kind=I4P) | out | allocatable |
Call graph
select_items
fortran
subroutine select_items(idx, boxes, axis, k)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
idx | integer(kind=I4P) | inout | ||
boxes | real(kind=R8P) | in | ||
axis | integer(kind=I4P) | in | ||
k | integer(kind=I4P) | in |
Call graph
patch_boundary_edges
fortran
subroutine patch_boundary_edges(fv, fpatch, pe)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
fv | integer(kind=I4P) | in | ||
fpatch | integer(kind=I4P) | in | ||
pe | integer(kind=I4P) | out | allocatable |
Call graph
unique_edges
fortran
subroutine unique_edges(ed, nv)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
ed | integer(kind=I4P) | inout | allocatable | |
nv | integer(kind=I4P) | in |
Call graph
chain_curves
fortran
subroutine chain_curves(ed, v, corner_angle, target)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
ed | integer(kind=I4P) | in | ||
v | real(kind=R8P) | in | ||
corner_angle | real(kind=R8P) | in | ||
target | type(projection_target_t) | inout |
Call graph
sort_keys
fortran
subroutine sort_keys(key, order)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
key | integer(kind=I8P) | in | ||
order | integer(kind=I4P) | out |
Call graph
project_points
fortran
subroutine project_points(target, x, y, z, kinds, ids, fx, fy, fz, distances, status)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
target | type(projection_target_t) | in | ||
x | real(kind=R8P) | in | ||
y | real(kind=R8P) | in | ||
z | real(kind=R8P) | in | ||
kinds | integer(kind=I4P) | in | ||
ids | integer(kind=I4P) | in | ||
fx | real(kind=R8P) | out | ||
fy | real(kind=R8P) | out | ||
fz | real(kind=R8P) | out | ||
distances | real(kind=R8P) | out | optional | |
status | integer(kind=I4P) | out | optional |
Call graph
project_points_2d
fortran
subroutine project_points_2d(target, u, v, kinds, ids, fu, fv, distances, status)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
target | type(projection_target_t) | in | ||
u | real(kind=R8P) | in | ||
v | real(kind=R8P) | in | ||
kinds | integer(kind=I4P) | in | ||
ids | integer(kind=I4P) | in | ||
fu | real(kind=R8P) | out | ||
fv | real(kind=R8P) | out | ||
distances | real(kind=R8P) | out | optional | |
status | integer(kind=I4P) | out | optional |
Call graph
classify_points
fortran
subroutine classify_points(target, x, y, z, tolerance, kinds, ids)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
target | type(projection_target_t) | in | ||
x | real(kind=R8P) | in | ||
y | real(kind=R8P) | in | ||
z | real(kind=R8P) | in | ||
tolerance | real(kind=R8P) | in | ||
kinds | integer(kind=I4P) | out | ||
ids | integer(kind=I4P) | out |
Call graph
classify_points_2d
fortran
subroutine classify_points_2d(target, u, v, tolerance, kinds, ids)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
target | type(projection_target_t) | in | ||
u | real(kind=R8P) | in | ||
v | real(kind=R8P) | in | ||
tolerance | real(kind=R8P) | in | ||
kinds | integer(kind=I4P) | out | ||
ids | integer(kind=I4P) | out |
Call graph
project_block_face
fortran
subroutine project_block_face(block, face, target, tolerance, moved, kinds, status)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
block | class(curvilinear_block_t) | inout | ||
face | integer(kind=I4P) | in | ||
target | type(projection_target_t) | in | ||
tolerance | real(kind=R8P) | in | ||
moved | real(kind=R8P) | out | allocatable, optional | |
kinds | integer(kind=I4P) | out | allocatable, optional | |
status | integer(kind=I4P) | out | optional |
Call graph
project_block_side
fortran
subroutine project_block_side(block, side, target, tolerance, moved, kinds, status)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
block | class(curvilinear_block_2d_t) | inout | ||
side | integer(kind=I4P) | in | ||
target | type(projection_target_t) | in | ||
tolerance | real(kind=R8P) | in | ||
moved | real(kind=R8P) | out | allocatable, optional | |
kinds | integer(kind=I4P) | out | allocatable, optional | |
status | integer(kind=I4P) | out | optional |
Call graph
classify_one
fortran
subroutine classify_one(target, p, tolerance, kind, id)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
target | type(projection_target_t) | in | ||
p | real(kind=R8P) | in | ||
tolerance | real(kind=R8P) | in | ||
kind | integer(kind=I4P) | out | ||
id | integer(kind=I4P) | out |
Call graph
project_one
fortran
subroutine project_one(target, p, kind, id, f, d2, el, ok)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
target | type(projection_target_t) | in | ||
p | real(kind=R8P) | in | ||
kind | integer(kind=I4P) | in | ||
id | integer(kind=I4P) | in | ||
f | real(kind=R8P) | out | ||
d2 | real(kind=R8P) | out | ||
el | integer(kind=I4P) | out | ||
ok | logical | out |
Call graph
closest_in_tree
fortran
subroutine closest_in_tree(target, root, p, f, d2, el)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
target | type(projection_target_t) | in | ||
root | integer(kind=I4P) | in | ||
p | real(kind=R8P) | in | ||
f | real(kind=R8P) | inout | ||
d2 | real(kind=R8P) | inout | ||
el | integer(kind=I4P) | inout |
Call graph
closest_on_curves
fortran
subroutine closest_on_curves(target, p, id, f, d2, sg)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
target | type(projection_target_t) | in | ||
p | real(kind=R8P) | in | ||
id | integer(kind=I4P) | in | ||
f | real(kind=R8P) | out | ||
d2 | real(kind=R8P) | out | ||
sg | integer(kind=I4P) | out |
Call graph
nearest_corner
fortran
subroutine nearest_corner(target, p, k, d2)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
target | type(projection_target_t) | in | ||
p | real(kind=R8P) | in | ||
k | integer(kind=I4P) | out | ||
d2 | real(kind=R8P) | out |
Call graph
Functions
item_before
Attributes: pure
Returns: logical
fortran
function item_before(boxes, axis, x, y)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
boxes | real(kind=R8P) | in | ||
axis | integer(kind=I4P) | in | ||
x | integer(kind=I4P) | in | ||
y | integer(kind=I4P) | in |
Call graph
other_end
Attributes: pure
Returns: integer(kind=i4p)
fortran
function other_end(edge, x)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
edge | integer(kind=I4P) | in | ||
x | integer(kind=I4P) | in |
Call graph
next_edge
Attributes: pure
Returns: integer(kind=i4p)
fortran
function next_edge(x, from, val, adj_start, adj, used)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
x | integer(kind=I4P) | in | ||
from | integer(kind=I4P) | in | ||
val | integer(kind=I4P) | in | ||
adj_start | integer(kind=I4P) | in | ||
adj | integer(kind=I4P) | in | ||
used | logical | in |
Call graph
closest_on_segment
Attributes: pure
Returns: real(kind=R8P)
fortran
function closest_on_segment(p, a, b) result(c)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
p | real(kind=R8P) | in | ||
a | real(kind=R8P) | in | ||
b | real(kind=R8P) | in |
Call graph
box_d2
Attributes: pure
Returns: real(kind=R8P)
fortran
function box_d2(box, p) result(d2)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
box | real(kind=R8P) | in | ||
p | real(kind=R8P) | in |
Call graph