@@ -114,6 +114,7 @@ module MOM
114
114
use MOM_open_boundary, only : register_temp_salt_segments, update_segment_tracer_reservoirs
115
115
use MOM_open_boundary, only : open_boundary_register_restarts, remap_OBC_fields
116
116
use MOM_open_boundary, only : open_boundary_setup_vert, update_OBC_segment_data
117
+ use MOM_open_boundary, only : initialize_segment_data
117
118
use MOM_open_boundary, only : rotate_OBC_config, rotate_OBC_init
118
119
use MOM_porous_barriers, only : porous_widths_layer, porous_widths_interface, porous_barriers_init
119
120
use MOM_porous_barriers, only : porous_barrier_CS
@@ -3025,13 +3026,8 @@ subroutine initialize_MOM(Time, Time_init, param_file, dirs, CS, &
3025
3026
call update_ALE_sponge_field(CS% ALE_sponge_CSp, S_in, G, GV, CS% S)
3026
3027
endif
3027
3028
3028
- if (associated (OBC_in)) then
3029
+ if (associated (OBC_in)) &
3029
3030
call rotate_OBC_init(OBC_in, G, GV, US, param_file, CS% tv, restart_CSp, CS% OBC)
3030
- if (CS% OBC% some_need_no_IO_for_data) then
3031
- call calc_derived_thermo(CS% tv, CS% h, G, GV, US)
3032
- call update_OBC_segment_data(G, GV, US, CS% OBC, CS% tv, CS% h, Time)
3033
- endif
3034
- endif
3035
3031
3036
3032
deallocate (u_in)
3037
3033
deallocate (v_in)
0 commit comments