Skip to content

fossil_cut_graph ​

Source: src/lib/fossil_cut_graph.f90

Dependencies

Contents ​

Variables ​

NameTypeAttributesDescription
MERGE_NONEinteger(kind=I4P)parameter
MERGE_OKinteger(kind=I4P)parameter
MERGE_CHAINinteger(kind=I4P)parameter
MERGE_CYCLEinteger(kind=I4P)parameter
MERGE_ALONEinteger(kind=I4P)parameter
LINKS_SCAN_CHUNKinteger(kind=I4P)parameter
SRD_REGULARinteger(kind=I4P)parameter
SRD_COMPLETEinteger(kind=I4P)parameter
SRD_INCOMPLETEinteger(kind=I4P)parameter
SRD_NO_VOLUMEinteger(kind=I4P)parameter

Derived Types ​

Components

NameTypeAttributesDescription
npinteger(kind=I4P)
startinteger(kind=I4P)allocatable
pieceinteger(kind=I4P)allocatable
faceinteger(kind=I4P)allocatable
areareal(kind=R8P)allocatable
unmatchedinteger(kind=I4P)
on_devicelogical
device_keyinteger(kind=c_intptr_t)

Type-Bound Procedures

NameAttributesDescription
enter_devicepass(self)
update_hostpass(self)
exit_devicepass(self)

srd_t ​

Components

NameTypeAttributesDescription
npinteger(kind=I4P)
taureal(kind=R8P)
startinteger(kind=I4P)allocatable
memberinteger(kind=I4P)allocatable
novinteger(kind=I4P)allocatable
statusinteger(kind=I4P)allocatable
vhatreal(kind=R8P)allocatable
xhatreal(kind=R8P)allocatable
eta_nbreal(kind=R8P)allocatable
eta_selfreal(kind=R8P)allocatable

frd_t ​

Components

NameTypeAttributesDescription
npinteger(kind=I4P)
startinteger(kind=I4P)allocatable
memberinteger(kind=I4P)allocatable
weightreal(kind=R8P)allocatable

merge_t ​

Components

NameTypeAttributesDescription
npinteger(kind=I4P)
statusinteger(kind=I4P)allocatable
targetinteger(kind=I4P)allocatable
final_targetinteger(kind=I4P)allocatable
mix_startinteger(kind=I4P)allocatable
mix_pieceinteger(kind=I4P)allocatable
mix_weightreal(kind=R8P)allocatable

Subroutines ​

merge_targets ​

fortran
subroutine merge_targets(links, piece_cell, piece_volume, wet_normal, x, y, mt, z, tau, mask, exclude)

Arguments

NameTypeIntentAttributesDescription
linkstype(cut_links_t)in
piece_cellinteger(kind=I4P)in
piece_volumereal(kind=R8P)in
wet_normalreal(kind=R8P)in
xreal(kind=R8P)in
yreal(kind=R8P)in
mttype(merge_t)out
zreal(kind=R8P)inoptional
taureal(kind=R8P)inoptional
masklogicalinoptional
excludelogicalinoptional

Call graph

frd_neighbourhoods ​

fortran
subroutine frd_neighbourhoods(links, piece_cell, piece_volume, x, y, frd, z)

Arguments

NameTypeIntentAttributesDescription
linkstype(cut_links_t)in
piece_cellinteger(kind=I4P)in
piece_volumereal(kind=R8P)in
xreal(kind=R8P)in
yreal(kind=R8P)in
frdtype(frd_t)out
zreal(kind=R8P)inoptional

srd_neighbourhoods ​

fortran
subroutine srd_neighbourhoods(links, piece_cell, piece_volume, piece_centroid, wet_normal, x, y, srd, z, tau)

Arguments

NameTypeIntentAttributesDescription
linkstype(cut_links_t)in
piece_cellinteger(kind=I4P)in
piece_volumereal(kind=R8P)in
piece_centroidreal(kind=R8P)in
wet_normalreal(kind=R8P)in
xreal(kind=R8P)in
yreal(kind=R8P)in
srdtype(srd_t)out
zreal(kind=R8P)inoptional
taureal(kind=R8P)inoptional

Call graph

fortran
subroutine cut_links_2d(cut, links)

Arguments

NameTypeIntentAttributesDescription
cuttype(cut_cells_2d_t)in
linkstype(cut_links_t)inout

Call graph

fortran
subroutine cut_links_2d_device(cut, links, resident)

Arguments

NameTypeIntentAttributesDescription
cuttype(cut_cells_2d_t)intarget
linkstype(cut_links_t)inout
residentlogicalinoptional

Call graph

fortran
subroutine links_2d_dev(nx, ny, np, n, nv, pcs, fpc, pcell, ivs, ive, ivl, ivh, res, lstart, lpiece, lface, larea, status)

Arguments

NameTypeIntentAttributesDescription
nxinteger(kind=I4P)in
nyinteger(kind=I4P)in
npinteger(kind=I4P)in
ninteger(kind=I4P)in
nvinteger(kind=I4P)in
pcsinteger(kind=I4P)in
fpcinteger(kind=I4P)in
pcellinteger(kind=I4P)in
ivsinteger(kind=I4P)in
iveinteger(kind=I4P)in
ivlreal(kind=R8P)in
ivhreal(kind=R8P)in
reslogicalin
lstartinteger(kind=I4P)outallocatable
lpieceinteger(kind=I4P)outallocatable
lfaceinteger(kind=I4P)outallocatable
lareareal(kind=R8P)outallocatable
statusinteger(kind=I4P)out

Call graph

Attributes: pure

fortran
subroutine links_edge_cells_2d(e, nx, ny, ia, ja, ib, jb)

Arguments

NameTypeIntentAttributesDescription
einteger(kind=I4P)in
nxinteger(kind=I4P)in
nyinteger(kind=I4P)in
iainteger(kind=I4P)out
jainteger(kind=I4P)out
ibinteger(kind=I4P)out
jbinteger(kind=I4P)out

Call graph

Attributes: pure

fortran
subroutine links_edge_fill_2d(e, nx, ny, np, nv, pcs, fpc, ivs, ive, m, ord)

Arguments

NameTypeIntentAttributesDescription
einteger(kind=I4P)in
nxinteger(kind=I4P)in
nyinteger(kind=I4P)in
npinteger(kind=I4P)in
nvinteger(kind=I4P)in
pcsinteger(kind=I4P)in
fpcinteger(kind=I4P)in
ivsinteger(kind=I4P)in
iveinteger(kind=I4P)in
minteger(kind=I4P)in
ordinteger(kind=I4P)out

Call graph

fortran
subroutine links_scan_dev(n, cnt, off, total)

Arguments

NameTypeIntentAttributesDescription
ninteger(kind=I4P)in
cntinteger(kind=I4P)in
offinteger(kind=I4P)inout
totalinteger(kind=I4P)out

Call graph

fortran
subroutine links_take(links, st, pc, fc, ar, res)

Arguments

NameTypeIntentAttributesDescription
linkstype(cut_links_t)inout
stinteger(kind=I4P)inoutallocatable
pcinteger(kind=I4P)inoutallocatable
fcinteger(kind=I4P)inoutallocatable
arreal(kind=R8P)inoutallocatable
reslogicalin

Call graph

fortran
subroutine cut_links_reset(links)

Arguments

NameTypeIntentAttributesDescription
linkstype(cut_links_t)inout

Call graph

