Skip to content

Commit

Permalink
Merge pull request #2850 from CliMA/gb/bench_io
Browse files Browse the repository at this point in the history
Disable default compression of NetCDF files
  • Loading branch information
Sbozzolo authored Mar 28, 2024
2 parents 4cf4786 + ff4630c commit 57d7e75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion perf/benchmark_netcdf_io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ for device in keys(timings)
NCDatasets.defDim(nc, "x", NUM)
NCDatasets.defDim(nc, "y", NUM)
NCDatasets.defDim(nc, "z", NUM)
v = NCDatasets.defVar(nc, "rhoa", Float32, ("time", "x", "y", "z"))
v = NCDatasets.defVar(nc, "rhoa", Float64, ("time", "x", "y", "z"))
outarray = Array(netcdf_writer.remappers["rhoa"]._interpolated_values)
v[1, :, :, :] = outarray

Expand Down
2 changes: 1 addition & 1 deletion src/diagnostics/netcdf_writer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ function NetCDFWriter(;
cspace,
num_points = (180, 90, 50),
disable_vertical_interpolation = false,
compression_level = 9,
compression_level = 0,
)
space = cspace
horizontal_space = Spaces.horizontal_space(space)
Expand Down

0 comments on commit 57d7e75

Please sign in to comment.