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 12555 for branches/UKMO/dev_r5518_GO6_starthour_obsoper/NEMOGCM/NEMO/TOP_SRC – NEMO

Ignore:
Timestamp:
2020-03-13T17:33:02+01:00 (4 years ago)
Author:
charris
Message:

Changes from GO6 package branch (GMED ticket 450):

svn merge -r 11035:11101 svn+ssh://charris@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/branches/UKMO/dev_r5518_GO6_package

Location:
branches/UKMO/dev_r5518_GO6_starthour_obsoper/NEMOGCM/NEMO/TOP_SRC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_starthour_obsoper/NEMOGCM/NEMO/TOP_SRC/trcini.F90

    r9262 r12555  
    119119      CALL trc_ice_ini                                 ! Tracers in sea ice 
    120120 
    121       IF( ln_ctl ) THEN 
    122          ! 
    123          IF (narea == 1) THEN   
    124             ! The tracer.stat file only contains global tracer sum values, if  
    125             ! it contains anything at all. Hence it only needs to be opened  
    126             ! and written to on the master PE, not on all PEs.   
    127             CALL ctl_opn( numstr, 'tracer.stat', 'REPLACE','FORMATTED',  &  
    128                           'SEQUENTIAL', -1, numout, lwp , narea )  
    129          ENDIF   
    130          ! 
    131       ENDIF 
     121      ! 
     122      IF (lwm .AND. sn_cfctl%l_trcstat) THEN   
     123         ! The tracer.stat file only contains global tracer sum values, if  
     124         ! it contains anything at all. Hence it only needs to be opened  
     125         ! and written to on the master PE, not on all PEs.   
     126         CALL ctl_opn( numstr, 'tracer.stat', 'REPLACE','FORMATTED',  &  
     127                       'SEQUENTIAL', -1, numout, lwp , narea )  
     128      ENDIF   
     129      ! 
    132130 
    133131      IF( ln_trcdta ) THEN 
  • branches/UKMO/dev_r5518_GO6_starthour_obsoper/NEMOGCM/NEMO/TOP_SRC/trcstp.F90

    r9237 r12555  
    6262      INTEGER               ::  jk, jn  ! dummy loop indices 
    6363      REAL(wp)              ::  ztrai 
     64      LOGICAL ::   ll_trcstat ! local logical 
    6465      CHARACTER (len=25)    ::  charout  
    6566      !!------------------------------------------------------------------- 
     
    6768      IF( nn_timing == 1 )   CALL timing_start('trc_stp') 
    6869      ! 
     70      ll_trcstat  = ( ln_ctl .OR. sn_cfctl%l_trcstat ) .AND. & 
     71     &              ( ( MOD( kt, sn_cfctl%ptimincr ) == 0 ) .OR. ( kt == nitend ) ) 
    6972      IF( kt == nittrc000 .AND. lk_trdmxl_trc )  CALL trd_mxl_trc_init    ! trends: Mixed-layer 
    7073      ! 
     
    120123      ENDIF 
    121124      ! 
    122       IF (ln_ctl) THEN  
     125      IF (ll_trcstat) THEN  
    123126         ! The following code is very expensive since it involves multiple  
    124127         ! reproducible global sums over all tracer fields and is potentially   
Note: See TracChangeset for help on using the changeset viewer.