ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
driver.h
Go to the documentation of this file.
1#ifndef DRIVER_H
2#define DRIVER_H
3
4#include <string>
5
6namespace ModuleIO
7{
8struct CommandLineArgs;
9}
10
11class Driver
12{
13 public:
14 Driver();
15 ~Driver();
16
24 void init(const ModuleIO::CommandLineArgs& cli);
25
26 private:
31 void print_start_info(const std::string& input_card);
39 void reading(const ModuleIO::CommandLineArgs& cli);
40
47
48 // the actual calculations
49 void driver_run();
50
51 // Init harewares according to Input parameters
52 void init_hardware();
53 void finalize_hardware();
54};
55
56#endif
void init(const ModuleIO::CommandLineArgs &cli)
An interface function. This function calls "this->reading()", "this->atomic_world()" in order.
Definition driver.cpp:29
void atomic_world(const ModuleIO::CommandLineArgs &cli)
An interface function. This function calls "this->driver_run()" to do calculation,...
Definition driver.cpp:194
void finalize_hardware()
Definition driver_run.cpp:177
void reading(const ModuleIO::CommandLineArgs &cli)
Reading the parameters and split the MPI world. This function read the parameter in "INPUT",...
Definition driver.cpp:114
void init_hardware()
Definition driver_run.cpp:159
void print_start_info(const std::string &input_card)
Print the start information.
Definition driver.cpp:55
~Driver()
Definition driver.cpp:25
Driver()
Definition driver.cpp:21
void driver_run()
This is the driver function which defines the workflow of ABACUS calculations. It relies on the class...
Definition driver_run.cpp:37
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
Definition parse_command_line.h:19