GLAC  1.0
Data Structures | Functions
IO Namespace Reference

Data Structures

class  FieldIO
 

Functions

void writeObservablesToFile (double acceptanceRate, double averagedObservable, double varianceObservable, double stdObservable, std::vector< double > observables, unsigned int NObs, std::string observableName)
 IO::writeObservablesToFile method for writing an observable to file, using .15 precision. More...
 
void writeFlowObservableToFile (std::vector< double > observables, std::string observableName, unsigned int configNumber)
 IO::writeFlowObservableToFile method for writing a flow observable to file, using .15 precision. More...
 
void writeMatrixToFile (std::vector< double > observables, std::string observableName, unsigned int configNumber, unsigned int N)
 IO::writeMatrixToFile writes out a matrix of observables to file, i.e. the topological charge in Euclidean time. Uses a .15 precision. More...
 

Detailed Description

Holds the field input/output class FieldIO as well as methods for writing observables to file.

Function Documentation

◆ writeFlowObservableToFile()

void IO::writeFlowObservableToFile ( std::vector< double >  observables,
std::string  observableName,
unsigned int  configNumber 
)

IO::writeFlowObservableToFile method for writing a flow observable to file, using .15 precision.

Parameters
observablesa vector of observables.
observableNameobservable name.
configNumberthe configuration number.

Top 3 rows of the output file will contain,

  • beta,
  • NFlows,
  • FlowEpsilon, with the rest containing the flowed observable.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeMatrixToFile()

void IO::writeMatrixToFile ( std::vector< double >  observables,
std::string  observableName,
unsigned int  configNumber,
unsigned int  N 
)

IO::writeMatrixToFile writes out a matrix of observables to file, i.e. the topological charge in Euclidean time. Uses a .15 precision.

Parameters
observablesthe observables in a vector of doubles.
observableNamethe name of the observable.
configNumberthe configuration number.
Nthe number of columns in the matrix of observables. The number of rows in the matrix is the number of flow steps, NFlows, retrieved from Parameters::getNFlows().

Top 3 rows of the output file will contain,

  • beta,
  • NFlows,
  • FlowEpsilon, with the rest containing the flowed observable.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeObservablesToFile()

void IO::writeObservablesToFile ( double  acceptanceRate,
double  averagedObservable,
double  varianceObservable,
double  stdObservable,
std::vector< double >  observables,
unsigned int  NObs,
std::string  observableName 
)

IO::writeObservablesToFile method for writing an observable to file, using .15 precision.

Parameters
acceptanceRateacceptance rate from the Metropolis algorithm.
averagedObservablethe average of the observable.
varianceObservablethe variance of the observable.
stdObservablethe standard deviation of the observable.
observablesvector of doubles containing the observable.
NObsthe number of configurations, i.e. observables, to be written to file.
observableNamename of the observable. Topological charge, plaquette, energy ect.

The top 8 rows contains,

  • beta,
  • acceptance rate,
  • number of correlation updates used,
  • number of configurations,
  • number of thermalization steps,
  • the average of the observable,
  • the variance of the observable,
  • the standard deviation of the observable,
Here is the call graph for this function:
Here is the caller graph for this function: