- Timestamp:
- 2020-09-14T17:40:34+02:00 (4 years ago)
- Location:
- NEMO/branches/2019/dev_r11351_fldread_with_XIOS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11351_fldread_with_XIOS
- Property svn:externals
-
old new 3 3 ^/utils/build/mk@HEAD mk 4 4 ^/utils/tools@HEAD tools 5 ^/vendors/AGRIF/dev @HEADext/AGRIF5 ^/vendors/AGRIF/dev_r12970_AGRIF_CMEMS ext/AGRIF 6 6 ^/vendors/FCM@HEAD ext/FCM 7 7 ^/vendors/IOIPSL@HEAD ext/IOIPSL 8 9 # SETTE 10 ^/utils/CI/sette@13382 sette
-
- Property svn:externals
-
NEMO/branches/2019/dev_r11351_fldread_with_XIOS/src/OCE/ICB/icbclv.F90
r10714 r13463 32 32 PUBLIC icb_clv ! routine called in icbstp.F90 module 33 33 34 !! * Substitutions 35 # include "do_loop_substitute.h90" 34 36 !!---------------------------------------------------------------------- 35 37 !! NEMO/OCE 4.0 , NEMO Consortium (2018) … … 69 71 ! where (berg_grid%calving==0.) berg_grid%stored_ice(:,:,jn)=0. 70 72 !end do 71 DO jj = 2, jpjm1 72 DO ji = 2, jpim1 73 IF( berg_grid%calving(ji,jj) /= 0._wp ) & ! Need units of J 74 berg_grid%stored_heat(ji,jj) = SUM( berg_grid%stored_ice(ji,jj,:) ) * & ! initial stored ice in kg 75 & berg_grid%calving_hflx(ji,jj) * e1e2t(ji,jj) / berg_grid%calving(ji,jj) ! J/s/m2 x m^2 76 ! ! = J/s/calving in kg/s 77 END DO 78 END DO 73 DO_2D( 0, 0, 0, 0 ) 74 IF( berg_grid%calving(ji,jj) /= 0._wp ) & ! Need units of J 75 berg_grid%stored_heat(ji,jj) = SUM( berg_grid%stored_ice(ji,jj,:) ) * & ! initial stored ice in kg 76 & berg_grid%calving_hflx(ji,jj) * e1e2t(ji,jj) / berg_grid%calving(ji,jj) ! J/s/m2 x m^2 77 ! ! = J/s/calving in kg/s 78 END_2D 79 79 ENDIF 80 80 81 81 ! assume that all calving flux must be distributed even if distribution array does not sum 82 82 ! to one - this may not be what is intended, but it's what you've got 83 DO jj = 1, jpj 84 DO ji = 1, jpi 85 imx = berg_grid%maxclass(ji,jj) 86 zdist = SUM( rn_distribution(1:nclasses) ) / SUM( rn_distribution(1:imx) ) 87 DO jn = 1, imx 88 berg_grid%stored_ice(ji,jj,jn) = berg_grid%stored_ice(ji,jj,jn) & 89 & + berg_dt * berg_grid%calving(ji,jj) * rn_distribution(jn) * zdist 90 END DO 83 DO_2D( 1, 1, 1, 1 ) 84 imx = berg_grid%maxclass(ji,jj) 85 zdist = SUM( rn_distribution(1:nclasses) ) / SUM( rn_distribution(1:imx) ) 86 DO jn = 1, imx 87 berg_grid%stored_ice(ji,jj,jn) = berg_grid%stored_ice(ji,jj,jn) & 88 & + berg_dt * berg_grid%calving(ji,jj) * rn_distribution(jn) * zdist 91 89 END DO 92 END DO90 END_2D 93 91 94 92 ! before changing the calving, save the amount we're about to use and do budget
Note: See TracChangeset
for help on using the changeset viewer.