Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(mesh), | intent(inout) | :: | msh |
SUBROUTINE g2l_mesh(msh)
IMPLICIT NONE
!!
TYPE(mesh), INTENT(INOUT) :: msh
CALL sw_g2l%tic()
IF(mypnum_() == 0) THEN
WRITE(*,*) 'Global to local reallocation of MESH object'
WRITE(*,*)
END IF
CALL g2l_conn(msh%v2f,msh%desc_v,msh%desc_f) ! Reallocates MSH%V2F
CALL g2l_face(msh%faces,msh%desc_f,msh%desc_c) ! Reallocates MSH%FACES
CALL bcast_cell(msh%cells) ! Broadcast MSH%CELLS
CALL g2l_cell(msh%cells,msh%desc_c) ! Reallocates MSH%CELLS
CALL bcast_vertex(msh%verts) ! Broadcast MSH%VERTS
CALL g2l_vertex(msh%verts,msh%desc_v) ! Reallocates MSH%VERTS
CALL g2l_conn(msh%v2c,msh%desc_v,msh%desc_c) ! Reallocates MSH%V2C
CALL bcast_conn(msh%c2g) ! Broadcast MSH%C2G
CALL g2l_conn(msh%c2g,msh%desc_c) ! Reallocates MSH%C2G
!
CALL bcast_conn(msh%v2b) ! Broadcast MSH%V2B
CALL g2l_conn(msh%v2b,msh%desc_v) ! Reallocates MSH%V2B
CALL sw_g2l%toc()
END SUBROUTINE g2l_mesh