Skip to content

Commit

Permalink
Merge pull request #52 from CliMA/glwagner-patch-1
Browse files Browse the repository at this point in the history
Update Bathymetry.jl
  • Loading branch information
glwagner authored Oct 16, 2023
2 parents f69f130 + a0c1675 commit 84ff94e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/Bathymetry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ using Printf
Regrid bathymetry associated with the NetCDF file at `path = joinpath(dir, filename)` to `target_grid`.
If `path` does not exist, then a download is attempted from `joinpath(url, filename)`.
Arguments
=========
Keyword arguments
=================
TODO: describe keyword arguments.
"""
function regrid_bathymetry(target_grid;
height_above_water = nothing,
Expand Down Expand Up @@ -149,10 +145,10 @@ function regrid_bathymetry(target_grid;
intermediate_h = Field{Center, Center, Nothing}(intermediate_grid)
regrid!(intermediate_h, native_h)

one_degree_h = Field{Center, Center, Nothing}(target_grid)
regrid!(one_degree_h, intermediate_h)
target_h = Field{Center, Center, Nothing}(target_grid)
regrid!(target_h, intermediate_h)

return one_degree_h
return target_h
end

end # module
Expand Down

0 comments on commit 84ff94e

Please sign in to comment.