Add blast diagnostics output boundary

This commit is contained in:
Codex
2026-07-03 23:43:33 +08:00
parent 15abae6341
commit 6045f986b6
12 changed files with 660 additions and 42 deletions
+6
View File
@@ -231,6 +231,12 @@ Fortran API 是核心语义来源。C ABI 只做薄包装:
- C wrapper 负责空指针、容量和字符串长度检查。
- Fortran 侧负责物理校验、数据库校验和错误消息。
### 9.1 0.7.0 局部爆炸调试接口边界
0.7.0 的局部爆炸诊断先作为 Fortran API 和 CSV 调试输出提供,不进入公开 C ABI、C++ wrapper 或 Python `ctypes` 稳定接口。原因是局部爆炸载荷投影、Shell 外载荷闭环、restart 状态和后续 CouplingModule 交互语义尚未冻结,过早暴露 C ABI 会把调试字段固化为长期契约。
0.7.0 也不写入正式 `STATE_0_7` restart。局部爆炸控制和诊断在该版本属于可重建的调试状态;restart 继续保持既有 `STATE_0_5_1` 边界,后续版本再决定是否新增正式 blast state。
字符串从 C 传入 Fortran 时应按 FEMLite 风格传递字符缓冲区和长度,避免依赖编译器私有字符串 ABI。
## 10. C++ 和 Python 接口