New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 11380 for NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_DYN_optimization/src/ICE/icevar.F90 – NEMO

Ignore:
Timestamp:
2019-07-31T15:56:02+02:00 (5 years ago)
Author:
girrmann
Message:

dev_r10984_HPC-13 : adding extra halos in dyn_spg_ts is now possible, only works with a single halo when used with tide or bdy, see #2308

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r10984_HPC-13_IRRMANN_DYN_optimization/src/ICE/icevar.F90

    r11362 r11380  
    3232   !!                        - vt_s(jpi,jpj) 
    3333   !!                        - at_i(jpi,jpj) 
    34    !!                        - st_i(jpi,jpj) 
    3534   !!                        - et_s(jpi,jpj)  total snow heat content 
    3635   !!                        - et_i(jpi,jpj)  total ice thermal content  
     
    105104      ! 
    106105      !                                      ! integrated values 
    107       vt_i(:,:) =       SUM( v_i (:,:,:)           , dim=3 ) 
    108       vt_s(:,:) =       SUM( v_s (:,:,:)           , dim=3 ) 
    109       st_i(:,:) =       SUM( sv_i(:,:,:)           , dim=3 ) 
    110       at_i(:,:) =       SUM( a_i (:,:,:)           , dim=3 ) 
    111       et_s(:,:)  = SUM( SUM( e_s (:,:,:,:), dim=4 ), dim=3 ) 
    112       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      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 ) 
    113111      ! 
    114112      at_ip(:,:) = SUM( a_ip(:,:,:), dim=3 ) ! melt ponds 
     
    140138         tm_si(:,:) = SUM( t_si(:,:,:) * a_i(:,:,:) , dim=3 ) * z1_at_i(:,:) 
    141139         om_i (:,:) = SUM( oa_i(:,:,:)              , dim=3 ) * z1_at_i(:,:) 
    142          sm_i (:,:) =      st_i(:,:)                          * z1_vt_i(:,:) 
     140         sm_i (:,:) = SUM( sv_i(:,:,:)              , dim=3 ) * z1_vt_i(:,:) 
    143141         ! 
    144142         tm_i(:,:) = 0._wp 
     
    265263      ! 
    266264      ! integrated values  
    267       vt_i (:,:) = SUM( v_i , dim=3 ) 
    268       vt_s (:,:) = SUM( v_s , dim=3 ) 
    269       at_i (:,:) = SUM( a_i , dim=3 ) 
     265      vt_i (:,:) = SUM( v_i, dim=3 ) 
     266      vt_s (:,:) = SUM( v_s, dim=3 ) 
     267      at_i (:,:) = SUM( a_i, dim=3 ) 
    270268      ! 
    271269   END SUBROUTINE ice_var_glo2eqv 
     
    535533 
    536534      ! to be sure that at_i is the sum of a_i(jl) 
    537       at_i (:,:) = SUM( a_i (:,:,:), dim=3 ) 
    538       vt_i (:,:) = SUM( v_i (:,:,:), dim=3 ) 
    539 !!clem add? 
    540 !      vt_s (:,:) = SUM( v_s (:,:,:), dim=3 ) 
    541 !      st_i (:,:) = SUM( sv_i(:,:,:), dim=3 ) 
    542 !      et_s(:,:)  = SUM( SUM( e_s (:,:,:,:), dim=4 ), dim=3 ) 
    543 !      et_i(:,:)  = SUM( SUM( e_i (:,:,:,:), dim=4 ), dim=3 ) 
    544 !!clem 
     535      at_i (:,:) = SUM( a_i(:,:,:), dim=3 ) 
     536      vt_i (:,:) = SUM( v_i(:,:,:), dim=3 ) 
    545537 
    546538      ! open water = 1 if at_i=0 
     
    10931085         !                              ! ---------------------- ! 
    10941086         CALL  ice_var_itd_1cMc( phti(:,1), phts(:,1), pati (:,1),            ph_i(:,:), ph_s(:,:), pa_i (:,:) ) 
    1095 !!         CALL  ice_var_itd_1cMc( phti(:,1), phts(:,1), pati (:,1),            ph_i(:,:), ph_s(:,:), pa_i (:,:), & 
    1096 !!            &                    ptmi(:,1), ptms(:,1), ptmsu(:,1), psmi(:,1), pt_i(:,:), pt_s(:,:), pt_su(:,:), ps_i(:,:) ) 
     1087!!$         CALL  ice_var_itd_1cMc( phti(:,1), phts(:,1), pati (:,1),            ph_i(:,:), ph_s(:,:), pa_i (:,:), & 
     1088!!$            &                    ptmi(:,1), ptms(:,1), ptmsu(:,1), psmi(:,1), pt_i(:,:), pt_s(:,:), pt_su(:,:), ps_i(:,:) ) 
    10971089         !                              ! ---------------------- ! 
    10981090      ELSEIF( jpl == 1 ) THEN           ! output cat = 1         ! 
    10991091         !                              ! ---------------------- ! 
    1100          CALL  ice_var_itd_Nc1c( phti(:,:), phts(:,:), pati (:,:),            ph_i(:,1), ph_s(:,1), pa_i (:,1) ) 
    1101 !!         CALL  ice_var_itd_Nc1c( phti(:,:), phts(:,:), pati (:,:),            ph_i(:,1), ph_s(:,1), pa_i (:,1), & 
    1102 !!            &                    ptmi(:,:), ptms(:,:), ptmsu(:,:), psmi(:,:), pt_i(:,1), pt_s(:,1), pt_su(:,1), ps_i(:,1) )          
     1092         CALL  ice_var_itd_Nc1c( phti(:,:), phts(:,:), pati (:,:),            ph_i(:,1), ph_s(:,1), pa_i (:,1) )          
     1093!!$         CALL  ice_var_itd_Nc1c( phti(:,:), phts(:,:), pati (:,:),            ph_i(:,1), ph_s(:,1), pa_i (:,1), & 
     1094!!$            &                    ptmi(:,:), ptms(:,:), ptmsu(:,:), psmi(:,:), pt_i(:,1), pt_s(:,1), pt_su(:,1), ps_i(:,1) )          
    11031095         !                              ! ----------------------- ! 
    11041096      ELSE                              ! input cat /= output cat ! 
Note: See TracChangeset for help on using the changeset viewer.