Ice-Sheet
- BasalTraction
model
cryosphere
cism
Stage-2 implementation of the CISM basal physics (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00_002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20): (a) Effecpress - the cell-centered effective pressure of glissade_calc_effecpress (libglissade/glissade_basal_traction.F90:668-1114) for the reference option HO_EFFECPRESS_BWAT_BVP (which_ho_effecpress = 4, F90:944-985): the Bueler & van Pelt (2015) Eq. 23 law N = N0*(delta*P/N0)^s * 10^((e0/Cc)*(1-s)) with s = clamp(bwat/bwat_till_max, 0, 1), imported by reference from the EqIce basal_templates.esm mohr_coulomb_N_interior (the identical functional form, CISM_LANE.md row 9), plus the two CISM-specific branches: the min(., overburden) cap and the bwat = 0 initialization (N = overburden when the bwat > 0 branch does not fire, F90:784), and the floating-cell zeroing (F90:982-985). The final 0..overburden capping of F90:1082-1086 is a no-op on this construction (N is already in [0, P]) and is documented, not transcribed. The cell-to-vertex stagger (effecpress_stag = 4-cell average of effecpress with stagger_margin = 0, F90:1096-1098; the plain average over all four neighboring cells, glissade_grid_operators.F90:125-133) is a grid discretization step and lives in the stage-3 assembly, not here; the traced N column of cism_basal_traction.csv is that staggered value and is carried into the drag law as the input N_stag. (b) BasalTraction - the pseudo-plastic drag of glissade_calcbeta (F90:69-664) for the reference option HO_BABC_PSEUDO_PLASTIC_OLD (which_ho_babc = 3, F90:250-292): phi(bed) from the bed-elevation ramp (cism_templates.esm cism_phi_ramp, with the CELL-CENTER topg quirk, F90:261-263, bugs.md #23), tanphi = tan(phi*pi/180), yield stress tau_c = tanphi * N_stag, regularized speed = sqrt(u^2 + v^2 + 0.01^2) (the Fortran smallnum = 1.0d-2 m/yr of F90:136,189), and beta = tau_c / (u0^q * speed^(1-q)) - the identical formula to EqIce's pseudo-plastic drag beta = tauc*(eps^2+vx^2+vy^2)^((q-1)/2)*u_threshold^(-q) with eps = 0.01 m/yr (CISM_LANE.md row 8: 'same drag law'), imported by reference from ../../eqice/stage2/basal_templates.esm. Not transcribed (documented coverage gaps): the beta_grounded_min floor and f_ground weighting of F90:597-633 (which_ho_beta_limit = 0 in the reference run; f_ground = 1 at every traced vertex so the floor at 100 Pa yr/m never fires on the traced rows) and the speed cap of F90:196-198 (beta_powerlaw_umax = 0 in the reference config). Tests pin the stage-1 instrumented trace cism_basal_traction.csv (one row per traced vertex and Picard iteration of the velocity solve; q = 0.5, u0 = 100 m/yr, phimin = 5 deg, phimax = 40 deg, bedmin = -300 m, bedmax = 700 m on every row) and the velo-trace overburden chain (the effecpress trace is empty in this run - gland20 starts with bwat = 0 everywhere and the 2-year cold-base run melts nothing, so N is pinned via N = rhoi*g*thck with thck from cism_velo.csv and the source formula for the bwat > 0 branches, see README.md).
- BasalWater
model
cryosphere
cism
Stage-2 implementation of the CISM basal physics (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00_002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20): (a) Effecpress - the cell-centered effective pressure of glissade_calc_effecpress (libglissade/glissade_basal_traction.F90:668-1114) for the reference option HO_EFFECPRESS_BWAT_BVP (which_ho_effecpress = 4, F90:944-985): the Bueler & van Pelt (2015) Eq. 23 law N = N0*(delta*P/N0)^s * 10^((e0/Cc)*(1-s)) with s = clamp(bwat/bwat_till_max, 0, 1), imported by reference from the EqIce basal_templates.esm mohr_coulomb_N_interior (the identical functional form, CISM_LANE.md row 9), plus the two CISM-specific branches: the min(., overburden) cap and the bwat = 0 initialization (N = overburden when the bwat > 0 branch does not fire, F90:784), and the floating-cell zeroing (F90:982-985). The final 0..overburden capping of F90:1082-1086 is a no-op on this construction (N is already in [0, P]) and is documented, not transcribed. The cell-to-vertex stagger (effecpress_stag = 4-cell average of effecpress with stagger_margin = 0, F90:1096-1098; the plain average over all four neighboring cells, glissade_grid_operators.F90:125-133) is a grid discretization step and lives in the stage-3 assembly, not here; the traced N column of cism_basal_traction.csv is that staggered value and is carried into the drag law as the input N_stag. (b) BasalTraction - the pseudo-plastic drag of glissade_calcbeta (F90:69-664) for the reference option HO_BABC_PSEUDO_PLASTIC_OLD (which_ho_babc = 3, F90:250-292): phi(bed) from the bed-elevation ramp (cism_templates.esm cism_phi_ramp, with the CELL-CENTER topg quirk, F90:261-263, bugs.md #23), tanphi = tan(phi*pi/180), yield stress tau_c = tanphi * N_stag, regularized speed = sqrt(u^2 + v^2 + 0.01^2) (the Fortran smallnum = 1.0d-2 m/yr of F90:136,189), and beta = tau_c / (u0^q * speed^(1-q)) - the identical formula to EqIce's pseudo-plastic drag beta = tauc*(eps^2+vx^2+vy^2)^((q-1)/2)*u_threshold^(-q) with eps = 0.01 m/yr (CISM_LANE.md row 8: 'same drag law'), imported by reference from ../../eqice/stage2/basal_templates.esm. Not transcribed (documented coverage gaps): the beta_grounded_min floor and f_ground weighting of F90:597-633 (which_ho_beta_limit = 0 in the reference run; f_ground = 1 at every traced vertex so the floor at 100 Pa yr/m never fires on the traced rows) and the speed cap of F90:196-198 (beta_powerlaw_umax = 0 in the reference config). Tests pin the stage-1 instrumented trace cism_basal_traction.csv (one row per traced vertex and Picard iteration of the velocity solve; q = 0.5, u0 = 100 m/yr, phimin = 5 deg, phimax = 40 deg, bedmin = -300 m, bedmax = 700 m on every row) and the velo-trace overburden chain (the effecpress trace is empty in this run - gland20 starts with bwat = 0 everywhere and the 2-year cold-base run melts nothing, so N is pinned via N = rhoi*g*thck with thck from cism_velo.csv and the source formula for the bwat > 0 branches, see README.md).
- CalvingLaw
model
cryosphere
cism
Stage-2 implementation of the CISM calving physics (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00_002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20): (a) CalvingLaw - the CALVING_FLOAT_ZERO threshold/margin criterion and removal law of glissade_calving_solve (libglissade/glissade_calving.F90:618-963) for the reference options whichcalving = 1 = CALVING_FLOAT_ZERO, calving_domain = 1 = CALVING_DOMAIN_EVERYWHERE and calving timescale = 0 (glide_types.F90:183,200,1648): the basic ice/floating masks of glissade_get_masks with the law's mask threshold thklim = 0.0 (calve_ice_basic, F90:1085-1092; ice_mask = thck > 0, floating_mask = ice & (topg - eus < -(rhoi/rhoo)*thck), glissade_masks.F90:165-193, rhoi/rhoo = 917/1026 - glimmer_physcon.F90:41-42, the CCSMCOUPLED pointer associations rhoi => SHR_CONST_RHOICE, rhoo => SHR_CONST_RHOSW that override the standalone 910/1028 defaults of F90:67-68 - the cism_templates.esm cism_floating_mask template), the calving fraction (F90:1065-1077: 1.0 for timescale = 0, else min(dt/timescale, 1)), and the removal law (F90:1175-1188, the cism_calving_float_zero template): calving_thck = calving_fraction*thck where the cell is floating and inside the calving domain (with CALVING_DOMAIN_EVERYWHERE the domain mask is identically 1, F90:1171), then thck -= calving_thck (F90:1185). (b) IcebergRemoval - the remove_icebergs pass (F90:875-922, 4110-4324) as a PER-CELL LAW GIVEN THE DUMPED CONNECTIVITY MASK: iceberg removal is a flood fill (firmly grounded cells with f_ground_cell >= f_ground_threshold seed a fill; the initial color is thck > 0 and the fill spreads through the law's ice_mask cells, F90:4216-4225; floating cells still holding the initial color with land_mask = 0 are removed, F90:4310-4318), which the .esm spec cannot express as an equation - the stage-1 dump carries the per-cell result (calving_thck_iceberg, the amount the pass removed) and the model applies the per-cell law removal = thck where iceberg_mask = 1. In the reference window the mask is 0 on every row (the CALVING_FLOAT_ZERO law has already removed every floating cell within the same solve, and remove_icebergs only removes floating cells), so only the no-op branch is pinned (hollow boundary pins); the flood fill itself has no operator in the esm spec or EarthSciDiscretizations and is a documented stage-3 gap (README.md). (c) IceCapRemoval - the ice-cap removal of glissade_handle_ice_caps (glissade_utils.F90:1141-1235) as a PER-CELL LAW GIVEN THE DUMPED CONNECTIVITY MASK: the ice_cap_mask of glissade_ice_sheet_mask (cells with thck > thklim = 1.0 m, the run's ice_limit, not connected by edge neighbors to any cell with thck >= minthck_ice_sheet = 2000 m, glissade_masks.F90:701-889) is likewise a flood-fill result the spec cannot express; the model applies the per-cell removal law (F90:1228-1233): removal_thck += thck and thck = 0 where ice_cap_mask = 1. The mask is exercised in the reference run (the gland20 initial state has ice caps removed at initialization, cism_step = 0, and a cap forms and is removed in year 2). Tests pin the stage-1 instrumented traces cism_calving.csv and cism_calving_icecap.csv (one row per active cell and solve call; the law fires at the marine margins from step 3 on, and the caps fire at init and in year 2) and the h0i whole-domain flux.
- DivaBalance
model
cryosphere
cism
The CISM DIVA depth-integrated momentum balance as a PDE on the 2-D vertex grid (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 as built in CESM cesm3.0-alphabranch, glissade_velo_higher.F90, which_ho_approx = HO_APPROX_DIVA = 4 for the reference run). The model solves nothing: it evaluates the discretized balance on the dumped converged FE solution of the fixed 9x9-vertex patch (stage1/dumps/cism/cism_velo_patch.csv, dump_patch_i0 = 24, dump_patch_j0 = 14, dump_patch_n = 8, 2026-11-12 run 12362182), pins the slope-correction chain (F_x/y, beta_eff_x/y) straight to the dumped columns and the balance sums Rx/Ry to the measured FE-vs-FD scale (1.5% of the largest local term and of the dumped driving stress) at interior vertices, so the stage-2 lane can hold the discretization accountable against the FE solve it replaces.
- DivaGeometry
model
cryosphere
cism
Stage-2 implementation of the pointwise laws of the CISM DIVA velocity solve (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00.002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20, which_ho_approx = HO_APPROX_DIVA = 4, which_ho_gradient = 0, margin = 1, assemble_taud = 1, diva_slope_correction = .true., which_ho_babc = 3, max_slope = 0.5, thck_gradient_ramp = 50 m, thklim = 1 m, upn = 11, nquad = 4): three pointwise components covering the DIVA column laws of glissade_velo_higher_solve, leaving the 2-D finite-element matrix solve, the vertex staggers, and the Picard iteration itself to the stage-3 assembly (README.md): (a) DivaGeometry - the vertex geometry of the driving stress and the slope correction: the hybrid-margin surface gradient dusrf_dx/dy of the NE-corner vertex from the four-cell stencil (glissade_grid_operators.F90 surface_elevation_gradient, HO_GRADIENT_MARGIN_HYBRID, F90:999-1079, with the max_slope clamp F90:1234-1252), the staggered thickness stagthck (the stagger_margin = 0 plain 4-cell mean, cism_stagger_masked_mean with unit masks), the driving stress taudx = -rhoi*grav*stagthck*dusrf_dx (load_vector_gravity, HO_ASSEMBLE_TAUD_LOCAL, F90:4353-4384), the slope angle of the DIVA correction theta_x = atan(|dz_dx|) from the PLAIN vertex gradient of z_mean = usrf - thck/2 (glissade_slope_angle_staggered, F90:1510, with slope_mask = 1 everywhere) and the slope factor F = cos^2(theta) + 4 sin^2(theta) (F90:2189-2193), plus the bwat = 0 effective-pressure identity effecpress_stag = rhoi*g*stagthck pinned at the same stencil; (b) DivaIntegrals - the Goldberg (2011) vertical integrals of the sigma column (compute_integrals_diva, F90:5570-5696): omega_k as the interface-to-bed cumulative integral of sig_mid*thck*(mean over the nquad quadrature points of 1/efvs_qp) and omega as the trapezoid sigma integral of omega_k (no thck factor), both written as ESD integral operators lowered by the local EarthSciDiscretizations-format rules of ./cism_velo_discretization.esm (the imported column_nonuniform_1d rules integral_lev_nodes_cumulative_to_top and integral_lev_whole, the exact stencil of the Fortran loops), with the cell-centered efvs (the arithmetic mean of the quad-point viscosities, F90:5266-5272; the Fortran computes the integral at each quad point and averages, NOT the integral of the averaged viscosity, F90:5578-5583), the staggered stag_omega (the 4-cell mean of omega with stagger_margin = 1; the other three cells' omega enter as inputs because only the traced cell's efvs_q is dumped), and the active-cell guard (the whole block sits inside the active_cell test of the element loop, F90:5091: ice-free cells keep efvs = omega_k = omega = 0 even when the dumped efvs_q inputs are stale nonzero values from a previous step); (c) DivaVelocity - the basal friction, traction and 3-D recovery chain: the pseudo-plastic beta of the mounted BasalTraction (./cism_basal.esm, which_ho_babc = 3) evaluated at the basal velocity, beta_internal = f_ground*beta (the calcbeta f_ground weighting, glissade_basal_traction.F90:595-630; f_ground = 1 on every traced row), the effective basal friction beta_eff = F*beta/(F + beta*omega*cos(theta)) (F90:2589-2601, Goldberg 2011 eq. 40-41 with the May 2025 slope correction), the basal traction btractx = beta_internal*uvel_basal (= beta_eff*uvel_2d, F90:3874, 5780), the basal-velocity recovery uvel_basal = uvel_2d*beta_eff/beta_internal (Goldberg eq. 34, F90:5800-5801) and the 3-D velocity profile uvel[k] = uvel_basal + btractx*stag_omega_k[k]*cos(theta)/F (Goldberg eq. 32 with the slope correction, F90:5935-5936). Deferred to stage 3 (documented in README.md): the 2-D finite-element assembly and the Picard iteration of the solve itself, the effective-pressure cell-to-vertex stagger (N_stag enters as a dumped input; the effecpress_stag = rhoi*g*stagthck identity of the bwat = 0 run is pinned in the DivaGeometry tests). The dumped beta_internal is the last ACCEPTED calcbeta pass of accel_picard (the cism_basal_traction.csv row whose beta equals beta_internal); the tests feed BasalTraction that pass's u/v/bed/N, which makes the beta chain exact, so every law is pinned at rel 1e-12 (dusrf/taud at 1e-11, the ~1800 m elevation dump round-trip). Tests pin the laws against the cism_velo.csv / cism_velo_nbr.csv exit rows (4 steps x 32 traced cells, solver-internal m/yr and Pa yr units; scale_output has not yet run). The seven wiring edges of the velocity block (BasalTraction.beta -> DivaVelocity.beta_raw and the four geometry / two integral staggers) are authored once in the EqESM stage2 coupling library ./cism_velo_coupling.esm (esm-spec 10.9-10.10), an EqESM-only coupling library that is not ported to the corpus; this port inlines those edges so its standalone tests consume exactly the wiring the EqESM cism subassembly reaches through its own coupling_import of the library.
- DivaIntegrals
model
cryosphere
cism
Stage-2 implementation of the pointwise laws of the CISM DIVA velocity solve (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00.002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20, which_ho_approx = HO_APPROX_DIVA = 4, which_ho_gradient = 0, margin = 1, assemble_taud = 1, diva_slope_correction = .true., which_ho_babc = 3, max_slope = 0.5, thck_gradient_ramp = 50 m, thklim = 1 m, upn = 11, nquad = 4): three pointwise components covering the DIVA column laws of glissade_velo_higher_solve, leaving the 2-D finite-element matrix solve, the vertex staggers, and the Picard iteration itself to the stage-3 assembly (README.md): (a) DivaGeometry - the vertex geometry of the driving stress and the slope correction: the hybrid-margin surface gradient dusrf_dx/dy of the NE-corner vertex from the four-cell stencil (glissade_grid_operators.F90 surface_elevation_gradient, HO_GRADIENT_MARGIN_HYBRID, F90:999-1079, with the max_slope clamp F90:1234-1252), the staggered thickness stagthck (the stagger_margin = 0 plain 4-cell mean, cism_stagger_masked_mean with unit masks), the driving stress taudx = -rhoi*grav*stagthck*dusrf_dx (load_vector_gravity, HO_ASSEMBLE_TAUD_LOCAL, F90:4353-4384), the slope angle of the DIVA correction theta_x = atan(|dz_dx|) from the PLAIN vertex gradient of z_mean = usrf - thck/2 (glissade_slope_angle_staggered, F90:1510, with slope_mask = 1 everywhere) and the slope factor F = cos^2(theta) + 4 sin^2(theta) (F90:2189-2193), plus the bwat = 0 effective-pressure identity effecpress_stag = rhoi*g*stagthck pinned at the same stencil; (b) DivaIntegrals - the Goldberg (2011) vertical integrals of the sigma column (compute_integrals_diva, F90:5570-5696): omega_k as the interface-to-bed cumulative integral of sig_mid*thck*(mean over the nquad quadrature points of 1/efvs_qp) and omega as the trapezoid sigma integral of omega_k (no thck factor), both written as ESD integral operators lowered by the local EarthSciDiscretizations-format rules of ./cism_velo_discretization.esm (the imported column_nonuniform_1d rules integral_lev_nodes_cumulative_to_top and integral_lev_whole, the exact stencil of the Fortran loops), with the cell-centered efvs (the arithmetic mean of the quad-point viscosities, F90:5266-5272; the Fortran computes the integral at each quad point and averages, NOT the integral of the averaged viscosity, F90:5578-5583), the staggered stag_omega (the 4-cell mean of omega with stagger_margin = 1; the other three cells' omega enter as inputs because only the traced cell's efvs_q is dumped), and the active-cell guard (the whole block sits inside the active_cell test of the element loop, F90:5091: ice-free cells keep efvs = omega_k = omega = 0 even when the dumped efvs_q inputs are stale nonzero values from a previous step); (c) DivaVelocity - the basal friction, traction and 3-D recovery chain: the pseudo-plastic beta of the mounted BasalTraction (./cism_basal.esm, which_ho_babc = 3) evaluated at the basal velocity, beta_internal = f_ground*beta (the calcbeta f_ground weighting, glissade_basal_traction.F90:595-630; f_ground = 1 on every traced row), the effective basal friction beta_eff = F*beta/(F + beta*omega*cos(theta)) (F90:2589-2601, Goldberg 2011 eq. 40-41 with the May 2025 slope correction), the basal traction btractx = beta_internal*uvel_basal (= beta_eff*uvel_2d, F90:3874, 5780), the basal-velocity recovery uvel_basal = uvel_2d*beta_eff/beta_internal (Goldberg eq. 34, F90:5800-5801) and the 3-D velocity profile uvel[k] = uvel_basal + btractx*stag_omega_k[k]*cos(theta)/F (Goldberg eq. 32 with the slope correction, F90:5935-5936). Deferred to stage 3 (documented in README.md): the 2-D finite-element assembly and the Picard iteration of the solve itself, the effective-pressure cell-to-vertex stagger (N_stag enters as a dumped input; the effecpress_stag = rhoi*g*stagthck identity of the bwat = 0 run is pinned in the DivaGeometry tests). The dumped beta_internal is the last ACCEPTED calcbeta pass of accel_picard (the cism_basal_traction.csv row whose beta equals beta_internal); the tests feed BasalTraction that pass's u/v/bed/N, which makes the beta chain exact, so every law is pinned at rel 1e-12 (dusrf/taud at 1e-11, the ~1800 m elevation dump round-trip). Tests pin the laws against the cism_velo.csv / cism_velo_nbr.csv exit rows (4 steps x 32 traced cells, solver-internal m/yr and Pa yr units; scale_output has not yet run). The seven wiring edges of the velocity block (BasalTraction.beta -> DivaVelocity.beta_raw and the four geometry / two integral staggers) are authored once in the EqESM stage2 coupling library ./cism_velo_coupling.esm (esm-spec 10.9-10.10), an EqESM-only coupling library that is not ported to the corpus; this port inlines those edges so its standalone tests consume exactly the wiring the EqESM cism subassembly reaches through its own coupling_import of the library.
- DivaVelocity
model
cryosphere
cism
Stage-2 implementation of the pointwise laws of the CISM DIVA velocity solve (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00.002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20, which_ho_approx = HO_APPROX_DIVA = 4, which_ho_gradient = 0, margin = 1, assemble_taud = 1, diva_slope_correction = .true., which_ho_babc = 3, max_slope = 0.5, thck_gradient_ramp = 50 m, thklim = 1 m, upn = 11, nquad = 4): three pointwise components covering the DIVA column laws of glissade_velo_higher_solve, leaving the 2-D finite-element matrix solve, the vertex staggers, and the Picard iteration itself to the stage-3 assembly (README.md): (a) DivaGeometry - the vertex geometry of the driving stress and the slope correction: the hybrid-margin surface gradient dusrf_dx/dy of the NE-corner vertex from the four-cell stencil (glissade_grid_operators.F90 surface_elevation_gradient, HO_GRADIENT_MARGIN_HYBRID, F90:999-1079, with the max_slope clamp F90:1234-1252), the staggered thickness stagthck (the stagger_margin = 0 plain 4-cell mean, cism_stagger_masked_mean with unit masks), the driving stress taudx = -rhoi*grav*stagthck*dusrf_dx (load_vector_gravity, HO_ASSEMBLE_TAUD_LOCAL, F90:4353-4384), the slope angle of the DIVA correction theta_x = atan(|dz_dx|) from the PLAIN vertex gradient of z_mean = usrf - thck/2 (glissade_slope_angle_staggered, F90:1510, with slope_mask = 1 everywhere) and the slope factor F = cos^2(theta) + 4 sin^2(theta) (F90:2189-2193), plus the bwat = 0 effective-pressure identity effecpress_stag = rhoi*g*stagthck pinned at the same stencil; (b) DivaIntegrals - the Goldberg (2011) vertical integrals of the sigma column (compute_integrals_diva, F90:5570-5696): omega_k as the interface-to-bed cumulative integral of sig_mid*thck*(mean over the nquad quadrature points of 1/efvs_qp) and omega as the trapezoid sigma integral of omega_k (no thck factor), both written as ESD integral operators lowered by the local EarthSciDiscretizations-format rules of ./cism_velo_discretization.esm (the imported column_nonuniform_1d rules integral_lev_nodes_cumulative_to_top and integral_lev_whole, the exact stencil of the Fortran loops), with the cell-centered efvs (the arithmetic mean of the quad-point viscosities, F90:5266-5272; the Fortran computes the integral at each quad point and averages, NOT the integral of the averaged viscosity, F90:5578-5583), the staggered stag_omega (the 4-cell mean of omega with stagger_margin = 1; the other three cells' omega enter as inputs because only the traced cell's efvs_q is dumped), and the active-cell guard (the whole block sits inside the active_cell test of the element loop, F90:5091: ice-free cells keep efvs = omega_k = omega = 0 even when the dumped efvs_q inputs are stale nonzero values from a previous step); (c) DivaVelocity - the basal friction, traction and 3-D recovery chain: the pseudo-plastic beta of the mounted BasalTraction (./cism_basal.esm, which_ho_babc = 3) evaluated at the basal velocity, beta_internal = f_ground*beta (the calcbeta f_ground weighting, glissade_basal_traction.F90:595-630; f_ground = 1 on every traced row), the effective basal friction beta_eff = F*beta/(F + beta*omega*cos(theta)) (F90:2589-2601, Goldberg 2011 eq. 40-41 with the May 2025 slope correction), the basal traction btractx = beta_internal*uvel_basal (= beta_eff*uvel_2d, F90:3874, 5780), the basal-velocity recovery uvel_basal = uvel_2d*beta_eff/beta_internal (Goldberg eq. 34, F90:5800-5801) and the 3-D velocity profile uvel[k] = uvel_basal + btractx*stag_omega_k[k]*cos(theta)/F (Goldberg eq. 32 with the slope correction, F90:5935-5936). Deferred to stage 3 (documented in README.md): the 2-D finite-element assembly and the Picard iteration of the solve itself, the effective-pressure cell-to-vertex stagger (N_stag enters as a dumped input; the effecpress_stag = rhoi*g*stagthck identity of the bwat = 0 run is pinned in the DivaGeometry tests). The dumped beta_internal is the last ACCEPTED calcbeta pass of accel_picard (the cism_basal_traction.csv row whose beta equals beta_internal); the tests feed BasalTraction that pass's u/v/bed/N, which makes the beta chain exact, so every law is pinned at rel 1e-12 (dusrf/taud at 1e-11, the ~1800 m elevation dump round-trip). Tests pin the laws against the cism_velo.csv / cism_velo_nbr.csv exit rows (4 steps x 32 traced cells, solver-internal m/yr and Pa yr units; scale_output has not yet run). The seven wiring edges of the velocity block (BasalTraction.beta -> DivaVelocity.beta_raw and the four geometry / two integral staggers) are authored once in the EqESM stage2 coupling library ./cism_velo_coupling.esm (esm-spec 10.9-10.10), an EqESM-only coupling library that is not ported to the corpus; this port inlines those edges so its standalone tests consume exactly the wiring the EqESM cism subassembly reaches through its own coupling_import of the library.
- Effecpress
model
cryosphere
cism
Stage-2 implementation of the CISM basal physics (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00_002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20): (a) Effecpress - the cell-centered effective pressure of glissade_calc_effecpress (libglissade/glissade_basal_traction.F90:668-1114) for the reference option HO_EFFECPRESS_BWAT_BVP (which_ho_effecpress = 4, F90:944-985): the Bueler & van Pelt (2015) Eq. 23 law N = N0*(delta*P/N0)^s * 10^((e0/Cc)*(1-s)) with s = clamp(bwat/bwat_till_max, 0, 1), imported by reference from the EqIce basal_templates.esm mohr_coulomb_N_interior (the identical functional form, CISM_LANE.md row 9), plus the two CISM-specific branches: the min(., overburden) cap and the bwat = 0 initialization (N = overburden when the bwat > 0 branch does not fire, F90:784), and the floating-cell zeroing (F90:982-985). The final 0..overburden capping of F90:1082-1086 is a no-op on this construction (N is already in [0, P]) and is documented, not transcribed. The cell-to-vertex stagger (effecpress_stag = 4-cell average of effecpress with stagger_margin = 0, F90:1096-1098; the plain average over all four neighboring cells, glissade_grid_operators.F90:125-133) is a grid discretization step and lives in the stage-3 assembly, not here; the traced N column of cism_basal_traction.csv is that staggered value and is carried into the drag law as the input N_stag. (b) BasalTraction - the pseudo-plastic drag of glissade_calcbeta (F90:69-664) for the reference option HO_BABC_PSEUDO_PLASTIC_OLD (which_ho_babc = 3, F90:250-292): phi(bed) from the bed-elevation ramp (cism_templates.esm cism_phi_ramp, with the CELL-CENTER topg quirk, F90:261-263, bugs.md #23), tanphi = tan(phi*pi/180), yield stress tau_c = tanphi * N_stag, regularized speed = sqrt(u^2 + v^2 + 0.01^2) (the Fortran smallnum = 1.0d-2 m/yr of F90:136,189), and beta = tau_c / (u0^q * speed^(1-q)) - the identical formula to EqIce's pseudo-plastic drag beta = tauc*(eps^2+vx^2+vy^2)^((q-1)/2)*u_threshold^(-q) with eps = 0.01 m/yr (CISM_LANE.md row 8: 'same drag law'), imported by reference from ../../eqice/stage2/basal_templates.esm. Not transcribed (documented coverage gaps): the beta_grounded_min floor and f_ground weighting of F90:597-633 (which_ho_beta_limit = 0 in the reference run; f_ground = 1 at every traced vertex so the floor at 100 Pa yr/m never fires on the traced rows) and the speed cap of F90:196-198 (beta_powerlaw_umax = 0 in the reference config). Tests pin the stage-1 instrumented trace cism_basal_traction.csv (one row per traced vertex and Picard iteration of the velocity solve; q = 0.5, u0 = 100 m/yr, phimin = 5 deg, phimax = 40 deg, bedmin = -300 m, bedmax = 700 m on every row) and the velo-trace overburden chain (the effecpress trace is empty in this run - gland20 starts with bwat = 0 everywhere and the 2-year cold-base run melts nothing, so N is pinned via N = rhoi*g*thck with thck from cism_velo.csv and the source formula for the bwat > 0 branches, see README.md).
- FlowFactorColumn
model
cryosphere
cism
Stage-2 implementation of the CISM flow factor (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00_002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20): the Paterson & Budd (1982) rate factor A(T*) = E * a * exp(-Q/(R*T*)) of glissade_flow_factor (libglissade/glissade_therm.F90:2408-2640) for the reference option FLWA_PATERSON_BUDD (flow_law = 2, F90:2585-2606): T* = tempcor + 273.15 with tempcor = clamp(temp - pmptemp, -50, 0) degC (the CISM-specific T* construction, F90:2596-2598, cism_templates.esm cism_tempcor), the (a, Q/R) pair switching at tempcor >= -10 degC (T* >= 263.15 K): (arrmlh, actenh/gascon) = (1.733e3, 139e3/8.314) above, (arrmll, actenl/gascon) = (3.613e-13, 60e3/8.314) below (glimmer_physcon.F90:94-102, the arrfact table of F90:2502-2506), and the flow enhancement factor E multiplying the rate factor (F90:2579, 2603, 2605; which_ho_flow_enhancement_factor = 0 gives E = flow_factor_ground = 1.0 in the reference config). The softness law itself is the same as PISM's Paterson-Budd law and is imported by reference from the EqIce ice_rheology_templates.esm pb_softness (CISM_LANE.md row 4: 'same law, same constants'; PISM's A_cold = 3.61e-13 differs from CISM's arrmll = 3.613e-13 in the third digit, so the CISM constants are bound at the call site), with the CISM-specific T* construction applied before it. The pressure melting point pmptemp = -rhoi*grav*pmlt*thck*stagsigma (F90:2170) and the layer column geometry (stagsigma) live in the temperature-solve component (a later lane) and are inputs here, exactly as the trace provides them. Tests pin the stage-1 instrumented trace cism_flowlaw.csv (one row per traced cell and layer, nlayers = 10, at each step; E = 1.0 and tempcor > -10 degC on every traced row - the reference window is warm-branch only - so the cold branch and the tempcor clamp bounds are pinned synthetically from the source formula, see README.md). The single model FlowFactorColumn applies the law elementwise over the 10-layer index set lev through the esm-spec 9.6.11 elementwise lift (the applications of the cism_tempcor and pb_softness templates are read per element when their arguments are the shaped temp/pmptemp/T_star, so the column model is the Fortran layer loop of glissade_flow_factor and is the single flow-law mount of the cism subassembly, fed by whole-array edges from the temperature solve); the scalar pointwise form of the law was factored out of the file in the wt/cism-calving3 round (nothing outside this file mounted it), with its single-layer pins re-expressed on the column model at the same dump rows (single-layer coords assertions).
- GladSmb
model
cryosphere
cism
Stage-2 implementation of the pointwise slice of the CISM thickness/tracer solve (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00_002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20; CISM_LANE.md rows 6/7/14): the parts of glissade_thickness_tracer_solve that are not horizontal/vertical grid operations. (a) GladSmb - the cap qsmb-to-acab conversion and the glad-level zeroing (libglad/glad_main.F90:810-824, libglad/glad_timestep.F90:171-200): the Fortran chain acab = qsmb*tstep_mbal*hours2seconds/rhow*rhow/rhoi*windows_per_year with the named glad/glimmer constants hours2seconds = 3600 s/h (glad_constants.F90:44), rhow = SHR_CONST_RHOFW = 1000 kg/m3 and rhoi = SHR_CONST_RHOICE = 917 kg/m3 (glimmer_physcon.F90:41-43) and scyr = 31536000 s/yr (glimmer_physcon.F90:90) driving the DERIVED windows_per_year = scyr/(tstep_mbal*hours2seconds) [1/yr; = 1 in the reference run, tstep_mbal = 8760 h = 1 yr; the Fortran's per-window accumulation m w.e., converted to m/yr ice], then acab = 0 where thck <= 0 and acab < 0 (ice-free ablation) and where the cell is ice-free ocean (the cism_ocean predicate: topg < eus and no ice, glide_mask.inc:33-34). The further cap 'acab = -thck_temp' of glad_timestep.F90:233-235 is applied AFTER glide_set_acab and only adjusts the glad output variable, not the applied field - it is documented, not transcribed. (b) MassBalance - the surface/basal mass-balance application of add_surface_and_basal_mass_balance (libglissade/glissade_mass_balance.F90:819-1571) as the rate law d(thck)/dt = ifelse(thck <= 0 and net < 0, 0, net) with net = acab - bmlt (m/yr ice; bmlt = bmlt_ground + bmlt_float, 0 everywhere in the reference window): the RATE-LEVEL zeroing reproduces the Fortran's layer-by-layer removal that clips the column at zero (F90:1398-1419) without carrying a deficit into the next step (the Fortran's melt_potential accumulator is zeroed at the top of every mass_balance_driver call, F90:1096). The per-step melt_potential = max(0, -(H_pre + net_applied*dt)) of fully melted columns, the applied-rate bookkeeping acab_applied/bmlt_applied, and the tracer surface/bed handling are per-step ALGEBRAIC MAPS of the dumped entry state (the entry thickness H_pre and the entry tracers T1/Tbar/Tsurf/Tbed/T10), evaluated at the step start (time_span {0,0} in the tests): the layer-1 accumulation blend (H1*T1 + s*Tsurf)/(H1 + s) with H1 = sigma2*H_pre (new snow arrives at the current surface temperature temp(0), glissade_transport.F90:166), the layer-10 freeze-on blend (H10*T10 + b*Tbed)/(H10 + b) with H10 = (1 - sigma10)*H_pre (freeze-on arrives at the bed temperature, F90:172-174), and the column-mean law (H_pre*Tbar + s*T_surf_or_1 + b*Tbed)/(H_pre + s + b) as the nested application of the same cism_tracer_mix law (ablation removes the top layers at their own temperature, the layer-free form at the layer-1 temperature - exact while the ablation stays within layer 1; the Fortran's tracer = 0 of fully removed layers, F90:1411-1413, is the zero of fully melted columns); the ocean mask of glissade_get_masks (glissade_masks.F90:70-96) skips the application entirely in ice-free ocean cells (the same cism_ocean predicate); and the ice-age increment d(age)/dt = 1 where thck > 0 (glissade.F90:1203-1213) with age_usrf = 0 and age_lsrf = age (glissade_transport.F90:204-208) - the Fortran's age reset on ice-free cells is a documented difference for the stage-3 assembly. (c) SurfaceUpdate - the post-transport cleanup calc_lsrf_usrf (glimmer_utils.F90:344-378): the floating test is the shared cism_floating_mask template (the single home of the CISM flotation law, also used by the calving components; bound here with thklim = 0, the exact predicate of the Fortran where-clause for ice-present cells) and lsrf = topg where grounded, lsrf = eus - (rhoi/rhoo)*thck where floating, usrf = lsrf + thck. The horizontal remapping and the first-order vertical remap are grid operations (one traced cell cannot pin them); their fingerprints are the documented advection residuals of the thickness and tracer pins.
- GlcCapExport
model
cryosphere
cism
Stage-2 implementation of the CISM GLC cap coupling boundary (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00.002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20, CISM_LANE.md row 15): the mediator-to-CISM import transformations and the CISM-to-mediator export laws around glad_gcm. (a) GlcCapImport - the cap import_fields processing (drivers/cpl/nuopc/glc_import_export.F90:326-333): tsfc = tsfc_raw - tkfrz (the Sl_tsrf temperature, K, converted to degC by subtracting SHR_CONST_TKFRZ = 273.15 K, glc_constants.F90:22-23, shr_const_mod.F90:37) with the -250 degC sentinel clamp to 0 (the 'Jer hack' of F90:328-333: land points where CLM sees ocean send a raw 0 K, which the conversion would drop to -273.15 degC), and the qsmb pass-through (state_getimport, F90:679-714, applies no conversion; qsmb stays kg/m2/s). The halo conversion (vector_to_spatial / parallel_convert_nonhaloed_to_haloed) is a grid operation, deferred to the stage-3 assembly. The model-side continuation - the mbal averaging of qsmb/tsfc over the coupling interval and the qsmb -> acab SMB conversion (glad_main.F90:800-824, glad_timestep.F90:200, glide_set_acab; acab = qsmb * tstep_mbal * 3600/1000 * rhow/rhoi m/yr ice, pinned by the stage-1 smb_chain validator check) - belongs to the surface-forcing/transport lane, not the cap. (b) GlcCapExport - the export fields of glad_set_output_fields (glad_main.F90:971-1027) / set_output_states (glad_output_states.F90:48-105): the surface elevation topo = usrf gated by the active grid (usrf > 0, F90:110-133), the ice-covered flag ice_covered = (thck > min_thck = 0, F90:137-158, glad_constants.F90:63) AND (usrf > 0), and the three coupling-interval-averaged fluxes of glad_output_fluxes (F90:77-161): rofi = mean over the interval of rhoi*(calving_thck + removal_thck)/dt (F90:104-105), rofl = mean of rhoi*bmlt + rhoi*lateral_melt_thck/dt (F90:128-129), hflx = mean of -ucondflx (F90:138-139; ucondflx positive down, glissade_therm.F90:669; the sign flip makes hflx positive up per the F90:135-136 comment, which contradicts the 'positive down' labels of glad_main.F90:625 and the CMEPS field dictionary esmFldsExchange_cesm_mod.F90:816 - see bugs.md; unpinned by the dump because hflx = 0 everywhere in this window). The averages are written as storage ODEs D(S)/dt = f with the export S/T_coupling - the continuous limit of the Fortran's per-dynamics-step accumulation (reset at the interval start, glad_timestep.F90:149; one accumulation per glissade_tstep, F90:290; average = sum/av_count_output, F90:151-159). With piecewise-constant integrands over the n_icetstep = 2 dynamics steps of dt = 0.5 yr, the Fortran average sum_k f_k/count equals (1/T_coupling)*integral_0^T_coupling f dt with T_coupling = count*dt = 8760 h = 3.1536e7 s (tstep_mbal at GLC_NCPL = 1), so the ODE form is that integral exactly. The literal `integral` op is NOT used because the CLI cannot lower it (probed: unlowered_operator, esm-spec section 4.2 / 9.6.8 - a file using it validates but cannot simulate); the differential form is the same continuous limit the rest of stage 2 uses for storage (mosart_channel D(wr)/dt). The integrands (calving_thck, removal_thck, bmlt, lateral_melt_thck, ucondflx) are per-dynamics-step CISM state that cism_cap.csv does not carry, so they enter as parameters (the dump carries only the final interval averages, all zero in this window: a 2-year cold-base run with no calving, no basal melt and ucondflx = 0); the averages' zero rows are dump-pinned and the averaging law itself is pinned synthetically with constant integrands from the source formula. ice_sheet_grid_mask (= the same active-grid gate) is not dumped and is not modeled. Time convention: model time in seconds, matching the dump's thour column x 3600 (cap_step 1 at 0 h, cap_step 2 at 8760 h).
- GlcCapImport
model
cryosphere
cism
Stage-2 implementation of the CISM GLC cap coupling boundary (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00.002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20, CISM_LANE.md row 15): the mediator-to-CISM import transformations and the CISM-to-mediator export laws around glad_gcm. (a) GlcCapImport - the cap import_fields processing (drivers/cpl/nuopc/glc_import_export.F90:326-333): tsfc = tsfc_raw - tkfrz (the Sl_tsrf temperature, K, converted to degC by subtracting SHR_CONST_TKFRZ = 273.15 K, glc_constants.F90:22-23, shr_const_mod.F90:37) with the -250 degC sentinel clamp to 0 (the 'Jer hack' of F90:328-333: land points where CLM sees ocean send a raw 0 K, which the conversion would drop to -273.15 degC), and the qsmb pass-through (state_getimport, F90:679-714, applies no conversion; qsmb stays kg/m2/s). The halo conversion (vector_to_spatial / parallel_convert_nonhaloed_to_haloed) is a grid operation, deferred to the stage-3 assembly. The model-side continuation - the mbal averaging of qsmb/tsfc over the coupling interval and the qsmb -> acab SMB conversion (glad_main.F90:800-824, glad_timestep.F90:200, glide_set_acab; acab = qsmb * tstep_mbal * 3600/1000 * rhow/rhoi m/yr ice, pinned by the stage-1 smb_chain validator check) - belongs to the surface-forcing/transport lane, not the cap. (b) GlcCapExport - the export fields of glad_set_output_fields (glad_main.F90:971-1027) / set_output_states (glad_output_states.F90:48-105): the surface elevation topo = usrf gated by the active grid (usrf > 0, F90:110-133), the ice-covered flag ice_covered = (thck > min_thck = 0, F90:137-158, glad_constants.F90:63) AND (usrf > 0), and the three coupling-interval-averaged fluxes of glad_output_fluxes (F90:77-161): rofi = mean over the interval of rhoi*(calving_thck + removal_thck)/dt (F90:104-105), rofl = mean of rhoi*bmlt + rhoi*lateral_melt_thck/dt (F90:128-129), hflx = mean of -ucondflx (F90:138-139; ucondflx positive down, glissade_therm.F90:669; the sign flip makes hflx positive up per the F90:135-136 comment, which contradicts the 'positive down' labels of glad_main.F90:625 and the CMEPS field dictionary esmFldsExchange_cesm_mod.F90:816 - see bugs.md; unpinned by the dump because hflx = 0 everywhere in this window). The averages are written as storage ODEs D(S)/dt = f with the export S/T_coupling - the continuous limit of the Fortran's per-dynamics-step accumulation (reset at the interval start, glad_timestep.F90:149; one accumulation per glissade_tstep, F90:290; average = sum/av_count_output, F90:151-159). With piecewise-constant integrands over the n_icetstep = 2 dynamics steps of dt = 0.5 yr, the Fortran average sum_k f_k/count equals (1/T_coupling)*integral_0^T_coupling f dt with T_coupling = count*dt = 8760 h = 3.1536e7 s (tstep_mbal at GLC_NCPL = 1), so the ODE form is that integral exactly. The literal `integral` op is NOT used because the CLI cannot lower it (probed: unlowered_operator, esm-spec section 4.2 / 9.6.8 - a file using it validates but cannot simulate); the differential form is the same continuous limit the rest of stage 2 uses for storage (mosart_channel D(wr)/dt). The integrands (calving_thck, removal_thck, bmlt, lateral_melt_thck, ucondflx) are per-dynamics-step CISM state that cism_cap.csv does not carry, so they enter as parameters (the dump carries only the final interval averages, all zero in this window: a 2-year cold-base run with no calving, no basal melt and ucondflx = 0); the averages' zero rows are dump-pinned and the averaging law itself is pinned synthetically with constant integrands from the source formula. ice_sheet_grid_mask (= the same active-grid gate) is not dumped and is not modeled. Time convention: model time in seconds, matching the dump's thour column x 3600 (cap_step 1 at 0 h, cap_step 2 at 8760 h).
- IcebergRemoval
model
cryosphere
cism
Stage-2 implementation of the CISM calving physics (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00_002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20): (a) CalvingLaw - the CALVING_FLOAT_ZERO threshold/margin criterion and removal law of glissade_calving_solve (libglissade/glissade_calving.F90:618-963) for the reference options whichcalving = 1 = CALVING_FLOAT_ZERO, calving_domain = 1 = CALVING_DOMAIN_EVERYWHERE and calving timescale = 0 (glide_types.F90:183,200,1648): the basic ice/floating masks of glissade_get_masks with the law's mask threshold thklim = 0.0 (calve_ice_basic, F90:1085-1092; ice_mask = thck > 0, floating_mask = ice & (topg - eus < -(rhoi/rhoo)*thck), glissade_masks.F90:165-193, rhoi/rhoo = 917/1026 - glimmer_physcon.F90:41-42, the CCSMCOUPLED pointer associations rhoi => SHR_CONST_RHOICE, rhoo => SHR_CONST_RHOSW that override the standalone 910/1028 defaults of F90:67-68 - the cism_templates.esm cism_floating_mask template), the calving fraction (F90:1065-1077: 1.0 for timescale = 0, else min(dt/timescale, 1)), and the removal law (F90:1175-1188, the cism_calving_float_zero template): calving_thck = calving_fraction*thck where the cell is floating and inside the calving domain (with CALVING_DOMAIN_EVERYWHERE the domain mask is identically 1, F90:1171), then thck -= calving_thck (F90:1185). (b) IcebergRemoval - the remove_icebergs pass (F90:875-922, 4110-4324) as a PER-CELL LAW GIVEN THE DUMPED CONNECTIVITY MASK: iceberg removal is a flood fill (firmly grounded cells with f_ground_cell >= f_ground_threshold seed a fill; the initial color is thck > 0 and the fill spreads through the law's ice_mask cells, F90:4216-4225; floating cells still holding the initial color with land_mask = 0 are removed, F90:4310-4318), which the .esm spec cannot express as an equation - the stage-1 dump carries the per-cell result (calving_thck_iceberg, the amount the pass removed) and the model applies the per-cell law removal = thck where iceberg_mask = 1. In the reference window the mask is 0 on every row (the CALVING_FLOAT_ZERO law has already removed every floating cell within the same solve, and remove_icebergs only removes floating cells), so only the no-op branch is pinned (hollow boundary pins); the flood fill itself has no operator in the esm spec or EarthSciDiscretizations and is a documented stage-3 gap (README.md). (c) IceCapRemoval - the ice-cap removal of glissade_handle_ice_caps (glissade_utils.F90:1141-1235) as a PER-CELL LAW GIVEN THE DUMPED CONNECTIVITY MASK: the ice_cap_mask of glissade_ice_sheet_mask (cells with thck > thklim = 1.0 m, the run's ice_limit, not connected by edge neighbors to any cell with thck >= minthck_ice_sheet = 2000 m, glissade_masks.F90:701-889) is likewise a flood-fill result the spec cannot express; the model applies the per-cell removal law (F90:1228-1233): removal_thck += thck and thck = 0 where ice_cap_mask = 1. The mask is exercised in the reference run (the gland20 initial state has ice caps removed at initialization, cism_step = 0, and a cap forms and is removed in year 2). Tests pin the stage-1 instrumented traces cism_calving.csv and cism_calving_icecap.csv (one row per active cell and solve call; the law fires at the marine margins from step 3 on, and the caps fire at init and in year 2) and the h0i whole-domain flux.
- IceCapRemoval
model
cryosphere
cism
Stage-2 implementation of the CISM calving physics (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00_002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20): (a) CalvingLaw - the CALVING_FLOAT_ZERO threshold/margin criterion and removal law of glissade_calving_solve (libglissade/glissade_calving.F90:618-963) for the reference options whichcalving = 1 = CALVING_FLOAT_ZERO, calving_domain = 1 = CALVING_DOMAIN_EVERYWHERE and calving timescale = 0 (glide_types.F90:183,200,1648): the basic ice/floating masks of glissade_get_masks with the law's mask threshold thklim = 0.0 (calve_ice_basic, F90:1085-1092; ice_mask = thck > 0, floating_mask = ice & (topg - eus < -(rhoi/rhoo)*thck), glissade_masks.F90:165-193, rhoi/rhoo = 917/1026 - glimmer_physcon.F90:41-42, the CCSMCOUPLED pointer associations rhoi => SHR_CONST_RHOICE, rhoo => SHR_CONST_RHOSW that override the standalone 910/1028 defaults of F90:67-68 - the cism_templates.esm cism_floating_mask template), the calving fraction (F90:1065-1077: 1.0 for timescale = 0, else min(dt/timescale, 1)), and the removal law (F90:1175-1188, the cism_calving_float_zero template): calving_thck = calving_fraction*thck where the cell is floating and inside the calving domain (with CALVING_DOMAIN_EVERYWHERE the domain mask is identically 1, F90:1171), then thck -= calving_thck (F90:1185). (b) IcebergRemoval - the remove_icebergs pass (F90:875-922, 4110-4324) as a PER-CELL LAW GIVEN THE DUMPED CONNECTIVITY MASK: iceberg removal is a flood fill (firmly grounded cells with f_ground_cell >= f_ground_threshold seed a fill; the initial color is thck > 0 and the fill spreads through the law's ice_mask cells, F90:4216-4225; floating cells still holding the initial color with land_mask = 0 are removed, F90:4310-4318), which the .esm spec cannot express as an equation - the stage-1 dump carries the per-cell result (calving_thck_iceberg, the amount the pass removed) and the model applies the per-cell law removal = thck where iceberg_mask = 1. In the reference window the mask is 0 on every row (the CALVING_FLOAT_ZERO law has already removed every floating cell within the same solve, and remove_icebergs only removes floating cells), so only the no-op branch is pinned (hollow boundary pins); the flood fill itself has no operator in the esm spec or EarthSciDiscretizations and is a documented stage-3 gap (README.md). (c) IceCapRemoval - the ice-cap removal of glissade_handle_ice_caps (glissade_utils.F90:1141-1235) as a PER-CELL LAW GIVEN THE DUMPED CONNECTIVITY MASK: the ice_cap_mask of glissade_ice_sheet_mask (cells with thck > thklim = 1.0 m, the run's ice_limit, not connected by edge neighbors to any cell with thck >= minthck_ice_sheet = 2000 m, glissade_masks.F90:701-889) is likewise a flood-fill result the spec cannot express; the model applies the per-cell removal law (F90:1228-1233): removal_thck += thck and thck = 0 where ice_cap_mask = 1. The mask is exercised in the reference run (the gland20 initial state has ice caps removed at initialization, cism_step = 0, and a cap forms and is removed in year 2). Tests pin the stage-1 instrumented traces cism_calving.csv and cism_calving_icecap.csv (one row per active cell and solve call; the law fires at the marine margins from step 3 on, and the caps fire at init and in year 2) and the h0i whole-domain flux.
- IceTemperatureColumn
model
cryosphere
cism
Stage-2 implementation of the CISM prognostic ice temperature step (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00.002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20, whichtemp = TEMP_PROGNOSTIC): the vertical heat equation rhoi*shci*dT/dt = d/dz(coni*dT/dz) + rhoi*shci*Phi on CISM's sigma grid, lowered by the EarthSciDiscretizations rule varcoeff_face_laplacian_lev_value_bc (${ESD_ROOT}/grids/column_nonuniform_1d/rules/, the exact dups stencil of glissade_temperature_matrix_elements, glissade_therm.F90:1324-1507, contributed to ESD from this file; the CISM sigma column maps onto the ESD column grid positionally - the CISM layer faces are the grid interfaces ze in metres, zc[l] = thck*sigma_node[l+1] and dz[l] = thck*dsigma_cv[l+1], z_sfc = 0 at the ice surface and z_top = thck at the bed, and the boundary values u_sfc/u_top are the surface/bed algebraic nodes, so no array reversal is needed; the scalar coni enters as the interface broadcast coni_face). State: temp on the UPN-1 INTERIOR temperature nodes (index set lev = the CISM layer midpoints, the dump's temp_001..010 columns) with d(temp)/dt = dTdt. The surface and bed nodes are ALGEBRAIC in CISM, not diffusion rows: the matrix rows 1 and upn+1 are the surface Dirichlet pin temp(0) = min(0, artm) (F90:843, 1405-1408) and the basal flux-balance / pressure-melting-point row (frozen: temp(upn) - temp(upn-1) = (bfricflx + bhydroflx - bheatflx)*dsigbot*thck/coni, F90:1473-1476; thawed: temp(upn) = bpmp, F90:1497-1504). They are carried as the algebraic unknowns u_sfc and u_top, and enter the interior stencil as the boundary values through the rule's free-name contract - so the boundary laws FEED BACK into the interior operator (the stencil at the nodes adjacent to the boundaries reads u_sfc/u_top, not state rows). The pointwise laws of the step: u_sfc = min(0, artm) (F90:843); the pressure melting point bpmp/pmptemp = -rhoi*grav*pmlt*depth (the standard Clapeyron law, imported by reference from EqIce as pressure_melting_temperature applied to overburden_pressure with the CISM constants T_melting = 0 degC and beta_Clausius_Clapeyron = pmlt bound at the call sites, F90:2163-2174, 2178-2192); the basal temperature and melt of the frozen/thawed bed rows and of glissade_basal_melting_ground (cism_basal_melt_rate / cism_basal_freeze_on / cism_basal_melt_cap, F90:1930-2012), with the flux balance bflx_mlt and the source flux bflx_src named once and shared between the melt rate and the frozen-row law; and the internal melt cap of glissade_basal_melting_internal (melt_internal = the whole-column integral of the layer melt-energy density rhoi*shci*max(0, temp - pmptemp) over the CISM layer thickness measure, divided by rhoi*lhci*dttem, F90:2127-2155; the paired temperature reset temp -> pmptemp is a post-solve state mutation, documented in README.md, not transcribed). The thin-ice bypass (ice_mask = 0 where thck <= thklim_temp = 1 m; the dump's ice_mask column): the column skips the solve and is set to min(0, artm) on all nodes, and the basal outputs are not computed (F90:1205) - the pmp and the basal laws are gated by ice_mask == 1. The operator is pinned INSTANTANEOUSLY at the exit state: since the CISM step is one backward-Euler solve of the tridiagonal system, the exact identity (T_exit - T_entry)/dttem = L*T_exit + Phi holds for the interior rows (the dump round-trips at 1e-13..6e-9 relative; the harness integrators cannot reproduce one exact backward-Euler step of this stiff relaxation, so the entry->exit map itself is documented in README.md, not integrated), and dTdt at the exit state is asserted against (T_exit - T_entry)/dttem with the ICs set to the exit profile and the dumped dissip.
- MassBalance
model
cryosphere
cism
Stage-2 implementation of the pointwise slice of the CISM thickness/tracer solve (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00_002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20; CISM_LANE.md rows 6/7/14): the parts of glissade_thickness_tracer_solve that are not horizontal/vertical grid operations. (a) GladSmb - the cap qsmb-to-acab conversion and the glad-level zeroing (libglad/glad_main.F90:810-824, libglad/glad_timestep.F90:171-200): the Fortran chain acab = qsmb*tstep_mbal*hours2seconds/rhow*rhow/rhoi*windows_per_year with the named glad/glimmer constants hours2seconds = 3600 s/h (glad_constants.F90:44), rhow = SHR_CONST_RHOFW = 1000 kg/m3 and rhoi = SHR_CONST_RHOICE = 917 kg/m3 (glimmer_physcon.F90:41-43) and scyr = 31536000 s/yr (glimmer_physcon.F90:90) driving the DERIVED windows_per_year = scyr/(tstep_mbal*hours2seconds) [1/yr; = 1 in the reference run, tstep_mbal = 8760 h = 1 yr; the Fortran's per-window accumulation m w.e., converted to m/yr ice], then acab = 0 where thck <= 0 and acab < 0 (ice-free ablation) and where the cell is ice-free ocean (the cism_ocean predicate: topg < eus and no ice, glide_mask.inc:33-34). The further cap 'acab = -thck_temp' of glad_timestep.F90:233-235 is applied AFTER glide_set_acab and only adjusts the glad output variable, not the applied field - it is documented, not transcribed. (b) MassBalance - the surface/basal mass-balance application of add_surface_and_basal_mass_balance (libglissade/glissade_mass_balance.F90:819-1571) as the rate law d(thck)/dt = ifelse(thck <= 0 and net < 0, 0, net) with net = acab - bmlt (m/yr ice; bmlt = bmlt_ground + bmlt_float, 0 everywhere in the reference window): the RATE-LEVEL zeroing reproduces the Fortran's layer-by-layer removal that clips the column at zero (F90:1398-1419) without carrying a deficit into the next step (the Fortran's melt_potential accumulator is zeroed at the top of every mass_balance_driver call, F90:1096). The per-step melt_potential = max(0, -(H_pre + net_applied*dt)) of fully melted columns, the applied-rate bookkeeping acab_applied/bmlt_applied, and the tracer surface/bed handling are per-step ALGEBRAIC MAPS of the dumped entry state (the entry thickness H_pre and the entry tracers T1/Tbar/Tsurf/Tbed/T10), evaluated at the step start (time_span {0,0} in the tests): the layer-1 accumulation blend (H1*T1 + s*Tsurf)/(H1 + s) with H1 = sigma2*H_pre (new snow arrives at the current surface temperature temp(0), glissade_transport.F90:166), the layer-10 freeze-on blend (H10*T10 + b*Tbed)/(H10 + b) with H10 = (1 - sigma10)*H_pre (freeze-on arrives at the bed temperature, F90:172-174), and the column-mean law (H_pre*Tbar + s*T_surf_or_1 + b*Tbed)/(H_pre + s + b) as the nested application of the same cism_tracer_mix law (ablation removes the top layers at their own temperature, the layer-free form at the layer-1 temperature - exact while the ablation stays within layer 1; the Fortran's tracer = 0 of fully removed layers, F90:1411-1413, is the zero of fully melted columns); the ocean mask of glissade_get_masks (glissade_masks.F90:70-96) skips the application entirely in ice-free ocean cells (the same cism_ocean predicate); and the ice-age increment d(age)/dt = 1 where thck > 0 (glissade.F90:1203-1213) with age_usrf = 0 and age_lsrf = age (glissade_transport.F90:204-208) - the Fortran's age reset on ice-free cells is a documented difference for the stage-3 assembly. (c) SurfaceUpdate - the post-transport cleanup calc_lsrf_usrf (glimmer_utils.F90:344-378): the floating test is the shared cism_floating_mask template (the single home of the CISM flotation law, also used by the calving components; bound here with thklim = 0, the exact predicate of the Fortran where-clause for ice-present cells) and lsrf = topg where grounded, lsrf = eus - (rhoi/rhoo)*thck where floating, usrf = lsrf + thck. The horizontal remapping and the first-order vertical remap are grid operations (one traced cell cannot pin them); their fingerprints are the documented advection residuals of the thickness and tracer pins.
- SurfaceUpdate
model
cryosphere
cism
Stage-2 implementation of the pointwise slice of the CISM thickness/tracer solve (stage 2 of the EqESM project; CISM = cismwrap_3_00_002 / cism_main_3.00_002 as built in CESM cesm3.0-alphabranch, reference run T1850Gg/f09_g17_gris20; CISM_LANE.md rows 6/7/14): the parts of glissade_thickness_tracer_solve that are not horizontal/vertical grid operations. (a) GladSmb - the cap qsmb-to-acab conversion and the glad-level zeroing (libglad/glad_main.F90:810-824, libglad/glad_timestep.F90:171-200): the Fortran chain acab = qsmb*tstep_mbal*hours2seconds/rhow*rhow/rhoi*windows_per_year with the named glad/glimmer constants hours2seconds = 3600 s/h (glad_constants.F90:44), rhow = SHR_CONST_RHOFW = 1000 kg/m3 and rhoi = SHR_CONST_RHOICE = 917 kg/m3 (glimmer_physcon.F90:41-43) and scyr = 31536000 s/yr (glimmer_physcon.F90:90) driving the DERIVED windows_per_year = scyr/(tstep_mbal*hours2seconds) [1/yr; = 1 in the reference run, tstep_mbal = 8760 h = 1 yr; the Fortran's per-window accumulation m w.e., converted to m/yr ice], then acab = 0 where thck <= 0 and acab < 0 (ice-free ablation) and where the cell is ice-free ocean (the cism_ocean predicate: topg < eus and no ice, glide_mask.inc:33-34). The further cap 'acab = -thck_temp' of glad_timestep.F90:233-235 is applied AFTER glide_set_acab and only adjusts the glad output variable, not the applied field - it is documented, not transcribed. (b) MassBalance - the surface/basal mass-balance application of add_surface_and_basal_mass_balance (libglissade/glissade_mass_balance.F90:819-1571) as the rate law d(thck)/dt = ifelse(thck <= 0 and net < 0, 0, net) with net = acab - bmlt (m/yr ice; bmlt = bmlt_ground + bmlt_float, 0 everywhere in the reference window): the RATE-LEVEL zeroing reproduces the Fortran's layer-by-layer removal that clips the column at zero (F90:1398-1419) without carrying a deficit into the next step (the Fortran's melt_potential accumulator is zeroed at the top of every mass_balance_driver call, F90:1096). The per-step melt_potential = max(0, -(H_pre + net_applied*dt)) of fully melted columns, the applied-rate bookkeeping acab_applied/bmlt_applied, and the tracer surface/bed handling are per-step ALGEBRAIC MAPS of the dumped entry state (the entry thickness H_pre and the entry tracers T1/Tbar/Tsurf/Tbed/T10), evaluated at the step start (time_span {0,0} in the tests): the layer-1 accumulation blend (H1*T1 + s*Tsurf)/(H1 + s) with H1 = sigma2*H_pre (new snow arrives at the current surface temperature temp(0), glissade_transport.F90:166), the layer-10 freeze-on blend (H10*T10 + b*Tbed)/(H10 + b) with H10 = (1 - sigma10)*H_pre (freeze-on arrives at the bed temperature, F90:172-174), and the column-mean law (H_pre*Tbar + s*T_surf_or_1 + b*Tbed)/(H_pre + s + b) as the nested application of the same cism_tracer_mix law (ablation removes the top layers at their own temperature, the layer-free form at the layer-1 temperature - exact while the ablation stays within layer 1; the Fortran's tracer = 0 of fully removed layers, F90:1411-1413, is the zero of fully melted columns); the ocean mask of glissade_get_masks (glissade_masks.F90:70-96) skips the application entirely in ice-free ocean cells (the same cism_ocean predicate); and the ice-age increment d(age)/dt = 1 where thck > 0 (glissade.F90:1203-1213) with age_usrf = 0 and age_lsrf = age (glissade_transport.F90:204-208) - the Fortran's age reset on ice-free cells is a documented difference for the stage-3 assembly. (c) SurfaceUpdate - the post-transport cleanup calc_lsrf_usrf (glimmer_utils.F90:344-378): the floating test is the shared cism_floating_mask template (the single home of the CISM flotation law, also used by the calving components; bound here with thklim = 0, the exact predicate of the Fortran where-clause for ice-present cells) and lsrf = topg where grounded, lsrf = eus - (rhoi/rhoo)*thck where floating, usrf = lsrf + thck. The horizontal remapping and the first-order vertical remap are grid operations (one traced cell cannot pin them); their fingerprints are the documented advection residuals of the thickness and tracer pins.