Closed Yixiao-Zhang closed 1 year ago
A better solution might be to define a function for default_dimension_attributes
:
function find_default_dimension_attributes(grid::AbstractRectilinearGrid)
return default_dimension_attributes_rectilinear
end
function find_default_dimension_attributes(grid::AbstractCurvilinearGrid)
return default_dimension_attributes_curvilinear
end
function find_default_dimension_attributes(grid::ImmersedBoundaryGrid)
return find_default_dimension_attributes(grid.underlying_grid)
end
These lines do not work for
ImmersedBoundaryGrid
.https://github.com/CliMA/Oceananigans.jl/blob/be00e364f9dcd712b3d0c3d48e32b94b181a02fc/src/OutputWriters/netcdf_output_writer.jl#L391-L395
Changing the first line to
temporarily fixed my problem. Here is the script that I use for testing this issue: