Project

EarthSciModels

Browsable catalog of .esm Earth-science model components.

Contents

NTiedtkeSaturationAdjustment

`cuadjtqn`, the moist-adjustment kernel of WRF's New Tiedtke scheme (`phys/physics_mmm/cu_ntiedtke.F90:3256-3402`, WRF 4.8). It is the single most reused routine in the scheme: the environmental saturation in `cuinin`, the test parcel in `cutypen`, the updraught condensation in `cuascn` and `cubasmcn`, and the downdraught evaporation in `cudlfsn` and `cuddrafn` all go through it, several hundred times per column per model step.

Domain
atmospheric_dynamics
Subdomain
ntiedtke
Type
model
.esm schema
1.2.0
Source
components/atmospheric_dynamics/ntiedtke/saturation_adjustment.esm
Tags
#atmospheric_dynamics #ntiedtke #model #wrf #convection #new-tiedtke #saturation-adjustment #mixed-phase

Description

cuadjtqn, the moist-adjustment kernel of WRF’s New Tiedtke scheme (phys/physics_mmm/cu_ntiedtke.F90:3256-3402, WRF 4.8). It is the single most reused routine in the scheme: the environmental saturation in cuinin, the test parcel in cutypen, the updraught condensation in cuascn and cubasmcn, and the downdraught evaporation in cudlfsn and cuddrafn all go through it, several hundred times per column per model step.

What it does is one thing in three dresses. Given a pressure and an unadjusted (T, q), it takes TWO Newton steps towards saturation, each step being

dq = (q - q\_sat(T,p)) / (1 + q\_sat dq\_sat/dT L/cp)
T \<- T + (L/cp) dq,   q \<- q - dq

with every thermodynamic quantity mixed-phase through the single liquid-fraction weight of moist_thermodynamics.esm. The three kcall modes differ only in which increments they admit:

* kcall = 0, the ENVIRONMENT (env): both steps unconditional and unsigned. Used to put the environmental temperature and humidity on the saturation curve at half levels. * kcall = 1, the UPDRAUGHT (up): CONDENSATION only. The whole adjustment is skipped unless the first increment is positive, so a subsaturated rising parcel is left alone rather than dried. * kcall = 2, the DOWNDRAUGHT (dd): EVAPORATION only. The first increment is clipped at zero, so a saturated sinking parcel is left alone rather than condensed into.

They are exposed here as three separate pairs of observeds computed from the same input, rather than as one pair behind a mode switch, because that is what they are: three call sites wanting three different behaviours out of one piece of thermodynamics. A component that needs the updraught form reads T_up; nothing has to carry a mode code.

THE SAME NEWTON STEP IS WRITTEN TWO DIFFERENT WAYS IN THE ONE ROUTINE, and both spellings are kept here. The kcall = 0 and kcall = 2 branches form the saturation correction with zcor = 1/(1 - eps q_sat) folded into q_sat first; the kcall = 1 branch keeps zcor = 1 - eps q_sat un-inverted and multiplies it through, giving (q zcor^2 - q_sat zcor)/(zcor^2 + q_sat zf). Multiply the first by zcor^2/zcor^2 and it becomes the second exactly – they are one formula, and the scheme simply never rewrote one of them. The templates newton_increment_folded and newton_increment_scaled carry the two spellings and say so; they agree to round-off, and the .esm keeps both only so that neither branch is a re-derivation.

SECOND-STEP GUARD. Both guarded modes discard the second Newton step when the first increment is below 1e-20 in magnitude – kcall = 1 sets it to zero outright, kcall = 2 merely re-clips it at zero. The asymmetry is in the Fortran and is reproduced.

The component is POINTWISE, over an index set pt of independent adjustment states, because that is how the routine is used: each of its several hundred invocations per step is an independent (p, T, q) problem, and the reference is a tape of exactly those invocations.

Reference

  • Tiedtke, M. (1989). A comprehensive mass flux scheme for cumulus parameterization in large-scale models. Mon. Wea. Rev. 117, 1779-1800.
  • NCAR/MMM-physics cu_ntiedtke.F90 (WRF 4.8 phys/physics_mmm submodule), subroutine cuadjtqn.

Observed

NameUnitsDefaultDescription
pPaPressure at which each state is adjusted. In the scheme this is a half-level pressure for the environment and the updraught and the same for the downdraught; the routine takes it as a bare argument.
T_inKUnadjusted temperature.
q_inkg/kgUnadjusted water-vapour mixing ratio.
ldcpm_inKL/cp at the input temperature, the temperature rise per unit condensate. Named because each mode multiplies its first increment by it.
c_env1kg/kgFirst Newton increment of the environmental mode: unconditional and of either sign.
T_env_midKEnvironmental temperature after the first Newton step.
q_env_midkg/kgEnvironmental mixing ratio after the first Newton step.
c_env2kg/kgSecond environmental increment, evaluated at the mid state and likewise unguarded.
T_envKEnvironmental temperature after both Newton steps – the kcall = 0 result, which cuinin uses to put the half-level environment on its saturation curve.
q_envkg/kgEnvironmental mixing ratio after both Newton steps.
T_up_midKUpdraught temperature after the first Newton step.
q_up_midkg/kgUpdraught mixing ratio after the first Newton step.
T_upKUpdraught temperature after the adjustment – the kcall = 1 result, the condensation-only form the rising parcel uses.
q_upkg/kgUpdraught mixing ratio after the adjustment.
c_dd1kg/kgFirst Newton increment of the downdraught mode, clipped at zero so that only evaporation is admitted.
T_dd_midKDowndraught temperature after the first Newton step.
q_dd_midkg/kgDowndraught mixing ratio after the first Newton step.
c_dd2_rawkg/kgSecond downdraught increment before its conditional clip.
c_dd2kg/kgSecond downdraught increment as applied. It is clipped at zero ONLY where the first increment was below 1e-20; everywhere else it is admitted with either sign. That asymmetry against the updraught mode, which zeroes the second step instead, is the Fortran’s and is not an oversight this transcription corrects.
T_ddKDowndraught temperature after the adjustment – the kcall = 2 result, the evaporation-only form the sinking parcel uses.
q_ddkg/kgDowndraught mixing ratio after the adjustment.

Observed expressions

$$ p = \mathrm{input_adj_p}\left(\right) $$

Pressure at which each state is adjusted. In the scheme this is a half-level pressure for the environment and the updraught and the same for the downdraught; the routine takes it as a bare argument.

$$ T_{in} = \mathrm{input_adj_T}\left(\right) $$

Unadjusted temperature.

$$ q_{in} = \mathrm{input_adj_q}\left(\right) $$

Unadjusted water-vapour mixing ratio.

$$ ldcpm_{in} = \mathrm{foeldcpm}\left(tt=T_{in}\right) $$

L/cp at the input temperature, the temperature rise per unit condensate. Named because each mode multiplies its first increment by it.

$$ c_{env1} = \mathrm{newton_increment_folded}\left(tt=T_{in}, qq=q_{in}, pp=p\right) $$

First Newton increment of the environmental mode: unconditional and of either sign.

$$ T_{env\,mid} = T_{in} + ldcpm_{in} \cdot c_{env1} $$

Environmental temperature after the first Newton step.

$$ q_{env\,mid} = q_{in} - c_{env1} $$

Environmental mixing ratio after the first Newton step.

$$ c_{env2} = \mathrm{newton_increment_folded}\left(tt=T_{env\,mid}, qq=q_{env\,mid}, pp=p\right) $$

Second environmental increment, evaluated at the mid state and likewise unguarded.

$$ T_{env} = T_{env\,mid} + \mathrm{foeldcpm}\left(tt=T_{env\,mid}\right) \cdot c_{env2} $$

Environmental temperature after both Newton steps – the kcall = 0 result, which cuinin uses to put the half-level environment on its saturation curve.

$$ q_{env} = q_{env\,mid} - c_{env2} $$

Environmental mixing ratio after both Newton steps.

$$ T_{up\,mid} = \mathrm{up_adjust_T_mid}\left(tt=T_{in}, qq=q_{in}, pp=p\right) $$

Updraught temperature after the first Newton step.

$$ q_{up\,mid} = \mathrm{up_adjust_q_mid}\left(tt=T_{in}, qq=q_{in}, pp=p\right) $$

Updraught mixing ratio after the first Newton step.

$$ T_{up} = \mathrm{up_adjust_T}\left(tt=T_{in}, qq=q_{in}, pp=p\right) $$

Updraught temperature after the adjustment – the kcall = 1 result, the condensation-only form the rising parcel uses.

$$ q_{up} = \mathrm{up_adjust_q}\left(tt=T_{in}, qq=q_{in}, pp=p\right) $$

Updraught mixing ratio after the adjustment.

$$ c_{dd1} = \mathrm{min}\left(\mathrm{newton_increment_folded}\left(tt=T_{in}, qq=q_{in}, pp=p\right), 0.0\right) $$

First Newton increment of the downdraught mode, clipped at zero so that only evaporation is admitted.

$$ T_{dd\,mid} = T_{in} + ldcpm_{in} \cdot c_{dd1} $$

Downdraught temperature after the first Newton step.

$$ q_{dd\,mid} = q_{in} - c_{dd1} $$

Downdraught mixing ratio after the first Newton step.

$$ c_{dd2\,raw} = \mathrm{newton_increment_folded}\left(tt=T_{dd\,mid}, qq=q_{dd\,mid}, pp=p\right) $$

Second downdraught increment before its conditional clip.

$$ c_{dd2} = \mathrm{ifelse}\left(\mathrm{<}\left(\left|c_{dd1}\right|, par.zcond_{eps}\right), \mathrm{min}\left(c_{dd2\,raw}, 0.0\right), c_{dd2\,raw}\right) $$

Second downdraught increment as applied. It is clipped at zero ONLY where the first increment was below 1e-20; everywhere else it is admitted with either sign. That asymmetry against the updraught mode, which zeroes the second step instead, is the Fortran’s and is not an oversight this transcription corrects.

$$ T_{dd} = T_{dd\,mid} + \mathrm{foeldcpm}\left(tt=T_{dd\,mid}\right) \cdot c_{dd2} $$

Downdraught temperature after the adjustment – the kcall = 2 result, the evaporation-only form the sinking parcel uses.

$$ q_{dd} = q_{dd\,mid} - c_{dd2} $$

Downdraught mixing ratio after the adjustment.

Raw .esm

