ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Driver Class Reference

#include <driver.h>

Collaboration diagram for Driver:

Public Member Functions

 Driver ()
 ~Driver ()
void init (const ModuleIO::CommandLineArgs &cli)
 An interface function. This function calls "this->reading()", "this->atomic_world()" in order.

Private Member Functions

void print_start_info (const std::string &input_card)
 Print the start information.
void reading (const ModuleIO::CommandLineArgs &cli)
 Reading the parameters and split the MPI world. This function read the parameter in "INPUT", "STRU" etc, and split the MPI world into different groups.
void atomic_world (const ModuleIO::CommandLineArgs &cli)
 An interface function. This function calls "this->driver_run()" to do calculation, and log the time and memory consumed during calculation.
void driver_run ()
 This is the driver function which defines the workflow of ABACUS calculations. It relies on the class Esolver, which is a class that organizes workflows of single point calculations.
void init_hardware ()
void finalize_hardware ()

Constructor & Destructor Documentation

◆ Driver()

Driver::Driver ( )

◆ ~Driver()

Driver::~Driver ( )

Member Function Documentation

◆ atomic_world()

void Driver::atomic_world ( const ModuleIO::CommandLineArgs & cli)
private

An interface function. This function calls "this->driver_run()" to do calculation, and log the time and memory consumed during calculation.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ driver_run()

void Driver::driver_run ( )
private

This is the driver function which defines the workflow of ABACUS calculations. It relies on the class Esolver, which is a class that organizes workflows of single point calculations.

For calculations involving change of configuration (lattice parameter & ionic motion), this driver calls Esolver::Run and the configuration-changing subroutine in a alternating manner.

Information is passed between the two subroutines by class UnitCell

Esolver::Run takes in a configuration and provides force and stress, the configuration-changing subroutine takes force and stress and updates the configuration

1: setup cell and atom information

6: output the json file

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalize_hardware()

void Driver::finalize_hardware ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

void Driver::init ( const ModuleIO::CommandLineArgs & cli)

An interface function. This function calls "this->reading()", "this->atomic_world()" in order.

The selected INPUT path is passed explicitly without global state. Parsed variables are reserved for PART II and are not applied here.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_hardware()

void Driver::init_hardware ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_start_info()

void Driver::print_start_info ( const std::string & input_card)
private

Print the start information.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reading()

void Driver::reading ( const ModuleIO::CommandLineArgs & cli)
private

Reading the parameters and split the MPI world. This function read the parameter in "INPUT", "STRU" etc, and split the MPI world into different groups.

The selected INPUT path is forwarded to ReadInput here.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: