@@ -282,7 +282,7 @@ subroutine int_density_dz_generic_pcm(T, S, z_t, z_b, rho_ref, rho_0, G_e, HI, &
282
282
hWght = max (hWght, z_b(i+1 ,j)- SSH(i,j), z_b(i,j)- SSH(i+1 ,j))
283
283
! If both sides are nonvanished, then set it back to zero.
284
284
if (((z_t(i,j) - z_b(i,j)) > h_nonvanished) .and. ((z_t(i+1 ,j) - z_b(i+1 ,j)) > h_nonvanished)) then
285
- hWght = massWeightNVonlyToggle * hWght
285
+ hWght = massWeightNVonlyToggle * hWght
286
286
endif
287
287
if (hWght > 0 .) then
288
288
hL = (z_t(i,j) - z_b(i,j)) + dz_neglect
@@ -354,7 +354,7 @@ subroutine int_density_dz_generic_pcm(T, S, z_t, z_b, rho_ref, rho_0, G_e, HI, &
354
354
hWght = max (hWght, z_b(i,j+1 )- SSH(i,j), z_b(i,j)- SSH(i,j+1 ))
355
355
! If both sides are nonvanished, then set it back to zero.
356
356
if (((z_t(i,j) - z_b(i,j)) > h_nonvanished) .and. ((z_t(i,j+1 ) - z_b(i,j+1 )) > h_nonvanished)) then
357
- hWght = massWeightNVonlyToggle * hWght
357
+ hWght = massWeightNVonlyToggle * hWght
358
358
endif
359
359
if (hWght > 0 .) then
360
360
hL = (z_t(i,j) - z_b(i,j)) + dz_neglect
@@ -666,7 +666,7 @@ subroutine int_density_dz_generic_plm(k, tv, T_t, T_b, S_t, S_b, e, rho_ref, &
666
666
hWght = max (hWght, hWghtTop)
667
667
! If both sides are nonvanished, then set it back to zero.
668
668
if (((e(i,j,K) - e(i,j,K+1 )) > h_nonvanished) .and. ((e(i+1 ,j,K) - e(i+1 ,j,K+1 )) > h_nonvanished)) then
669
- hWght = massWeightNVonlyToggle * hWght
669
+ hWght = massWeightNVonlyToggle * hWght
670
670
endif
671
671
if (hWght > 0 .) then
672
672
hL = (e(i,j,K) - e(i,j,K+1 )) + dz_subroundoff
@@ -777,7 +777,7 @@ subroutine int_density_dz_generic_plm(k, tv, T_t, T_b, S_t, S_b, e, rho_ref, &
777
777
hWght = max (hWght, hWghtTop)
778
778
! If both sides are nonvanished, then set it back to zero.
779
779
if (((e(i,j,K) - e(i,j,K+1 )) > h_nonvanished) .and. ((e(i,j+1 ,K) - e(i,j+1 ,K+1 )) > h_nonvanished)) then
780
- hWght = massWeightNVonlyToggle * hWght
780
+ hWght = massWeightNVonlyToggle * hWght
781
781
endif
782
782
783
783
if (hWght > 0 .) then
@@ -1108,7 +1108,7 @@ subroutine int_density_dz_generic_ppm(k, tv, T_t, T_b, S_t, S_b, e, &
1108
1108
hWght = max (hWght, hWghtTop)
1109
1109
! If both sides are nonvanished, then set it back to zero.
1110
1110
if (((e(i,j,K) - e(i,j,K+1 )) > h_nonvanished) .and. ((e(i+1 ,j,K) - e(i+1 ,j,K+1 )) > h_nonvanished)) then
1111
- hWght = massWeightNVonlyToggle * hWght
1111
+ hWght = massWeightNVonlyToggle * hWght
1112
1112
endif
1113
1113
if (hWght > 0 .) then
1114
1114
hL = (e(i,j,K) - e(i,j,K+1 )) + dz_subroundoff
@@ -1220,7 +1220,7 @@ subroutine int_density_dz_generic_ppm(k, tv, T_t, T_b, S_t, S_b, e, &
1220
1220
hWght = max (hWght, hWghtTop)
1221
1221
! If both sides are nonvanished, then set it back to zero.
1222
1222
if (((e(i,j,K) - e(i,j,K+1 )) > h_nonvanished) .and. ((e(i,j+1 ,K) - e(i,j+1 ,K+1 )) > h_nonvanished)) then
1223
- hWght = massWeightNVonlyToggle * hWght
1223
+ hWght = massWeightNVonlyToggle * hWght
1224
1224
endif
1225
1225
if (hWght > 0 .) then
1226
1226
hL = (e(i,j,K) - e(i,j,K+1 )) + dz_subroundoff
@@ -1551,7 +1551,7 @@ subroutine int_spec_vol_dp_generic_pcm(T, S, p_t, p_b, alpha_ref, HI, EOS, US, d
1551
1551
hWght = max (hWght, P_surf(i,j)- p_b(i+1 ,j), P_surf(i+1 ,j)- p_b(i,j))
1552
1552
! If both sides are nonvanished, then set it back to zero.
1553
1553
if (((p_b(i,j) - p_t(i,j)) > p_nonvanished) .and. ((p_b(i+1 ,j) - p_t(i+1 ,j)) > p_nonvanished)) then
1554
- hWght = massWeightNVonlyToggle * hWght
1554
+ hWght = massWeightNVonlyToggle * hWght
1555
1555
endif
1556
1556
1557
1557
if (hWght > 0 .) then
@@ -1616,7 +1616,7 @@ subroutine int_spec_vol_dp_generic_pcm(T, S, p_t, p_b, alpha_ref, HI, EOS, US, d
1616
1616
hWght = max (hWght, P_surf(i,j)- p_b(i,j+1 ), P_surf(i,j+1 )- p_b(i,j))
1617
1617
! If both sides are nonvanished, then set it back to zero.
1618
1618
if (((p_b(i,j) - p_t(i,j)) > p_nonvanished) .and. ((p_b(i,j+1 ) - p_t(i,j+1 )) > p_nonvanished)) then
1619
- hWght = massWeightNVonlyToggle * hWght
1619
+ hWght = massWeightNVonlyToggle * hWght
1620
1620
endif
1621
1621
if (hWght > 0 .) then
1622
1622
hL = (p_b(i,j) - p_t(i,j)) + dP_neglect
@@ -1836,7 +1836,7 @@ subroutine int_spec_vol_dp_generic_plm(T_t, T_b, S_t, S_b, p_t, p_b, alpha_ref,
1836
1836
hWght = max (hWght, P_surf(i,j)- p_b(i+1 ,j), P_surf(i+1 ,j)- p_b(i,j))
1837
1837
! If both sides are nonvanished, then set it back to zero.
1838
1838
if (((p_b(i,j) - p_t(i,j)) > p_nonvanished) .and. ((p_b(i+1 ,j) - p_t(i+1 ,j)) > p_nonvanished)) then
1839
- hWght = massWeightNVonlyToggle * hWght
1839
+ hWght = massWeightNVonlyToggle * hWght
1840
1840
endif
1841
1841
if (hWght > 0 .) then
1842
1842
hL = (p_b(i,j) - p_t(i,j)) + dP_neglect
@@ -1906,7 +1906,7 @@ subroutine int_spec_vol_dp_generic_plm(T_t, T_b, S_t, S_b, p_t, p_b, alpha_ref,
1906
1906
hWght = max (hWght, P_surf(i,j)- p_b(i,j+1 ), P_surf(i,j+1 )- p_b(i,j))
1907
1907
! If both sides are nonvanished, then set it back to zero.
1908
1908
if (((p_b(i,j) - p_t(i,j)) > p_nonvanished) .and. ((p_b(i,j+1 ) - p_t(i,j+1 )) > p_nonvanished)) then
1909
- hWght = massWeightNVonlyToggle * hWght
1909
+ hWght = massWeightNVonlyToggle * hWght
1910
1910
endif
1911
1911
if (hWght > 0 .) then
1912
1912
hL = (p_b(i,j) - p_t(i,j)) + dP_neglect
0 commit comments