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 10748 for branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/stpctl.F90 – NEMO

Ignore:
Timestamp:
2019-03-13T16:49:13+01:00 (4 years ago)
Author:
andmirek
Message:

GMED 450 fix issue with solver.stat openning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_package_text_diagnostics/NEMOGCM/NEMO/OPA_SRC/stpctl.F90

    r10745 r10748  
    232232         ! 
    233233      ELSE                                   !* ssh statistics (and others...) 
    234          IF( kt == nit000 .AND. lwp .AND. ln_ctl .OR. sn_cfctl%l_runstat) THEN   ! open ssh statistics file (put in solver.stat file) 
     234         IF( kt == nit000 .AND. lwp .AND. (ln_ctl .OR. sn_cfctl%l_runstat)) THEN   ! open ssh statistics file (put in solver.stat file) 
    235235            CALL ctl_opn( numsol, 'solver.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 
    236236         ENDIF 
    237237         ! 
    238          IF( ll_wrtruns ) THEN 
     238         IF( ll_colruns ) THEN 
    239239            zssh2 = SUM( sshn(:,:) * sshn(:,:) * tmask_i(:,:) ) 
    240240            IF( lk_mpp )   CALL mpp_sum( zssh2 )      ! sum over the global domain 
Note: See TracChangeset for help on using the changeset viewer.