|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Shared formatting of per-step convergence history for the running log. More...
#include <iomanip>#include <sstream>#include <string>#include <vector>Go to the source code of this file.
Functions | |
| std::string | format_relax_history (const std::vector< double > &hist, const int per_line=5, const int max_full=100, const int keep=10) |
| Format a per-step history for the running log. | |
Shared formatting of per-step convergence history for the running log.
Both relaxation paths (Relax in relax_sync.cpp and IonCellOptimizer in relax_nsync.cpp) record the largest force / stress of each step and print a summary when relaxation finishes. This free function keeps that summary layout identical across the two paths.
|
inline |
Format a per-step history for the running log.
Layout rules: