16 type (hecmwST_local_mesh) :: hecMESH
19 allocate (hecmesh%adapt_edge_home(hecmesh%n_adapt_edge))
20 allocate (hecmesh%adapt_act_edge (hecmesh%n_adapt_edge))
22 hecmesh%adapt_edge_home= hecmesh%my_rank
23 hecmesh%adapt_act_edge = 0
28 do ie= 1, hecmesh%n_adapt_edge
29 in1= hecmesh%adapt_edge_node(2*ie-1)
30 in2= hecmesh%adapt_edge_node(2*ie )
31 ip1= hecmesh%node_ID(2*in1)
32 ip2= hecmesh%node_ID(2*in2)
33 hecmesh%adapt_edge_home(ie)= min(ip1,ip2)
35 if ((ip1.eq.hecmesh%my_rank.and.ip2.eq.hecmesh%my_rank).or. &
36 & (ip1.eq.hecmesh%my_rank.and.ip1.lt.ip2 ).or. &
37 & (ip2.eq.hecmesh%my_rank.and.ip2.lt.ip1 ))
then
39 hecmesh%adapt_act_edge(icou)= ie
42 hecmesh%n_adapt_act_edge= icou