Preprints
https://doi.org/10.5194/egusphere-2026-5516
https://doi.org/10.5194/egusphere-2026-5516
01 Dec 2026
 | 01 Dec 2026
Status: this preprint is open for discussion and under review for Geoscientific Model Development (GMD).

SURF-Torch v1.0: a differentiable PyTorch implementation of the OpenIFS land-surface physics

Jinhui Yang, Wenjing Zhao, Xiumin Lin, Congyuan Li, and Junqiang Song

Abstract. Land-surface schemes are mature in process content but are written in Fortran, confining parameter and sensitivity studies to ensembles of independent integrations. We present a differentiable PyTorch implementation of the complete OpenIFS land-surface physics that preserves the tiled process ordering of the Fortran reference and keeps every conditional regime switch unsmoothed, so the differentiated operator is the verified one. It matches the reference at every duration tested: a 30-day controlled integration of the 97,709-column ends at surface-temperature and snow-water-equivalent RMSE of 6.90×10−6 K and 1.05×10−6 kg m−2, a one-year autonomous integration holds terminal relative errors below 5.1×10−3 %, and ten successively restarted years (2009–2018) show no error growth; CUDA-graph execution on an NVIDIA A100 sustains a 3.8-fold speed-up over the 32-thread Fortran reference. Against independent Terra MODIS observations, the configuration reproduces nighttime land surface temperature (bias 0.66 K) but carries a −6.4 K daytime cold bias. Decomposing this bias with reverse-mode derivatives verified against finite differences to 4×10−4, we find that eight global parameter scales explain at most 0.5 K of it, that the remainder is a structural 8.1 K peak-to-peak deficit of near-surface diurnal amplitude, and that a two-timescale surface-layer closure designed from this diagnosis and verified in state space removes 67–84 % of the bias (calibration to held-out) in every month of the year and ports back to the Fortran driver without re-tuning. These results show how a differentiable land surface moves evaluation beyond numerical fidelity to observation-constrained process improvement.

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. While Copernicus Publications makes every effort to include appropriate place names, the final responsibility lies with the authors. Views expressed in the text are those of the authors and do not necessarily reflect the views of the publisher.
Share
Jinhui Yang, Wenjing Zhao, Xiumin Lin, Congyuan Li, and Junqiang Song

Status: open (until 26 Jan 2027)

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
Jinhui Yang, Wenjing Zhao, Xiumin Lin, Congyuan Li, and Junqiang Song

Data sets

PyTorch implementation of the OpenIFS land-surface physics: data package J. Yang et al. https://doi.org/10.57760/sciencedb.0125b

Model code and software

SURF-Torch v1.0: a differentiable PyTorch implementation of the OpenIFS land-surface physics J. Yang et al. https://github.com/yangjinhui11/surf_torch

Jinhui Yang, Wenjing Zhao, Xiumin Lin, Congyuan Li, and Junqiang Song
Metrics will be available soon.
Latest update: 01 Dec 2026
Download
Short summary
Land-surface models are written in Fortran, so their parameters can only be tuned by running many separate simulations. We rebuilt the OpenIFS land-surface physics in PyTorch so that it is differentiable: the computer can directly calculate how each parameter affects the results. The new version reproduces the original exactly and runs faster on a GPU. Using its built-in derivatives, we traced a daytime cold bias to a structural deficiency and designed a fix that removes most of it.
Share