Test: gromacs pull_test's rate check fails on a short noisy run (0.0489 vs 0.030 nm/ps)

未關閉 適合新手
#1,345 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
72/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
python
領域
testing

研究方向

從 tests/gromacs_md/pull_test.py 和已回報的 GROMACS 執行中的 pullx.xvg 輸出開始。重現短時間視窗的斜率檢查,然後選擇一種穩定的測量方式。確保固定 GROMACS 處理程序數量。測試應通過,且不依賴主機的核心數量。

由索引模型根據 Issue 內容生成。

描述

bug

tests/gromacs_md/pull_test.py fits a line to the second half of `pullx.xvg` (about 2 ps) and requires the slope to be within 35 % of the pull rate (0.030 nm/ps). On nerdegg, in the #868 GROMACS-parser run (branch cx/868-gmxparse, where the test ran under Slurm with 2–3 cores), it measured 0.0489 nm/ps:

distance 2.0533 -> 2.1337 nm over the last 2.00 ps: slope 0.0489 nm/ps; force -53.8 .. 150.4
FAIL  the COM distance rises at about the rate (0.0489 vs 0.030 nm/ps)

The number comes straight from GROMACS's own `pullx.xvg`, before any ECCE parser runs, so the parser port cannot have caused it. `gen-seed = 42` fixes the velocities, but the run asks for 8 processes, so the trajectory still depends on the host's thread count and domain decomposition. Over 2 ps, the thermal motion of the COM distance is comparable to the 0.06 nm the spring is meant to add.

Options: a longer measuring window or a slower, stiffer pull so that the drift dominates the noise, or a check on the time-averaged force against k·(rate·t − Δx) instead of on the slope. Either way, the test should pin `-nt` so the trajectory does not depend on the host.

主要語言
C
星號
10
分支
8
平均合併
6 小時 32 分鐘
30 天內合併 PR
1

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

FriendsofECCE/ECCE 的其他 Issue

查看 FriendsofECCE/ECCE 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。