New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 4147 for branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/TOP_SRC/TRP/trdmld_trc.F90 – NEMO

Ignore:
Timestamp:
2013-11-04T12:51:55+01:00 (10 years ago)
Author:
cetlod
Message:

merge in dev_LOCEAN_2013, the 1st development branch dev_r3853_CNRS9_Confsetting, from its starting point ( r3853 ) on the trunk: see ticket #1169

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/TOP_SRC/TRP/trdmld_trc.F90

    r3792 r4147  
    434434      ENDIF 
    435435 
    436 #if ! defined key_gyre 
     436      IF ( cp_cfg .NE. 'gyre' ) THEN            ! other than GYRE configuration 
    437437      ! GYRE : for diagnostic fields, are needed if cyclic B.C. are present, but not for purely MPI comm.  
    438438      ! therefore we do not call lbc_lnk in GYRE config. (closed basin, no cyclic B.C.) 
    439       DO jn = 1, jptra 
    440          IF( ln_trdtrc(jn) ) THEN 
    441             DO jl = 1, jpltrd_trc 
    442                CALL lbc_lnk( tmltrd_trc(:,:,jl,jn), 'T', 1. )        ! lateral boundary conditions 
    443             END DO 
    444          ENDIF 
    445       END DO 
    446 #endif 
     439         DO jn = 1, jptra 
     440            IF( ln_trdtrc(jn) ) THEN 
     441               DO jl = 1, jpltrd_trc 
     442                  CALL lbc_lnk( tmltrd_trc(:,:,jl,jn), 'T', 1. )        ! lateral boundary conditions 
     443               END DO 
     444            ENDIF 
     445         END DO 
     446      ENDIF 
    447447      ! ====================================================================== 
    448448      ! II. Cumulate the trends over the analysis window 
     
    573573                
    574574         !-- Lateral boundary conditions 
    575 #if ! defined key_gyre 
    576  
    577                CALL lbc_lnk( ztmltot(:,:,jn) , 'T', 1. )   ;   CALL lbc_lnk( ztmlres(:,:,jn) , 'T', 1. ) 
    578                CALL lbc_lnk( ztmlatf(:,:,jn) , 'T', 1. )   ;   CALL lbc_lnk( ztmlrad(:,:,jn) , 'T', 1. ) 
    579  
    580 #endif 
     575               IF ( cp_cfg .NE. 'gyre' ) THEN 
     576                  CALL lbc_lnk( ztmltot(:,:,jn) , 'T', 1. )   ;   CALL lbc_lnk( ztmlres(:,:,jn) , 'T', 1. ) 
     577                  CALL lbc_lnk( ztmlatf(:,:,jn) , 'T', 1. )   ;   CALL lbc_lnk( ztmlrad(:,:,jn) , 'T', 1. ) 
     578               ENDIF 
     579 
    581580 
    582581#if defined key_diainstant 
     
    624623                  &                                               + tmltrd_rad_sumb_trc(:,:,jn) 
    625624 
    626          !-- Lateral boundary conditions 
    627 #if ! defined key_gyre          
    628                CALL lbc_lnk( ztmltot2(:,:,jn), 'T', 1. ) 
    629                CALL lbc_lnk( ztmlres2(:,:,jn), 'T', 1. ) 
    630                DO jl = 1, jpltrd_trc 
    631                   CALL lbc_lnk( ztmltrd2(:,:,jl,jn), 'T', 1. )       ! will be output in the NetCDF trends file 
    632                END DO 
    633 #endif 
     625         !-- Lateral boundary conditions  
     626               IF ( cp_cfg .NE. 'gyre' ) THEN            ! other than GYRE configuration     
     627                  CALL lbc_lnk( ztmltot2(:,:,jn), 'T', 1. ) 
     628                  CALL lbc_lnk( ztmlres2(:,:,jn), 'T', 1. ) 
     629                  DO jl = 1, jpltrd_trc 
     630                     CALL lbc_lnk( ztmltrd2(:,:,jl,jn), 'T', 1. )       ! will be output in the NetCDF trends file 
     631                  END DO 
     632               ENDIF 
     633 
    634634            ENDIF 
    635635         END DO 
     
    10091009 
    10101010         !-- Lateral boundary conditions 
    1011 #if ! defined key_gyre 
    1012          ! ES_B27_CD_WARN : lbc inutile GYRE, cf. + haut 
    1013          DO jn = 1, jpdiabio 
    1014            CALL lbc_lnk( ztmltrdbio2(:,:,jn), 'T', 1. ) 
    1015          ENDDO 
    1016 #endif 
     1011         IF ( cp_cfg .NE. 'gyre' ) THEN            ! other than GYRE configuration  
     1012            ! ES_B27_CD_WARN : lbc inutile GYRE, cf. + haut 
     1013            DO jn = 1, jpdiabio 
     1014              CALL lbc_lnk( ztmltrdbio2(:,:,jn), 'T', 1. ) 
     1015            ENDDO 
     1016         ENDIF 
     1017 
    10171018         IF( lldebug ) THEN 
    10181019            ! 
     
    12731274      ! ----------------------------------------- 
    12741275      IF( ln_mskland )   THEN   ;   clop = "only(x)"   ! put 1.e+20 on land (very expensive!!) 
    1275       ELSE                      ;   clop = "x"         ! no use of the mask value (require less cpu time) 
     1276      ELSE                      ;   clop = "x"         ! no use of the mask value (require less cp time) 
    12761277      ENDIF 
    12771278#  if defined key_diainstant 
Note: See TracChangeset for help on using the changeset viewer.