Abstract Interfaces

Abstract InterfaceLocationDescription
boundary_data_destroy_iface rdb_ocean_boundary_data
boundary_data_update_iface rdb_ocean_boundary_data

Refresh bc%data_* (and any other time-varying fields) for the current outer-step wall time t (s).

default_string_iface rdb_nml_schema

Captured default value, formatted for namelist output.

diag_emit_proc rdb_ocean_diag

Optional post-fire emit hook. Called by step once per cadence-fire AFTER the log line; used by the NetCDF writer to append a slice for the var that just fired. Kept abstract so the diag module stays free of NetCDF / I/O-server deps — rdb_ocean_diag_netcdf provides the concrete implementation.

diag_fill_proc rdb_ocean_diag

Fill routine signature. state_handle is polymorphic so this module stays decoupled from ocean_state_t (which itself composes ocean_diag_t). Implementations live in rdb_ocean_diag_fills and do a select type cast to the concrete ocean state inside the body. buf is the pre-allocated output buffer the manager owns.

diag_remap_proc rdb_ocean_diag

Vertical-remap routine signature. Called by the manager after fill when a var’s output_vgrid is not LAYER. layer_buf is the manager-owned native-grid scratch the fill wrote into; output_buf is the remap target on the configured output vgrid (z-levels / isopycnals / 2D). State-side data needed for the remap (e.g. h_layer, bathy) is fetched via select type on state_handle.

Read more…
group_check_iface rdb_nml_schema

Cross-key validation callback. Empty string = OK; a non-empty string is appended to the collected errors.

is_default_iface rdb_nml_schema

True if the current target value equals the captured default.

parse_tokens_iface rdb_nml_schema

Validate values and assign through the target pointer. On success err_msg is left unallocated.

value_string_iface rdb_nml_schema

Current target value, formatted for namelist output.