set_resol_mod.F90 Source File


This file depends on

sourcefile~~set_resol_mod.f90~~EfferentGraph sourcefile~set_resol_mod.f90 set_resol_mod.F90 sourcefile~tpm_dim.f90 tpm_dim.F90 sourcefile~set_resol_mod.f90->sourcefile~tpm_dim.f90 sourcefile~tpm_trans.f90 tpm_trans.F90 sourcefile~set_resol_mod.f90->sourcefile~tpm_trans.f90 sourcefile~tpm_geometry.f90 tpm_geometry.F90 sourcefile~set_resol_mod.f90->sourcefile~tpm_geometry.f90 sourcefile~tpm_fields.f90 tpm_fields.F90 sourcefile~set_resol_mod.f90->sourcefile~tpm_fields.f90 sourcefile~tpm_fft.f90 tpm_fft.F90 sourcefile~set_resol_mod.f90->sourcefile~tpm_fft.f90 sourcefile~parkind1.f90 parkind1.F90 sourcefile~set_resol_mod.f90->sourcefile~parkind1.f90 sourcefile~abort_trans_mod.f90 abort_trans_mod.F90 sourcefile~set_resol_mod.f90->sourcefile~abort_trans_mod.f90 sourcefile~tpm_gen.f90 tpm_gen.F90 sourcefile~set_resol_mod.f90->sourcefile~tpm_gen.f90 sourcefile~tpm_distr.f90 tpm_distr.F90 sourcefile~set_resol_mod.f90->sourcefile~tpm_distr.f90 sourcefile~tpm_dim.f90->sourcefile~parkind1.f90 sourcefile~tpm_trans.f90->sourcefile~parkind1.f90 sourcefile~tpm_geometry.f90->sourcefile~parkind1.f90 sourcefile~tpm_fields.f90->sourcefile~parkind1.f90 sourcefile~tpm_fft.f90->sourcefile~parkind1.f90 sourcefile~abort_trans_mod.f90->sourcefile~tpm_gen.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

Files dependent on this one

sourcefile~~set_resol_mod.f90~~AfferentGraph sourcefile~set_resol_mod.f90 set_resol_mod.F90 sourcefile~trans_inq.f90 trans_inq.F90 sourcefile~trans_inq.f90->sourcefile~set_resol_mod.f90 sourcefile~setup_trans.f90 setup_trans.F90 sourcefile~setup_trans.f90->sourcefile~set_resol_mod.f90 sourcefile~trans_inq.f90~2 trans_inq.F90 sourcefile~trans_inq.f90~2->sourcefile~set_resol_mod.f90 sourcefile~setup_trans.f90~2 setup_trans.F90 sourcefile~setup_trans.f90~2->sourcefile~set_resol_mod.f90

Contents

Source Code


Source Code

MODULE SET_RESOL_MOD
CONTAINS
SUBROUTINE SET_RESOL(KRESOL)
USE PARKIND1  ,ONLY : JPIM     ,JPRB

USE TPM_GEN
USE TPM_DIM
USE TPM_TRANS
USE TPM_DISTR
USE TPM_GEOMETRY
USE TPM_FIELDS
USE TPM_FFT
USE ABORT_TRANS_MOD

IMPLICIT NONE

! Declaration of arguments

INTEGER(KIND=JPIM) ,OPTIONAL, INTENT(IN) :: KRESOL

! Local varaibles
INTEGER(KIND=JPIM) :: IRESOL

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

IRESOL = 1
IF(PRESENT(KRESOL)) THEN
  IF(KRESOL < 1 .OR. KRESOL > NMAX_RESOL) THEN
    WRITE(NOUT,*)'SET_RESOL: UNKNOWN RESOLUTION ',KRESOL,NMAX_RESOL
    CALL ABORT_TRANS('SET_RESOL:KRESOL < 1 .OR. KRESOL > NMAX_RESOL')
  ENDIF
  IRESOL = KRESOL
ENDIF
IF(IRESOL /= NCUR_RESOL) THEN
  NCUR_RESOL = IRESOL 
  R => DIM_RESOL(NCUR_RESOL)
  F => FIELDS_RESOL(NCUR_RESOL)
  G => GEOM_RESOL(NCUR_RESOL)
  D => DISTR_RESOL(NCUR_RESOL)
  T => FFT_RESOL(NCUR_RESOL)
ENDIF

END SUBROUTINE SET_RESOL
END MODULE SET_RESOL_MOD