Open navidcy opened 5 months ago
I think wrapping Base.Broadcast.materialize!
in https://github.com/CliMA/Oceananigans.jl/blob/6730e6f6b2c8f1695e20b95ef467b5b14fdc4c5f/src/Fields/broadcasting_abstract_fields.jl#L24 around @apply_regionally
for multi region fields might do the job
I think wrapping
Base.Broadcast.materialize!
inaround
@apply_regionally
for multi region fields might do the job
Or we can extend materialize!(dest::MultiRegionField, ...)
In for
MultiRegionField
s, we often forced to do, e.g.,We'd like to be able to simply do:
See, e.g., https://github.com/CliMA/Oceananigans.jl/blob/6730e6f6b2c8f1695e20b95ef467b5b14fdc4c5f/validation/multi_region/cubed_sphere_tracer_advection.jl#L59-L69
cc @siddharthabishnu, @simone-silvestri, @glwagner