- Timestamp:
- 2019-08-06T17:59:22+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11265_ASINTER-01_Guillaume_ABL1D/src/ICE/icevar.F90
r11348 r11413 32 32 !! - vt_s(jpi,jpj) 33 33 !! - at_i(jpi,jpj) 34 !! - st_i(jpi,jpj) 34 35 !! - et_s(jpi,jpj) total snow heat content 35 36 !! - et_i(jpi,jpj) total ice thermal content … … 46 47 !! ice_var_zapneg : remove negative ice fields 47 48 !! ice_var_roundoff : remove negative values arising from roundoff erros 48 !! ice_var_itd : convert 1-cat to jpl-cat 49 !! ice_var_itd2 : convert N-cat to jpl-cat 49 !! ice_var_itd : convert N-cat to M-cat 50 50 !! ice_var_bv : brine volume 51 51 !! ice_var_enthalpy : compute ice and snow enthalpies from temperature … … 104 104 ! 105 105 ! ! integrated values 106 vt_i(:,:) = SUM( v_i(:,:,:) , dim=3 ) 107 vt_s(:,:) = SUM( v_s(:,:,:) , dim=3 ) 108 at_i(:,:) = SUM( a_i(:,:,:) , dim=3 ) 109 et_s(:,:) = SUM( SUM( e_s(:,:,:,:), dim=4 ), dim=3 ) 110 et_i(:,:) = SUM( SUM( e_i(:,:,:,:), dim=4 ), dim=3 ) 106 vt_i(:,:) = SUM( v_i (:,:,:) , dim=3 ) 107 vt_s(:,:) = SUM( v_s (:,:,:) , dim=3 ) 108 st_i(:,:) = SUM( sv_i(:,:,:) , dim=3 ) 109 at_i(:,:) = SUM( a_i (:,:,:) , dim=3 ) 110 et_s(:,:) = SUM( SUM( e_s (:,:,:,:), dim=4 ), dim=3 ) 111 et_i(:,:) = SUM( SUM( e_i (:,:,:,:), dim=4 ), dim=3 ) 111 112 ! 112 113 at_ip(:,:) = SUM( a_ip(:,:,:), dim=3 ) ! melt ponds … … 142 143 tm_si(:,:) = SUM( t_si(:,:,:) * a_i(:,:,:) , dim=3 ) * z1_at_i(:,:) 143 144 om_i (:,:) = SUM( oa_i(:,:,:) , dim=3 ) * z1_at_i(:,:) 144 sm_i (:,:) = SUM( sv_i(:,:,:) , dim=3 )* z1_vt_i(:,:)145 sm_i (:,:) = st_i(:,:) * z1_vt_i(:,:) 145 146 ! 146 147 tm_i(:,:) = 0._wp … … 268 269 ! 269 270 ! integrated values 270 vt_i (:,:) = SUM( v_i , dim=3 )271 vt_s (:,:) = SUM( v_s , dim=3 )272 at_i (:,:) = SUM( a_i , dim=3 )271 vt_i (:,:) = SUM( v_i , dim=3 ) 272 vt_s (:,:) = SUM( v_s , dim=3 ) 273 at_i (:,:) = SUM( a_i , dim=3 ) 273 274 ! 274 275 END SUBROUTINE ice_var_glo2eqv … … 538 539 539 540 ! to be sure that at_i is the sum of a_i(jl) 540 at_i (:,:) = SUM( a_i(:,:,:), dim=3 ) 541 vt_i (:,:) = SUM( v_i(:,:,:), dim=3 ) 541 at_i (:,:) = SUM( a_i (:,:,:), dim=3 ) 542 vt_i (:,:) = SUM( v_i (:,:,:), dim=3 ) 543 !!clem add? 544 ! vt_s (:,:) = SUM( v_s (:,:,:), dim=3 ) 545 ! st_i (:,:) = SUM( sv_i(:,:,:), dim=3 ) 546 ! et_s(:,:) = SUM( SUM( e_s (:,:,:,:), dim=4 ), dim=3 ) 547 ! et_i(:,:) = SUM( SUM( e_i (:,:,:,:), dim=4 ), dim=3 ) 548 !!clem 542 549 543 550 ! open water = 1 if at_i=0 … … 932 939 IF ( i_fill == 1 ) THEN !-- case very thin ice: fill only category 1 933 940 ph_i(ji,1) = phti(ji) 934 pa_i 941 pa_i(ji,1) = pati (ji) 935 942 ELSE !-- case ice is thicker: fill categories >1 936 943 ! thickness … … 975 982 IF ( zconv < epsi06 ) itest(2) = 1 ! Test 2: volume conservation 976 983 ! 977 IF ( ph_i(ji,i_fill) >= hi_max(i_fill-1) ) itest(3) = 1 ! Test 3: thickness of the last category is in-bounds ?984 IF ( ph_i(ji,i_fill) >= hi_max(i_fill-1) ) itest(3) = 1 ! Test 3: thickness of the last category is in-bounds ? 978 985 ! 979 986 itest(4) = 1 980 987 DO jl = 1, i_fill 981 IF ( pa_i(ji,jl) < 0._wp ) itest(4) = 0 ! Test 4: positivity of ice concentrations988 IF ( pa_i(ji,jl) < 0._wp ) itest(4) = 0 ! Test 4: positivity of ice concentrations 982 989 END DO 983 990 ! !---------------------------- … … 1089 1096 ELSEIF( icat == 1 ) THEN ! input cat = 1 ! 1090 1097 ! ! ---------------------- ! 1091 CALL ice_var_itd_1cMc( phti(:,1), phts(:,1), pati (:,1), ph_i(:,:), ph_s(:,:), pa_i (:,:), & 1092 & ptmi(:,1), ptms(:,1), ptmsu(:,1), psmi(:,1), pt_i(:,:), pt_s(:,:), pt_su(:,:), ps_i(:,:) ) 1098 CALL ice_var_itd_1cMc( phti(:,1), phts(:,1), pati (:,1), ph_i(:,:), ph_s(:,:), pa_i (:,:) ) 1099 !! CALL ice_var_itd_1cMc( phti(:,1), phts(:,1), pati (:,1), ph_i(:,:), ph_s(:,:), pa_i (:,:), & 1100 !! & ptmi(:,1), ptms(:,1), ptmsu(:,1), psmi(:,1), pt_i(:,:), pt_s(:,:), pt_su(:,:), ps_i(:,:) ) 1093 1101 ! ! ---------------------- ! 1094 1102 ELSEIF( jpl == 1 ) THEN ! output cat = 1 ! 1095 1103 ! ! ---------------------- ! 1096 CALL ice_var_itd_Nc1c( phti(:,:), phts(:,:), pati (:,:), ph_i(:,1), ph_s(:,1), pa_i (:,1), & 1097 & ptmi(:,:), ptms(:,:), ptmsu(:,:), psmi(:,:), pt_i(:,1), pt_s(:,1), pt_su(:,1), ps_i(:,1) ) 1104 CALL ice_var_itd_Nc1c( phti(:,:), phts(:,:), pati (:,:), ph_i(:,1), ph_s(:,1), pa_i (:,1) ) 1105 !! CALL ice_var_itd_Nc1c( phti(:,:), phts(:,:), pati (:,:), ph_i(:,1), ph_s(:,1), pa_i (:,1), & 1106 !! & ptmi(:,:), ptms(:,:), ptmsu(:,:), psmi(:,:), pt_i(:,1), pt_s(:,1), pt_su(:,1), ps_i(:,1) ) 1098 1107 ! ! ----------------------- ! 1099 1108 ELSE ! input cat /= output cat !
Note: See TracChangeset
for help on using the changeset viewer.