Skip to content

Commit

Permalink
fix gtracer restart repro issue with OBC
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengt900 authored and marshallward committed Mar 15, 2024
1 parent 744dbcc commit a23c7d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tracer/MOM_generic_tracer.F90
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ subroutine initialize_MOM_generic_tracer(restart, day, G, GV, US, h, tv, param_f
endif

call g_tracer_get_obc_segment_props(g_tracer,g_tracer_name,obc_has )
if(obc_has .and. g_tracer_is_prog(g_tracer)) call fill_obgc_segments(G, GV, OBC, tr_ptr, g_tracer_name)
if(obc_has .and. g_tracer_is_prog(g_tracer) .and. .not.restart) &
call fill_obgc_segments(G, GV, OBC, tr_ptr, g_tracer_name)
!traverse the linked list till hit NULL
call g_tracer_get_next(g_tracer, g_tracer_next)
if (.NOT. associated(g_tracer_next)) exit
Expand Down

0 comments on commit a23c7d8

Please sign in to comment.