@@ -824,7 +824,7 @@ subroutine shelf_calc_flux(sfc_state_in, fluxes_in, Time, time_step_in, CS)
824
824
ISS% dhdt_shelf(i,j) = (ISS% h_shelf(i,j) - ISS% dhdt_shelf(i,j))* Itime_step
825
825
enddo ; enddo
826
826
827
- call IS_dynamics_post_data(time_step, Time, CS% dCS, G)
827
+ call IS_dynamics_post_data(time_step, Time, CS% dCS, ISS, G)
828
828
endif
829
829
830
830
if (CS% shelf_mass_is_dynamic) &
@@ -2603,7 +2603,7 @@ subroutine solo_step_ice_shelf(CS, time_interval, nsteps, Time, min_time_step_in
2603
2603
call process_and_post_scalar_data(CS, vaf0, vaf0_A, vaf0_G, Ifull_time_step, dh_adott, dh_adott* 0.0 )
2604
2604
call disable_averaging(CS% diag)
2605
2605
2606
- call IS_dynamics_post_data(full_time_step, Time, CS% dCS, G)
2606
+ call IS_dynamics_post_data(full_time_step, Time, CS% dCS, ISS, G)
2607
2607
end subroutine solo_step_ice_shelf
2608
2608
2609
2609
! > Post_data calls for ice-sheet scalars
@@ -2648,7 +2648,9 @@ subroutine process_and_post_scalar_data(CS, vaf0, vaf0_A, vaf0_G, Itime_step, dh
2648
2648
endif
2649
2649
if (CS% id_f_adott > 0 .or. CS% id_f_adot > 0 ) then ! floating only: surface accumulation - surface melt
2650
2650
call masked_var_grounded(G,CS% dCS,dh_adott,tmp)
2651
- tmp(:,:) = dh_adott(:,:) - tmp(:,:)
2651
+ do j= js,je ; do i= is,ie
2652
+ tmp(i,j) = dh_adott(i,j) - tmp(i,j)
2653
+ enddo ; enddo
2652
2654
call integrate_over_ice_sheet_area(G, ISS, tmp, US% Z_to_m, val)
2653
2655
if (CS% id_f_adott > 0 ) call post_scalar_data(CS% id_f_adott,val ,CS% diag)
2654
2656
if (CS% id_f_adot > 0 ) call post_scalar_data(CS% id_f_adot ,val* Itime_step,CS% diag)
@@ -2710,7 +2712,9 @@ subroutine process_and_post_scalar_data(CS, vaf0, vaf0_A, vaf0_G, Itime_step, dh
2710
2712
endif
2711
2713
if (CS% id_Ant_f_adott > 0 .or. CS% id_Ant_f_adot > 0 ) then ! floating only: surface accumulation - surface melt
2712
2714
call masked_var_grounded(G,CS% dCS,dh_adott,tmp)
2713
- tmp(:,:) = dh_adott(:,:) - tmp(:,:)
2715
+ do j= js,je ; do i= is,ie
2716
+ tmp(i,j) = dh_adott(i,j) - tmp(i,j)
2717
+ enddo ; enddo
2714
2718
call integrate_over_ice_sheet_area(G, ISS, tmp, US% Z_to_m, val, hemisphere= 0 )
2715
2719
if (CS% id_Ant_f_adott > 0 ) call post_scalar_data(CS% id_Ant_f_adott,val ,CS% diag)
2716
2720
if (CS% id_Ant_f_adot > 0 ) call post_scalar_data(CS% id_Ant_f_adot ,val* Itime_step,CS% diag)
@@ -2772,7 +2776,9 @@ subroutine process_and_post_scalar_data(CS, vaf0, vaf0_A, vaf0_G, Itime_step, dh
2772
2776
endif
2773
2777
if (CS% id_Gr_f_adott > 0 .or. CS% id_Gr_f_adot > 0 ) then ! floating only: surface accumulation - surface melt
2774
2778
call masked_var_grounded(G,CS% dCS,dh_adott,tmp)
2775
- tmp(:,:) = dh_adott(:,:) - tmp(:,:)
2779
+ do j= js,je ; do i= is,ie
2780
+ tmp(i,j) = dh_adott(i,j) - tmp(i,j)
2781
+ enddo ; enddo
2776
2782
call integrate_over_ice_sheet_area(G, ISS, tmp, US% Z_to_m, val, hemisphere= 1 )
2777
2783
if (CS% id_Gr_f_adott > 0 ) call post_scalar_data(CS% id_Gr_f_adott,val ,CS% diag)
2778
2784
if (CS% id_Gr_f_adot > 0 ) call post_scalar_data(CS% id_Gr_f_adot ,val* Itime_step,CS% diag)
0 commit comments