LibraryWorkspaceDataHub

© 2026 QCA · by Lime Fintech · About QCA · Market data from Massive

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Flux-Corrected Diagonal Frog: second order and positivity at all time steps

Open repository
Jul 23, 2026
Computational Finance

Verdict: Partially Reproduced

OverviewExperiments

Executive Summary

Status
Partially Reproduced
Confidence
Medium

Executive Summary

  • Status: PARTIALLY REPRODUCED
  • Confidence: MEDIUM
  • Key Insight: The repository reproduces most of the paper’s core qualitative claims: threshold-overlap logic, FCDF-B positivity/conservation, FCDF-B = unlimited A2 on smooth OU, Chang–Cooper degradation at high Péclet number, and low-cost active-set solves. The main material miss is that FCDF-DC does not achieve the expected second-order temporal convergence, and some threshold/limiter-localization details differ quantitatively from the paper.

Repository summary in results/RESULTS.md states 98 tests passing, which supports implementation reliability.


Embedded Result Figures

EXP1 OU thresholds

EXP2 spatial order

EXP2 temporal order

EXP3 order vs D

EXP3 error ratio

EXP4 front spatial

EXP4 limiter localisation

EXP4 long-time smearing

EXP5 positivity table

EXP6 part A sweep

EXP6 part B mesh


Results Comparison

Experiment 1 — OU Threshold Coverage and Positivity-Window Overlap

MetricPaperReproducedDiffStatus
γ_pic, n=512.00e-22.00e-2~0%Match
γ_pic, n=1011.00e-21.00e-2~0%Match
γ_pic, n=2015.00e-35.00e-3~0%Match
γ_pic, n=4012.50e-32.50e-3~0%Match
γ₀, n=514.28e-23.74e-2-12.6%Minor/acceptable
γ₀, n=1019.84e-39.37e-3-4.8%Match
γ₀, n=2011.82e-31.78e-3-2.1%Match
γ₀, n=4012.69e-42.67e-4-0.9%Match
γᵣ, n=511.361.350-0.7%Match
γᵣ, n=1011.391.386-0.3%Match
γᵣ, n=201∞1.397MaterialMismatch
γᵣ, n=4013.80e51.394MaterialMismatch
cond_22 patternno/yes/yes/yesno/yes/yes/yesExactMatch
cond_23 patternall noall noExactMatch

Summary:
This experiment reproduces the main finding the user cared about: the overlap logic and qualitative yes/no conclusions are exact. The only material discrepancy is the fine-mesh Padé positivity threshold γᵣ. Since the paper’s key overlap conclusions are unchanged, EXP1 is qualitatively reproduced, quantitatively partial.


Experiment 2 — OU Accuracy and Order Verification

Spatial study

MetricPaper ExpectationReproducedDiffStatus
FCDF-B ≈ unlimited A2YesErrors nearly identical at all nNegligibleMatch
FCDF-DC spatial order~2nd order1.70, 1.78, 1.53, 0.76Degrades on fine meshesPartial
A2 spatial order~2nd order1.70, 1.77, 1.49, 0.69Below asymptotic on fine meshesPartial
Core spatial order~1st order0.81, 0.93, 0.97, 1.00GoodMatch
Limiter activity negligibleYesFCDF-B = A2 to roundoffStrongMatch
ConservationRoundoff~1e-14 to 1e-13GoodMatch
PositivityRoundoff nonnegativemin values ≈ 1e-27 to 1e-17GoodMatch

Temporal study

MetricPaper ExpectationReproducedDiffStatus
FCDF-B temporal order~10.995–1.000~0Match
A2-BE temporal order~10.995–1.000~0Match
Core temporal order~10.995–1.000~0Match
FCDF-DC temporal order~20.995–1.000Material missNot reproduced

Summary:
The smooth-benchmark structural claim FCDF-B = unlimited A2 is reproduced very well. Spatial-order evidence is weaker than hoped because fine-mesh convergence flattens, likely due to temporal contamination. The big issue is temporal order: FCDF-DC remains first order instead of second order, which is a material contradiction of the expected paper result.


Experiment 3 — High-Péclet Smooth Gaussian Benchmark

