Changeset 11094
- Timestamp:
- 2019-06-11T14:58:51+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/releases/release-4.0/src/OCE/DIA/diahth.F90
r11093 r11094 89 89 REAL(wp), DIMENSION(jpi,jpj) :: zhtc3 !: heat content of first 300 m [W] 90 90 91 <<<<<<< variant A92 91 IF (iom_use("mlddzt").OR.iom_use("mldr0_3").OR.iom_use("mldr0_1")) THEN 93 92 ! ------------------------------------------------------------- ! … … 99 98 zmaxdzT(:,:) = 0._wp 100 99 IF( nla10 > 1 ) THEN 101 >>>>>>> variant B102 IF(iom_use("mlddzt").OR.iom_use("mldr0_3").OR.iom_use("mldr0_1").OR.iom_use("mld_dt02") &103 & .OR.iom_use("topthdep").OR.iom_use("mldr10_3").OR.iom_use("pycndep").OR.iom_use("tinv").OR.iom_use("depti")) THEN104 ! initialization105 ztinv (:,:) = 0._wp106 zdepinv(:,:) = 0._wp107 zmaxdzT(:,:) = 0._wp108 DO jj = 1, jpj109 DO ji = 1, jpi110 zztmp = gdepw_n(ji,jj,mbkt(ji,jj)+1)111 zhth (ji,jj) = zztmp112 zabs2 (ji,jj) = zztmp113 ztm2 (ji,jj) = zztmp114 zrho10_3(ji,jj) = zztmp115 zpycn (ji,jj) = zztmp116 END DO117 END DO118 IF( nla10 > 1 ) THEN119 ======= end120 100 DO jj = 1, jpj 121 101 DO ji = 1, jpi … … 123 103 zrho0_3(ji,jj) = zztmp 124 104 zrho0_1(ji,jj) = zztmp 125 <<<<<<< variant A126 105 zhth(ji,jj) = zztmp 127 >>>>>>> variant B 128 ======= end 129 END DO 130 END DO 131 <<<<<<< variant A 106 END DO 107 END DO 132 108 ELSE IF (iom_use("mlddzt")) THEN 133 109 DO jj = 1, jpj … … 139 115 ELSE 140 116 zhth(:,:) = 0._wp 141 >>>>>>> variant B 142 ======= end 117 143 118 ENDIF 144 <<<<<<< variant A 145 >>>>>>> variant B 146 ENDIF 147 ======= end 148 149 <<<<<<< variant A 150 >>>>>>> variant B 151 IF (iom_use("mlddzt").OR.iom_use("mldr0_3").OR.iom_use("mldr0_1")) THEN 152 ! ------------------------------------------------------------- ! 153 ! thermocline depth: strongest vertical gradient of temperature ! 154 ! turbocline depth (mixing layer depth): avt = zavt5 ! 155 ! MLD: rho = rho(1) + zrho3 ! 156 ! MLD: rho = rho(1) + zrho1 ! 157 ! ------------------------------------------------------------- ! 158 ======= end 119 159 120 DO jk = jpkm1, 2, -1 ! loop from bottom to 2 160 121 DO jj = 1, jpj … … 165 126 zzdep = zzdep * tmask(ji,jj,1) 166 127 167 <<<<<<< variant A168 128 IF( zztmp > zmaxdzT(ji,jj) ) THEN 169 >>>>>>> variant B170 IF( zztmp > zmaxdzT(ji,jj) ) THEN171 ======= end172 129 zmaxdzT(ji,jj) = zztmp ; zhth (ji,jj) = zzdep ! max and depth of dT/dz 173 130 ENDIF 174 131 175 <<<<<<< variant A176 132 IF( nla10 > 1 ) THEN 177 >>>>>>> variant B178 IF( nla10 > 1 ) THEN179 ======= end180 133 zztmp = rhop(ji,jj,jk) - rhop(ji,jj,1) ! delta rho(1) 181 134 IF( zztmp > zrho3 ) zrho0_3(ji,jj) = zzdep ! > 0.03 … … 188 141 189 142 IF (iom_use("mlddzt")) CALL iom_put( "mlddzt", zhth*tmask(:,:,1) ) ! depth of the thermocline 190 <<<<<<< variant A191 143 IF( nla10 > 1 ) THEN 192 >>>>>>> variant B193 IF( nla10 > 1 ) THEN194 ======= end195 144 IF (iom_use("mldr0_3")) CALL iom_put( "mldr0_3", zrho0_3*tmask(:,:,1) ) ! MLD delta rho(surf) = 0.03 196 145 IF (iom_use("mldr0_1")) CALL iom_put( "mldr0_1", zrho0_1*tmask(:,:,1) ) ! MLD delta rho(surf) = 0.01 … … 360 309 ENDIF 361 310 ! 362 IF( ln_timing ) CALL timing_stop('dia_hth')363 !364 311 END SUBROUTINE dia_hth 365 312
Note: See TracChangeset
for help on using the changeset viewer.