Skip to content

Solution Verification and Convergence

Scrollable formula. Use Left and Right arrow keys to reveal hidden content.

Scrollable table. Use Left and Right arrow keys to reveal additional columns.

Scrollable figure. Use Left and Right arrow keys to inspect hidden content.

Solution verification estimates numerical error in one computed result after the implementation has been tested. A familiar convergence slope is not enough: iterative error must already be smaller, at least three meaningfully separated resolutions must sample the same continuum problem, and the data must show an asymptotic regime rather than a fitted wish. Richardson analysis and a grid-convergence index are conditional tools for that regime.

Required background. Probability and Inference for Gravity supplies uncertainty summaries and interpretation of finite samples.

Helpful background. Formulations of General Relativity supplies the continuum variables and gauges being compared; Differential Equations for Relativity supplies consistency and convergence concepts; Computational Relativity supplies the shared numerical workflow; and Mathematical Relativity distinguishes numerical evidence from continuum convergence theorems.

Separate algebraic or iterative error, discretization error, roundoff, input interpolation, and model error. Make the estimated algebraic error in the solution or reported observable much smaller than the change between the two finest discretizations. A residual measures how nearly the discrete equations are satisfied; converting it into solution error requires their conditioning. Residual and solution norms can also have different units, so comparing their raw magnitudes is not a stopping rule.

For an invertible linear system AU∗=bAU_*=b and approximation U^\widehat U, define r=b−AU^r=b-A\widehat U. Then

U∗−U^=A−1r,∥U∗−U^∥≤∥A−1∥ ∥r∥,U_*-\widehat U=A^{-1}r, \qquad \|U_*-\widehat U\|\le\|A^{-1}\|\,\|r\|,

using compatible vector and induced matrix norms. In a dimensionless example, A=diag⁡(ε,1)A=\operatorname{diag}(\varepsilon,1) and r=(ε,0)Tr=(\varepsilon,0)^{\mathsf T} give unit solution error however small positive ε\varepsilon becomes. For a nonlinear solve, the inverse Jacobian gives a local sensitivity estimate when the iterate is sufficiently close to a regular solution. Use such an estimate, or demonstrate that tighter solver tolerances change the observable negligibly compared with grid refinement; residual control alone does not prove this. The distinction between residual, backward error and forward error is developed in Higham 2002, § 7.1, Theorems 7.1–7.2.

Define one scalar quantity of interest ϕ\phi or a norm on fields at a common physical time and frame. If waveforms are aligned, fix the alignment rule before measuring convergence and also show an unaligned diagnostic. If adaptive meshes are compared, define an effective resolution only when the refinement hierarchy changes systematically; counting total points is not a mesh spacing.

The standardized numerical-relativity tests in Babiuc et al. 2008, §§3–8 illustrate why constraints, solution error, and runtime behavior can converge differently. Report the quantity that supports the scientific claim, not only the norm that looks cleanest.

Let grid 1 be finest and grid 3 coarsest, with spacings h1<h2<h3h_1<h_2<h_3. Prefer approximately uniform refinement ratios

r21=h2h1,r32=h3h2,r_{21}=\frac{h_2}{h_1}, \qquad r_{32}=\frac{h_3}{h_2},

larger than about 1.31.3 so differences are not dominated by noise. For equal ratio rr and monotone convergence, an observed order is

p=ln⁡∣ϕ3−ϕ2ϕ2−ϕ1∣ln⁡r.p=\frac{\ln\left| \dfrac{\phi_3-\phi_2}{\phi_2-\phi_1} \right|}{\ln r}.

The extrapolated limit based on the fine pair is

ϕext=rpϕ1−ϕ2rp−1.\phi_{\mathrm{ext}} =\frac{r^p\phi_1-\phi_2}{r^p-1}.

These formulas follow by assuming ϕ(h)=ϕ∗+Chp+o(hp)\phi(h)=\phi_*+Ch^p+o(h^p) with one nonzero leading coefficient CC over the sampled range. Subtracting adjacent values removes the unknown limit ϕ∗\phi_*; taking their ratio removes CC. For unequal ratios, solve

ϕ3−ϕ2ϕ2−ϕ1=h3p−h2ph2p−h1p\frac{\phi_3-\phi_2}{\phi_2-\phi_1} =\frac{h_3^p-h_2^p}{h_2^p-h_1^p}

for a positive pp under the same single-leading-term assumption. Taking absolute values does not repair an alternating-sign sequence: such a sequence does not fit this model with one fixed CC. Oscillatory differences, near-zero denominators, shocks, mesh-interface motion, or mixed error orders can make a single pp meaningless. Celik and collaborators state a disciplined reporting procedure in Celik et al. 2008, “Preliminaries,” recommended Steps 1–5, Eqs. (1)–(10).

Do not force pp to the formal scheme order by rescaling curves. A lower stable order may reveal boundaries, interpolation, limiters, or nonsmooth data. An implausibly high order often signals cancellation or an unresolved leading term. Add a finer run and predict its difference before seeing it.

