Mistral 如何用 AI 智能体迁移 4 万行 Fortran 77 遗留代码
Mistral 帮助一家欧洲能源运营商把 4 万行 Fortran 77 的油藏模拟器迁移到 C++,做法是先搭建数值一致性校验框架,再用 AI 智能体整理文档并配合人工审核的分模块工作流。项目用自定义解析器生成调用树,通过 Vibe CLI 启动上百个智能体逐节点补文档并提交 PR,由定时运行的审查智能体复核。团队总结出三条经验:先建一致性校验再写迁移代码、先理顺文档再依赖智能体、结构化工作流加人工审核优于完全自主或纯手工。首个冲刺完成 30 万行中的 4 万行核心功能。

an integer only because its name starts with a letter between I and N. Variable names are quite cryptic, as their length is capped to 6 characters. In C++, one will be able to leverage explicit types, write object-oriented code, and return a value returned instead of a global write: The scattered COMMON arrays become a single GasProperties parameter and the grid loop moved out to the caller, so there's no line-for-line correspondence to check, which is what makes verifying the migration hard. Th
匹配字段正文