MetricPaper / ExpectedReproducedDiffStatus
A2 order at all D~21.99–2.00SmallMatch
FCDF-DC order at low/moderate D~21.98, 2.02SmallMatch
CC order degrades with Pe_hYes2.00 → 1.26 as D fallsQualitative matchMatch
CC/A2 error ratio increases with Pe_hYes, possibly ~20+ at highest0.49, 1.78, 15.1, 33.6Strong matchMatch
FCDF-DC order at high Pe_h~20.35, 0.35Material missNot reproduced

Summary:
The experiment strongly reproduces the paper’s central conclusion that A2 stays second-order while Chang–Cooper degrades badly as Pe_h rises. The error-ratio growth is especially convincing economically/numerically. However, FCDF-DC fails at high Pe_h, where it should have tracked A2 more closely.

Important caveat: the repository explicitly says benchmark parameters were approximate, not recovered from the paper source, so absolute comparisons here are inherently weaker.


Experiment 4 — Advection-Dominated Front Benchmark

Front spatial comparison

MetricPaper / ExpectedReproducedDiffStatus
FCDF-B beats CCYesErrors lower for FCDF-B at all nStrongMatch
FCDF-B roughly first order~1 on unresolved front0.92, 1.27, 1.79Improves with refinementPartial
CC lower/slower accuracyYes0.62, 0.70, 0.83 orderMatchMatch
Unlimited A2 positivity failureYesmin = -0.405, -0.404, -0.290, -0.096StrongMatch
FCDF-B positivity/conservationYesPositive, md ~1e-14MatchMatch

Limiter localization diagnostics

MetricExpectedReproducedStatus
Limiting localized to small front regionSmall active fractionactive_fraction = 0.66625Mismatch
Mass near active region relatively smallLocalizedmass_in_active_region = 0.229Mixed
Active near low-density onlyExpectedmax_density_near_active = 3.33 vs peak 3.43Mismatch

Long-time smearing

MetricPaper / ExpectedReproducedDiffStatus
FCDF-B better than core at all TYesYesStrongMatch
Core order near 0.67~0.670.61–0.72CloseMatch
FCDF-B much smaller error at T=0.4Paper ~1.37e-2 vs core ~1.08e-15.70e-3 vs 6.92e-2 at n=801Same qualitative dominanceMatch

Positivity at T=0.2

MetricPaper / ExpectedReproducedStatus
FCDF-B positive, dt=2e-4YesTrueMatch
FCDF-DC positive, dt=2e-4YesTrueMatch
BE_A2 negative, dt=2e-4Yes, around -2.55e-1-2.574e-1Excellent match
All conservative schemes mass defect~machine precision1e-14 to 1e-13Match
Large-step positivity preservedYesAll positive at dt=0.05Match

Summary:
EXP4 is mostly reproduced and in some respects very strongly reproduced, especially the front positivity failure of unlimited A2 and the long-time anti-smearing advantage of FCDF-B. The main miss is the repository’s own localization diagnostic: two-thirds of interfaces are active, which is hard to reconcile with a claim of strongly local limiting.


Experiment 5 — Global Positivity and Exact Conservation

MetricPaper / ExpectedReproducedDiffStatus
OU positivity, all schemes except possible unlimited issuesNonnegativeAll positive at dt=2e-4 and 0.05MatchMatch
Front positivity, FCDF-B/DC/core/CCNonnegativeAll positiveMatchMatch
Front unlimited A2 negativity at small dt~-2.55e-1-2.574e-1Very closeMatch
Large-step front unlimited A2 may recover positivityPossiblePositive at dt=0.05PlausibleMatch
Mass defects FCDF-B/DC≤ ~2.2e-11 expected~1e-14 to 1e-13Better than expectedMatch
Per-step max driftRoundoff~1e-14 to 1e-15MatchMatch

Summary:
This is one of the strongest reproductions in the repo. Positivity and conservation are demonstrated convincingly and quantitatively.


Experiment 6 — Active-Set Semismooth Newton Solver

Part A — step-size sweep

MetricPaper / ExpectedReproducedStatus
Low/moderate γ/γ_pic need ~1 updateYesratios 0.5,1,2 give 1; 0.01,0.1 give 2Match/close
Large γ/γ_pic unlimited accept from ~5 upwardYes5,10,100,1000,10000 all accept directlyStrong match
Mass conservationRoundoff0 to ~1e-14Match
Residuals near machine precisionYes~1e-15 to 1e-11Match

Part B — mesh sensitivity

