Skip to content

Commit

Permalink
Merge pull request #713 from NCAR/fix-zero-window
Browse files Browse the repository at this point in the history
prevent hang by erroring out if shortest_time_between_assimilations <=0
  • Loading branch information
hkershaw-brown authored Aug 29, 2024
2 parents 46bebc0 + 752abd1 commit 7d5fd79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assimilation_code/modules/assimilation/obs_model_mod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ subroutine move_ahead(ens_handle, ens_size, seq, last_key_used, window_time, &

! Compute the model time step and center a window around the closest time
delta_time = get_model_time_step()
if (delta_time <= set_time(0,0)) then
call error_handler(E_ERR, 'move_ahead', 'shortest_time_between_assimilations must be > 0', source)
endif

! print out current window, if requested
if (print_trace_details > 0) then
Expand Down

0 comments on commit 7d5fd79

Please sign in to comment.