17 implicit real*8 (a-h,o-z)
19 integer(kind=kint),
dimension(:),
allocatable :: IW1
20 type (hecmwST_local_mesh) :: hecMESH
22 allocate (iw1(hecmesh%n_elem))
23 do neib= 1, hecmesh%n_neighbor_pe
25 neib0= hecmesh%neighbor_pe(neib)
26 do icel= 1, hecmesh%n_elem
27 ic1= hecmesh%elem_ID(2*icel)
28 if (ic1.eq.neib0 .and. hecmesh%adapt_type(icel).ne.0)
then
29 is= hecmesh%adapt_children_index(icel-1) + 1
30 ie= hecmesh%adapt_children_index(icel)
31 ics= hecmesh%adapt_children_local(is)
32 if (hecmesh%when_i_was_refined_elem(ics).eq. &
33 & hecmesh%n_adapt)
then
35 if (hecmesh%adapt_children_item(2*k-1).ne.0)
then
37 iw1(icou)= hecmesh%adapt_children_item(2*k-1)
45 do icel= 1, hecmesh%n_elem
46 ic1= hecmesh%elem_ID(2*icel)
47 ic2= hecmesh%when_i_was_refined_elem(icel)
48 if (ic1.eq.neib0 .and. ic2.eq.hecmesh%n_adapt)
then
50 hecmesh%elem_ID(2*icel-1)= iw1(icou)