Raw .esm JSON (this component)
{
  "expression_template_imports": [
    {
      "ref": "./moist_thermodynamics.esm"
    }
  ],
  "subsystems": {
    "wrf": {
      "ref": "../../../lib/wrf_constants.esm"
    },
    "par": {
      "ref": "./ntiedtke_parameters.esm"
    }
  },
  "variables": {
    "p": {
      "type": "unknown",
      "units": "Pa",
      "shape": [
        "pt"
      ],
      "description": "Pressure at which each state is adjusted. In the scheme this is a half-level pressure for the environment and the updraught and the same for the downdraught; the routine takes it as a bare argument."
    },
    "T_in": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "pt"
      ],
      "description": "Unadjusted temperature."
    },
    "q_in": {
      "type": "unknown",
      "units": "kg/kg",
      "shape": [
        "pt"
      ],
      "description": "Unadjusted water-vapour mixing ratio."
    },
    "ldcpm_in": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "pt"
      ],
      "description": "L/cp at the input temperature, the temperature rise per unit condensate. Named because each mode multiplies its first increment by it."
    },
    "c_env1": {
      "type": "unknown",
      "units": "kg/kg",
      "shape": [
        "pt"
      ],
      "description": "First Newton increment of the environmental mode: unconditional and of either sign."
    },
    "T_env_mid": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "pt"
      ],
      "description": "Environmental temperature after the first Newton step."
    },
    "q_env_mid": {
      "type": "unknown",
      "units": "kg/kg",
      "shape": [
        "pt"
      ],
      "description": "Environmental mixing ratio after the first Newton step."
    },
    "c_env2": {
      "type": "unknown",
      "units": "kg/kg",
      "shape": [
        "pt"
      ],
      "description": "Second environmental increment, evaluated at the mid state and likewise unguarded."
    },
    "T_env": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "pt"
      ],
      "description": "Environmental temperature after both Newton steps -- the `kcall = 0` result, which `cuinin` uses to put the half-level environment on its saturation curve."
    },
    "q_env": {
      "type": "unknown",
      "units": "kg/kg",
      "shape": [
        "pt"
      ],
      "description": "Environmental mixing ratio after both Newton steps."
    },
    "T_up_mid": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "pt"
      ],
      "description": "Updraught temperature after the first Newton step."
    },
    "q_up_mid": {
      "type": "unknown",
      "units": "kg/kg",
      "shape": [
        "pt"
      ],
      "description": "Updraught mixing ratio after the first Newton step."
    },
    "T_up": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "pt"
      ],
      "description": "Updraught temperature after the adjustment -- the `kcall = 1` result, the condensation-only form the rising parcel uses."
    },
    "q_up": {
      "type": "unknown",
      "units": "kg/kg",
      "shape": [
        "pt"
      ],
      "description": "Updraught mixing ratio after the adjustment."
    },
    "c_dd1": {
      "type": "unknown",
      "units": "kg/kg",
      "shape": [
        "pt"
      ],
      "description": "First Newton increment of the downdraught mode, clipped at zero so that only evaporation is admitted."
    },
    "T_dd_mid": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "pt"
      ],
      "description": "Downdraught temperature after the first Newton step."
    },
    "q_dd_mid": {
      "type": "unknown",
      "units": "kg/kg",
      "shape": [
        "pt"
      ],
      "description": "Downdraught mixing ratio after the first Newton step."
    },
    "c_dd2_raw": {
      "type": "unknown",
      "units": "kg/kg",
      "shape": [
        "pt"
      ],
      "description": "Second downdraught increment before its conditional clip."
    },
    "c_dd2": {
      "type": "unknown",
      "units": "kg/kg",
      "shape": [
        "pt"
      ],
      "description": "Second downdraught increment as applied. It is clipped at zero ONLY where the first increment was below 1e-20; everywhere else it is admitted with either sign. That asymmetry against the updraught mode, which zeroes the second step instead, is the Fortran's and is not an oversight this transcription corrects."
    },
    "T_dd": {
      "type": "unknown",
      "units": "K",
      "shape": [
        "pt"
      ],
      "description": "Downdraught temperature after the adjustment -- the `kcall = 2` result, the evaporation-only form the sinking parcel uses."
    },
    "q_dd": {
      "type": "unknown",
      "units": "kg/kg",
      "shape": [
        "pt"
      ],
      "description": "Downdraught mixing ratio after the adjustment."
    }
  },
  "equations": [
    {
      "lhs": "p",
      "rhs": {
        "op": "input_adj_p",
        "args": []
      }
    },
    {
      "lhs": "T_in",
      "rhs": {
        "op": "input_adj_T",
        "args": []
      }
    },
    {
      "lhs": "q_in",
      "rhs": {
        "op": "input_adj_q",
        "args": []
      }
    },
    {
      "lhs": "ldcpm_in",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "foeldcpm",
        "bindings": {
          "tt": "T_in"
        }
      }
    },
    {
      "lhs": "c_env1",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "newton_increment_folded",
        "bindings": {
          "tt": "T_in",
          "qq": "q_in",
          "pp": "p"
        }
      }
    },
    {
      "lhs": "T_env_mid",
      "rhs": {
        "op": "+",
        "args": [
          "T_in",
          {
            "op": "*",
            "args": [
              "ldcpm_in",
              "c_env1"
            ]
          }
        ]
      }
    },
    {
      "lhs": "q_env_mid",
      "rhs": {
        "op": "-",
        "args": [
          "q_in",
          "c_env1"
        ]
      }
    },
    {
      "lhs": "c_env2",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "newton_increment_folded",
        "bindings": {
          "tt": "T_env_mid",
          "qq": "q_env_mid",
          "pp": "p"
        }
      }
    },
    {
      "lhs": "T_env",
      "rhs": {
        "op": "+",
        "args": [
          "T_env_mid",
          {
            "op": "*",
            "args": [
              {
                "op": "apply_expression_template",
                "args": [],
                "name": "foeldcpm",
                "bindings": {
                  "tt": "T_env_mid"
                }
              },
              "c_env2"
            ]
          }
        ]
      }
    },
    {
      "lhs": "q_env",
      "rhs": {
        "op": "-",
        "args": [
          "q_env_mid",
          "c_env2"
        ]
      }
    },
    {
      "lhs": "T_up_mid",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "up_adjust_T_mid",
        "bindings": {
          "tt": "T_in",
          "qq": "q_in",
          "pp": "p"
        }
      }
    },
    {
      "lhs": "q_up_mid",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "up_adjust_q_mid",
        "bindings": {
          "tt": "T_in",
          "qq": "q_in",
          "pp": "p"
        }
      }
    },
    {
      "lhs": "T_up",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "up_adjust_T",
        "bindings": {
          "tt": "T_in",
          "qq": "q_in",
          "pp": "p"
        }
      }
    },
    {
      "lhs": "q_up",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "up_adjust_q",
        "bindings": {
          "tt": "T_in",
          "qq": "q_in",
          "pp": "p"
        }
      }
    },
    {
      "lhs": "c_dd1",
      "rhs": {
        "op": "min",
        "args": [
          {
            "op": "apply_expression_template",
            "args": [],
            "name": "newton_increment_folded",
            "bindings": {
              "tt": "T_in",
              "qq": "q_in",
              "pp": "p"
            }
          },
          0.0
        ]
      }
    },
    {
      "lhs": "T_dd_mid",
      "rhs": {
        "op": "+",
        "args": [
          "T_in",
          {
            "op": "*",
            "args": [
              "ldcpm_in",
              "c_dd1"
            ]
          }
        ]
      }
    },
    {
      "lhs": "q_dd_mid",
      "rhs": {
        "op": "-",
        "args": [
          "q_in",
          "c_dd1"
        ]
      }
    },
    {
      "lhs": "c_dd2_raw",
      "rhs": {
        "op": "apply_expression_template",
        "args": [],
        "name": "newton_increment_folded",
        "bindings": {
          "tt": "T_dd_mid",
          "qq": "q_dd_mid",
          "pp": "p"
        }
      }
    },
    {
      "lhs": "c_dd2",
      "rhs": {
        "op": "ifelse",
        "args": [
          {
            "op": "<",
            "args": [
              {
                "op": "abs",
                "args": [
                  "c_dd1"
                ]
              },
              "par.zcond_eps"
            ]
          },
          {
            "op": "min",
            "args": [
              "c_dd2_raw",
              0.0
            ]
          },
          "c_dd2_raw"
        ]
      }
    },
    {
      "lhs": "T_dd",
      "rhs": {
        "op": "+",
        "args": [
          "T_dd_mid",
          {
            "op": "*",
            "args": [
              {
                "op": "apply_expression_template",
                "args": [],
                "name": "foeldcpm",
                "bindings": {
                  "tt": "T_dd_mid"
                }
              },
              "c_dd2"
            ]
          }
        ]
      }
    },
    {
      "lhs": "q_dd",
      "rhs": {
        "op": "-",
        "args": [
          "q_dd_mid",
          "c_dd2"
        ]
      }
    }
  ],
  "tests": [
    {
      "id": "step1_kcall0_env_adjustments",
      "description": "The ENVIRONMENT (kcall = 0) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the unconditional two-step form `cuinin` uses to put the half-level environment on its saturation curve. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 1: 06 LST, deep convection (ktype 1), the strongest convective step of the run: cloud base at kernel level 44, top at 5, |rthcuten| up to 2.6e-2 K/s and 0.49 mm of convective rain over the step. Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step1_kcall0_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_env_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    221.64209263426812,
                    222.71274733839726,
                    223.38922525065362,
                    224.26385786895685,
                    226.51477516697523,
                    230.28514622483468,
                    232.31409903550949,
                    236.11972243116412,
                    239.588761538156,
                    242.77699665458445,
                    248.46627635183475,
                    251.02055430393406,
                    253.40131955427537,
                    255.63430106888288,
                    257.76375603957933,
                    259.76812619207215,
                    263.48728898652075,
                    265.20260758241625,
                    266.86411264463317,
                    268.4293010783852,
                    269.9508087117344,
                    272.7771773264861,
                    274.1020917517543,
                    275.3683892364422,
                    276.58886206592825,
                    277.7648540793314,
                    278.8949737201963,
                    281.0402143424342,
                    282.054424406118,
                    283.0397709423482,
                    283.98961904583695,
                    284.91023048362115,
                    286.66521514051084,
                    287.5030314733996,
                    288.31620617903616,
                    289.1039462819455,
                    289.87291064954917,
                    290.6131282648029,
                    292.04603290693933,
                    292.7297019368264,
                    293.3969323636228,
                    294.0487647572094,
                    294.68450292607037,
                    295.90932202124435,
                    296.50216117009796,
                    297.07932493397453,
                    297.6501756850611,
                    298.206988345576
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.9820698834557605e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_env_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    9.794908565431603e-05,
                    0.00012973611901775104,
                    0.00010775304560448748,
                    0.00018761066485899523,
                    0.00030743346054907037,
                    0.0006378654200078262,
                    0.00025622039103717707,
                    0.0003620448147908236,
                    0.0004905875764005655,
                    0.0006428347797425585,
                    0.001020690351750957,
                    0.0012471106261122457,
                    0.001502420523722307,
                    0.0017872011699968718,
                    0.002105403888361435,
                    0.002448935973437055,
                    0.003209613701773863,
                    0.0036152857226032027,
                    0.0040431932617884065,
                    0.004473211010015226,
                    0.0049178430283939355,
                    0.00579420943879273,
                    0.006227610861206057,
                    0.006665984141499347,
                    0.007112973467933975,
                    0.007567297769209411,
                    0.008026148508521734,
                    0.008962134440423892,
                    0.009435059223821119,
                    0.009915369304145334,
                    0.0103971935059159,
                    0.010883188762895204,
                    0.011863086684135469,
                    0.012356824542333665,
                    0.012852802969572258,
                    0.013349086014311139,
                    0.013850222465168718,
                    0.014346248320843318,
                    0.0153538552550384,
                    0.015855087117155373,
                    0.016358526270677055,
                    0.016864453894775595,
                    0.017371371343861748,
                    0.018386687011827465,
                    0.01889779023059387,
                    0.01940724453031991,
                    0.019925469601064404,
                    0.020442809128252963
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.0442809128252963e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_env",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    221.64206842973155,
                    222.71267636900632,
                    223.38920159584714,
                    224.2635838840304,
                    226.51322489631443,
                    230.26779179851542,
                    232.31395567266452,
                    236.11944466769106,
                    239.5882822289016,
                    242.7762431427186,
                    248.4647773888918,
                    251.0196059602951,
                    253.40231987398835,
                    255.63719718070823,
                    257.7683046919399,
                    259.7738971163893,
                    263.4939391466786,
                    265.20888592656803,
                    266.86950826590885,
                    268.4333719905049,
                    269.9531343057015,
                    272.77499078855084,
                    274.09916481332715,
                    275.3655171165297,
                    276.586054138456,
                    277.7621181549274,
                    278.89231661105475,
                    281.03772622595415,
                    282.0520249973964,
                    283.03746021443555,
                    283.98739777280514,
                    284.9080978563197,
                    286.6632563259931,
                    287.50115679716134,
                    288.3144135314869,
                    289.1022334452666,
                    289.8712747241869,
                    290.6115673433824,
                    292.04461708469694,
                    292.7283548295802,
                    293.3956511357533,
                    294.04754642764976,
                    294.6833446619311,
                    295.9082757751778,
                    296.5011669104887,
                    297.07838028238433,
                    297.6492779926162,
                    298.20613539543683
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.9820613539543683e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_env",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    9.795761669185037e-05,
                    0.0001297611326153689,
                    0.00010776138288628579,
                    0.00018770723252868685,
                    0.000307979862962671,
                    0.0006439820941263195,
                    0.0002562709201521854,
                    0.0003621427142324725,
                    0.0004907565118904086,
                    0.0006431003596265014,
                    0.0010212186704443534,
                    0.0012474449331242206,
                    0.001502067092882456,
                    0.0017861732664382008,
                    0.0021037788766881706,
                    0.002446857430247184,
                    0.0032071690085715226,
                    0.003612950194633393,
                    0.004041159823965643,
                    0.004471655679003511,
                    0.004916941373443973,
                    0.005795083948008504,
                    0.006228786905066086,
                    0.006667138159280209,
                    0.007114101693192318,
                    0.007568397063634954,
                    0.008027216134974795,
                    0.008963134165625582,
                    0.009436023306245449,
                    0.009916297754620631,
                    0.010398086013420073,
                    0.010884045652544916,
                    0.01186387373580871,
                    0.012357577787246188,
                    0.012853523255357564,
                    0.013349774232088727,
                    0.013850879779979288,
                    0.0143468754990701,
                    0.015354424132415398,
                    0.015855628384846904,
                    0.016359041068035006,
                    0.016864943419592666,
                    0.017371836734392923,
                    0.01838710739349701,
                    0.018898189724104893,
                    0.019407624091328856,
                    0.01992583029388875,
                    0.020443151843618872
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.0443151843618875e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step364_kcall0_env_adjustments",
      "description": "The ENVIRONMENT (kcall = 0) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the unconditional two-step form `cuinin` uses to put the half-level environment on its saturation curve. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 364: 12 LST, deep convection (ktype 1) but barely active: 1.5e-4 mm of rain. It has the COLDEST adjustment in the dumped set, 184.8 K, so it is the test that reaches furthest into the pure-ice branch of the phase weight. Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step364_kcall0_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_env_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    218.35678672226345,
                    221.9424943760628,
                    224.14819405092425,
                    225.97230937727113,
                    227.01163768352595,
                    230.77019931316923,
                    234.26020726836367,
                    238.2697652581838,
                    242.05429758993225,
                    245.418601040637,
                    250.188032531899,
                    252.86113631854252,
                    255.20735841792003,
                    257.40746934602674,
                    259.4820558332689,
                    261.45564895219957,
                    265.1238033529713,
                    266.82090264544007,
                    268.446753501743,
                    270.00201430508605,
                    271.49423251511297,
                    274.0852087960576,
                    275.4620748904205,
                    276.6015803643945,
                    277.65515228559,
                    278.6429265818528,
                    279.56142243489995,
                    281.2394021821712,
                    282.18752790631214,
                    283.24804005540074,
                    284.2265635905192,
                    285.17382569484045,
                    287.0086423604616,
                    287.85972372269504,
                    288.6191982855432,
                    289.23608620645945,
                    289.6734389191998,
                    290.4184805360809,
                    291.95043196387576,
                    292.8320511176703,
                    293.6910749196038,
                    294.52550860265876,
                    295.3353768237574,
                    296.8826769329819,
                    297.6216006912672,
                    298.33960935630364,
                    299.0281827434237,
                    299.7106740521768
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.997106740521768e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_env_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    7.423677565038988e-05,
                    0.00010174668678162468,
                    0.00018494440899407115,
                    0.00014816591584957173,
                    0.00032641358657515174,
                    0.0006743087093166998,
                    0.0003198899686503884,
                    0.00045882010260240604,
                    0.0006383217980888109,
                    0.0008456788804984773,
                    0.0012112413532584197,
                    0.0014965558162610677,
                    0.00179484273526089,
                    0.002123705941977568,
                    0.002481524740026829,
                    0.0028683818811774987,
                    0.003712987417404284,
                    0.004158197495824773,
                    0.004616174702890616,
                    0.0050804414144100425,
                    0.0055470927563515205,
                    0.006374037472924197,
                    0.006869369902929766,
                    0.007279888789054425,
                    0.00767088311658643,
                    0.008048780488404475,
                    0.008408077785762148,
                    0.009086921911138164,
                    0.009522724853966512,
                    0.010057772683596337,
                    0.010565826831138868,
                    0.01107820562283228,
                    0.012136437470758672,
                    0.012650803577810859,
                    0.013111251673820698,
                    0.013467225242943538,
                    0.013678247514474757,
                    0.014173326857593406,
                    0.01526553218336694,
                    0.015961077250144586,
                    0.016665170496540035,
                    0.01737429268254283,
                    0.01808680256092804,
                    0.019516528170375653,
                    0.020232048904837152,
                    0.02094855504159036,
                    0.02165347078959205,
                    0.022375468346699467
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.237546834669947e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_env",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    218.3567712320664,
                    221.9424675340557,
                    224.14793040695008,
                    225.97225364623492,
                    227.00982061976106,
                    230.75016480043962,
                    234.25995352390743,
                    238.2692638312116,
                    242.05339533671446,
                    245.41718245451628,
                    250.18612063392675,
                    252.86152397630156,
                    255.20991772059872,
                    257.41191933992593,
                    259.4879275291792,
                    261.4623700644715,
                    265.13036026308316,
                    266.8264958212294,
                    268.4508653514451,
                    270.00419518568947,
                    271.49409691122656,
                    274.0818789379823,
                    275.4587941750789,
                    276.5984096758698,
                    277.6521050916069,
                    278.6400091495705,
                    279.5586395960058,
                    281.23688739699446,
                    282.1851146842236,
                    283.2457056313384,
                    284.22431658886677,
                    285.17166607989105,
                    287.00665168587744,
                    287.8578177910635,
                    288.61738135033323,
                    289.2343644158758,
                    289.67181530426933,
                    290.4169306481043,
                    291.949017979965,
                    292.8306933383188,
                    293.68977246644215,
                    294.5242606018816,
                    295.3341821916225,
                    296.8815852131373,
                    297.62055823475674,
                    298.3386145845366,
                    299.0272342571535,
                    299.7097564878399
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.9970975648783993e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_env",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    7.42422352654549e-05,
                    0.00010175614741184105,
                    0.00018503733193162778,
                    0.00014818555859549452,
                    0.000327054021856493,
                    0.0006813699963471844,
                    0.000319979402442067,
                    0.00045899683361769807,
                    0.0006386398027755694,
                    0.0008461788698873351,
                    0.0012119152135613626,
                    0.0014964189520844857,
                    0.001793935326731545,
                    0.0021221181530883437,
                    0.0024794126148780684,
                    0.002865940674590572,
                    0.00371054967599596,
                    0.004156090360081643,
                    0.004614603479024046,
                    0.005079595427776148,
                    0.005547146197506908,
                    0.006375375409898847,
                    0.006870688094354038,
                    0.007281162771703659,
                    0.007672107479128825,
                    0.008049952712695506,
                    0.008409195930429833,
                    0.00908793235182217,
                    0.009523694486601685,
                    0.010058710655184589,
                    0.010566729676402813,
                    0.011079073356118949,
                    0.012137237323806577,
                    0.012651569381140414,
                    0.013111981718388054,
                    0.01346791705840004,
                    0.013678899882953809,
                    0.014173949602582392,
                    0.015266100322102294,
                    0.015961622805888014,
                    0.01666569382222038,
                    0.017374794129255088,
                    0.018087282564119823,
                    0.019516966823409202,
                    0.02023246776386304,
                    0.020948954740886358,
                    0.021653851891375427,
                    0.02237583702405003
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.237583702405003e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step601_kcall0_env_adjustments",
      "description": "The ENVIRONMENT (kcall = 0) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the unconditional two-step form `cuinin` uses to put the half-level environment on its saturation curve. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 601: 16 LST, deep convection (ktype 1) with 3.4e-2 mm of rain and a cloud top that differs between the two columns (kernel level 11 and 29), so the two columns are genuinely different states. Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step601_kcall0_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_env_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    218.14746564249913,
                    221.20767892955038,
                    223.8969690057229,
                    226.62828312353375,
                    227.1128828737039,
                    231.17273335796222,
                    236.62031674007602,
                    240.41322410592602,
                    243.96822131305169,
                    247.57814623540932,
                    253.15008963298808,
                    255.47617223588233,
                    257.6355406344521,
                    259.8117369862316,
                    261.8183772093132,
                    263.7561243791107,
                    267.08556495103966,
                    268.74563093352464,
                    270.63309206801443,
                    272.12336611615365,
                    273.5310891046693,
                    275.6051885123298,
                    276.69297617154825,
                    277.7955545786514,
                    278.85766250033026,
                    279.831982992424,
                    280.71219757115347,
                    281.98529841024646,
                    283.0184984927299,
                    283.8656197013952,
                    284.88243358248775,
                    285.89622858742337,
                    287.2269494955724,
                    287.82722174603225,
                    288.55550373080473,
                    289.8469130964683,
                    290.38640617331237,
                    291.24334726529105,
                    292.53971902418203,
                    293.45885734343227,
                    294.29822653196476,
                    295.1129485552117,
                    295.9108184209976,
                    296.51921776331966,
                    296.65855692409974,
                    296.95466134260346,
                    297.5350858815909,
                    297.7240719818475
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.977240719818475e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_env_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    7.22307119949189e-05,
                    9.268811718804162e-05,
                    0.00017927605729771212,
                    0.00016042268288017126,
                    0.00033037365087960587,
                    0.0007059458973559256,
                    0.0004165205930085517,
                    0.0005784275977662752,
                    0.0007799719360244036,
                    0.001053362278973515,
                    0.0016240386868276015,
                    0.0019358706684534579,
                    0.0022728739437073452,
                    0.002672800257830016,
                    0.00308820227891571,
                    0.0035386845936985186,
                    0.004396458819536357,
                    0.004881559182952875,
                    0.005501675604053798,
                    0.00598510273675916,
                    0.006452785393318998,
                    0.007109358066174526,
                    0.007497398458434475,
                    0.0079209838772375,
                    0.0083430303770264,
                    0.008740262974990056,
                    0.009101152382761372,
                    0.009562371718360168,
                    0.010075048813429336,
                    0.010482522988373879,
                    0.011039849620972797,
                    0.011619676110249411,
                    0.012313122726498845,
                    0.012801596641952843,
                    0.013234322564083838,
                    0.014005787663618496,
                    0.014316794678572923,
                    0.014937206601345437,
                    0.015845021770702135,
                    0.016601866731283964,
                    0.01730887685918243,
                    0.01801937563566126,
                    0.01873835816275848,
                    0.01876105885236239,
                    0.01943216221233572,
                    0.018954401110266878,
                    0.020127501942319787,
                    0.020540073650068113
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.0540073650068113e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_env",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    218.14745127427454,
                    221.20765809883636,
                    223.8967265416574,
                    226.62821421233082,
                    227.1110066733865,
                    231.1501907590147,
                    236.61982298832564,
                    240.41234380078384,
                    243.96678407231934,
                    247.57584459174845,
                    253.15040685413692,
                    255.47893046366553,
                    257.64032773644885,
                    259.8180890393244,
                    261.82554159129506,
                    263.7633713676232,
                    267.091083766753,
                    268.7493866258925,
                    270.63405000108554,
                    272.1215811739851,
                    273.5268986716955,
                    275.60140879800997,
                    276.6893561696246,
                    277.7920827052687,
                    278.85433431423326,
                    279.82881130206954,
                    280.7091891353893,
                    281.98266121244296,
                    283.0159578915819,
                    283.8632043266789,
                    284.88010175173645,
                    285.89398717892146,
                    287.22493744693634,
                    287.8251504191516,
                    288.5535349247468,
                    289.84514276700713,
                    290.38473377967694,
                    291.2417437307191,
                    292.53823627139667,
                    293.45746050534194,
                    294.29688881489403,
                    295.1116689429445,
                    295.90949918138483,
                    296.518292161534,
                    296.6573894524125,
                    296.9538463374858,
                    297.53404755728127,
                    297.7229444220629
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.977229444220629e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_env",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    7.223577616389452e-05,
                    9.269545910110515e-05,
                    0.00017936151524641756,
                    0.00016044697105678702,
                    0.00033103492920200637,
                    0.0007138911747744468,
                    0.00041669461884477865,
                    0.0005787378667190167,
                    0.0007804785003456841,
                    0.0010541735074146878,
                    0.0016239266477422326,
                    0.0019348920937808276,
                    0.002271164523296408,
                    0.0026705119505593777,
                    0.0030855948766010297,
                    0.0035360158207616036,
                    0.0043943751015883365,
                    0.004880120062590934,
                    0.005501301580362785,
                    0.0059858111874029835,
                    0.006454469109287868,
                    0.007110876755388225,
                    0.0074988529752074,
                    0.007922378875962673,
                    0.008344367642200166,
                    0.008741537360174469,
                    0.009102361172251407,
                    0.00956343134443762,
                    0.010076069626970625,
                    0.010483493485934895,
                    0.01104078655056866,
                    0.011620576708185476,
                    0.012313931167640825,
                    0.012802428901093477,
                    0.0132351136303579,
                    0.014006498981996,
                    0.01431746664633564,
                    0.01493785090153643,
                    0.015845617540771295,
                    0.016602427980828657,
                    0.017309414353901445,
                    0.01801988978387021,
                    0.01873888823323489,
                    0.018761430759159866,
                    0.019432631302459674,
                    0.018954728579323152,
                    0.020127919141027385,
                    0.020540526703589558
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.0540526703589558e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step1730_kcall0_env_adjustments",
      "description": "The ENVIRONMENT (kcall = 0) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the unconditional two-step form `cuinin` uses to put the half-level environment on its saturation curve. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 1730: 10 LST on the second day, deep convection (ktype 1) with a high cloud base (kernel level 48). Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step1730_kcall0_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_env_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    218.85373450655177,
                    220.60132832962313,
                    222.8459512341487,
                    225.37532825773837,
                    227.3809009200451,
                    231.11065894418007,
                    234.97352943111815,
                    239.03375729063853,
                    242.6809744521544,
                    246.2292543115001,
                    252.97644197667543,
                    255.56122173695258,
                    257.2977301832041,
                    260.08571929637617,
                    262.2092835340675,
                    264.0267200365397,
                    267.364132403392,
                    268.86021476893904,
                    270.3008169609534,
                    271.6163010568885,
                    272.8284679472664,
                    275.0329911989319,
                    276.25497406431657,
                    277.33127827168863,
                    278.36088618690155,
                    279.35364792810924,
                    280.338874251732,
                    282.2707158066132,
                    283.1435649842274,
                    284.0457364558076,
                    284.966036023747,
                    285.71455458709977,
                    287.15623211369336,
                    287.77516771689335,
                    288.31705497767786,
                    288.89727618919244,
                    289.28051212851864,
                    289.934608535714,
                    291.25856260936575,
                    291.99326870337325,
                    292.8236445768616,
                    293.67533064958866,
                    294.4775146752796,
                    295.9833167009516,
                    296.71886067472354,
                    297.43434571751413,
                    298.1627620873128,
                    298.8412978176744
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.988412978176744e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_env_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    7.92115460851262e-05,
                    8.578171016269912e-05,
                    0.00015724789223159837,
                    0.00013774535768053088,
                    0.0003412110407578166,
                    0.000700980209815847,
                    0.00034667510570168374,
                    0.0004985921036598401,
                    0.0006818982288214106,
                    0.0009188257855286075,
                    0.0015968589204391013,
                    0.0019525932377343043,
                    0.002200375093250907,
                    0.0027428482922042465,
                    0.003201404119770341,
                    0.0036255638154686297,
                    0.004502325412811095,
                    0.004928783922370408,
                    0.0053600237334705154,
                    0.00575998599900048,
                    0.006129875002267576,
                    0.006824974346911781,
                    0.007269186671306631,
                    0.00766534269152493,
                    0.0080599957802858,
                    0.008456747057672727,
                    0.00887184778617609,
                    0.009748244906532918,
                    0.01015892556152133,
                    0.010611150659560352,
                    0.011099856044321843,
                    0.01148248174631162,
                    0.012255049884458172,
                    0.012582594128378935,
                    0.012858766704490654,
                    0.013178188415175353,
                    0.013339469194447548,
                    0.013743903437082367,
                    0.014614522443369207,
                    0.015143678605532954,
                    0.01578848678221385,
                    0.016483482119080704,
                    0.017156492478527744,
                    0.018476079210412045,
                    0.01915491901829779,
                    0.019835650551435883,
                    0.02055801847707288,
                    0.021243632917971045
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.1243632917971047e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_env",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    218.85371600094612,
                    220.6013114603872,
                    222.8457810146978,
                    225.37528241808562,
                    227.37885796162635,
                    231.08852056966734,
                    234.97321810894945,
                    239.03314246846426,
                    242.67992071056477,
                    246.22754632643662,
                    252.97660169303492,
                    255.5640601983763,
                    257.30221399645364,
                    260.0922514103469,
                    262.216574385739,
                    264.0339504648577,
                    267.36940807796316,
                    268.86382177106293,
                    270.30236893852947,
                    271.6156246043538,
                    272.8251008599499,
                    275.0293785197744,
                    276.2514726872645,
                    277.32791995867865,
                    278.3576717906236,
                    279.3505754688566,
                    280.33593553656374,
                    282.2680261809494,
                    283.1410022326449,
                    284.04328906850924,
                    284.9636950222674,
                    285.7123351513599,
                    287.1542353939464,
                    287.7732805029084,
                    288.3152750768169,
                    288.8955922342013,
                    289.27893043892976,
                    289.93309800480586,
                    291.2571938915238,
                    291.99196114308813,
                    292.82239005573183,
                    293.67412614120514,
                    294.4763606454012,
                    295.9822614749668,
                    296.71785218733214,
                    297.43338252069043,
                    298.1618415991198,
                    298.84041957669297
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.98840419576693e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_env",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    7.921806849946429e-05,
                    8.578765582848272e-05,
                    0.00015730788712228002,
                    0.00013776151414761283,
                    0.00034193109399698756,
                    0.000708783015850247,
                    0.00034678483311166905,
                    0.0004988088015103809,
                    0.0006822696265150215,
                    0.000919427775351859,
                    0.0015968025235735465,
                    0.0019515859829128779,
                    0.0021987758307066554,
                    0.0027404921197593333,
                    0.0031987447823181355,
                    0.003622896332762101,
                    0.004500328775907398,
                    0.004927400285731009,
                    0.005359419861664336,
                    0.0057602529492163795,
                    0.006131222498536925,
                    0.006826425921397249,
                    0.007270593524606168,
                    0.007666692061692349,
                    0.008061287324710275,
                    0.008457981571800435,
                    0.008873028561930707,
                    0.009749325598124657,
                    0.010159955275107175,
                    0.010612134019776833,
                    0.011100796658716328,
                    0.0114833735155919,
                    0.012255852166452504,
                    0.012583352410958102,
                    0.012859481868656585,
                    0.013178865028290791,
                    0.013340104717324356,
                    0.013744510368401266,
                    0.014615072394198113,
                    0.015144203983255512,
                    0.0157889908488038,
                    0.016483966090549206,
                    0.017156956167732905,
                    0.018476503200212744,
                    0.01915532422853166,
                    0.019836037563919648,
                    0.020558388329228832,
                    0.02124398579519737
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.1243985795197373e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step2101_kcall0_env_adjustments",
      "description": "The ENVIRONMENT (kcall = 0) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the unconditional two-step form `cuinin` uses to put the half-level environment on its saturation curve. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 2101: 17 LST on the second day, deep convection (ktype 1) with 5.5e-3 mm of rain. Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step2101_kcall0_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_env_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    218.81058733002527,
                    220.7151111146084,
                    222.95193459234306,
                    225.33607977574846,
                    227.71871324160387,
                    231.3813985340812,
                    234.99479048215932,
                    239.7927512138034,
                    243.81887533913218,
                    247.0729755656413,
                    253.86433230663167,
                    256.6437884305093,
                    258.97402805321207,
                    261.1522552817665,
                    263.2229778814864,
                    265.12183257330935,
                    268.26519001102685,
                    269.6815133902123,
                    270.906282170044,
                    272.1382543099602,
                    273.39588532310444,
                    275.79804176051863,
                    276.86982891200046,
                    277.9849934847332,
                    279.14090328650667,
                    280.1564839714323,
                    281.23076737428664,
                    282.9495667776198,
                    283.86609048860475,
                    284.78117131939877,
                    285.70931262370823,
                    286.35572944053393,
                    287.43028818859943,
                    287.78244516473336,
                    288.3232197759391,
                    289.1107425118904,
                    289.97927318388713,
                    290.82756503395586,
                    292.2367588281278,
                    293.1701600590637,
                    293.9388265332015,
                    294.79601036922287,
                    295.63802461584623,
                    297.1459235127823,
                    297.2661289451612,
                    297.3115975402197,
                    297.67948537826436,
                    298.245899624821
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.98245899624821e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_env_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    7.876514500657558e-05,
                    8.703721500273929e-05,
                    0.00015934530699455838,
                    0.00013707976639146794,
                    0.0003552783178964174,
                    0.0007228368344454979,
                    0.0003474960602897507,
                    0.0005411986760735676,
                    0.0007680351850117369,
                    0.0010010131015747968,
                    0.001743324413367849,
                    0.0021702421018892134,
                    0.002585089026913839,
                    0.003031059249099711,
                    0.0035113345167093837,
                    0.003994954498811635,
                    0.004853649408991211,
                    0.005266777600314966,
                    0.005619656755553388,
                    0.00599129743402387,
                    0.006388814181920075,
                    0.007209050747598453,
                    0.007592781125352037,
                    0.008025425714719949,
                    0.008510200091885035,
                    0.008939417969348154,
                    0.009431585765002916,
                    0.01020567437226497,
                    0.01066346538076293,
                    0.011143969246929999,
                    0.011659577408390584,
                    0.011977492481630334,
                    0.012475467880242517,
                    0.012587479340767264,
                    0.012862581442735,
                    0.013359082323312439,
                    0.01394923540647369,
                    0.014547982720372887,
                    0.01554327151617699,
                    0.016302580977611655,
                    0.016924778628276762,
                    0.0176680471307773,
                    0.018426546118053076,
                    0.019657799999166146,
                    0.019977717428103427,
                    0.019686841734305023,
                    0.019965227820854203,
                    0.02049506293933502
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.0495062939335023e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_env",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    218.81056910883933,
                    220.71509356387494,
                    222.95175816025323,
                    225.33603452797598,
                    227.71644066746666,
                    231.35744530711574,
                    234.9944772797465,
                    239.79200084184026,
                    243.81748715300034,
                    247.07091309636158,
                    253.8653053595991,
                    256.64767393595776,
                    258.9799392861421,
                    261.15937655026244,
                    263.2304383887394,
                    265.128789911177,
                    268.2694909220299,
                    269.6839038348019,
                    270.9067138940802,
                    272.13642690913326,
                    273.391720574398,
                    275.79419285958215,
                    276.8661528704397,
                    277.9814640201279,
                    279.13750316279936,
                    280.15323506693136,
                    281.22764789875055,
                    282.9467541950981,
                    283.8634078955136,
                    284.7786117305489,
                    285.7068688253054,
                    286.35342936791113,
                    287.42825922283527,
                    287.78055090875523,
                    288.3214314093345,
                    289.10903157863794,
                    289.97763026720463,
                    290.82598898985043,
                    292.23512457190907,
                    293.16878174937506,
                    293.9375105456413,
                    294.7946774776011,
                    295.6366985628716,
                    297.1449010665725,
                    297.26502163774506,
                    297.3106420862699,
                    297.6785827664272,
                    298.2450410563917
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.982450410563917e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_env",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    7.877156717544135e-05,
                    8.70434008665063e-05,
                    0.00015940749156797702,
                    0.00013709571424671478,
                    0.0003560793006054771,
                    0.0007312792963706942,
                    0.00034760645040332074,
                    0.000541463149279521,
                    0.0007685244597378494,
                    0.0010017400315367163,
                    0.001742980358866466,
                    0.002168859134656226,
                    0.0025829673114442964,
                    0.003028476877436944,
                    0.003508596552672684,
                    0.003992367922911669,
                    0.004852008669422369,
                    0.005265853301003421,
                    0.005619487699900262,
                    0.005992022860745912,
                    0.0063904875779503215,
                    0.007210597235994738,
                    0.007594258158851148,
                    0.008026843853598361,
                    0.008511566261590622,
                    0.008940723379176629,
                    0.009432839170273316,
                    0.010206804467922199,
                    0.010664543246666965,
                    0.011144997689729883,
                    0.01166055932658885,
                    0.01197841665081018,
                    0.012476283118686562,
                    0.01258824045281928,
                    0.012863300008436735,
                    0.013359769776293275,
                    0.01394989553039672,
                    0.01454861597489444,
                    0.015543928160325661,
                    0.016303134782444544,
                    0.01692530739207844,
                    0.017668582686630917,
                    0.0184270789261383,
                    0.019658210818053242,
                    0.019978162344223227,
                    0.019687225635702042,
                    0.01996559049029038,
                    0.02049540791212992
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.049540791212992e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step1_kcall1_up_adjustments",
      "description": "The UPDRAUGHT (kcall = 1) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the condensation-only form `cutypen`, `cuascn` and `cubasmcn` use for a rising parcel, whose whole adjustment is skipped unless the first increment is positive. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 1: 06 LST, deep convection (ktype 1), the strongest convective step of the run: cloud base at kernel level 44, top at 5, |rthcuten| up to 2.6e-2 K/s and 0.49 mm of convective rain over the step. Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step1_kcall1_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_up_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    193.53516481959295,
                    204.40407550983576,
                    217.43596543068838,
                    227.74442773172524,
                    233.6063467651335,
                    242.23849883480318,
                    246.53188503923047,
                    250.65467204248532,
                    253.71013882091628,
                    258.7151805493927,
                    260.9547730152375,
                    262.9084136626741,
                    266.30434524594233,
                    267.8376271089687,
                    269.3452590753435,
                    271.9408921833521,
                    273.2424069010064,
                    274.5253916259327,
                    275.69249466916733,
                    277.87849802858665,
                    278.89885808426374,
                    279.87574009584483,
                    281.6944609402676,
                    282.54792452338404,
                    283.4658953980951,
                    284.2875223966817,
                    285.6190160754299,
                    286.5784291644032,
                    287.281627313019,
                    288.17740314741025,
                    288.7358720921902,
                    289.71562052896536,
                    290.3483510952047,
                    291.09208017073166,
                    291.8162255676896,
                    292.36944248626145,
                    293.0640508662214,
                    293.3843577045475,
                    294.0470981275437,
                    294.6920754881208,
                    295.0550480340815,
                    295.5969123247682,
                    295.7097861994506,
                    296.31889111390717,
                    296.44113341503777,
                    297.09747298730764,
                    297.8083377747791,
                    298.8198823399408
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.988198823399408e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_up_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    2.2301954629439777e-06,
                    1.0510913294966397e-05,
                    5.6823389800559216e-05,
                    0.0001646343899722661,
                    0.00029663892792252517,
                    0.000700280141051254,
                    0.001011707645359455,
                    0.001338965015999474,
                    0.0017032648600346701,
                    0.0026174002062360636,
                    0.0029401596544390562,
                    0.0033737195375374077,
                    0.0043874118474442145,
                    0.004817972269244418,
                    0.005096652870463425,
                    0.006063968835889148,
                    0.006490560552867987,
                    0.00674215828795695,
                    0.007147277696763176,
                    0.008144181200625693,
                    0.008546772512712452,
                    0.008760787041705163,
                    0.009726537443115383,
                    0.010109995696171,
                    0.010374545268703416,
                    0.010776856979010395,
                    0.011581467145370958,
                    0.011964799266094912,
                    0.01234785275775874,
                    0.012905212633237337,
                    0.013201213737282492,
                    0.01371296247261371,
                    0.013902940286792063,
                    0.013966733576748214,
                    0.013979629215965381,
                    0.013970931565752581,
                    0.013969152533898516,
                    0.0139923430073255,
                    0.013990158940730834,
                    0.013988024052250718,
                    0.013964175597669765,
                    0.013914616508276849,
                    0.013962614178634432,
                    0.013916373251961734,
                    0.013970478356376815,
                    0.01394816357770355,
                    0.013954988223276775,
                    0.013808575819181258
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.3992343007325502e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_up",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    193.53516477355217,
                    204.40407425228258,
                    217.43590846507203,
                    227.7440227075057,
                    233.60510413992822,
                    242.2320912674834,
                    246.521243901334,
                    250.6413010975948,
                    253.6839572261031,
                    258.66499678996445,
                    260.9038422642404,
                    262.8560433192964,
                    266.2553021272543,
                    267.79420386389353,
                    269.30959558215164,
                    271.9162360205683,
                    273.2263554734999,
                    274.51183253094075,
                    275.679610646807,
                    277.86462612202183,
                    278.8856989866172,
                    279.86564004927754,
                    281.68334623703055,
                    282.5374408049891,
                    283.45833571713365,
                    284.28052170652904,
                    285.6107815094448,
                    286.5729059873353,
                    287.2765282831257,
                    288.1709436416441,
                    288.729789463518,
                    289.715278008043,
                    290.3483510952047,
                    291.09208017073166,
                    291.8162255676896,
                    292.36944248626145,
                    293.0640508662214,
                    293.3843577045475,
                    294.0470981275437,
                    294.6920754881208,
                    295.0550480340815,
                    295.5969123247682,
                    295.7097861994506,
                    296.31889111390717,
                    296.44113341503777,
                    297.09747298730764,
                    297.8083377747791,
                    298.8198823399408
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.988198823399408e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_up",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    2.2302116903033167e-06,
                    1.0511356527310448e-05,
                    5.684346768182722e-05,
                    0.00016477714324543492,
                    0.00029707689880628847,
                    0.0007025385274978149,
                    0.0010154581797513873,
                    0.0013436779553526478,
                    0.001712519802791121,
                    0.0026353935092209824,
                    0.002958609612735029,
                    0.0033929015103900946,
                    0.004405810659254948,
                    0.004834474213618397,
                    0.005110397107284942,
                    0.006073734586287816,
                    0.006497010016440108,
                    0.006747606332324699,
                    0.007152454496947557,
                    0.008149754932683438,
                    0.008552059838146844,
                    0.0087648452404159,
                    0.009731003330876032,
                    0.010114208054222078,
                    0.010377582748513726,
                    0.010779669856313743,
                    0.011584775793983775,
                    0.011967018478640795,
                    0.012349901547969859,
                    0.012907808062654182,
                    0.013203657737483002,
                    0.013713100097520305,
                    0.013902940286792063,
                    0.013966733576748214,
                    0.013979629215965381,
                    0.013970931565752581,
                    0.013969152533898516,
                    0.0139923430073255,
                    0.013990158940730834,
                    0.013988024052250718,
                    0.013964175597669765,
                    0.013914616508276849,
                    0.013962614178634432,
                    0.013916373251961734,
                    0.013970478356376815,
                    0.01394816357770355,
                    0.013954988223276775,
                    0.013808575819181258
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.3992343007325502e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step364_kcall1_up_adjustments",
      "description": "The UPDRAUGHT (kcall = 1) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the condensation-only form `cutypen`, `cuascn` and `cubasmcn` use for a rising parcel, whose whole adjustment is skipped unless the first increment is positive. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 364: 12 LST, deep convection (ktype 1) but barely active: 1.5e-4 mm of rain. It has the COLDEST adjustment in the dumped set, 184.8 K, so it is the test that reaches furthest into the pure-ice branch of the phase weight. Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step364_kcall1_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_up_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    184.85279789160583,
                    206.7036276964205,
                    215.67803060234172,
                    225.6670763812956,
                    235.88927078700536,
                    242.93207411819384,
                    249.21994108872732,
                    252.5515020627743,
                    257.021883587377,
                    260.23381972612617,
                    263.75235110107747,
                    265.80008732546526,
                    268.8496400221113,
                    268.7842961731553,
                    270.33792756554294,
                    271.82363334036694,
                    273.25637516482334,
                    274.63613161952065,
                    275.5379403467706,
                    276.5989302374764,
                    277.71849049053844,
                    278.78735837965843,
                    279.8085520006129,
                    280.7852571145678,
                    281.71986676104046,
                    282.6141148600435,
                    283.47440783121664,
                    284.30708940851565,
                    285.11284114634674,
                    285.89222624182673,
                    286.20262248672117,
                    286.9949270465372,
                    287.75008969869776,
                    288.4667499389419,
                    289.1452520817101,
                    289.392089042693,
                    289.9751688140296,
                    290.46389231497903,
                    290.924345568747,
                    292.19064113829296,
                    293.15950997363916,
                    294.04404463283544,
                    295.6668734759879,
                    296.5399829335578,
                    298.0077084009233,
                    298.8253118488718,
                    299.5460478775027,
                    300.8751076435598
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 3.0087510764355977e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_up_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    6.00810615103656e-07,
                    1.4782214549020994e-05,
                    4.497304331586967e-05,
                    0.00014262145293838786,
                    0.0003833409960290425,
                    0.0007529399677778738,
                    0.0012370339532422443,
                    0.0016108851204260088,
                    0.00234376912539179,
                    0.0028767239306951,
                    0.0037955685520319237,
                    0.004198813031695556,
                    0.005237000469612774,
                    0.004726556677247463,
                    0.005202625441260381,
                    0.005678893718997572,
                    0.006154534538657294,
                    0.006630267803018148,
                    0.007447886671911295,
                    0.007625155823539554,
                    0.008055106966051653,
                    0.008482841902771002,
                    0.008907605888258768,
                    0.0093289455160887,
                    0.009746154681623516,
                    0.010158333756277274,
                    0.010568076288288684,
                    0.010978317595992958,
                    0.011388169304804178,
                    0.011796888735625077,
                    0.011854938931994166,
                    0.012300575669882059,
                    0.012735435738716147,
                    0.01315624836774906,
                    0.013560987651834285,
                    0.013776355684469898,
                    0.014114980167822687,
                    0.014381381998745427,
                    0.014631392960316136,
                    0.014834454190284155,
                    0.01490360937633929,
                    0.01491875302646404,
                    0.01492125650125464,
                    0.014961442047575064,
                    0.014983759146183022,
                    0.015004051535104637,
                    0.015018163827236745,
                    0.015157620475186274
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.5157620475186274e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_up",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    184.85279788739794,
                    206.70362465499866,
                    215.67799775036687,
                    225.66668001852037,
                    235.88699525218473,
                    242.9244415005468,
                    249.20679114049526,
                    252.52802424338162,
                    256.97082728331054,
                    260.1817335676463,
                    263.687565544267,
                    265.75083219275876,
                    268.80219299072127,
                    268.7627132901293,
                    270.3211468838838,
                    271.81201865703326,
                    273.2500090409079,
                    274.62945254935255,
                    275.5206963768865,
                    276.58586694369137,
                    277.706160433943,
                    278.7756959734839,
                    279.7975193973655,
                    280.774794983458,
                    281.7099181095302,
                    282.6046902210723,
                    283.4656180319507,
                    284.2989832428769,
                    285.1053447170206,
                    285.8853223792401,
                    286.19783421898535,
                    286.99042584958937,
                    287.7458097641118,
                    288.46261850774226,
                    289.1410672914174,
                    289.3865235874006,
                    289.9684682292537,
                    290.45757915932967,
                    290.91837966846765,
                    292.19064113829296,
                    293.15950997363916,
                    294.04404463283544,
                    295.6668734759879,
                    296.5399829335578,
                    298.0077084009233,
                    298.8253118488718,
                    299.5460478775027,
                    300.8751076435598
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 3.0087510764355977e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_up",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    6.008120981973112e-07,
                    1.4783286516826705e-05,
                    4.498462219612732e-05,
                    0.00014276115343232485,
                    0.0003841430222491507,
                    0.000755630130734521,
                    0.0012416687332419312,
                    0.001619171023422642,
                    0.0023619631088791495,
                    0.0028955249489352737,
                    0.003819425860227703,
                    0.004217218488466061,
                    0.005255199209491117,
                    0.004734829891902684,
                    0.0052091572803763895,
                    0.005683487927626446,
                    0.006157092447246502,
                    0.00663295145341169,
                    0.007454815299010727,
                    0.007630404654982387,
                    0.008060061182791707,
                    0.008487527857571928,
                    0.008912038788243579,
                    0.009333149200368634,
                    0.009750152049800348,
                    0.010162120576215914,
                    0.010571608029633722,
                    0.010981574653346607,
                    0.011391181370107424,
                    0.011799662707612391,
                    0.01185686285797042,
                    0.012302384250815694,
                    0.012737155416432788,
                    0.013157908376805087,
                    0.013562669100573892,
                    0.01377859188440639,
                    0.014117672462785632,
                    0.014383918624685332,
                    0.01463379005904839,
                    0.014834454190284155,
                    0.01490360937633929,
                    0.01491875302646404,
                    0.01492125650125464,
                    0.014961442047575064,
                    0.014983759146183022,
                    0.015004051535104637,
                    0.015018163827236745,
                    0.015157620475186274
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.5157620475186274e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step601_kcall1_up_adjustments",
      "description": "The UPDRAUGHT (kcall = 1) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the condensation-only form `cutypen`, `cuascn` and `cubasmcn` use for a rising parcel, whose whole adjustment is skipped unless the first increment is positive. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 601: 16 LST, deep convection (ktype 1) with 3.4e-2 mm of rain and a cloud top that differs between the two columns (kernel level 11 and 29), so the two columns are genuinely different states. Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step601_kcall1_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_up_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    213.54188690166902,
                    228.12823884327213,
                    238.39146020487743,
                    243.82811022019607,
                    247.81138112164206,
                    251.4666039219664,
                    256.39543716779053,
                    259.4591658813268,
                    261.7326885789168,
                    264.72581735395823,
                    266.9843389168541,
                    268.6454678769562,
                    270.09607861682684,
                    272.1321201122941,
                    273.9122632062643,
                    275.29277734331913,
                    276.3457172445698,
                    277.55281131323125,
                    278.6034203603517,
                    279.6078426701988,
                    280.25959921911493,
                    281.23480769054385,
                    282.18160760762504,
                    283.1019696163586,
                    284.0847625091108,
                    284.9525056489368,
                    285.7965604260828,
                    286.6169117586579,
                    287.2231164682561,
                    287.94314245194266,
                    288.61877159086987,
                    289.248115680451,
                    289.83574460465525,
                    290.16014245569534,
                    290.86993477577414,
                    292.77881097237344,
                    294.33420770724535,
                    295.22936424202913,
                    295.36981189659986,
                    295.75051169690033,
                    295.9349474916174,
                    296.0169894595259,
                    296.29997566334185,
                    296.5639730230135,
                    296.62978437796124,
                    297.12838070180624,
                    297.3300098128831,
                    298.45007871184566
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.984500787118457e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_up_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    3.3659489367947956e-05,
                    0.0001723062145147172,
                    0.00046395141989322283,
                    0.0007662703890986867,
                    0.0010743801220723845,
                    0.0014486712015967808,
                    0.002095290235002917,
                    0.002671677087318742,
                    0.0031579443442583946,
                    0.0038192620982706546,
                    0.004476626408790758,
                    0.004972942486955557,
                    0.0054152184145074165,
                    0.00597564526064503,
                    0.006624111070809445,
                    0.007126207045724347,
                    0.007309599685713574,
                    0.007962408686129548,
                    0.008375497682269816,
                    0.008785751922926875,
                    0.008819011175740148,
                    0.009249673896354777,
                    0.009685552994792082,
                    0.010127002140396045,
                    0.01081981219779508,
                    0.011271217382882663,
                    0.011726491959776065,
                    0.012184293002857236,
                    0.012487387940522876,
                    0.012897849924877006,
                    0.013287374608729323,
                    0.01365221729934127,
                    0.01399405675030671,
                    0.014111808228129677,
                    0.01437938701551248,
                    0.014594817845231211,
                    0.014844762858047542,
                    0.014732927215784862,
                    0.014497996871615147,
                    0.014822993157136935,
                    0.0145259595953306,
                    0.014509739510226013,
                    0.014756587678003578,
                    0.0149307878277743,
                    0.014419333804266873,
                    0.015007974307526402,
                    0.014848594923754465,
                    0.015202428013170377
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.520242801317038e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_up",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    213.5418709893203,
                    228.12776161764828,
                    238.3886381561773,
                    243.82151568974706,
                    247.80077383577324,
                    251.44848729107386,
                    256.35741338335174,
                    259.40760880935903,
                    261.67650528778046,
                    264.6770910663006,
                    266.93593087514364,
                    268.60404224733077,
                    270.0625173153929,
                    272.1144503426993,
                    273.898736222124,
                    275.27966688050196,
                    276.3367060881676,
                    277.5412788222166,
                    278.5925853126186,
                    279.5976877507822,
                    280.25377196053546,
                    281.229440469695,
                    282.176633618271,
                    283.0975184638536,
                    284.07869772815536,
                    284.9469836071974,
                    285.79151640159347,
                    286.61205834200956,
                    287.2183376441389,
                    287.93819562150213,
                    288.6136300341053,
                    289.24299458109573,
                    289.8308156742596,
                    290.15878257984275,
                    290.86993477577414,
                    292.77881097237344,
                    294.33420770724535,
                    295.22936424202913,
                    295.36981189659986,
                    295.75051169690033,
                    295.9349474916174,
                    296.0169894595259,
                    296.29997566334185,
                    296.5639730230135,
                    296.62978437796124,
                    297.12838070180624,
                    297.3300098128831,
                    298.45007871184566
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.984500787118457e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_up",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    3.3665097772956666e-05,
                    0.00017247441561618067,
                    0.0004649460682859528,
                    0.0007685946718481725,
                    0.001078118725109307,
                    0.0014550590510706534,
                    0.0021088140185201894,
                    0.0026902209618559084,
                    0.0031783819163374773,
                    0.003837325671589233,
                    0.004494888130899389,
                    0.004988801253747501,
                    0.005428249656021417,
                    0.005982659167682121,
                    0.006629546213037014,
                    0.007131474829684285,
                    0.007313220368355992,
                    0.007967042441019237,
                    0.008379851204448974,
                    0.008789832169548468,
                    0.008821352568237385,
                    0.009251830445691842,
                    0.009687551543714538,
                    0.010128790613472553,
                    0.01082224902678299,
                    0.011273436139253535,
                    0.011728518648815888,
                    0.012186243105666551,
                    0.012489308072053154,
                    0.012899837561348014,
                    0.01328944048623732,
                    0.013654274957062212,
                    0.01399603719453968,
                    0.014112354626247253,
                    0.01437938701551248,
                    0.014594817845231211,
                    0.014844762858047542,
                    0.014732927215784862,
                    0.014497996871615147,
                    0.014822993157136935,
                    0.0145259595953306,
                    0.014509739510226013,
                    0.014756587678003578,
                    0.0149307878277743,
                    0.014419333804266873,
                    0.015007974307526402,
                    0.014848594923754465,
                    0.015202428013170377
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.520242801317038e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step1730_kcall1_up_adjustments",
      "description": "The UPDRAUGHT (kcall = 1) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the condensation-only form `cutypen`, `cuascn` and `cubasmcn` use for a rising parcel, whose whole adjustment is skipped unless the first increment is positive. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 1730: 10 LST on the second day, deep convection (ktype 1) with a high cloud base (kernel level 48). Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step1730_kcall1_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_up_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    196.0140316139491,
                    215.64419003884717,
                    229.99190840228385,
                    235.86936138655116,
                    243.18884866445578,
                    249.2193437921016,
                    252.6417424630677,
                    256.4529702901199,
                    258.90929905820167,
                    262.6162627844433,
                    264.54156110012974,
                    266.4045900448477,
                    269.4012579006568,
                    270.84799442161824,
                    272.1064931566927,
                    273.4393222435439,
                    275.90095668410453,
                    276.92358240693227,
                    277.99133061804827,
                    279.0565070614266,
                    280.06318090922827,
                    281.03568130024485,
                    281.9107797113895,
                    282.7562278632485,
                    283.4971971711336,
                    284.26270151667586,
                    284.7700473224931,
                    285.76959674308944,
                    286.49441973441304,
                    287.0037047938006,
                    287.7635784068029,
                    288.06801324284464,
                    288.8021517993572,
                    289.24457456757057,
                    289.87092473154854,
                    290.36899685479835,
                    290.87426025500946,
                    291.32857609533914,
                    291.68598509220675,
                    292.1531236527182,
                    293.0860496861557,
                    293.95255251768936,
                    294.8334180469186,
                    296.2896551434488,
                    297.12874882352776,
                    297.91889724896936,
                    299.19642238346444,
                    299.9561330587657
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.999561330587657e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_up_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    3.364583429656902e-06,
                    4.476984102713734e-05,
                    0.00021487014989145275,
                    0.000382489214991627,
                    0.000717269572960758,
                    0.0012366423713001413,
                    0.0016242157421331315,
                    0.002107046975592177,
                    0.0025381882458393817,
                    0.003423874824709247,
                    0.003905089777158059,
                    0.004263373720382883,
                    0.00529068447883385,
                    0.005747752164473966,
                    0.005962465767387858,
                    0.006402531246063969,
                    0.007441474762312878,
                    0.007615572684822752,
                    0.008023265058835478,
                    0.008454847192958668,
                    0.008702887084327832,
                    0.00912690298951725,
                    0.009686273861620118,
                    0.010070095532101942,
                    0.010584216957780019,
                    0.010945850952715653,
                    0.010955267072196481,
                    0.011702462350663231,
                    0.01208403239461533,
                    0.012309123209403023,
                    0.012748291448567414,
                    0.012823443829078204,
                    0.013267401663846642,
                    0.013648813326607473,
                    0.014024559652506527,
                    0.014297724284213578,
                    0.01458749067207184,
                    0.014840561731440997,
                    0.015013150980397206,
                    0.015245541919915334,
                    0.015252305385861921,
                    0.01535217526605974,
                    0.015344304371242566,
                    0.015381774089297537,
                    0.015419787452331976,
                    0.015411672381406026,
                    0.015498800110187819,
                    0.015561851336187234
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.5561851336187234e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_up",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    196.01403148995715,
                    215.64415784190444,
                    229.99111992979806,
                    235.8670764747821,
                    243.18314723748423,
                    249.20552855683928,
                    252.61600670256945,
                    256.4146851250607,
                    258.86279453542556,
                    262.5554799027571,
                    264.48222306893945,
                    266.3605352540818,
                    269.3605261492783,
                    270.8158747689095,
                    272.0869548561201,
                    273.4269669730704,
                    275.8857696610288,
                    276.91237137866653,
                    277.98086456347295,
                    279.0467791166693,
                    280.05850484567975,
                    281.031391830241,
                    281.90358123497055,
                    282.7496098868172,
                    283.4886740571627,
                    284.254908248876,
                    284.76702601095093,
                    285.7632745961619,
                    286.48873483110947,
                    286.99992358940574,
                    287.75986858763133,
                    288.0653427169384,
                    288.79928792504825,
                    289.23985246478645,
                    289.8654777918667,
                    290.3634656352556,
                    290.86860430962133,
                    291.32326606452665,
                    291.6830561538959,
                    292.1531236527182,
                    293.0860496861557,
                    293.95255251768936,
                    294.8334180469186,
                    296.2896551434488,
                    297.12874882352776,
                    297.91889724896936,
                    299.19642238346444,
                    299.9561330587657
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.999561330587657e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_up",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    3.364627131385873e-06,
                    4.4781189037297965e-05,
                    0.00021514805186056938,
                    0.0003832945461747948,
                    0.0007192790759056359,
                    0.001241511635798731,
                    0.001633299456973235,
                    0.002120666023090947,
                    0.0025548756026968116,
                    0.003446098624132525,
                    0.003927058673018438,
                    0.004279914402360046,
                    0.0053063905340661795,
                    0.005760321834284229,
                    0.005970219094850435,
                    0.006407495593740221,
                    0.007447576908184705,
                    0.007620077275979934,
                    0.008027470319563848,
                    0.008458755881162145,
                    0.00870476592666162,
                    0.0091286264985648,
                    0.009689166209445273,
                    0.010072754635032035,
                    0.010587641544973526,
                    0.010948982287717636,
                    0.010956481035174114,
                    0.0117050025892987,
                    0.0120863165887627,
                    0.012310642497328876,
                    0.012749782053910547,
                    0.012824516846387342,
                    0.013268552368543988,
                    0.013650710667506139,
                    0.01402674823287071,
                    0.014299946728225864,
                    0.014589763230928782,
                    0.014842695301821461,
                    0.01501432782781051,
                    0.015245541919915334,
                    0.015252305385861921,
                    0.01535217526605974,
                    0.015344304371242566,
                    0.015381774089297537,
                    0.015419787452331976,
                    0.015411672381406026,
                    0.015498800110187819,
                    0.015561851336187234
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.5561851336187234e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step2101_kcall1_up_adjustments",
      "description": "The UPDRAUGHT (kcall = 1) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the condensation-only form `cutypen`, `cuascn` and `cubasmcn` use for a rising parcel, whose whole adjustment is skipped unless the first increment is positive. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 2101: 17 LST on the second day, deep convection (ktype 1) with 5.5e-3 mm of rain. Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step2101_kcall1_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_up_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    221.3973264277397,
                    234.05599887148853,
                    239.28666125416018,
                    247.81266093032812,
                    254.38318716797227,
                    259.4691737436145,
                    263.58421047443807,
                    267.0356349566642,
                    268.6029232456772,
                    270.5342865123141,
                    271.8708314166884,
                    273.1157756557299,
                    274.3487406261804,
                    275.529512714028,
                    276.6589740151192,
                    277.4139717227666,
                    278.44277040042493,
                    279.432269455266,
                    280.37353355683405,
                    281.2977238889594,
                    282.18367500825013,
                    282.6744805184927,
                    283.5371870717601,
                    284.42676806827035,
                    285.31350776162947,
                    286.2303797524137,
                    286.99392610740597,
                    287.0588419142764,
                    287.83554771285065,
                    288.52156169231876,
                    289.1276597548429,
                    289.69311707434747,
                    290.2233589601143,
                    290.73937383571604,
                    291.399057975249,
                    293.24850871422746,
                    295.0038214793499,
                    295.8458456121895,
                    296.33052082148697,
                    296.4585746225206,
                    296.6045247013196,
                    296.759637042697,
                    297.029041554086,
                    297.1370894287779,
                    297.6104996008986,
                    297.8369242821114,
                    298.3842158859681,
                    299.0470069013966
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.9904700690139665e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_up_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    8.380728964861394e-05,
                    0.00031210401445720725,
                    0.0005112647409257806,
                    0.0010748298568196975,
                    0.0018171458872857497,
                    0.002674527563989263,
                    0.0035846195056956735,
                    0.004497491250990127,
                    0.004955200319811646,
                    0.005435593916646983,
                    0.005855598760764171,
                    0.006251819381147398,
                    0.006657241776717347,
                    0.007065334888239173,
                    0.007474265469543518,
                    0.007882676111071919,
                    0.008279919437854104,
                    0.008677560847859124,
                    0.009068453615115529,
                    0.009469488402715739,
                    0.009866524725668811,
                    0.010014722432072451,
                    0.01042934241630845,
                    0.010883174790867492,
                    0.011356922057182963,
                    0.011876561390601878,
                    0.012299724116140198,
                    0.01235277906100125,
                    0.012805577828169863,
                    0.013201251426467806,
                    0.013543388565870541,
                    0.013863524807686727,
                    0.014163898598621317,
                    0.014466177833084678,
                    0.014591371766328114,
                    0.01459499091766759,
                    0.014619173070740177,
                    0.014632594199071767,
                    0.015027140269231774,
                    0.015200644018228899,
                    0.014870457069299322,
                    0.014554732292978276,
                    0.015245623268349936,
                    0.015282986511962181,
                    0.015269915554885022,
                    0.015348195986644803,
                    0.015460413843765142,
                    0.01557191757726745
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.557191757726745e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_up",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    221.39721825868008,
                    234.05453997725652,
                    239.28318507121242,
                    247.80203328288158,
                    254.3512058622318,
                    259.41705297291406,
                    263.52802810808913,
                    266.9875168520309,
                    268.56146433187183,
                    270.50668867282366,
                    271.8503023227066,
                    273.1027204579053,
                    274.33681776265337,
                    275.51856354222764,
                    276.6489632056055,
                    277.4018823395637,
                    278.4317672030849,
                    279.42229714943517,
                    280.36460279909716,
                    281.2894413327594,
                    282.17598267009856,
                    282.6690114795511,
                    283.533176060861,
                    284.4234704568543,
                    285.31045653926975,
                    286.2262605958691,
                    286.9898804046318,
                    287.055044348805,
                    287.830550488652,
                    288.5159464646793,
                    289.12196960283137,
                    289.6877684724268,
                    290.21842411656354,
                    290.7374890290819,
                    291.399057975249,
                    293.24850871422746,
                    295.0038214793499,
                    295.8458456121895,
                    296.33052082148697,
                    296.4585746225206,
                    296.6045247013196,
                    296.759637042697,
                    297.029041554086,
                    297.1370894287779,
                    297.6104996008986,
                    297.8369242821114,
                    298.3842158859681,
                    299.0470069013966
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.9904700690139665e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_up",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    8.384541449787212e-05,
                    0.00031261821068740016,
                    0.0005124899429507001,
                    0.0010785756364197173,
                    0.0018284647600836364,
                    0.0026932750149084635,
                    0.003605285914892318,
                    0.004515651396046897,
                    0.004971065543493848,
                    0.005446358283540903,
                    0.005863723413765138,
                    0.006257062139500032,
                    0.006662032383282523,
                    0.00706973426546856,
                    0.007478287812806118,
                    0.007887533625242825,
                    0.008284340522545324,
                    0.00868156772034196,
                    0.009072041993574214,
                    0.009472816333796907,
                    0.009869615507138118,
                    0.010016919891919183,
                    0.01043095404048771,
                    0.010884499771134459,
                    0.011358148038327106,
                    0.011878216467701489,
                    0.01230134967951486,
                    0.012354304922807669,
                    0.012807585712852862,
                    0.01320350762493334,
                    0.01354567486894878,
                    0.013865673875938456,
                    0.014165881418760006,
                    0.014466935148390259,
                    0.014591371766328114,
                    0.01459499091766759,
                    0.014619173070740177,
                    0.014632594199071767,
                    0.015027140269231774,
                    0.015200644018228899,
                    0.014870457069299322,
                    0.014554732292978276,
                    0.015245623268349936,
                    0.015282986511962181,
                    0.015269915554885022,
                    0.015348195986644803,
                    0.015460413843765142,
                    0.01557191757726745
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.557191757726745e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step1_kcall2_dd_adjustments",
      "description": "The DOWNDRAUGHT (kcall = 2) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the evaporation-only form `cudlfsn` and `cuddrafn` use for a sinking parcel, whose first increment is clipped at zero. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 1: 06 LST, deep convection (ktype 1), the strongest convective step of the run: cloud base at kernel level 44, top at 5, |rthcuten| up to 2.6e-2 K/s and 0.49 mm of convective rain over the step. Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step1_kcall2_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_dd_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    256.97319078003875,
                    258.8935030057642,
                    260.70474837135214,
                    260.70474837135214,
                    262.45106279697825,
                    264.08208414447876,
                    265.6912474892614,
                    267.19367256289854,
                    268.68955453585613,
                    270.1028742262761,
                    271.4828846910918,
                    271.4828846910918,
                    272.8286362981685,
                    274.12416833959554,
                    275.38008619770187,
                    276.5959846539425,
                    277.76530546465983,
                    278.89706186938866,
                    279.9989804173813,
                    281.05561674172145,
                    281.05561674172145,
                    282.0904489677588,
                    283.0868535432738,
                    284.0556401664878,
                    284.9957603836763,
                    285.9071362104967,
                    286.79350278520417,
                    287.6550474488664,
                    287.6550474488664,
                    288.67401087407757,
                    289.10038877184417,
                    289.5453845748651,
                    289.97684226183196,
                    290.392038561072,
                    290.79177145755006,
                    291.17679484752085,
                    291.54782896904146,
                    291.54782896904146,
                    291.9055487047461,
                    292.25057971464315,
                    292.583513256208,
                    292.9049058501172,
                    293.2152694516117,
                    293.515100830652,
                    293.8048537921716,
                    293.8048537921716,
                    294.0849617143536,
                    294.355839635129
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.94355839635129e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_dd_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.0019498813259620621,
                    0.002253043997997652,
                    0.0025743203062054305,
                    0.0025743203062054305,
                    0.002919826317140665,
                    0.0032713992556149918,
                    0.0036514287123689134,
                    0.004029139509438911,
                    0.004433818298144113,
                    0.004834139349617867,
                    0.005243732249146968,
                    0.005243732249146968,
                    0.005655227012843133,
                    0.00607348224716651,
                    0.006504761531345318,
                    0.006947467266295943,
                    0.007396468789242533,
                    0.007854638704534043,
                    0.00832495373471038,
                    0.008796672912574842,
                    0.008796672912574842,
                    0.00928261236753517,
                    0.009770862613515304,
                    0.010266971236550734,
                    0.01076892284553399,
                    0.011275234941369776,
                    0.011787389380030457,
                    0.012304310903555719,
                    0.012304310903555719,
                    0.012977422922460964,
                    0.013169372814128158,
                    0.013393839704087602,
                    0.013610243567964314,
                    0.013820244559431602,
                    0.014024040569859125,
                    0.014221828284805971,
                    0.01441380953112661,
                    0.01441380953112661,
                    0.01460017969078338,
                    0.014781124943653252,
                    0.014956827329904436,
                    0.015127462249783065,
                    0.01529319414994182,
                    0.015454189866198885,
                    0.015610601883462452,
                    0.015610601883462452,
                    0.01576258131403088,
                    0.01591027797233895
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.591027797233895e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_dd",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    256.97612467758876,
                    258.8976742924196,
                    260.7093577254215,
                    260.7093577254215,
                    262.4553532895454,
                    264.0848169993435,
                    265.6917876221592,
                    267.1906696788148,
                    268.6826062045105,
                    270.09083273997857,
                    271.4652019512529,
                    271.4652019512529,
                    272.80126667556794,
                    274.0969845405095,
                    275.3540467554073,
                    276.5713125252629,
                    277.7419868268881,
                    278.8751989486018,
                    279.9787705402033,
                    281.03686248046324,
                    281.03686248046324,
                    282.07337973157706,
                    283.0713134494141,
                    284.04163085260643,
                    284.98323480544667,
                    285.89600094221805,
                    286.7837071096447,
                    287.64651018624755,
                    287.64651018624755,
                    288.6671183554572,
                    289.0904866212549,
                    289.53944513817413,
                    289.97124574554164,
                    290.38676468614835,
                    290.7868015809924,
                    291.1721111146366,
                    291.5434140196689,
                    291.5434140196689,
                    291.90138622318415,
                    292.24665449228036,
                    292.5798109121009,
                    292.90141290551134,
                    293.2119734562256,
                    293.51198977221196,
                    293.8019167415045,
                    293.8019167415045,
                    294.08218825800475,
                    294.35321986365585
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.943532198636559e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_dd",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.0019488359909513532,
                    0.0022515473004334026,
                    0.0025726526640989056,
                    0.0025726526640989056,
                    0.002918259144639167,
                    0.0032703906612272416,
                    0.0036512270461110862,
                    0.0040302743328831945,
                    0.004436479388096472,
                    0.004838815163297141,
                    0.00525070009754472,
                    0.00525070009754472,
                    0.005666180259694355,
                    0.006084404697639289,
                    0.006515224179259271,
                    0.006957380527599392,
                    0.007405838217899214,
                    0.007863423226106206,
                    0.008333074063360498,
                    0.00880420837474838,
                    0.00880420837474838,
                    0.009289470786632982,
                    0.009777106623228119,
                    0.010272600178868276,
                    0.010773955622866677,
                    0.011279709092164138,
                    0.01179132528247026,
                    0.01230774117567598,
                    0.01230774117567598,
                    0.012980192336442624,
                    0.013173351498234911,
                    0.013396226169750048,
                    0.013612492248209762,
                    0.01382236360237592,
                    0.014026037466259998,
                    0.014223710208678861,
                    0.014415583457784513,
                    0.014415583457784513,
                    0.01460185217587497,
                    0.014782702097998614,
                    0.014958314931766662,
                    0.015128865714925702,
                    0.015294518480887935,
                    0.015455439889480086,
                    0.015611781990420506,
                    0.015611781990420506,
                    0.015763695688791848,
                    0.01591133059651685
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.591133059651685e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step364_kcall2_dd_adjustments",
      "description": "The DOWNDRAUGHT (kcall = 2) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the evaporation-only form `cudlfsn` and `cuddrafn` use for a sinking parcel, whose first increment is clipped at zero. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 364: 12 LST, deep convection (ktype 1) but barely active: 1.5e-4 mm of rain. It has the COLDEST adjustment in the dumped set, 184.8 K, so it is the test that reaches furthest into the pure-ice branch of the phase weight. Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step364_kcall2_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_dd_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    257.8595925770031,
                    259.6483305188724,
                    261.34990612528514,
                    261.3499404948138,
                    262.96709388884665,
                    264.50876605309514,
                    265.992192674384,
                    267.4238755561439,
                    268.8125573290421,
                    270.15934107453006,
                    271.3483756326954,
                    271.34839177470417,
                    272.6370915426937,
                    273.82119435558036,
                    274.962170371907,
                    276.0441666851909,
                    277.078839035881,
                    278.0772655182603,
                    279.04977800034925,
                    280.07550850699477,
                    280.0755634437906,
                    281.14236684758805,
                    282.1603489183084,
                    283.1407654558163,
                    284.08889132913777,
                    286.269751668522,
                    286.5286711011288,
                    286.92296122472266,
                    286.923077361499,
                    287.41411887332595,
                    287.96106450011933,
                    288.61443519823496,
                    289.1773475869054,
                    289.59958981635845,
                    290.00631991805324,
                    290.3982122984042,
                    290.77597556406596,
                    290.7761122443562,
                    291.14041346575715,
                    291.49187544757393,
                    291.8310855923306,
                    292.1584641427056,
                    292.4747936381311,
                    292.78042753582434,
                    293.0758321491679,
                    293.075962829842,
                    293.3615764917036,
                    293.63783352044624
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.9363783352044627e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_dd_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.002114907741543495,
                    0.002407419372432739,
                    0.0027157044555747214,
                    0.0027157124063772685,
                    0.003036229253496025,
                    0.0033669952838344757,
                    0.0037090514090475962,
                    0.004061210404621995,
                    0.004423137137485012,
                    0.004792212063707872,
                    0.00511204224506005,
                    0.005112044802959429,
                    0.005480961972454752,
                    0.005844955975350874,
                    0.0062187609898613164,
                    0.00658999963538341,
                    0.00696290455727047,
                    0.007341082164650143,
                    0.007727623742870343,
                    0.008158881638012665,
                    0.008158912127992152,
                    0.0086333366228752,
                    0.009108511042237978,
                    0.009585594957231262,
                    0.010065631746935035,
                    0.011555395262799414,
                    0.011573200104314561,
                    0.011720292127798345,
                    0.011720383216365184,
                    0.011952643986596758,
                    0.012236305894166803,
                    0.01261794625486253,
                    0.012933163184438583,
                    0.013140556457089135,
                    0.013342181418683242,
                    0.013538088384965261,
                    0.01372844984700986,
                    0.013728569166168589,
                    0.01391355514414991,
                    0.014093329254523876,
                    0.014268051255933905,
                    0.014437755871903433,
                    0.014602834010597546,
                    0.014763308670123513,
                    0.014919327728623182,
                    0.01491944957817868,
                    0.015071154493095639,
                    0.01521869451704554
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.521869451704554e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_dd",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    257.8462901226116,
                    259.63018253339567,
                    261.3247468190211,
                    261.3247799516084,
                    262.93302980511976,
                    264.4641901557455,
                    265.9356933249728,
                    267.35465538614585,
                    268.730118799565,
                    270.0638073579495,
                    271.2316231022761,
                    271.23163434877773,
                    272.49285484792006,
                    273.67805009630075,
                    274.8265077675044,
                    275.9167625679001,
                    276.961797178679,
                    277.9725000270059,
                    278.95795371551714,
                    279.98946378295125,
                    279.9895180866323,
                    281.0559633765084,
                    282.0765124400309,
                    283.0590177112933,
                    284.0082627068115,
                    286.26218121828254,
                    286.5065164773607,
                    286.90336922054837,
                    286.90348697022915,
                    287.39975938838296,
                    287.9506563309172,
                    288.6087904122224,
                    289.1719833165143,
                    289.59448078315336,
                    290.0014935513152,
                    290.39365247489854,
                    290.77166739522863,
                    290.7718040579629,
                    291.1363427318524,
                    291.4880287780084,
                    291.827450300549,
                    292.15502823493654,
                    292.4715458237154,
                    292.77735721806135,
                    293.072928998574,
                    293.07305966124187,
                    293.3588308500434,
                    293.63523585972206
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.936352358597221e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_dd",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.0021196617004267068,
                    0.0024139522792589164,
                    0.0027248374896218716,
                    0.00272484589112399,
                    0.003048710607764234,
                    0.0033834949598864055,
                    0.003730195318865795,
                    0.004087420991551796,
                    0.004454746126308347,
                    0.00482933004694507,
                    0.0051579801699460515,
                    0.005157984662195653,
                    0.005538553820880297,
                    0.005902471338729414,
                    0.006273270224310289,
                    0.00664119060971085,
                    0.0070099319754942475,
                    0.0073831769390361665,
                    0.00776451874051589,
                    0.008193454408133342,
                    0.008193485152498356,
                    0.008668053537555008,
                    0.00914219653920987,
                    0.009618441200980613,
                    0.010098028327385745,
                    0.01155843706970564,
                    0.011582101832144564,
                    0.01172816419507557,
                    0.011728254635577414,
                    0.011958413627646847,
                    0.012240487896552223,
                    0.012620214329882374,
                    0.012935318548281727,
                    0.01314260926663095,
                    0.013344120652838585,
                    0.013539920522049822,
                    0.013730180869248687,
                    0.013730300195461415,
                    0.013915190765032845,
                    0.014094874846355299,
                    0.014269511916171769,
                    0.01443913641964504,
                    0.014604138982429767,
                    0.014764542323800683,
                    0.014920494214531815,
                    0.014920616071322218,
                    0.015072257691914708,
                    0.015219738257124525
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.5219738257124525e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step601_kcall2_dd_adjustments",
      "description": "The DOWNDRAUGHT (kcall = 2) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the evaporation-only form `cudlfsn` and `cuddrafn` use for a sinking parcel, whose first increment is clipped at zero. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 601: 16 LST, deep convection (ktype 1) with 3.4e-2 mm of rain and a cloud top that differs between the two columns (kernel level 11 and 29), so the two columns are genuinely different states. Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step601_kcall2_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_dd_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    257.77196396518224,
                    261.35977847147444,
                    262.82715039131006,
                    265.5282530643764,
                    266.8328899399706,
                    268.08250617588817,
                    269.2787290711673,
                    270.4204669810374,
                    272.5882138718245,
                    273.60524920012017,
                    274.5682597079902,
                    275.48011012558095,
                    277.17243631010126,
                    277.95803310449054,
                    274.9970889096652,
                    278.71686574374814,
                    275.88610751859443,
                    276.7433685576369,
                    280.17768437273065,
                    280.86242358183927,
                    277.58376397094645,
                    281.52062807749695,
                    282.1497542464728,
                    279.2465776688667,
                    282.7517182957413,
                    280.1423421934409,
                    283.8812498703323,
                    281.1054611909606,
                    284.4118708417068,
                    284.9214911501516,
                    282.11823645181863,
                    285.8821159229554,
                    286.3350648072726,
                    283.1284139169008,
                    286.770814724574,
                    287.19032090315795,
                    287.59435446585564,
                    287.98370337543685,
                    285.16280180235157,
                    288.359011965153,
                    286.24940509424647,
                    289.06718394645054,
                    289.40218966434986,
                    287.3507109796416,
                    289.7257266910721,
                    290.0382171817886,
                    290.34015115163675,
                    290.63200865915115
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.906320086591512e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_dd_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.002178996696349037,
                    0.0029558853411109738,
                    0.0032411361579437917,
                    0.0038332527201775037,
                    0.004149407139103389,
                    0.004466131984035172,
                    0.004780875470242492,
                    0.005089490482052622,
                    0.005695558566280521,
                    0.005989963735025855,
                    0.006277675424838354,
                    0.006558320297723405,
                    0.007101096863353672,
                    0.007362693644003559,
                    0.006092912037926853,
                    0.0076230517156517085,
                    0.006352780773585465,
                    0.00661773915848213,
                    0.008149420899152163,
                    0.00840888212047917,
                    0.006896171806913309,
                    0.008659551204026266,
                    0.008903422072515377,
                    0.007503255810710518,
                    0.009140648313515382,
                    0.007867897037957428,
                    0.009596038640614306,
                    0.008275336359394233,
                    0.009814647575722271,
                    0.01002744708500787,
                    0.008724120001184468,
                    0.010436167625025737,
                    0.010632301320924279,
                    0.009201408735769887,
                    0.010823076116213108,
                    0.011008664084195178,
                    0.011189189365255989,
                    0.011364811485837425,
                    0.010331822855406535,
                    0.011535627213239452,
                    0.011029495283482875,
                    0.011861286188571088,
                    0.01201695749780862,
                    0.011768065242037187,
                    0.012168412477698185,
                    0.01231572088849411,
                    0.012459010487011654,
                    0.012598415979496888
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.259841597949689e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_dd",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    257.7400168486245,
                    261.3605025682217,
                    262.8152423347525,
                    265.5156612996404,
                    266.82075318308,
                    268.06967148106827,
                    269.26448976644593,
                    270.4037327558678,
                    272.5636313966121,
                    273.58151389313673,
                    274.54664491231745,
                    275.4605134200376,
                    277.1560607205025,
                    277.94299003761006,
                    274.6983963462306,
                    278.7029959009759,
                    275.5746917627245,
                    276.4256624655513,
                    280.1653543739032,
                    280.85506769445806,
                    277.2681027145359,
                    281.5136336575273,
                    282.1431084208186,
                    278.9517905384308,
                    282.74540753620965,
                    279.86076451255246,
                    283.87555835977156,
                    280.8221079721718,
                    284.40646412136465,
                    284.9163553455276,
                    281.82257895857305,
                    285.8774872212973,
                    286.3306746670148,
                    282.82515462938494,
                    286.7666539124282,
                    287.1863768208328,
                    287.59061701716377,
                    287.98016124193055,
                    284.92150954998675,
                    288.35565675376097,
                    286.0692522785646,
                    289.0642363579215,
                    289.39939370536155,
                    287.221833712522,
                    289.72307769918126,
                    290.0357090876957,
                    290.33777610565176,
                    290.6297589159481
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.9062975891594815e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_dd",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.002190410178606248,
                    0.002955622474174009,
                    0.003245495614935458,
                    0.003837948217974301,
                    0.004153979913348671,
                    0.004471020163109158,
                    0.004786359561722709,
                    0.00509600981697162,
                    0.00570536836838127,
                    0.005999500581371812,
                    0.00628636024973966,
                    0.0065661942540107135,
                    0.007107676575254452,
                    0.007368737948276138,
                    0.00621292670991487,
                    0.007628624618477603,
                    0.006477907624293987,
                    0.00674539346628215,
                    0.00815437509268103,
                    0.008411837716028946,
                    0.0070230044997390655,
                    0.008662361561970077,
                    0.008906092365263239,
                    0.007621701279719642,
                    0.009143183976695194,
                    0.007981034950138403,
                    0.009598325489557611,
                    0.00838918768270357,
                    0.009816819995955753,
                    0.010029510651305794,
                    0.008842915181970536,
                    0.01043802743735195,
                    0.01063406527927986,
                    0.00932325831749377,
                    0.010824747930533295,
                    0.011010248816473443,
                    0.011190691072140381,
                    0.011366234715080267,
                    0.010428774082406717,
                    0.011536975337176776,
                    0.01110188068482386,
                    0.011862470529642058,
                    0.012018080914130128,
                    0.011819848127965826,
                    0.012169476842639939,
                    0.012316728640700637,
                    0.012459964780488417,
                    0.01259931992631586
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.2599319926315861e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step1730_kcall2_dd_adjustments",
      "description": "The DOWNDRAUGHT (kcall = 2) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the evaporation-only form `cudlfsn` and `cuddrafn` use for a sinking parcel, whose first increment is clipped at zero. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 1730: 10 LST on the second day, deep convection (ktype 1) with a high cloud base (kernel level 48). Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step1730_kcall2_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_dd_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    269.6589359085332,
                    269.65892685224094,
                    272.6604972586052,
                    273.3954225289781,
                    274.1714330219361,
                    274.1831685771725,
                    275.0191702087725,
                    275.85821276037206,
                    276.69630366045095,
                    276.70265256426273,
                    277.5193351736699,
                    278.30477916262623,
                    279.06573138501363,
                    279.0698478385833,
                    279.8026967749289,
                    280.51339430243024,
                    280.51907957173273,
                    281.2079186914989,
                    281.85796415556797,
                    282.48933922368053,
                    282.50236378301724,
                    283.09319905598477,
                    283.65110711889383,
                    284.1985027568027,
                    284.21149815161294,
                    284.7364849005631,
                    285.2278825765734,
                    285.71311345389864,
                    285.7258266957761,
                    286.1919554634225,
                    286.6280024896578,
                    287.0596302509111,
                    287.0719494068708,
                    287.47524268230535,
                    287.8756148191714,
                    287.8877030784674,
                    288.27345809353363,
                    288.63352419967816,
                    288.99239168991073,
                    289.0041608567724,
                    289.3503599512296,
                    289.6729839991531,
                    289.99581548853917,
                    290.0072983035495,
                    290.3190801152198,
                    290.6090764568199,
                    290.9004519363656,
                    290.91167110642334
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.9091167110642337e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_dd_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.004703449517982697,
                    0.004703049661665456,
                    0.00588270133577307,
                    0.006028267657762442,
                    0.0062272750323091,
                    0.006232615655616867,
                    0.006475282664895285,
                    0.006731036100597674,
                    0.006998850286749836,
                    0.007002002639899675,
                    0.007272304995894362,
                    0.007539468639811404,
                    0.007806207294422889,
                    0.007808401258663996,
                    0.008072356300601382,
                    0.008336420783876159,
                    0.00833977126524671,
                    0.008602472616250629,
                    0.00885330036102777,
                    0.009103691165425387,
                    0.0091120313234834,
                    0.009352805108265987,
                    0.009576209905206837,
                    0.009801449215336435,
                    0.009809902161525434,
                    0.010028940821246486,
                    0.010233380183049432,
                    0.010440808354040175,
                    0.010449471907070507,
                    0.010651164154362945,
                    0.010838660648212347,
                    0.01102942718722705,
                    0.011038201902094398,
                    0.011214992483386579,
                    0.01139549682817858,
                    0.011404329350040236,
                    0.011579934535523723,
                    0.011741871919169084,
                    0.011908011581588761,
                    0.011916909685029758,
                    0.012078545180380762,
                    0.01222685205242854,
                    0.012379808384651435,
                    0.01238875544172718,
                    0.012537581196565643,
                    0.012673411049105038,
                    0.01281430832101402,
                    0.012823288038002936
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.2823288038002936e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_dd",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    269.52906169013625,
                    269.52854450767654,
                    272.6450635698952,
                    273.3523320396834,
                    274.13133133286783,
                    274.1430885438377,
                    274.98667843935414,
                    275.8310986915021,
                    276.67290560611764,
                    276.6792330228278,
                    277.4985462194732,
                    278.28588483301866,
                    279.0481292788609,
                    279.0521783464267,
                    279.786174415868,
                    280.4983761705743,
                    280.5041370314866,
                    281.1937443072926,
                    281.8443968833803,
                    282.4766198439941,
                    282.48996189559887,
                    283.08678749796337,
                    283.6450383859777,
                    284.1927526296,
                    284.2057437248017,
                    284.7310322696627,
                    285.22271792913244,
                    285.70820235847276,
                    285.72090930830086,
                    286.18730286747666,
                    286.6235938866532,
                    287.05545429333597,
                    287.0677711519124,
                    287.4712852825938,
                    287.87186507958916,
                    287.8839516772737,
                    288.2699040262735,
                    288.6301586529378,
                    288.989203520808,
                    289.00097149190947,
                    289.3473387882539,
                    289.67012316949825,
                    289.99310541355493,
                    290.00458736575433,
                    290.3165119904943,
                    290.6066441586591,
                    290.8981470021561,
                    290.9093656635815
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.909093656635815e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_dd",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.004753655962126351,
                    0.004753452531394511,
                    0.00588886551488017,
                    0.006045581416361054,
                    0.006243387890976731,
                    0.0062487198130108034,
                    0.006488337857847588,
                    0.006741930533469621,
                    0.007008251624980962,
                    0.007011412611648231,
                    0.007280657997690589,
                    0.007547060381447725,
                    0.007813279820675045,
                    0.007815500860612527,
                    0.00807899498447204,
                    0.008342455069255874,
                    0.008345775177917597,
                    0.008608167883824722,
                    0.008858751690992771,
                    0.00910880181218339,
                    0.009117014401848103,
                    0.00935538127227898,
                    0.00957864832209252,
                    0.009803759616446485,
                    0.009812214290218177,
                    0.01003113168834226,
                    0.010235455338391196,
                    0.010442781632182294,
                    0.010451447713358061,
                    0.010653033567413999,
                    0.010840432024899576,
                    0.011031105086980731,
                    0.011039880724936668,
                    0.011216582566590678,
                    0.011397003473542722,
                    0.011405836663039851,
                    0.011581362559748846,
                    0.011743224195849371,
                    0.011909292587934234,
                    0.011918191171831677,
                    0.0120797590836644,
                    0.01222800153378385,
                    0.012380897292780111,
                    0.012389844696533264,
                    0.012538613069080351,
                    0.012674388346506036,
                    0.01281523444357939,
                    0.012824214364936769
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.2824214364936769e-11,
            "rel": 0.0
          }
        }
      ]
    },
    {
      "id": "step2101_kcall2_dd_adjustments",
      "description": "The DOWNDRAUGHT (kcall = 2) mode of cuadjtqn, on 48 of the calls WRF's own New Tiedtke made at one model step -- the evaporation-only form `cudlfsn` and `cuddrafn` use for a sinking parcel, whose first increment is clipped at zero. Reference run: the idealized single-column chem170 run of data/eqwefic/notes/chem170_scm_reference_run.md (em_scm_xy, Weisman-Klemp sounding over Kansas, 1997-06-20 12 UTC + 48 h, dx = 20 km, 59 levels, dt = 60 s, cu_physics = 16), step 2101: 17 LST on the second day, deep convection (ktype 1) with 5.5e-3 mm of rain. Reference build: the real64 (kind_phys = real64) replay of that step through kernels/ntiedtke_driver of WRF fork branch earthsciml-instrumented-chem170, with the seven constants cu_ntiedtke_init takes (cp, R_d, R_v, L_v, L_s, L_f, g) supplied at binary64 precision -- they are ARGUMENTS, so that is what a double-precision reference means, and it is what lib/wrf_constants.esm carries. The scheme's OWN parameter block is a separate matter and stays at its binary32 roundings (FORTRAN_BUGS N108). The values are a TAPE of every cuadjtqn invocation of the step, added to the diagnostic kernel for this component: nothing else publishes them, because they are in-place updates of arrays the caller owns and are overwritten many times before cumastrn returns. The tape records the input state, the state after the FIRST Newton step and the final state, so each half of the two-step adjustment is pinned separately rather than only their composition. The 48 calls are sampled evenly along the SORTED input temperature, so the ice branch, the mixed-phase ramp and the water branch of the phase weight are all exercised in every test rather than whichever the tape happened to start with. These are algebraic observeds at t = 0 and the document has no ODE state, so the empty time_span is a single static evaluation.",
      "parameter_overrides": {},
      "expression_template_imports": [
        {
          "ref": "./tests/step2101_kcall2_inputs.esm"
        }
      ],
      "time_span": {
        "start": 0,
        "end": 0
      },
      "tolerance": {
        "rel": 1e-09
      },
      "assertions": [
        {
          "variable": "T_dd_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    270.54170911226316,
                    272.96823656584394,
                    271.73443114307753,
                    273.8180862997687,
                    274.6158059436565,
                    275.4750548483206,
                    273.6982523408233,
                    276.29979349637733,
                    274.68342610664894,
                    277.09755764029563,
                    277.8772084197908,
                    278.65405310612834,
                    276.420929971368,
                    279.41451066341125,
                    280.15954163273136,
                    277.54201632960286,
                    280.8778702764845,
                    281.5649783089652,
                    279.64963448885095,
                    282.20521188114583,
                    282.81382095656926,
                    283.40074070746783,
                    280.4572243146166,
                    283.96904371093484,
                    284.5138975037471,
                    285.0369166307623,
                    281.7453466295286,
                    285.5392979434125,
                    282.31124991155303,
                    286.02212333871876,
                    283.0987924775788,
                    285.52915786831875,
                    287.50034753600914,
                    287.8321606873827,
                    288.3254235553905,
                    288.8768543344003,
                    289.44116039182626,
                    290.26287541746507,
                    290.6528941200216,
                    291.02888874454186,
                    291.39152664404673,
                    291.7414278927477,
                    292.0791821424975,
                    292.4045395980452,
                    293.02166946752624,
                    293.3148069835054,
                    293.5982360412723,
                    293.8723760774837
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.9387237607748373e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_dd_mid",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.005064459068318827,
                    0.00601569019709252,
                    0.005388929399452318,
                    0.006217023480176793,
                    0.006426546136144139,
                    0.006690508606519133,
                    0.005874807584103968,
                    0.0069431394237224765,
                    0.006163388149133827,
                    0.00719696843361124,
                    0.0074546621168640635,
                    0.007723057174507107,
                    0.006636856410815117,
                    0.00799619175263891,
                    0.00827288532157803,
                    0.0070493911185173525,
                    0.008546408501516651,
                    0.008813425523406944,
                    0.00791688869951491,
                    0.009062849197011969,
                    0.009304322031986669,
                    0.009547481464161576,
                    0.008205156095025541,
                    0.009781274538071627,
                    0.010008546338807196,
                    0.010229665546541214,
                    0.008606494296923978,
                    0.010444817081798051,
                    0.008793116679297771,
                    0.010654138648022603,
                    0.009182219534889884,
                    0.010744171805857848,
                    0.012186387715839513,
                    0.012279600864596197,
                    0.012525870246126678,
                    0.012827905153866724,
                    0.01315027369863684,
                    0.013563254661149642,
                    0.013760128106911627,
                    0.013951422466779379,
                    0.014137322496502472,
                    0.014317996262665066,
                    0.01449361459522789,
                    0.014663656953109306,
                    0.014988746423260806,
                    0.015144461228446848,
                    0.015295838324332489,
                    0.015443023063547534
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.5443023063547534e-11,
            "rel": 0.0
          }
        },
        {
          "variable": "T_dd",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    270.43183345895073,
                    272.9508446327368,
                    271.59883546705674,
                    273.7756501527476,
                    274.5712328065345,
                    275.44267229161755,
                    273.49057962135953,
                    276.26952431023136,
                    274.4692353461032,
                    277.07063387882675,
                    277.8535900906036,
                    278.6327248970917,
                    276.1443646606913,
                    279.3959063953227,
                    280.1427025424169,
                    277.2658746714985,
                    280.8621527602508,
                    281.5500369631396,
                    279.4125225399373,
                    282.1904609792877,
                    282.8004704431508,
                    283.394188332294,
                    280.1969531033475,
                    283.96283765983577,
                    284.5080173560531,
                    285.0313369916282,
                    281.4174657872704,
                    285.5340038033323,
                    281.96825231823146,
                    286.01710215981404,
                    282.79452691105547,
                    285.42632823152786,
                    287.49331571958464,
                    287.8151072238953,
                    288.3121102970301,
                    288.8661666794837,
                    289.4319568629183,
                    290.2579814983341,
                    290.648277273715,
                    291.0245271025122,
                    291.3874052597735,
                    291.73753305674296,
                    292.07550057009627,
                    292.40108716072194,
                    293.01860299436663,
                    293.31190866570245,
                    293.5954962547265,
                    293.86978535251
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 2.9386978535251e-07,
            "rel": 0.0
          }
        },
        {
          "variable": "q_dd",
          "time": 0.0,
          "reduce": "Linf_error",
          "expected": 0.0,
          "reference": {
            "op": "faq",
            "output_idx": [
              "k"
            ],
            "args": [],
            "ranges": {
              "k": {
                "from": "pt"
              }
            },
            "expr": {
              "op": "index",
              "args": [
                {
                  "op": "const",
                  "args": [],
                  "value": [
                    0.005107318719459628,
                    0.006022662067446655,
                    0.005442510668106621,
                    0.006234074324049895,
                    0.006444455622639741,
                    0.00670351991780242,
                    0.005958250482784509,
                    0.006955301582715918,
                    0.006249449996721118,
                    0.0072077864009694416,
                    0.007464151961531484,
                    0.007731626848898028,
                    0.0067479803526450275,
                    0.008003666947556883,
                    0.008279651268066394,
                    0.007160344836743683,
                    0.008552723799539334,
                    0.008819428956159671,
                    0.008012160280588425,
                    0.00906877610937856,
                    0.009309686268278211,
                    0.009550114208506417,
                    0.008309733067713479,
                    0.009783768129403242,
                    0.010010908982150657,
                    0.010231907445545273,
                    0.008738236819343352,
                    0.01044694426728228,
                    0.008930933112294372,
                    0.010656156157706516,
                    0.009304473439518969,
                    0.010785488753920436,
                    0.012189213099678879,
                    0.012286452946225428,
                    0.012531219513335908,
                    0.01283219945361223,
                    0.013153971676552051,
                    0.013565221037856458,
                    0.013761983155757612,
                    0.013953174974546909,
                    0.014138978468703461,
                    0.014319561207771765,
                    0.014495093851018687,
                    0.01466504414242579,
                    0.014989978532176327,
                    0.01514562577254006,
                    0.015296939170566584,
                    0.015444064016841957
                  ]
                },
                "k"
              ]
            }
          },
          "tolerance": {
            "abs": 1.5444064016841957e-11,
            "rel": 0.0
          }
        }
      ]
    }
  ]
}