subroutine deallocateBfaces use mod_global_parameters integer :: igrid, iigrid, iside do iigrid=1,igridstail; igrid=igrids(iigrid); do iside=1,2 if (associated(pface(iside,1,igrid)%face)) then deallocate(pface(iside,1,igrid)%face) end if end do do iside=1,2 if (associated(pface(iside,2,igrid)%face)) then deallocate(pface(iside,2,igrid)%face) end if end do do iside=1,2 if (associated(pface(iside,3,igrid)%face)) then deallocate(pface(iside,3,igrid)%face) end if end do end do end subroutine deallocateBfaces