← News
Science Breakthroughs Science Breakthroughs Knowledge

A rounding error nearly erased 129 zettajoules of ocean heat

A rounding error nearly erased 129 zettajoules of ocean heat
60 Years Test period
At Most 0.2% Sea ice difference
Up To 8% Runtime cost of correction
1.35 Times hindcast speedup
43% GPU memory reduction
129 ZJ heat-content deficit

A climate model running with smaller, faster numbers quietly lost 129 zettajoules of ocean heat over 60 years. That is not a forecast of the real ocean cooling by that amount; it was an arithmetic error inside a simulation. But it exposed a consequential question for climate science: can models safely trade numerical precision for the speed and memory capacity needed to simulate a finer-grained ocean?

The answer in this study is yes—with an important qualification. A first version of the global ocean–sea-ice model FESOM2, operating mostly in 32-bit rather than 64-bit arithmetic, accumulated salt and heat errors and shifted major ocean fronts. The researchers traced the problem not to the simple act of storing fields in fewer bits, but to the way the model added small changes to large quantities. They redesigned that update, then compared 60-year simulations against double-precision controls. The corrected runs tracked those controls closely, while the 60-year CPU hindcasts ran 1.35 times faster. On GPUs, the corresponding implementation used 40–43% less memory.

That is a practical gain, not a license to assume that any lower-precision climate model will behave well. The paper’s central lesson is almost the opposite: a short test can miss a small bias that becomes a large one only after decades.

Figure 1: Single minus double precision in the 60-year hindcasts before
(first implementation) and after the conservative updates of
Sect. 2.3. (a–c) Annual differences in volume-mean
salinity, ocean heat content, and Arctic sea-ice volume; gray lines are
differences between two double-precision runs: salinity anomaly minus
absolute salinity before (dark), perturbed minus unperturbed initial
temperatures after (light). (d–f) The runs after the updates and the
double-precision differences on a finer scale; note the unit in (d).
(g–i) 1988–2007 mean SST difference before (g) and after (h) the updates,
and between the two double-precision runs after them (i); (h) and (i) share
a color scale ten times finer than that of (g).
Figure 1: Single minus double precision in the 60-year hindcasts before (first implementation) and after the conservative updates of Sect. 2.3. (a–c) Annual differences in volume-mean salinity, ocean heat content, and Arctic sea-ice volume; gray lines are differences between two double-precision runs: salinity anomaly minus absolute salinity before (dark), perturbed minus unperturbed initial temperatures after (light). (d–f) The runs after the updates and the double-precision differences on a finer scale; note the unit in (d). (g–i) 1988–2007 mean SST difference before (g) and after (h) the updates, and between the two double-precision runs after them (i); (h) and (i) share a color scale ten times finer than that of (g). Source: Suvarchal Kumar Cheedela, Nikolay V. Koldunov

The Science

Climate models are numerical approximations of a physical world. They divide the ocean into cells, calculate how heat, salt, water and momentum move between them, then repeat those calculations millions of times. Most ocean models have traditionally used double-precision arithmetic, which stores each number in 64 bits. Single precision stores numbers in 32 bits. The shorter representation takes half the memory and moves fewer bytes through processors, a valuable advantage because many ocean-model calculations are limited by how quickly data can be read and written, not by how many arithmetic operations a processor can perform.

The trade-off is that 32-bit arithmetic has less room to distinguish nearby values. Its relative spacing is about one part in ten million. That sounds small—and often is. But the ocean model repeatedly adds tiny fluxes to much larger stores of heat and salt. A small systematic error in those updates can accumulate, like a clock that loses a fraction of a second every hour and eventually falls minutes behind.

The team—Suvarchal Kumar Cheedela and colleagues at the Alfred Wegener Institute and the University of Bremen—tested this in FESOM2, a global ocean–sea-ice model. Its unstructured triangular grid can vary in resolution, allowing finer detail in regions of interest. The principal climate experiment used a nominal one-degree global mesh and historical atmospheric forcing for 1948–2007. The investigators ran pairs of 60-year hindcasts: one in single precision, one in double precision, alongside double-precision controls that differed only through rounding or a tiny initial temperature perturbation.

