perf: 降低 JSON 输出精度 15→8 位 + 添加 I/O 阶段提示

- C/C++/Fortran 引擎:%.15g/setprecision(15)/g0 → %.8g/g0.8
- 添加 "正在写入轨迹数据…" 提示,说明 100% 后的等待原因
- trajectory.txt 文件从 419MB → 407MB(仍有优化空间)
This commit is contained in:
2026-06-12 05:53:27 +08:00
parent 52505e9aff
commit c158c74609
4 changed files with 15 additions and 11 deletions
+2 -1
View File
@@ -695,7 +695,8 @@ static void write_trajectory_json(
{
std::ofstream f(path);
if (!f) die("无法写入 " + path);
f << std::setprecision(15);
std::cout << "[Cpp-engine] 正在写入轨迹数据…" << std::endl;
f << std::setprecision(8);
f << "{\n";