|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
the md loop line More...
Functions | |
| void | md_line (MDCell &mdcell, ModuleESolver::ESolver *p_esolver, const Parameter ¶m_in, DomainDecomposition &decomp) |
| the md loop line | |
| bool | is_cadence_step (const int current_step, const int freq) |
| bool | is_structure_output_step (const int current_step, const int out_freq_ion, const bool out_stru) |
| Periodic structure output is independent of the MD restart cadence. | |
| bool | is_last_step (const int current_step, const int md_nstep) |
the md loop line
|
inline |
Returns true when a per-step action with cadence frequency freq should fire at current_step. A frequency <= 0 disables the action (never fires). Keeping output and restart cadences behind this predicate makes their independence directly unit-testable.
|
inline |
Returns true when current_step is the final ionic step of the run. current_step is the global step (local step + restart offset); md_nstep is the global step count, so the last processed step is md_nstep - 1. The final step is always written even if it does not sit on the output cadence.
|
inline |
Periodic structure output is independent of the MD restart cadence.
| void Run_MD::md_line | ( | MDCell & | mdcell, |
| ModuleESolver::ESolver * | p_esolver, | ||
| const Parameter & | param_in, | ||
| DomainDecomposition & | decomp ) |
the md loop line
| cell | cell information |
| p_esolver | energy solver |
| md_para | input parameters used in md |
md cycle, mohan update 2026-01-04, change '<=' to '<'
Mark the final ionic step on the cell passed to the solver. The output module then writes the final snapshot even when this step is off the out_freq_ion cadence or its SCF did not converge.
flush the COLVAR and other PLUMED output files