split_points Subroutine

public pure subroutine split_points(n_vert, nproc, nrank, periodic, n_loc, offset)

The vertices of rank nrank (0-based) when n_vert vertices are split over nproc ranks, and their offset, as 2decomp splits them. The cells are split as evenly as possible, the last mod(n_cell, nproc) ranks taking one more, and a non-periodic direction (one cell fewer than vertices) puts its extra vertex on the last rank. A non-periodic direction of P*m cells therefore gives every rank m cells.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n_vert
integer, intent(in) :: nproc
integer, intent(in) :: nrank
logical, intent(in) :: periodic
integer, intent(out) :: n_loc
integer, intent(out) :: offset

Called by

proc~~split_points~~CalledByGraph proc~split_points m_mesh::split_points proc~decomposition_generic m_mesh::decomposition_generic proc~decomposition_generic->proc~split_points proc~mesh_init m_mesh::mesh_init proc~mesh_init->proc~decomposition_generic interface~mesh_t m_mesh::mesh_t interface~mesh_t->proc~mesh_init