Mistral migrates 40,000 lines of a Fortran 77 reservoir simulator to C++ for a European energy operator, using a numerical parity harness and human-run agent workflows
Mistral's Applied AI team migrated the core 40,000 of 300,000 lines of a physics-heavy reservoir simulator with no test suite and no central documentation. They first built a parity harness: Fortran subroutines to dump state, a C++ test framework to load those checkpoints, and skill files to steer agents. Over a hundred agents launched with Vibe CLI documented the code from the leaves of the call tree upward, with a reviewer agent on a cron schedule checking their PRs. Fully autonomous translation produced Fortran retyped as C++, and a planner, coder, tester and reviewer setup stalled on hard bugs, so they settled on a human running coder, tester and reviewer agents module by module, with a reservoir engineer approving each architecture and a human reviewing every PR.
The numbers (as reported)
| Lines migrated | 40,000 of 300,000 lines of Fortran 77 (first sprint, core functionality) |
|---|---|
| Documentation agents | over a hundred |
| Module size | self-contained subtrees of under about 10,000 lines of Fortran |
| First autonomous attempt | one agent per subroutine over a week; functional but not modernised |
Facts
- Company / subject
- Mistral AI (for an unnamed European energy operator)
- Tools
- Mistral Vibe
- Codebase
- brownfield
- Work type
- Language port
- Stack
- Fortran 77, C++, PETSc
- Published
- 2026-09-09
- Last checked
- 2026-10-22
What the source claims Vendor-published
Claimed by the vendor that sells the tool. Not checked independently.
- 40,000 lines of Fortran 77 migrated to C++ for a simulator with no test suite and no central documentation 40,000 lines
“Mistral helped a European energy operator migrate 40,000 lines of Fortran 77 to C++”
Caveats
Vendor post about its own models and services; the customer is anonymous. It gives no total duration, cost, or count of PRs, and Vibe CLI is named only for the documentation step, not explicitly for the migration agents. Only the first 40,000 lines were done.
Related topics: Language portsBrownfield codebasesVendor case studies