myrecvset_mod.F90 Source File


This file depends on

sourcefile~~myrecvset_mod.f90~2~~EfferentGraph sourcefile~myrecvset_mod.f90~2 myrecvset_mod.F90 sourcefile~parkind1.f90 parkind1.F90 sourcefile~myrecvset_mod.f90~2->sourcefile~parkind1.f90 sourcefile~abort_trans_mod.f90 abort_trans_mod.F90 sourcefile~myrecvset_mod.f90~2->sourcefile~abort_trans_mod.f90 sourcefile~tpm_gen.f90 tpm_gen.F90 sourcefile~abort_trans_mod.f90->sourcefile~tpm_gen.f90 sourcefile~tpm_distr.f90 tpm_distr.F90 sourcefile~abort_trans_mod.f90->sourcefile~tpm_distr.f90 sourcefile~sdl_module.f90 sdl_module.F90 sourcefile~abort_trans_mod.f90->sourcefile~sdl_module.f90 sourcefile~tpm_gen.f90->sourcefile~parkind1.f90 sourcefile~tpm_distr.f90->sourcefile~parkind1.f90 sourcefile~sdl_module.f90->sourcefile~parkind1.f90 sourcefile~yomoml.f90 yomoml.F90 sourcefile~sdl_module.f90->sourcefile~yomoml.f90 sourcefile~yomhook_dummy.f90 yomhook_dummy.F90 sourcefile~sdl_module.f90->sourcefile~yomhook_dummy.f90 sourcefile~yomoml.f90->sourcefile~parkind1.f90

Contents

Source Code


Source Code

MODULE MYRECVSET_MOD
CONTAINS
FUNCTION MYRECVSET(KSETS,KMYSET,KSET)

#ifdef DOC

!**** *MYRECVSET* RETURNS SET NUMBER TO SEND TO

!     Purpose.
!     --------
!       

!**   Interface.
!     ----------
!        ISENDSET = MYRECVSET(KSETS,KMYSET,KSET)

!        Explicit arguments :  
!        --------------------
!                  input:   KSETS

!        Implicit arguments :  NONE
!        --------------------
!     Method.
!     -------

!        

!     Externals.
!     ----------
!         NONE

!     Reference.
!     ----------
!        ECMWF Research Department documentation of the IFS

!     Author.
!     -------
!        Mats Hamrud *ECMWF*

!     Modifications.
!     --------------
!        Original : 00-02-03

!     ------------------------------------------------------------------
#endif

USE PARKIND1  ,ONLY : JPIM     ,JPRB
USE ABORT_TRANS_MOD

IMPLICIT NONE
INTEGER(KIND=JPIM) :: MYRECVSET
INTEGER(KIND=JPIM),INTENT(IN)  :: KSETS,KMYSET,KSET


!     ------------------------------------------------------------------

!*       1.    Check input argument for validity 
!              ---------------------------------

IF(KSETS < 1 .OR. KMYSET > KSETS .OR. KSET > KSETS-1) THEN

  CALL ABORT_TRANS(' MYRECVSET: INVALID ARGUMENT ')

ELSE

!*       2.    Compute output parameters
!              -------------------------

  MYRECVSET = MOD(-KSET-1+KMYSET+KSETS,KSETS)+1

ENDIF

END FUNCTION MYRECVSET
END MODULE MYRECVSET_MOD