polaris.tasks.ocean.horiz_press_grad.task.HorizPressGradTask
- class polaris.tasks.ocean.horiz_press_grad.task.HorizPressGradTask(component, name)[source]
The two-column test case tests convergence of the TEOS-10 pressure-gradient computation in Omega at various horizontal and vertical resolutions. The test uses fixed horizontal gradients in various proprties (e.g. salinity and pseudo-height) between two adjacent ocean columns, as set by config options.
The test includes a a quasi-analytic solution to horizontal pressure-gradient acceleration (HPGA) used for verification. It also includes a set of Omega two-column initial conditions at various resolutions.
The test also includes single-time-step forward model runs at each resolution that output Omega’s version of the HPGA, and an analysis step that compares these runs with both the high-fidelity reference solution and the Python-computed HPGA from the initial conditions.
- __init__(component, name)[source]
Create the test case
- Parameters:
component (polaris.tasks.ocean.Ocean) – The ocean component that this task belongs to
name (str) – The name of the test case, which must have a corresponding <name>.cfg config file in the horiz_press_grad package that specifies which properties vary betweeen the columns.
Methods
__init__(component, name)Create the test case
add_step([step, subdir, symlink, run_by_default])Add a step to the task and component (if not already present)
Set config options for the test case
remove_step(step)Remove the given step from this task and the component
set_shared_config(config[, link])Replace the task's config parser with the shared config parser