LatticeYangMills
|
Prototype for the App class group. More...
#include <app.h>
Public Member Functions | |
void | setAction (Action *action) |
Initializes the Action object pointer given an instance of it. More... | |
virtual void | createLattice (std::array< int, 4 > latticeSize) |
Initializes the GluonField object given a sublattice size. More... | |
void | addObservable (Observable *observable) |
Adds a Observable class pointer to the vector of observables of the App. More... | |
virtual void | execute ()=0 |
Protected Attributes | |
Action * | m_act = nullptr |
Pointer to the Action instance. | |
GluonField * | m_lat = nullptr |
Pointer to the GluonField instance. | |
std::array< int, 4 > | m_size |
Size of the sublattice. | |
std::vector< Observable * > | m_obs |
Vector of pointers to Observable instances. | |
Prototype for the App class group.
The App class represents the main user interface of the program. It is initialized by the JsonInput class when an input file is passed. The app holds the Action class, the main GluonField object and the Observable vector. The generic execute() method is used to start the execution of the main algorithm.
void App::addObservable | ( | Observable * | observable | ) |
Adds a Observable class pointer to the vector of observables of the App.
observable | a pointer to an Observable instance |
|
virtual |
Initializes the GluonField object given a sublattice size.
latticeSize | 4-component int array for the size of the sublattice |
Reimplemented in WilsonFlow.
void App::setAction | ( | Action * | action | ) |