Skip to content

[TESTING] reduce update hydrostatic model #4513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,27 @@ update_state!(model::HydrostaticFreeSurfaceModel, callbacks=[]; compute_tendenci

function update_state!(model::HydrostaticFreeSurfaceModel, grid, callbacks; compute_tendencies = true)

@apply_regionally mask_immersed_model_fields!(model, grid)
# @apply_regionally mask_immersed_model_fields!(model, grid)

# Update possible FieldTimeSeries used in the model
@apply_regionally update_model_field_time_series!(model, model.clock)
# @apply_regionally update_model_field_time_series!(model, model.clock)

# Update the boundary conditions
@apply_regionally update_boundary_condition!(fields(model), model)
# @apply_regionally update_boundary_condition!(fields(model), model)

tupled_fill_halo_regions!(prognostic_fields(model), grid, model.clock, fields(model), async=true)
# tupled_fill_halo_regions!(prognostic_fields(model), grid, model.clock, fields(model), async=true)

@apply_regionally replace_horizontal_vector_halos!(model.velocities, model.grid)
@apply_regionally compute_auxiliaries!(model)
# @apply_regionally replace_horizontal_vector_halos!(model.velocities, model.grid)
# @apply_regionally compute_auxiliaries!(model)

fill_halo_regions!(model.diffusivity_fields; only_local_halos = true)
# fill_halo_regions!(model.diffusivity_fields; only_local_halos = true)

[callback(model) for callback in callbacks if callback.callsite isa UpdateStateCallsite]
# [callback(model) for callback in callbacks if callback.callsite isa UpdateStateCallsite]

update_biogeochemical_state!(model.biogeochemistry, model)
# update_biogeochemical_state!(model.biogeochemistry, model)

compute_tendencies &&
@apply_regionally compute_tendencies!(model, callbacks)
# compute_tendencies &&
# @apply_regionally compute_tendencies!(model, callbacks)

return nothing
end
Expand Down
Loading