That control matters because climate systems are chaotic. Two simulations can begin almost identically and eventually develop different weather and regional patterns, even when both use the same arithmetic. The researchers therefore did not demand that the single-precision ocean reproduce every detail of one double-precision trajectory. They asked whether the differences were larger than the ordinary divergence between two double-precision simulations.

The model updates temperature and salinity as tracers: quantities carried by the flow. A control volume’s tracer content changes as fluxes enter or leave. In exact arithmetic, a flux leaving one cell enters its neighbor, so the internal transfer cancels when the whole ocean is counted. In finite arithmetic, rounding can break that balance. A small increment may disappear when added to a large salinity value; the increment itself can already be biased; and rounding layer thicknesses can alter the volumes in which the tracers reside.

The fix kept the model’s fields and most calculations in single precision, but accumulated tracer tendencies and layer thicknesses in 64 bits. It also carried the rounding remainder from one tracer update into the next, rather than discarding it. This is a form of compensated summation: the model remembers the part of an update that could not be represented exactly and gives it another chance to affect the next calculation. The changes increased runtime by no more than 8% in the tested conditions.

What They Found

The first implementation failed the long test. With absolute salinity, it lost salt at a rate of 1.2 × 10⁻⁴ practical salinity units per year. Over six decades it built a 129 ZJ heat-content deficit. A zettajoule is 10²¹ joules; the figure is best understood here as a measure of the accumulated numerical imbalance, not as an observed change in ocean heat. The model’s mean state shifted along major ocean fronts, and Arctic sea ice thickened.

A series of controlled experiments narrowed down the source. The team ruled out the surface freshwater budget, global sums, the sea-surface-height solver and the way the domain was divided among processors. The drift followed the tracer update. Even when researchers preserved the state in 64-bit form but computed increments in 32 bits, a comparable drift appeared with the opposite sign. That result showed that rounding the stored state was not the only issue: the increments themselves could be biased.

The redesigned update changed the outcome sharply. Across 60 years, the single- and double-precision runs’ heat-content difference stayed within 1.5 ZJ, compared with 1.0 ZJ between the two double-precision controls. The corrected model had no detectable numerical heat source or sink of the kind seen in the first version. Its temperature pattern and mean state differed from double precision by roughly as much as the two double-precision runs differed from each other. In the 1988–2007 mean, the root-mean-square difference in sea-surface temperature was 0.0046°C for single versus double precision, against 0.0040°C between the double-precision controls.

Salt remained a subtle exception. The corrected single-precision model gained salt, reaching a reported difference of 0.47 × 10⁻⁶ psu in the last decade. That was about 14 times the difference between the double-precision controls—but 14,000 times smaller than the salt loss in the first implementation. The study could not identify why the single-precision version took up slightly more salt through the surface. That unexplained residual is a reason for continued monitoring, even though it no longer produced the large heat and mean-state drift.

The annual volume and area of Arctic and Antarctic sea ice differed by no more than 0.2% between corrected single- and double-precision simulations. In a coupled climate-model test, AWI-ESM3, the researchers found no detectable added heat source or sink over 60 years. Together, these tests suggest the correction preserved climate-relevant budgets, not just a few familiar surface patterns.

The conservative update erased most of the heat-content drift

Magnitude of reported heat-content difference from double precision over 60 years. The first implementation accumulated a large deficit; the corrected implementation stayed within the reported comparison range.

The conservative update erased most of the heat-content drift
LabelValue
Initial single precision129 ZJ deficit
Corrected single precision1.5 ZJ deficit

Why This Changes Things

A climate model’s resolution is limited partly by the cost of moving and storing data. Halving the size of the numbers can reduce that burden, potentially allowing researchers to run more experiments, simulate longer periods, or resolve finer ocean features within a given computing budget. Those are not merely engineering conveniences. Climate projections rely on ensembles—many simulations that explore uncertainty—and on regional detail that can matter for ocean circulation, sea ice and coastal impacts.

