Changeset 7982 for branches/2015
- Timestamp:
- 2017-04-27T18:43:29+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/nemo_v3_6_STABLE/NEMOGCM/NEMO/OPA_SRC/SBC/sbcisf.F90
r7963 r7982 168 168 169 169 ! salt effect already take into account in vertical advection 170 risf_tsc(:,:,jp_sal) = (1.0_wp-rdivisf) * fwfisf(:,:) * stbl(:,:) * r1_rau0 171 172 ! if apply only on the trend and not as a volume flux (rdivisf = 0), fwfisf have to be set to 0 now 173 fwfisf(:,:) = rdivisf * fwfisf(:,:) 174 170 risf_tsc(:,:,jp_sal) = (1.0_wp-rdivisf) * fwfisf(:,:) * soce * r1_rau0 171 175 172 ! lbclnk 176 173 CALL lbc_lnk(risf_tsc(:,:,jp_tem),'T',1.) … … 194 191 zqhcisf3d(:,:,:) = 0.0_wp ! 3d heat content flux (W/m2) 195 192 zqlatisf3d(:,:,:)= 0.0_wp ! 3d ice shelf melting latent heat flux (W/m2) 196 zqhcisf2d(:,:) = fwfisf(:,:) * zt_frz * rcp ! 2d heat content flux (W/m2)193 zqhcisf2d(:,:) = rdivisf * fwfisf(:,:) * zt_frz * rcp ! 2d heat content flux (W/m2) 197 194 ! 198 195 DO jj = 1,jpj … … 223 220 ! 224 221 END IF 222 223 ! if apply only on the trend and not as a volume flux (rdivisf = 0), fwfisf have to be set to 0 now 224 fwfisf(:,:) = rdivisf * fwfisf(:,:) 225 225 226 ! 226 227 END IF … … 446 447 447 448 fwfisf(ji,jj) = qisf(ji,jj) / lfusisf !fresh water flux kg/(m2s) 448 fwfisf(ji,jj) = fwfisf(ji,jj) * ( soce / stbl(ji,jj) ) 449 !add to salinity trend 449 450 450 ELSE 451 451 qisf(ji,jj) = 0._wp ; fwfisf(ji,jj) = 0._wp … … 546 546 qisf(ji,jj) = - zhtflx 547 547 ! For genuine ISOMIP protocol this should probably be something like 548 fwfisf(ji,jj) = zfwflx * ( soce / MAX(stbl(ji,jj),zeps))548 fwfisf(ji,jj) = zfwflx 549 549 ELSE 550 550 fwfisf(ji,jj) = 0._wp … … 584 584 ! zfwflx is upward water flux 585 585 zfwflx= rau0 * zgammas * ( (zsfrz-stbl(ji,jj)) / zsfrz ) 586 IF ( rdivisf==0 ) THEN 586 587 ! zhtflx is upward heat flux (out of ocean) 587 588 ! If non conservative we have zcfac=0.0 so zhtflx is as ISOMIP but with different zfrz value 588 zhtflx = ( zgammat*rau0 - zcfac*zfwflx ) * rcp * (zti(ji,jj) - zfrz(ji,jj) )589 zhtflx = ( zgammat*rau0 - zcfac*zfwflx ) * rcp * (zti(ji,jj) - zfrz(ji,jj) ) 589 590 ! zwflx is upward water flux 590 591 ! If non conservative we have zcfac=0.0 so what follows is then zfwflx*sss_m/zsfrz 591 zfwflx = ( zgammas*rau0 - zcfac*zfwflx ) * (zsfrz - stbl(ji,jj)) / stbl(ji,jj) 592 zfwflx = ( zgammas*rau0 - zcfac*zfwflx ) * (zsfrz - stbl(ji,jj)) / stbl(ji,jj) 593 ELSE 594 zhtflx = zgammat*rau0 * rcp * (zti(ji,jj) - zfrz(ji,jj) ) 595 ! nothing to do for fwf 596 END IF 592 597 ! test convergence and compute gammat 593 598 IF (( zhtflx - zhtflx_b) .LE. 0.01 ) lit = .FALSE.
Note: See TracChangeset
for help on using the changeset viewer.