Skip to content

Commit

Permalink
fix: error out if shortest_time_between_assimilations <=0
Browse files Browse the repository at this point in the history
shortest_time_between_assimilations is get_model_time_step

fixes #535
  • Loading branch information
hkershaw-brown committed Aug 19, 2024
1 parent f193ab4 commit 45c6860
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 45c6860

Please sign in to comment.