Skip to content

Commit 4e2917f

Browse files
remove this let stuff
1 parent 8920efd commit 4e2917f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Oceans/ocean_simulation.jl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,7 @@ function ocean_simulation(grid;
215215
verbose = false)
216216

217217
FT = eltype(grid)
218-
219-
# Today only T and S have default top flux fields, so those are the only
220-
# tracers we know how to wrap with a restoring. Catch typos / unsupported
221-
# keys early.
222-
let extras = setdiff(keys(surface_restoring), (:T, :S))
223-
isempty(extras) || throw(ArgumentError(
224-
"ocean_simulation only supports surface_restoring for :T and :S; got unsupported keys $(Tuple(extras))"))
225-
end
226-
218+
227219
if grid isa RectilinearGrid # turn off Coriolis unless user-supplied
228220
coriolis = default_or_override(coriolis, nothing)
229221
else

0 commit comments

Comments
 (0)