Skip to content

Commit

Permalink
Set random code for warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
tangwhiap committed Dec 12, 2024
1 parent fcedcc6 commit e9f9a3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/env_state.F90
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ real(kind=dp) function env_state_saturated_vapor_pressure_water(T)
real(kind=dp) :: tmp


call warn_assert_msg(500123156, (T > 123) .and. (T < 332), &
call warn_assert_msg(571128376, (T > 123) .and. (T < 332), &
"The environment temperature is less then 123K or larger than "&
"332K, the subroutine env_state_saturated_vapor_pressure_water"&
" isn't applicable")
Expand All @@ -684,7 +684,7 @@ real(kind=dp) function env_state_saturated_vapor_pressure_ice(T)

real(kind=dp) :: tmp

call warn_assert_msg(500123157, T > 110, &
call warn_assert_msg(482130832, T > 110, &
"The environment temperature is less then 110K, "&
"the subroutine env_state_saturated_vapor_pressure_water"&
" isn't applicable")
Expand Down
2 changes: 1 addition & 1 deletion src/ice_nucleation.F90
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ subroutine immersion_freezing_time_dependent(aero_state, aero_data, env_state_in
if (immersion_freezing_scheme_type .eq. &
IMMERSION_FREEZING_SCHEME_ABIFM) then
call ABIFM_particle(i_part, p_freeze, aero_state, aero_data, a_w_ice, del_t)
call warn_assert_msg(123456789, p_freeze .le. p_freeze_max,&
call warn_assert_msg(301184565, p_freeze .le. p_freeze_max,&
"p_freeze > p_freeze_max.")
rand = pmc_random()
if (rand < p_freeze / p_freeze_max) then
Expand Down

0 comments on commit e9f9a3e

Please sign in to comment.