30 const std::string& message,
46 return spreads_bohr_squared_;
57 if (!spreads_bohr_squared_.empty()) {
58 lines.push_back(
"diagnostic_spreads_bohr_squared: " +
spreads_text());
65 std::vector<Real> spreads_bohr_squared_;
static std::string history_text(const std::vector< Real > &values)
std::vector< std::string > diagnostic_lines() const override
diagnostic: <code>, and the spreads on a line of their own when there are any.
std::string spreads_text() const
The spreads as "a, b, c" with six decimals each, the form the prose names them in.
WannierDiagnosticError(WannierDiagnostic diagnostic, const std::string &message, std::vector< Real > spreads_bohr_squared={})
WannierDiagnostic diagnostic() const
const std::vector< Real > & spreads_bohr_squared() const
std::string wannier_diagnostic_name(WannierDiagnostic diagnostic)
The enumerator's own spelling, which is what the diagnostic: line prints.