Path Integral Quantum Monte Carlo
|
Performs input/output. More...
#include <communicator.h>
Public Member Functions | |
void | init (double, bool, string, string) |
Initialize the output files. More... | |
File * | file (string type) |
Get method returning file object. | |
void | updateNames () |
Update the data name and rename any existing files. | |
Static Public Member Functions | |
static Communicator * | getInstance () |
This public method gets an instance of the Communicator object, only one can ever exist at a time. | |
Protected Member Functions | |
Communicator (const Communicator &) | |
Copy constructor. | |
Communicator & | operator= (const Communicator &) |
Singleton equals. | |
Performs input/output.
Holds information on input and output files that will need to be accessed throughout the simulation and allows their access via the singleton design pattern.
Definition at line 76 of file communicator.h.
void Communicator::init | ( | double | _tau, |
bool | outputWorldline, | ||
string | _initName, | ||
string | _fixedName | ||
) |
Initialize the output files.
Initialize all input/output files.
If we are in the grand-canonical ensemble, then initialize all output files with the form gce-xxx-T-L-mu-tau-ID.dat, whereas if we are in the canonical ensemble we label as ce-xxx-T-N-n-tau-ID.dat.
Definition at line 137 of file communicator.cpp.