Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
subroutine set_neighbs(boxes,id)type(mg_box_t),intent(inout)::boxes(:)integer,intent(in)::idinteger::nb,nb_iddo nb=1,mg_num_neighborsif(boxes(id)%neighbors(nb)==mg_no_box)thennb_id=find_neighb(boxes,id,nb)if(nb_id>mg_no_box)thenboxes(id)%neighbors(nb)=nb_idboxes(nb_id)%neighbors(mg_neighb_rev(nb))=idend if end if end do end subroutine set_neighbs