@@ -380,12 +380,12 @@ subroutine ALE_register_diags(Time, G, GV, US, diag, CS)
380
380
' Rate of change in half rho0 times depth integral of squared zonal' // &
381
381
' velocity by remapping. If REMAP_VEL_CONSERVE_KE is .true. then ' // &
382
382
' this measures the change before the KE-conserving correction is applied.' , &
383
- ' W m-2' , conversion= US % RZ3_T3_to_W_m2 * US% L_to_Z ** 2 )
383
+ ' W m-2' , conversion= GV % H_to_kg_m2 * US% L_T_to_m_s ** 2 * US % s_to_T )
384
384
CS% id_remap_delta_integ_v2 = register_diag_field(' ocean_model' , ' ale_v2' , diag% axesCv1, Time, &
385
385
' Rate of change in half rho0 times depth integral of squared meridional' // &
386
386
' velocity by remapping. If REMAP_VEL_CONSERVE_KE is .true. then ' // &
387
387
' this measures the change before the KE-conserving correction is applied.' , &
388
- ' W m-2' , conversion= US % RZ3_T3_to_W_m2 * US% L_to_Z ** 2 )
388
+ ' W m-2' , conversion= GV % H_to_kg_m2 * US% L_T_to_m_s ** 2 * US % s_to_T )
389
389
390
390
end subroutine ALE_register_diags
391
391
@@ -1172,7 +1172,11 @@ subroutine ALE_remap_velocities(CS, G, GV, h_old_u, h_old_v, h_new_u, h_new_v, u
1172
1172
ke_c_tgt = ke_c_tgt + h2(k) * (u_tgt(k) - u_bt)** 2
1173
1173
enddo
1174
1174
! Next rescale baroclinic component on target grid to conserve ke
1175
- rescale_coef = min (1.25 , sqrt (ke_c_src / (ke_c_tgt + 1.E-19 )))
1175
+ if (ke_c_src < 1.5625 * ke_c_tgt) then
1176
+ rescale_coef = sqrt (ke_c_src / ke_c_tgt)
1177
+ else
1178
+ rescale_coef = 1.25
1179
+ endif
1176
1180
do k= 1 ,nz
1177
1181
u_tgt(k) = u_bt + rescale_coef * (u_tgt(k) - u_bt)
1178
1182
enddo
@@ -1240,7 +1244,11 @@ subroutine ALE_remap_velocities(CS, G, GV, h_old_u, h_old_v, h_new_u, h_new_v, u
1240
1244
ke_c_tgt = ke_c_tgt + h2(k) * (v_tgt(k) - v_bt)** 2
1241
1245
enddo
1242
1246
! Next rescale baroclinic component on target grid to conserve ke
1243
- rescale_coef = min (1.25 , sqrt (ke_c_src / (ke_c_tgt + 1.E-19 )))
1247
+ if (ke_c_src < 1.5625 * ke_c_tgt) then
1248
+ rescale_coef = sqrt (ke_c_src / ke_c_tgt)
1249
+ else
1250
+ rescale_coef = 1.25
1251
+ endif
1244
1252
do k= 1 ,nz
1245
1253
v_tgt(k) = v_bt + rescale_coef * (v_tgt(k) - v_bt)
1246
1254
enddo
0 commit comments