Changeset 7701
- Timestamp:
- 2017-02-20T11:07:50+01:00 (8 years ago)
- Location:
- branches/UKMO/dev_r5518_MEDUSA_optim_RH/NEMOGCM/NEMO
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_MEDUSA_optim_RH/NEMOGCM/NEMO/OPA_SRC/nemogcm.F90
r7692 r7701 74 74 #if defined key_top 75 75 USE trcini ! passive tracer initialisation 76 USE trc, ONLY: numstr ! tracer stats unit number 76 77 #endif 77 78 USE lib_mpp ! distributed memory computing … … 596 597 IF( numdct_heat /= -1 ) CLOSE( numdct_heat ) ! heat transports 597 598 IF( numdct_salt /= -1 ) CLOSE( numdct_salt ) ! salt transports 599 IF( numstr /= -1 ) CLOSE( numstr ) ! tracer statistics 598 600 599 601 ! -
branches/UKMO/dev_r5518_MEDUSA_optim_RH/NEMOGCM/NEMO/TOP_SRC/trc.F90
r7693 r7701 26 26 INTEGER, PUBLIC :: numnat_cfg = -1 !: logical unit for the reference passive tracer namelist_top_cfg 27 27 INTEGER, PUBLIC :: numont = -1 !: logical unit for the reference passive tracer namelist output output.namelist.top 28 INTEGER, PUBLIC :: numstr !: logical unit for tracer statistics28 INTEGER, PUBLIC :: numstr = -1 !: logical unit for tracer statistics 29 29 INTEGER, PUBLIC :: numrtr !: logical unit for trc restart (read ) 30 30 INTEGER, PUBLIC :: numrtw !: logical unit for trc restart ( write ) -
branches/UKMO/dev_r5518_MEDUSA_optim_RH/NEMOGCM/NEMO/TOP_SRC/trcini.F90
r7693 r7701 123 123 # endif 124 124 125 IF( l wp) THEN125 IF( ln_ctl ) THEN 126 126 ! 127 CALL ctl_opn( numstr, 'tracer.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp , narea ) 127 IF (narea == 1) THEN 128 ! The tracer.stat file only contains global tracer sum values, if 129 ! it contains anything at all. Hence it only needs to be opened 130 ! and written to on the master PE, not on all PEs. 131 CALL ctl_opn( numstr, 'tracer.stat', 'REPLACE', 'FORMATTED', & 132 'SEQUENTIAL', -1, numout, lwp , narea ) 133 ENDIF 128 134 ! 129 135 ENDIF -
branches/UKMO/dev_r5518_MEDUSA_optim_RH/NEMOGCM/NEMO/TOP_SRC/trcstp.F90
r7694 r7701 55 55 !! Update the passive tracers 56 56 !!------------------------------------------------------------------- 57 58 USE dom_oce, ONLY: narea 59 57 60 INTEGER, INTENT( in ) :: kt ! ocean time-step index 58 61 INTEGER :: jk, jn ! dummy loop indices … … 136 139 ! Hence we restrict its use by protecting it with the ln_ctl RTL 137 140 ! which should normally only be used under debugging conditions 138 ! and not in operational runs. 139 ztrai = 0._wp ! content of all tracers 141 ! and not in operational runs. We also need to restrict output 142 ! to the master PE since there's no point duplicating the same results 143 ! on all processors. 144 ztrai = 0._wp ! content of all tracers 140 145 DO jn = 1, jptra 141 146 ztrai = ztrai + glob_sum( trn(:,:,:,jn) * cvol(:,:,:) ) 142 147 END DO 143 IF ( lwp) WRITE(numstr,9300) kt, ztrai / areatot148 IF (narea == 1) WRITE(numstr,9300) kt, ztrai / areatot 144 149 9300 FORMAT(i10,e18.10) 145 150 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.