For a nonzero scalar, a fine-grid relative grid-convergence index can be written

GCI⁡21=Fs ∣ϕ1−ϕ2∣∣ϕ1∣(r21p−1),\operatorname{GCI}_{21} =F_s\, \frac{|\phi_1-\phi_2|} {|\phi_1|(r_{21}^{p}-1)},

where the safety factor FsF_s and procedure are declared. This is an engineering estimate conditioned on the assumed error expansion and sampled regime. It is not a confidence interval derived from random sampling, nor does it include model, gauge, boundary, or calibration uncertainty.

Suppose a dimensionless observable takes these values:

GridSpacing hhObservable ϕ\phi
finest, 10.052.0075
middle, 20.102.0300
coarsest, 30.202.1200

The differences are 0.02250.0225 and 0.09000.0900, so r=2r=2, p=log⁡2(4)=2p=\log_2(4)=2, and ϕext=(4×2.0075−2.03)/3=2\phi_{\mathrm{ext}}=(4\times2.0075-2.03)/3=2. The fine-grid absolute error estimate is 0.0225/(4−1)=0.00750.0225/(4-1)=0.0075. With a declared safety factor Fs=1.25F_s=1.25, the relative GCI is 1.25(0.0075)/2.0075≃0.004671.25(0.0075)/2.0075\simeq0.00467, or 0.467%0.467\%.

These synthetic data follow ϕ(h)=2+3h2\phi(h)=2+3h^2 exactly. A fourth grid at h=0.025h=0.025 is therefore predicted to give 2.0018752.001875. In a real calculation that prediction is a test, not a value to impose on the code. A small extra term or roundoff can spoil the fit, and the safety factor does not turn an untested expansion into a rigorous bound.

For fields, compute L1L_1, L2L_2, and L∞L_\infty norms after conservative restriction or projection to a common representation. State the measure and normalization: for example, a uniform-grid root-mean-square error is [N−1∑jej2]1/2[N^{-1}\sum_j e_j^2]^{1/2}, whereas the discrete integral norm is [h∑jej2]1/2[h\sum_j e_j^2]^{1/2}. They differ by the square root of the domain length. Local defects can disappear in an average norm, while L∞L_\infty can be dominated by a moving feature. For a waveform, report amplitude and phase errors mode by mode and verify that time and frame choices do not set the slope.

The periodic scalar-wave experiment supplies an actual four-grid calculation with separate spatial and temporal errors. Its analytic solution lets you compare the extrapolation logic with the true error before applying it to a black-hole simulation whose continuum result is unknown.

The benchmark suite should include a manufactured scalar wave with known continuum error, plus robust-stability, linear-wave, and gauge-wave tests. A physical black-hole or matter observable supplies an independent check. Manufactured smooth data verify the formal regime; a shock or mesh-refinement boundary tests the lower-regularity production regime.

The environment record should pin equations, input checksums, code and dependency revisions, compiler, precision, solver tolerances, every mesh, refinement criterion, boundary treatment, output time, norms, and analysis scripts. Save iterative residual histories and raw ϕi\phi_i, not only the fitted pp and GCI.

A clean rerun would solve the scalar-wave benchmark on at least three grids with ratios above 1.31.3, repeat the fit after adding a fourth finer grid, and emit residuals, norms, observed order, extrapolated value, and GCI. It would then repeat the logic on the claimed production observable. No absent executable is claimed here.

Reject the error estimate if estimated algebraic solution or observable errors are comparable to grid differences, grid ratios are too small, the three solutions do not represent identical continuum data, observed order changes materially after adding a finer run, convergence oscillates without a suitable model, or the result depends on forced rescaling. The principal failure mode is fitting an asymptotic formula before the asymptotic regime has begun.

At spacings hh, 2h2h, and 4h4h, a quantity is 1.00041.0004, 1.00161.0016, and 1.00641.0064. The differences suggest second-order convergence. However, the nonlinear-solver uncertainty in each value is estimated as 0.0020.002. May Richardson extrapolation support a four-digit result?

Solution

No. The fine–medium difference is only 0.00120.0012, smaller than the iterative uncertainty, so the apparent ratio of differences need not represent discretization error. Tighten the solver until its residual contribution is well below the grid differences, recompute all grids, and add a finer run to test the predicted second-order behavior. Only then evaluate the extrapolation and GCI.

  • Babiuc, Maria C., et al. 2008. “Implementation of Standard Testbeds for Numerical Relativity.” Classical and Quantum Gravity 25, 125012. arXiv.
  • Celik, Ismail B., et al. 2008. “Procedure for Estimation and Reporting of Uncertainty Due to Discretization in CFD Applications.” Journal of Fluids Engineering 130, 078001. DOI.
  • Higham, Nicholas J. Accuracy and Stability of Numerical Algorithms. 2nd ed. Philadelphia: Society for Industrial and Applied Mathematics, 2002. DOI.