Repository navigation
Conversation
added 14 commits
November 23, 2026 19:17
mohanchen
approved these changes
Nov 24, 2026
mohanchen
left a comment
Collaborator
There was a problem hiding this comment.
This is a breaking change and it looks good to me.
ABACUS-PR-BOT
left a comment
Collaborator
There was a problem hiding this comment.
The STRU output migration leaves regressions in ASE reading, legacy restart output and final-stress collection. The inline comments identify five defects and three non-blocking improvements.
Static review only; no builds or runtime tests were run.
mohanchen
reviewed
Nov 25, 2026
| /// @brief Find the structure file for restarting a molecular dynamics run. | ||
| void log_read_file(const std::string& filename) | ||
| { | ||
| char cwd[PATH_MAX]; |
Collaborator
There was a problem hiding this comment.
what's PATH_MAX? Try avoid using global parameter
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reminder
Linked Issue
No linked issue; this PR follows the requested MD output redesign.
What's changed
out_app_flagmodes.out_stru=1writes ABACUS STRU with per-atom forces and velocities;out_stru=2writes CIF geometry. MD mode 1 overwrites periodicSTRU.cif, matching relax CIF behavior.out_freq_ionselects periodic frames; a final structure is always written whenout_stru>0. Distributed atoms are sorted by stable identity and duplicate/missing indices are rejected. A legacyOUT.<suffix>/STRU/directory is handled safely on restart.STRU_restartandRestart_md.txtfrom ordinary output;md_restartfreqcontrols checkpoints. Restart STRU retains velocities.MD_dumpand its INPUT controls. Update affected Autotest properties, scripts, ASE reader, and MD documentation. ASE now reads STRU/CIF output, aligns restarted MD steps, and reconstructs electronic stress from step-labelled virial.out_thermo_freq(default 1), removemd_thermo_freq, print one-basedMD STEPindependently of stress, and print full 3x3 virial/total-stress tensors on the thermodynamic cadence. Suppress solver-specific MD force/stress tables while leaving non-MD output unchanged.geo_in_type ABACUScompatibility limitation documented.Verification
Latest local commit
82b56a2c8:cmake --build build_parallel_md1_current --target abacus_basic_para MODULE_CELL_mdcell_cif_io -j 12— passed.env OMP_NUM_THREADS=1 ctest --test-dir build_parallel_md1_current -R '^(MODULE_CELL_mdcell_cif_io(_np2)?|MODULE_CELL_NEIGHBOR_mdcell_reader_np4|MODULE_MD_(fire|verlet|nhc|msst|lgv)|04_FF_md_output_cadence)$' --output-on-failure— 9/9 passed. The cadence driver covers CIF modes 0/1/2, independent restart output, and legacy-directory restart.env PYTHONPATH=interfaces/ASE_interface /tmp/abacus-ase-venv/bin/python -m unittest abacuslite.io.latestio— 21/21 passed (ASE installed in a temporary virtual environment).python3 -m unittest tests/integrate/validation_tools/test_props_basic.py— 6/6 passed.bash -n tests/integrate/validation_tools/props_basic.sh;python3 -m py_compile interfaces/ASE_interface/abacuslite/io/latestio.py tests/integrate/validation_tools/check_md_output_cadence.py tests/integrate/validation_tools/test_props_basic.py;git diff --check origin/develop...HEAD— passed.build_parallel_md1_current/abacus_basic_para -h out_struand--check-inputon an MD CIF case — passed. A five-step MD CIF run and a restart fromSTRU_restartcompleted locally.python3 tools/03_code_analysis/agent_governance_check.py --base origin/develop --head HEAD --format text— exit 0, warnings only.Earlier validation covered targeted LCAO, PW, OFDFT, SDFT, FF, and relax Autotest cases. Optional DeePMD/NEP runtime cases were unavailable in this build.
Governance notes
The PR-level global dependency count falls by 5 (11 additions, 16 removals). The new running-log reference in
read_input.cppmoves the restart-file confirmation until after the log opens; other added references are migration-neutral moves in existing output functions.mdcell_cif_io.hneeds<string>for its public filename/comment parameters and has no cyclic include. New source is listed insource/source_cell/CMakeLists.txtandsource/Makefile.Objects; pyabacus has no hardcodedprint_cell.cpp/CIF source entry. Generated INPUT reference pages are intentionally not committed. No governance exception is requested.The previous CI run failed five MD tests that assumed the old log layout; their assertions now check the step label and tensor block. The CUDA run failed
scf_out_wfon wavefunction coefficient maxima, outside the modified MD/output paths; no reference was changed. New CI on the pushed commit is pending.