CPL_Cart_coords Subroutine

public subroutine CPL_Cart_coords(COMM, rank, realm, maxdims, coords, ierr)

Arguments

Type IntentOptional AttributesName
integer, intent(in) :: COMM
integer, intent(in) :: rank
integer, intent(in) :: realm
integer, intent(in) :: maxdims
integer, intent(out) :: coords(maxdims)
integer, intent(out) :: ierr

Description

Determines process coords in appropriate realm's cartesian topology given a rank in any communicator

  • Synopsis

  • CPL_Cart_coords(COMM, rank, realm, maxdims, coords, ierr)

  • Input Parameters

  • comm

  • communicator with cartesian structure (handle)

  • realm

  • cfd_realm (1) or md_realm (2) (integer)

  • rank

  • rank of a process within group of comm (integer) NOTE fortran convention rank=1 to nproc

  • maxdims

  • length of vector coords in the calling program (integer)

  • Output Parameter

  • coords

  • integer array (of size ndims) containing the Cartesian coordinates of specified process (integer)

  • ierr

  • error flag @author Edward Smith

Variables

TypeVisibility AttributesNameInitial
integer, public :: worldrank
integer, public :: cartrank


© 2015 Fortran Program was written by Edward Smith David Trevelyan.
Documentation generated by FORD.