SUBROUTINE ana_tclima (ng, tile, model) ! !! svn $Id$ !!====================================================================== !! Copyright (c) 2002-2009 The ROMS/TOMS Group ! !! Licensed under a MIT/X style license ! !! See License_ROMS.txt ! !======================================================================= ! ! ! This routine sets analytical tracer climatology fields. ! ! ! !======================================================================= ! USE mod_param USE mod_clima USE mod_ncparam ! ! Imported variable declarations. ! integer, intent(in) :: ng, tile, model #include "tile.h" ! CALL ana_tclima_tile (ng, tile, model, & & LBi, UBi, LBj, UBj, & & IminS, ImaxS, JminS, JmaxS, & & CLIMA(ng) % tclm) ! ! Set analytical header file name used. ! #ifdef DISTRIBUTE IF (Lanafile) THEN #else IF (Lanafile.and.(tile.eq.0)) THEN #endif ANANAME(33)=__FILE__ END IF RETURN END SUBROUTINE ana_tclima ! !*********************************************************************** SUBROUTINE ana_tclima_tile (ng, tile, model, & & LBi, UBi, LBj, UBj, & & IminS, ImaxS, JminS, JmaxS, & & tclm) !*********************************************************************** ! USE mod_param USE mod_grid USE mod_scalars ! #if defined EW_PERIODIC || defined NS_PERIODIC USE exchange_3d_mod, ONLY : exchange_r3d_tile #endif #ifdef DISTRIBUTE USE mp_exchange_mod, ONLY : mp_exchange4d #endif ! ! Imported variable declarations. ! integer, intent(in) :: ng, tile, model integer, intent(in) :: LBi, UBi, LBj, UBj integer, intent(in) :: IminS, ImaxS, JminS, JmaxS ! #ifdef ASSUMED_SHAPE real(r8), intent(out) :: tclm(LBi:,LBj:,:,:) #else real(r8), intent(out) :: tclm(LBi:UBi,LBj:UBj,N(ng),NT(ng)) #endif ! ! Local variable declarations. ! #ifdef DISTRIBUTE # ifdef EW_PERIODIC logical :: EWperiodic=.TRUE. # else logical :: EWperiodic=.FALSE. # endif # ifdef NS_PERIODIC logical :: NSperiodic=.TRUE. # else logical :: NSperiodic=.FALSE. # endif #endif integer :: i, itrc, j, k #include "set_bounds.h" ! !----------------------------------------------------------------------- ! Set tracer climatology. !----------------------------------------------------------------------- ! #if defined MY_APPLICATION DO k=1,N(ng) DO j=JstrR,JendR DO i=IstrR,IendR tclm(i,j,k,itemp)=??? tclm(i,j,k,isalt)=??? END DO END DO END DO #else ana_tclima.h: No values provided for tclm. #endif #if defined EW_PERIODIC || defined NS_PERIODIC DO itrc=1,NAT CALL exchange_r3d_tile (ng, tile, & & LBi, UBi, LBj, UBj, 1, N(ng), & & tclm(:,:,:,itrc)) END DO #endif #ifdef DISTRIBUTE CALL mp_exchange4d (ng, tile, model, 1, & & LBi, UBi, LBj, UBj, 1, N(ng), 1, NAT, & & NghostPoints, EWperiodic, NSperiodic, & & tclm) #endif RETURN END SUBROUTINE ana_tclima_tile