@@ -4,7 +4,7 @@ using Oceananigans.Grids: grid_name
44using Oceananigans. Utils: prettysummary, Time
55using Oceananigans. Fields: Center
66using Oceananigans. OutputReaders: FieldTimeSeries, update_field_time_series!, extract_field_time_series
7- using Oceananigans. TimeSteppers: tick!, Clock
7+ using Oceananigans. TimeSteppers: Clock, tick!
88
99using Adapt
1010using Thermodynamics. Parameters: AbstractThermodynamicsParameters
@@ -289,7 +289,7 @@ const PATP = PrescribedAtmosphereThermodynamicsParameters
289289# #### Prescribed atmosphere (as opposed to dynamically evolving / prognostic)
290290# ####
291291
292- struct PrescribedAtmosphere{FT, M, G, T, U, P, C, F, I, R, TP, TI}
292+ mutable struct PrescribedAtmosphere{FT, M, G, T, U, P, C, F, I, R, TP, TI}
293293 grid :: G
294294 clock :: Clock{T}
295295 metadata :: M
@@ -301,7 +301,7 @@ struct PrescribedAtmosphere{FT, M, G, T, U, P, C, F, I, R, TP, TI}
301301 downwelling_radiation :: R
302302 thermodynamics_parameters :: TP
303303 times :: TI
304- reference_height :: FT
304+ surface_layer_height :: FT
305305 boundary_layer_height :: FT
306306end
307307
315315function Base. show (io:: IO , pa:: PrescribedAtmosphere )
316316 print (io, summary (pa), " on " , grid_name (pa. grid), " :" , ' \n ' )
317317 print (io, " ├── times: " , prettysummary (pa. times), ' \n ' )
318- print (io, " ├── reference_height : " , prettysummary (pa. reference_height ), ' \n ' )
318+ print (io, " ├── surface_layer_height : " , prettysummary (pa. surface_layer_height ), ' \n ' )
319319 print (io, " └── boundary_layer_height: " , prettysummary (pa. boundary_layer_height))
320320end
321321
@@ -350,9 +350,9 @@ function default_atmosphere_pressure(grid, times)
350350 return pa
351351end
352352
353- @inline function time_step! (atmos:: PrescribedAtmosphere , Δt)
353+ @inline function time_step! (atmos:: PrescribedAtmosphere , Δt)
354354 tick! (atmos. clock, Δt)
355-
355+
356356 time = Time (atmos. clock. time)
357357 ftses = extract_field_time_series (atmos)
358358
@@ -364,14 +364,14 @@ end
364364end
365365
366366@inline thermodynamics_parameters (atmos:: PrescribedAtmosphere ) = atmos. thermodynamics_parameters
367- @inline reference_height (atmos:: PrescribedAtmosphere ) = atmos. reference_height
367+ @inline surface_layer_height (atmos:: PrescribedAtmosphere ) = atmos. surface_layer_height
368368@inline boundary_layer_height (atmos:: PrescribedAtmosphere ) = atmos. boundary_layer_height
369369
370370"""
371371 PrescribedAtmosphere(grid, times;
372372 clock = Clock{Float64}(time = 0),
373373 metadata = nothing,
374- reference_height = 10, # meters
374+ surface_layer_height = 10, # meters
375375 boundary_layer_height = 600 # meters,
376376 thermodynamics_parameters = PrescribedAtmosphereThermodynamicsParameters(FT),
377377 auxiliary_freshwater_flux = nothing,
@@ -387,7 +387,7 @@ state with data given at `times`.
387387function PrescribedAtmosphere (grid, times;
388388 clock = Clock {Float64} (time = 0 ),
389389 metadata = nothing ,
390- reference_height = convert (eltype (grid), 10 ),
390+ surface_layer_height = convert (eltype (grid), 10 ),
391391 boundary_layer_height = convert (eltype (grid), 600 ),
392392 thermodynamics_parameters = nothing ,
393393 auxiliary_freshwater_flux = nothing ,
@@ -413,7 +413,7 @@ function PrescribedAtmosphere(grid, times;
413413 downwelling_radiation,
414414 thermodynamics_parameters,
415415 times,
416- convert (FT, reference_height ),
416+ convert (FT, surface_layer_height ),
417417 convert (FT, boundary_layer_height))
418418end
419419
0 commit comments