fix: save_trajectory=0 时删除 trajectory.txt,所有引擎保持一致

Python 引擎:run_simulation 已正确支持 save_trajectory 
外部引擎(C/C++/Fortran):save_trajectory_txt 仅在
  save_trajectory=1 时调用;display.txt 生成后删除 trajectory.txt
补充:移除 compute.py 中重复的 'global use_marker' 和占位符
This commit is contained in:
2026-06-12 08:18:07 +08:00
parent 6298ed5b34
commit 41790a782a
4 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
bond_name k rest_length
k1 1.0 1.0
k1 10.0 1.0
+1 -1
View File
@@ -72,7 +72,7 @@ T_total: 100.0
NSTEP: 100
# ── 时间步长 ──────────────────────────────────
DT: 0.01 # 时间步长 (s)
DT: 0.001 # 时间步长 (s)
# 抽帧范围:只保存 [sample_start, sample_end) 区间内的帧
sample_start: null # null 表示从头开始(帧索引从 0 起)