returns number of tasks and task id for a given mpi group simple and cartesian version.. recursive needed in case of failing mpi_comm_rank.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(out), | optional | :: | numtask | ||
| integer, | intent(out), | optional | :: | taskid | ||
| type(mp_comm_type), | intent(in) | :: | groupid |
mpi communicator |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(out) | :: | numtask | |||
| integer, | intent(out) | :: | dims(2) | |||
| integer, | intent(out) | :: | task_coor(2) | |||
| type(mp_comm_type), | intent(in) | :: | groupid |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mp_comm_type), | intent(in) | :: | comm | |||
| integer, | intent(in) | :: | ndims | |||
| integer, | intent(out) | :: | dims(ndims) | |||
| integer, | intent(out) | :: | task_coor(ndims) | |||
| logical, | intent(out) | :: | periods(ndims) |