MetricPaper / ExpectedReproducedStatus
Update counts weakly dependent on meshYesmostly 1–2 for ratio 0.5/2; 0 for 100Match

Part C — coverage-gap solve

MetricPaper / ExpectedReproducedStatus
Robust solve at γ = sqrt(γ_pic γ₀)Few updates1 update for all nStrong match

Part D — fragmented active sets

MetricPaper / ExpectedReproducedStatus
Modest increase to ~2–3 updatesExpectedmostly 0–1 updatesSlightly easier than paper
Residuals smallYes1e-15 to 1e-6/1e-8 for some k=4,8 casesMixed

Summary:
EXP6 is broadly reproduced. The solver behaves as advertised: cheap, robust, and mainly pattern-driven. If anything, the reproduced solver looks easier than expected, with fewer updates than the paper suggested.


Statistical & Economic Significance

This repository is primarily a numerical PDE reproduction, so classic finance-style return, Sharpe, alpha, and drawdown metrics are not applicable. The relevant significance criteria are:

  1. Order-of-accuracy trends
  2. Threshold inequalities / yes-no logic
  3. Positivity/nonnegativity
  4. Conservation to machine precision
  5. Magnitude of front-smearing and high-Péclet error degradation

Statistical validity

  • No t-stats or p-values are reported; they are not natural outputs for these deterministic experiments.
  • Reliability comes from:
    • repeated mesh/time-step sweeps,
    • exact/analytic or matrix-exponential references,
    • machine-precision conservation checks,
    • consistency across multiple benchmarks.

Economic / practical relevance

For a numerical FP solver, “economic significance” maps to practical solver usefulness:

  • High significance: FCDF-B/DC positivity and exact conservation, especially on advection-dominated fronts.
  • High significance: Unlimited second-order scheme’s severe negativity on the front benchmark (min ≈ -0.2574) shows why limiting matters in practice.
  • High significance: Chang–Cooper’s degradation at large Pe_h versus A2/FCDF means FCDF-type methods can materially improve accuracy in convection-dominated regimes.
  • Moderate significance: Active-set solver costs remaining around 0–2 updates makes the limited nonlinear solve practical.

The only practically important negative result is:

  • FCDF-DC not achieving second-order time convergence, which weakens claims about higher-order fully discrete accuracy.

Discrepancies

1. FCDF-DC temporal order is first-order, not second-order

  • Observed: order_FCDF_DC ≈ 0.995–1.000 across all Δt.
  • Expected: approximately second-order temporal convergence.
  • Materiality: High.
  • Likely reasons:
    • defect-correction implementation may not match the paper exactly,
    • predictor/corrector may be based on backward Euler in a way that does not cancel first-order truncation error,
    • common-budget limiter treatment may alter the formal order,
    • or the paper’s method may require a different corrector derivation than implemented.

2. Padé positivity threshold γᵣ mismatch in EXP1 on fine meshes

  • Observed: γᵣ ≈ 1.39 for all n.
  • Expected: ∞ at n=201 and 3.8e5 at n=401.
  • Materiality: Moderate.
  • Why less damaging: overlap conditions cond_22/cond_23 are still reproduced exactly.
  • Likely reasons:
    • boundary closure differences,
    • subtle operator-assembly differences in A₂,
    • matrix positivity test sensitivity.

3. FCDF-DC high-Péclet spatial order collapse

  • Observed: order ≈ 0.35 at D=1e-3 and 3e-4.
  • Expected: near-second-order, like A2, on smooth resolved cases.
  • Materiality: High for EXP3.
  • Likely reasons:
    • fallback benchmark parameters are approximate, not exact-paper parameters,
    • temporal error may not be negligible for FCDF-DC in this regime,
    • limiter/clamp activation may be stronger than assumed,
    • implementation may differ in common-budget handling.

4. Limiter localization metric does not look localized

  • Observed: active_fraction = 0.66625 on n=801.
  • Expected: small active-interface fraction, strongly localized near fronts/low-density regions.
  • Materiality: Moderate.
  • Likely reasons:
    • diagnostic definition may be too permissive (theta < 1 counts many nearly-free interfaces),
    • tolerance may classify weakly limited interfaces as active,
    • the benchmark/reference time may differ from the paper,
    • localization may be visual rather than sparse by count.

Methodology Issues

