An exact and differentiable rewrite of a coupled weather and fire model
John S. Schreck, John Dennis, Iris Linck, Maria Frediani, Pedro A. Jimenez Munoz, Matthew Rehme, Nihanth Cherukuru, David John Gagne
Abstract
AI is changing weather and climate prediction by replacing physical models with learned ones. Here we show a different path, in which AI coding agents rebuild the physical model itself in a machine-learning framework and reproduce its forecast bit for bit. We reconstruct selected configurations of the Weather Research and Forecasting model and its coupled fire physics in PyTorch, treating every difference from the corrected Fortran code as a bug. Across twelve hours of a Marshall Fire simulation, the two independently advancing codes agree bit for bit at all 365 checkpoints, in the atmosphere, fire and firebrand particles. This agreement holds when the code runs one operation at a time, with the Fortran code's mathematical library. On a separate fast route, the reconstructed model runs about five times faster on one GPU than the double-precision Fortran code on a 128-core CPU node. One backward pass maps the fire's sensitivity to the wind at every grid point. In synthetic tests, its derivatives show how to change wind and fuel moisture to correct a misplaced fire front. Neural networks replace the radiation and fire-spread calculations in 24-hour coupled forecasts, and we measure their effect against the physical calculation. An established model thus becomes fast, differentiable and open to learned components, with its tested calculation intact.
Create a lesson
Related papers
WRF-JAX v1.1.28: a differentiable regional weather model with fully coupled physics, numerically consistent with WRF and matching 128-process CPU performance on a single GPU
Shared title terminologyphysics.ao-phShijin Yuan, Tianyu Shen, Bin Mu et al.
Causal collapse in autoregressive AI emulators of the coupled Earth system
Shared title terminologyphysics.ao-phElizabeth A. Barnes, Lucas Howard, Karen A. McKinnon
ENSO Simulation in a Coupled AI Climate Emulator
Shared title terminologyphysics.ao-phGerardo A. Rivera Tello, Jake W. Casselman, Christina Karamperidou
Observation-space verification of AI weather models in JEDI
Shared title terminologyphysics.ao-phClémentine Hardy Gas, Yannick Trémolet, François Hébert et al.
Integrating Surface Observations and Numerical Weather Prediction Guidance for Wind Gust Nowcasting Using a Tabular Foundation Model
Shared title terminologyphysics.ao-phChau-Lam Yu, Harish Baki, Sukanta Basu
A stage-by-stage checklist for responsible AI in weather and climate modelling
Shared title terminologyphysics.ao-phAmirpasha Mozaffari, Filippo Dainelli, Marina Castaño et al.