diff --git a/src/DataWrangling/ECCO/ECCO_restoring.jl b/src/DataWrangling/ECCO/ECCO_restoring.jl index 5f090cf0..7400d0f7 100644 --- a/src/DataWrangling/ECCO/ECCO_restoring.jl +++ b/src/DataWrangling/ECCO/ECCO_restoring.jl @@ -353,12 +353,13 @@ end ECCORestoring(variable_name::Symbol; kw...) = ECCORestoring(CPU(), variable_name; kw...) ECCORestoring(metadata::ECCOMetadata; kw...) = ECCORestoring(CPU(), metadata; kw...) -Base.show(io::IO, p::ECCORestoring) = - print(io, "Three-dimensional restoring to ECCO data:", '\n', +function Base.show(io::IO, p::ECCORestoring) + print(io, "ECCORestoring:", '\n', "├── restored variable: ", summary(p.variable_name), '\n', "├── restoring dataset: ", summary(p.field_time_series.backend.metadata), '\n', "├── restoring rate: ", p.rate, '\n', "├── mask: ", summary(p.mask), '\n', "└── grid: ", summary(p.grid)) +end regularize_forcing(forcing::ECCORestoring, field, field_name, model_field_names) = forcing diff --git a/src/OceanSimulations/OceanSimulations.jl b/src/OceanSimulations/OceanSimulations.jl index 9d583e6e..8c95965b 100644 --- a/src/OceanSimulations/OceanSimulations.jl +++ b/src/OceanSimulations/OceanSimulations.jl @@ -108,6 +108,16 @@ function ocean_simulation(grid; u_immersed_bc = nothing v_immersed_bc = nothing else + if !(grid isa ImmersedBoundaryGrid) + msg = """Are you totally, 100% sure that you want to build a simulation on + + $(summary(grid)) + + rather than on an ImmersedBoundaryGrid? + """ + @warn msg + end + bottom_drag_coefficient = default_or_override(bottom_drag_coefficient) u_immersed_drag = FluxBoundaryCondition(u_immersed_bottom_drag, discrete_form=true, parameters=bottom_drag_coefficient)