Skip to content

Commit

Permalink
Merge pull request #2517 from CliMA/gb/unbuffer_nc
Browse files Browse the repository at this point in the history
Do not buffer NetCDF writes
  • Loading branch information
Sbozzolo authored Jan 12, 2024
2 parents dc762cb + 6a529ca commit 97bf370
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
dt_save_state_to_disk: "10days"
dt: "150secs"
dt: "150secs"
t_end: "300days"
h_elem: 16
z_max: 55000.0
rayleigh_sponge: true
z_elem: 63
dz_bottom: 30.0
dz_top: 3000.0
vert_diff: "FriersonDiffusion"
vert_diff: "FriersonDiffusion"
implicit_diffusion: true
max_newton_iters_ode: 2
surface_setup: "DefaultExchangeCoefficients"
moist: "equil"
rad: "gray"
precip_model: "0M"
job_id: "longrun_aquaplanet_rhoe_equil_55km_nz63_gray_0M.yml"
surface_setup: "DefaultExchangeCoefficients"
moist: "equil"
rad: "gray"
precip_model: "0M"
job_id: "longrun_aquaplanet_rhoe_equil_55km_nz63_gray_0M"
toml: [toml/longrun_aquaplanet_rhoe_equil_55km_nz63_gray_0M.toml]
3 changes: 3 additions & 0 deletions src/diagnostics/netcdf_writer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -702,4 +702,7 @@ function write_field!(
elseif length(dim_names) == 1
v[time_index, :] = interpolated_field
end

# Write data to disk
NCDatasets.sync(writer.open_files[output_path])
end

0 comments on commit 97bf370

Please sign in to comment.