31 ?
"unresolved: named nowhere, and a species has no pseudopotential to state it"
33 log::info(
" cutoffs wavefunction {} Ry, density {} Ry",
42 log::info(
" k-point grid {}x{}x{} shifted {}{}{}",
50 for (
const auto& hubbard : input.
hubbard)
51 log::info(
" DFT+U {} {} U = {} Ry ({} projectors)",
52 hubbard.species_symbol,
53 hubbard.orbital_label,
67int main(
int argc,
char* argv[]) {
77 if (options.print_version) {
82 if (!options.log_level.empty()) {
91 if (options.check_only) {
98 const std::string& calculation_type = input.calculation;
99 log::info(
" Calculation type: {}", calculation_type);
106 generated::Results results =
run_flavor(input);
107 write_results_json(results, input.output_directory +
"/" + input.prefix +
"_results.json");
110 }
catch (
const std::exception& e) {
116 q3::log::info(
" Total FFT calls: {}", profiling.fft_call_count.load());
118 profiling.davidson_iteration_count.load());
120 profiling.hamiltonian_application_count.load());
121 profiling.print_memory_summary();
122 profiling.davidson_timing.print_summary();
int main(int argc, char *argv[])
static void report_resolved_input(const InputData &input)
void register_all()
No add-on is compiled in, so there is nothing to register.
Options parse_options(int argc, char *argv[], const std::string &binary_name)
void print_version(const std::string &binary_name)
InputData read_input(Options &options, const std::string &binary_name)
void init(const std::string &log_file="")
void error(spdlog::format_string_t< Args... > fmt, Args &&... args)
void info(spdlog::format_string_t< Args... > fmt, Args &&... args)
void set_level(const std::string &level)
Set log level: "trace", "debug", "info", "warn", "error", "off".
void write_results_json(const generated::Results &results, const std::string &output_path)
Write the results to output_path as results.json.
generated::Results run_flavor(const InputData &input)
void write_companion_outputs(const InputData &input, const generated::Results &results)
Write the companion outputs of the format input was read from, if it has any.
static ProfilingCounters & instance()