The corrected 60-year CORE2 hindcasts ran at 70 simulated years per day, up from 52 in double precision, a speedup of 1.35. In a one-month test on one node, the ocean component was 1.76 times faster and tracer calculations 1.85 times faster. Sea ice gained only 1.14 times, consistent with the idea that its performance is constrained more by synchronization and latency than by memory traffic. The speed advantage is therefore not uniform across the model.

Resolution and hardware matter too. On CPUs, the reported speedup reached 1.66 for CORE2 on half a node, but fell to 1.02 when the same mesh was spread across 4,096 processes. The gain was stronger on the larger, eddy-resolving meshes, where each process handled more data. On GPUs, the C++/Kokkos implementation ran 1.05–1.27 times faster in single precision. It also cut device memory use by 40–43%; for the paper’s roughly five-kilometre NG5 mesh on 16 GPUs, that meant 21.6 rather than 35.9 GiB per device.

Speed gains vary across CPUs and GPUs

Reported speedup in the full 60-year CPU hindcasts and the maximum reported speedup on GPUs.

Speed gains vary across CPUs and GPUs
LabelValue
CPU 60-year hindcasts1.35 ×
GPU maximum1.27 ×

Single precision substantially cuts GPU memory use

Reported reduction in device memory use across GPU experiments.

Single precision substantially cuts GPU memory use
LabelValue
Minimum reported reduction40 %
Maximum reported reduction43 %

The investigators also compared the Fortran model with a separate C++/Kokkos implementation. Because chaotic trajectories diverge, they compared each implementation’s single-precision run with its own double-precision reference, then judged the differences against the normal spread among double-precision runs. For temperature, salinity and sea-surface temperature, the single-precision effect in Kokkos was similar to or smaller than that in Fortran. This cross-implementation check adds confidence that the result is not an accident of one code path, although the GPU comparison used a one-year experiment without the later conservative updates.

The paper’s broader contribution is methodological. Reduced precision is often assessed by asking whether a short run looks close to a high-precision counterpart. But long-lived climate variables are governed by budgets: how much heat and salt enter, leave and remain in the system. A model can produce plausible maps while quietly accumulating an imbalance. Checking conservation over decades revealed a failure that shorter tests might have missed—and provided a way to locate and repair it.

What’s Next

The work supports a specific implementation of FESOM2, not a blanket promise for all ocean models or climate configurations. Some components remain in double precision: global budget sums, output averaging, parts of the sea-surface-height solver and the CVMix mixing library. The model’s biogeochemistry package was not converted, and configurations whose salinity operations have not been adapted cannot use the optional salinity-anomaly setting. Models that use these or other components may see smaller speed gains or different numerical behavior.

The revised updates also do not make every quantity identical. The small salt gain remains unexplained, and differences in sea ice slightly exceed the divergence between the double-precision controls. The authors’ test establishes that the main heat budget and climate fields remain close under the tested forcing, mesh and model setup; it does not establish that every coupled feedback, extreme event or configuration will be equally insensitive.

The next practical step is to carry long-term budget checks into more configurations and production use, especially as the model moves to finer meshes and more coupled components. The reported CPU benchmarks at the largest process counts used an earlier implementation without the conservative updates, so the full performance picture at those scales still deserves direct measurement. And the GPU implementation’s long-term climate fidelity should be tested with the corrected update scheme, not inferred solely from its one-year comparison.

Still, the finding is encouraging. A numerical shortcut that initially distorted decades of ocean climate did not need to be abandoned; it needed to be understood. By preserving the tiny pieces of information that ordinary rounding throws away, the team made the model faster without letting its global heat budget drift detectably. That opens room for more ambitious ocean simulations—but also sets the standard for trusting them: measure the budgets, and give the model enough time to reveal its errors.