FieldSlicer error #3210
-
Hi, I've been trying to set up an output writer to save surface fields for a 3D simulation. From what I've read, the following should work: simulation.output_writers[:surface_slice_writer] = NetCDFOutputWriter(model, merge(model.tracers, (; KE, p, zeta)); However, I get the error: "UndefVarError: NetCDFOutputWriter scheduled on TimeInterval(12 hours): which suggests it doesn't have field_slicer as a parameter. I've attached the full code below. Does anyone know what I'm doing wrong here? Thanks, Matt |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Please include which version of Oceananigans you are using. I have a feeling that you may be using deprecated syntax ie syntax that does not correspond to the version of Oceananigans you have installed. and |
Beta Was this translation helpful? Give feedback.
Please include which version of Oceananigans you are using. I have a feeling that you may be using deprecated syntax ie syntax that does not correspond to the version of Oceananigans you have installed.
indices
has replaced FieldSlicer quite a while now I think. See, eg,https://clima.github.io/OceananigansDocumentation/stable/generated/baroclinic_adjustment/#Diagnostics/Output
and
https://clima.github.io/OceananigansDocumentation/stable/appendix/library/#Oceananigans.OutputWriters.NetCDFOutputWriter-Tuple{Any,%20Any}