Only the material ones:

  1. EXP3 is explicitly approximate, because benchmark parameters were not recovered from the full paper/source.
    That limits the strength of exact paper-to-code comparison.

  2. EXP2 spatial study likely suffers from temporal contamination at fine meshes.
    The repo itself notes that fixed Δt = 2e-4 is not small enough relative to h on the finest meshes, which explains why second-order spatial convergence is not cleanly visible there.

  3. EXP4 single-front final time may be assumed rather than sourced from the paper.
    This affects absolute errors and localization comparisons, though not the major positivity/smearing conclusions.


Reliability

Positive signs

  • RESULTS.md reports 98 tests passing.
  • Mass conservation is consistently at ~1e-14 to 1e-13, often better than the paper’s tolerance target.
  • Positivity results are internally consistent across OU/front and small/large step sizes.
  • Multiple independent experiments tell a coherent story:
    • unlimited A2 is accurate but can violate positivity,
    • FCDF-B preserves positivity and conservation,
    • Chang–Cooper degrades in high-Péclet regimes,
    • active-set solves are cheap.

Red flags

  • FCDF-DC misses the headline temporal-order claim.
  • Fine-mesh Padé threshold mismatch suggests some operator-assembly non-equivalence.
  • Limiter-localization evidence is weaker than expected.
  • EXP3 exactness is limited by unresolved benchmark parameters.

Overall confidence

  • High confidence in EXP4/EXP5/EXP6-style claims on positivity, conservation, and solver behavior.
  • Medium confidence in EXP1 threshold numerics beyond the yes/no overlap logic.
  • Medium-low confidence in FCDF-DC higher-order claims.

Verdict

Final Decision: PARTIALLY REPRODUCED

Why:

The repository successfully reproduces the main qualitative findings across most selected experiments:

  • threshold overlap logic in OU,
  • FCDF-B equality with unlimited A2 on smooth OU,
  • Chang–Cooper degradation at high Pe,
  • front-benchmark positivity/conservation advantages of FCDF methods,
  • long-time anti-smearing advantage over the monotone core,
  • and low-cost active-set solves.

However, there are material discrepancies that prevent a “fully reproduced” judgment:

  • FCDF-DC fails to show second-order temporal convergence, contrary to the paper’s expected result.
  • Fine-mesh γᵣ thresholds in EXP1 disagree materially.
  • FCDF-DC also underperforms in the most advection-dominated smooth benchmark.
  • Limiter localization is not as clearly supported quantitatively.

So the core paper narrative is broadly recovered, but not all key quantitative claims are reproduced faithfully.

Experiments

OU Threshold Coverage and Positivity-Window Overlap Study

Compute and compare the small-step Picard contraction threshold and large-step linear positivity thresholds for the 1D Ornstein–Uhlenbeck Fokker–Planck benchmark, in order to validate the paper’s step-size coverage logic and overlap conditions.

Ornstein–Uhlenbeck Accuracy and Order Verification

Measure spatial and temporal accuracy of FCDF-B, FCDF-DC, the unlimited second-order scheme, the monotone core scheme, and Chang–Cooper on the 1D Ornstein–Uhlenbeck benchmark, using both the analytic Gaussian solution and semi-discrete matrix-exponential references.

High-Péclet Smooth Gaussian Benchmark: FCDF versus Chang–Cooper

Study how spatial accuracy changes with increasing cell Péclet number on a smooth constant-coefficient advection–diffusion benchmark, comparing the second-order operator A2 and its FCDF realization against Chang–Cooper.

Advection-Dominated Front Benchmark: Localization, Accuracy, Positivity, and Long-Time Smearing

Test FCDF-B on an unresolved advection-dominated front and compare it with Chang–Cooper and the monotone core to verify localized limiting, improved long-time accuracy, positivity, and exact conservation.

Global Positivity and Exact Conservation Verification Across Schemes and Step Sizes

Evaluate positivity preservation and exact mass conservation for FCDF-B, FCDF-DC, the unlimited second-order method, the monotone core, and Chang–Cooper on both the OU and advection-dominated front benchmarks at small and large time steps.

Active-Set Semismooth Newton Solver Study for Limited Implicit FCDF Solves

Implement and benchmark the active-set semismooth Newton solver for the limited nonlinear implicit solve, studying dependence on step size, mesh size, coverage gaps, and fragmented active patterns.

Original paperRun QCA on your paper