fortran
subroutine links_enter_device(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(cut_links_t)inout

Call graph

fortran
subroutine links_update_host(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(cut_links_t)inout

Call graph

fortran
subroutine links_exit_device(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(cut_links_t)inout

Call graph

Attributes: pure

fortran
subroutine links_edge_sort(m, ord, n, lo)

Arguments

NameTypeIntentAttributesDescription
minteger(kind=I4P)in
ordinteger(kind=I4P)inout
ninteger(kind=I4P)in
loreal(kind=R8P)in

Call graph

Attributes: pure

fortran
subroutine links_edge_pairs_fill(m, ord, n, owner, lo, hi, np, pa, pb, len)

Arguments

NameTypeIntentAttributesDescription
minteger(kind=I4P)in
ordinteger(kind=I4P)in
ninteger(kind=I4P)in
ownerinteger(kind=I4P)in
loreal(kind=R8P)in
hireal(kind=R8P)in
npinteger(kind=I4P)in
painteger(kind=I4P)out
pbinteger(kind=I4P)out
lenreal(kind=R8P)out

Call graph

Attributes: pure

fortran
subroutine links_piece_fill_2d(pw, i, j, nx, ny, ne, poff, ns, pa, pb, len, k0, nl, piece, face, area)

Arguments

NameTypeIntentAttributesDescription
pwinteger(kind=I4P)in
iinteger(kind=I4P)in
jinteger(kind=I4P)in
nxinteger(kind=I4P)in
nyinteger(kind=I4P)in
neinteger(kind=I4P)in
poffinteger(kind=I4P)in
nsinteger(kind=I4P)in
painteger(kind=I4P)in
pbinteger(kind=I4P)in
lenreal(kind=R8P)in
k0integer(kind=I4P)in
nlinteger(kind=I4P)in
pieceinteger(kind=I4P)inout
faceinteger(kind=I4P)inout
areareal(kind=R8P)inout

Call graph

build_csr ​

fortran
subroutine build_csr(nl, lp, lq, lf, la, links)

Arguments

NameTypeIntentAttributesDescription
nlinteger(kind=I4P)in
lpinteger(kind=I4P)in
lqinteger(kind=I4P)in
lfinteger(kind=I4P)in
lareal(kind=R8P)in
linkstype(cut_links_t)inout

Call graph

fortran
subroutine merge_sort_links(k1, k2, k3, ord)

Arguments

NameTypeIntentAttributesDescription
k1integer(kind=I4P)in
k2integer(kind=I4P)in
k3integer(kind=I4P)in
ordinteger(kind=I4P)inout

Call graph

Attributes: pure

fortran
subroutine links_face_bases(n, base)

Arguments

NameTypeIntentAttributesDescription
ninteger(kind=I4P)in
baseinteger(kind=I4P)out

Call graph

Attributes: pure

fortran
subroutine links_piece_fill_3d(pw, c, n, base, nfc, off, ns, pa, pb, ar, k0, nl, piece, face, area)

Arguments

NameTypeIntentAttributesDescription
pwinteger(kind=I4P)in
cinteger(kind=I4P)in
ninteger(kind=I4P)in
baseinteger(kind=I4P)in
nfcinteger(kind=I4P)in
offinteger(kind=I4P)in
nsinteger(kind=I4P)in
painteger(kind=I4P)in
pbinteger(kind=I4P)in
arreal(kind=R8P)in
k0integer(kind=I4P)in
nlinteger(kind=I4P)in
pieceinteger(kind=I4P)inout
faceinteger(kind=I4P)inout
areareal(kind=R8P)inout

Call graph

Functions ​

Attributes: pure

Returns: integer(kind=i4p)

fortran
function links_edge_count_2d(e, nx, ny, np, nv, pcs, fpc, ivs, ive) result(m)

Arguments

NameTypeIntentAttributesDescription
einteger(kind=I4P)in
nxinteger(kind=I4P)in
nyinteger(kind=I4P)in
npinteger(kind=I4P)in
nvinteger(kind=I4P)in
pcsinteger(kind=I4P)in
fpcinteger(kind=I4P)in
ivsinteger(kind=I4P)in
iveinteger(kind=I4P)in

Call graph

Returns: integer(kind=c_intptr_t)

fortran
function links_host_key(links) result(key)

Arguments

NameTypeIntentAttributesDescription
linkstype(cut_links_t)intarget

Call graph

Returns: logical

fortran
function links_is_mapped(self)

Arguments

NameTypeIntentAttributesDescription
selftype(cut_links_t)in

Call graph

Attributes: pure

Returns: integer(kind=i4p)

fortran
function links_edge_pairs(m, ord, n, owner, lo, hi) result(np)

Arguments

NameTypeIntentAttributesDescription
minteger(kind=I4P)in
ordinteger(kind=I4P)in
ninteger(kind=I4P)in
ownerinteger(kind=I4P)in
loreal(kind=R8P)in
hireal(kind=R8P)in

Call graph

Attributes: pure

Returns: integer(kind=i4p)

fortran
function links_edge_of_face_2d(i, j, nx, ny, fc) result(e)

Arguments

NameTypeIntentAttributesDescription
iinteger(kind=I4P)in
jinteger(kind=I4P)in
nxinteger(kind=I4P)in
nyinteger(kind=I4P)in
fcinteger(kind=I4P)in

Call graph

Attributes: pure

Returns: integer(kind=i4p)

fortran
function links_next_q_2d(pw, last, s0, s1, ns, pa, pb) result(q)

Arguments

NameTypeIntentAttributesDescription
pwinteger(kind=I4P)in
lastinteger(kind=I4P)in
s0integer(kind=I4P)in
s1integer(kind=I4P)in
nsinteger(kind=I4P)in
painteger(kind=I4P)in
pbinteger(kind=I4P)in

Call graph

Attributes: pure

Returns: integer(kind=i4p)

fortran
function links_piece_count_2d(pw, i, j, nx, ny, ne, poff, ns, pa, pb) result(nk)

Arguments

NameTypeIntentAttributesDescription
pwinteger(kind=I4P)in
iinteger(kind=I4P)in
jinteger(kind=I4P)in
nxinteger(kind=I4P)in
nyinteger(kind=I4P)in
neinteger(kind=I4P)in
poffinteger(kind=I4P)in
nsinteger(kind=I4P)in
painteger(kind=I4P)in
pbinteger(kind=I4P)in

Call graph

Attributes: pure

Returns: integer(kind=i4p)

fortran
function links_face_id(a, c, n, base) result(f)

Arguments

NameTypeIntentAttributesDescription
ainteger(kind=I4P)in
cinteger(kind=I4P)in
ninteger(kind=I4P)in
baseinteger(kind=I4P)in

Call graph

Attributes: pure

Returns: integer(kind=i4p)

fortran
function links_next_q_3d(pw, low, last, s0, s1, ns, pa, pb) result(q)

Arguments

NameTypeIntentAttributesDescription
pwinteger(kind=I4P)in
lowlogicalin
lastinteger(kind=I4P)in
s0integer(kind=I4P)in
s1integer(kind=I4P)in
nsinteger(kind=I4P)in
painteger(kind=I4P)in
pbinteger(kind=I4P)in

Call graph

Attributes: pure

Returns: integer(kind=i4p)

fortran
function links_piece_count_3d(pw, c, n, base, nfc, off, ns, pa, pb) result(nk)

Arguments

NameTypeIntentAttributesDescription
pwinteger(kind=I4P)in
cinteger(kind=I4P)in
ninteger(kind=I4P)in
baseinteger(kind=I4P)in
nfcinteger(kind=I4P)in
offinteger(kind=I4P)in
nsinteger(kind=I4P)in
painteger(kind=I4P)in
pbinteger(kind=I4P)in

Call graph