LatticeYangMills
Static Public Member Functions | Static Private Attributes | List of all members
LatticeIO::OutputObs Class Reference

Class for output to file of observables values. More...

#include <outputobs.h>

Collaboration diagram for LatticeIO::OutputObs:
Collaboration graph
[legend]

Static Public Member Functions

static void initialize (std::vector< Observable * > &obsList)
 Opens the files and writes needed headers. More...
 
static void writeObs (std::vector< Observable * > &obsList, int MCSteps)
 Writes the list of observables to file at given generation point. More...
 
static void writeFlowObs (int confNum, std::vector< Observable * > &obsList, std::vector< std::vector< double >> &obsMatrix)
 Writes the observables for given flow step. More...
 
static void setOutputDir (std::string outputDir)
 Sets the output directory for the file output. More...
 

Static Private Attributes

static FILE * m_file
 The file object for target output.
 
static char fileName [1024]
 The name of the output file.
 
static std::string m_outputDir
 The output directory.
 

Detailed Description

Class for output to file of observables values.

Author
Giovanni Pederiva
Version
1.0
Date
2017-2018

This file defines the class needed to file the values of the observables at different steps in the execution. It handles through MPI the acces to files depending on rank. Provides output for generation and flow steps.

Definition at line 59 of file outputobs.h.

Member Function Documentation

void LatticeIO::OutputObs::initialize ( std::vector< Observable * > &  obsList)
static

Opens the files and writes needed headers.

initializes the output file for the observables

Parameters
obsLista vector of Observables that will be computed and written to file

Definition at line 63 of file outputobs.cpp.

void LatticeIO::OutputObs::setOutputDir ( std::string  outputDir)
static

Sets the output directory for the file output.

sets the output directory static variable

Parameters
outputDira string for the path of the output directory

Definition at line 52 of file outputobs.cpp.

void LatticeIO::OutputObs::writeFlowObs ( int  confNum,
std::vector< Observable * > &  obsList,
std::vector< std::vector< double >> &  obsMatrix 
)
static

Writes the observables for given flow step.

writes the matrix of observables for each flowtime to file, given a numerical tag

Parameters
confNumthe tag of the current configuration that's being flowed
obsLista vector of Observables that will be computed and written to file
obsMatrixa matrix containing all the observables computed at every flow time

Definition at line 97 of file outputobs.cpp.

void LatticeIO::OutputObs::writeObs ( std::vector< Observable * > &  obsList,
int  MCSteps 
)
static

Writes the list of observables to file at given generation point.

writes the current state of the observables to file, given a numerical tag

Parameters
obsLista vector of Observables that will be computed and written to file
MCStepsthe tag of the current Monte Carlo step

Definition at line 80 of file outputobs.cpp.


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