Skip to content
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

Tiny conversion of code to English #3385

Merged
merged 3 commits into from
Nov 15, 2023
Merged
Changes from 1 commit
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
12 changes: 6 additions & 6 deletions src/OutputWriters/netcdf_output_writer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function default_dimensions(output, grid, indices, with_halos)
return native_dimensions_for_netcdf_output(grid, indices, TX, TY, TZ, Hx, Hy, Hz)
end

const default_dimension_attributes_rectilinear = Dict(
const default_rectilinear_dimension_attributes= Dict(
"xC" => Dict("longname" => "Locations of the cell centers in the x-direction.", "units" => "m"),
"xF" => Dict("longname" => "Locations of the cell faces in the x-direction.", "units" => "m"),
"yC" => Dict("longname" => "Locations of the cell centers in the y-direction.", "units" => "m"),
Expand All @@ -91,7 +91,7 @@ const default_dimension_attributes_rectilinear = Dict(
"particle_id" => Dict("longname" => "Particle ID")
)

const default_dimension_attributes_curvilinear = Dict(
const default_curvilinear_dimension_attributes = Dict(
"xC" => Dict("longname" => "Locations of the cell centers in the λ-direction.", "units" => "degrees"),
"xF" => Dict("longname" => "Locations of the cell faces in the λ-direction.", "units" => "degrees"),
"yC" => Dict("longname" => "Locations of the cell centers in the φ-direction.", "units" => "degrees"),
Expand Down Expand Up @@ -430,11 +430,11 @@ function NetCDFOutputWriter(model, outputs; filename, schedule,
return NetCDFOutputWriter(filepath, dataset, outputs, schedule, overwrite_existing, array_type, 0.0, verbose)
end

get_default_dimension_attributes(grid::RectilinearGrid) =
default_dimension_attributes_rectilinear
get_default_dimension_attributes(::RectilinearGrid) =
default_rectilinear_dimension_attributes

get_default_dimension_attributes(grid::AbstractCurvilinearGrid) =
default_dimension_attributes_curvilinear
get_default_dimension_attributes(::AbstractCurvilinearGrid) =
default_curvilinear_dimension_attributes

get_default_dimension_attributes(grid::ImmersedBoundaryGrid) =
get_default_dimension_attributes(grid.underlying_grid)
Expand Down