Repository navigation
Conversation
52ddc54 to
d072464
Compare
ABACUS-PR-BOT
left a comment
There was a problem hiding this comment.
The new negative-cadence check needs the shared input-error path so all MPI ranks reject the input consistently. The valid-input cadence, final-structure and restart paths are consistent in the source trace; one nonblocking cleanup is noted inline.
Static review only; no builds or runtime tests were run.
ABACUS-PR-BOT
left a comment
There was a problem hiding this comment.
Both earlier findings are addressed in c126a5e88. I found no new implementation defect in the reviewed changes; two nonblocking notes below concern regression coverage removed by this update.
Static review only; no builds or runtime tests were run.
| find_program(ABACUS_CADENCE_PYTHON python3) | ||
| if(ABACUS_CADENCE_PYTHON AND NOT ENABLE_ASAN) | ||
| add_test( | ||
| NAME 04_FF_md_output_cadence |
There was a problem hiding this comment.
Non-blocking: Please keep a small end-to-end MD cadence case when removing this CTest. The remaining parser and literal-frequency helper tests would still pass if md_line read out_freq_ion again. A case with out_stru 1 2, out_freq_ion 0, and md_restartfreq 3, plus a zero-cadence case, would protect the periodic, final, and checkpoint file contract.
| if len(serial_frames) != len(parallel_frames) or len(serial_frames) < minimum_frames: | ||
| raise AssertionError("{} has {} one-rank and {} four-rank evaluations".format( | ||
| label, len(serial_frames), len(parallel_frames))) | ||
| tolerances = [1e-5] + [1e-4] * 6 + [1e-3] * 9 |
There was a problem hiding this comment.
Non-blocking: Please preserve this model-backed rank comparison in the existing validation harness. It checks energy and every force/stress component with empty ranks and repeated geometry changes; the retained Al MD and finiteness tests do not cover those same cases. Keep the external-model prerequisite documented.
Summary
out_struwith an optional second integer for the periodic MD structure cadence; it defaults to1.out_freq_ionfor electronic and other ionic-step outputs. It does not set MD STRU/CIF cadence.out_stru 1 5writes a structure frame every five steps.out_stru 1 0disables periodic STRU frames but still writesSTRU_FINAL; restart files remain controlled bymd_restartfreq.Verification
cmake --build /tmp/abacus-md-test-force-output-build --target MODULE_IO_input_error_mpi MODULE_IO_read_item_serial -j4— passed.ctest --test-dir /tmp/abacus-md-test-force-output-build -R '^MODULE_IO_read_item_serial$' --output-on-failure— passed (1/1).ctest --test-dir /tmp/abacus-md-test-force-output-build -R '^MODULE_IO_input_error_mpi_out_stru_negative_frequency$' --output-on-failure— passed (1/1, four MPI ranks).cmake-format --check source/source_io/unittests/CMakeLists.txt— passed.