GLAC  1.0
Public Member Functions | Static Public Member Functions
IO::FieldIO Class Reference

#include <fieldio.h>

Public Member Functions

 FieldIO ()
 IO::FieldIO::FieldIO initializes the FieldIO object. More...
 
 ~FieldIO ()
 IO::FieldIO::~FieldIO. More...
 

Static Public Member Functions

static void init ()
 IO::FieldIO::init updates the lattice dimensions. More...
 
static void writeFieldToFile (Lattice< SU3 > *lattice, unsigned int configNumber)
 IO::FieldIO::writeFieldToFile writes a lattice of SU3 matrix objects to file. More...
 
static void writeDoublesFieldToFile (Lattice< double > lattice, unsigned int configNumber, std::string observable)
 IO::FieldIO::writeDoublesFieldToFile writes a lattice of doubles to file. More...
 
static void loadFieldConfiguration (std::string filename, Lattice< SU3 > *lattice)
 IO::FieldIO::loadFieldConfiguration loads a regular configuration into memory. More...
 
static void loadChromaFieldConfiguration (std::string filename, Lattice< SU3 > *lattice)
 IO::FieldIO::loadChromaFieldConfiguration loads a configuration from Chroma into memory. More...
 

Constructor & Destructor Documentation

◆ FieldIO()

FieldIO::FieldIO ( )

IO::FieldIO::FieldIO initializes the FieldIO object.

Empty constructor.

◆ ~FieldIO()

FieldIO::~FieldIO ( )

IO::FieldIO::~FieldIO.

Empty destructor.

Member Function Documentation

◆ init()

void FieldIO::init ( )
static

IO::FieldIO::init updates the lattice dimensions.

Used in unit testing.

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

◆ loadChromaFieldConfiguration()

void FieldIO::loadChromaFieldConfiguration ( std::string  filename,
Lattice< SU3 > *  lattice 
)
static

IO::FieldIO::loadChromaFieldConfiguration loads a configuration from Chroma into memory.

Parameters
filename
latticeis a pointer of four lattice objects, one for each Lorentz index, that will filled with the configuration read from file.

If debug is true in the passed .json parameter file, it will perform a check for lattice corruption.

Here is the call graph for this function:

◆ loadFieldConfiguration()

void FieldIO::loadFieldConfiguration ( std::string  filename,
Lattice< SU3 > *  lattice 
)
static

IO::FieldIO::loadFieldConfiguration loads a regular configuration into memory.

Parameters
filename
latticeis a pointer of four lattice objects, one for each Lorentz index, that will filled with the configuration read from file.

If debug is true in the passed .json parameter file, it will perform a check for lattice corruption.

Here is the call graph for this function:

◆ writeDoublesFieldToFile()

void FieldIO::writeDoublesFieldToFile ( Lattice< double >  lattice,
unsigned int  configNumber,
std::string  observable 
)
static

IO::FieldIO::writeDoublesFieldToFile writes a lattice of doubles to file.

Parameters
latticeis a pointer of four lattice objects, one for each Lorentz index.
configNumberconfiguration number.
observablename of the observable.

Useful if one wants to visualize the lattice.

See also
https://github.com/hmvege/LatViz for a configuration visualization method.

Uses MPI_File_write_at to write the configuration to a file.

If debug is true in the passed .json parameter file, it will perform a check for lattice corruption.

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

◆ writeFieldToFile()

void FieldIO::writeFieldToFile ( Lattice< SU3 > *  lattice,
unsigned int  configNumber 
)
static

IO::FieldIO::writeFieldToFile writes a lattice of SU3 matrix objects to file.

Parameters
latticeis a pointer of four lattice objects, one for each Lorentz index.
configNumberthe configuration number to name the file with.

Uses MPI_File_write_at to write the configuration to a file.

If debug is true in the passed .json parameter file, it will perform a check for lattice corruption.

Here is the call graph for this function:

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