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

Class for reding lattices from binary files. More...

#include <inputconf.h>

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

Static Public Member Functions

static void readConf (GluonField &lattice, int confNum)
 Reads a binary file from a int marker for the name. More...
 
static void readConf (GluonField &lattice, const char *inputFile)
 Reads a binary file given its path into a lattice object. More...
 
static void readSubLattice (GluonField &lattice, int confNum)
 Reads one binary file for each processor, assuming it is split.
 
static void setInputDir (std::string inputDir)
 Sets the input directory. More...
 
static void getInputList (std::vector< std::string > &inputConfList)
 Returns a list of all valid input files in a the input directory. More...
 

Static Private Attributes

static int m_linkSize = 18 * sizeof(double)
 Contains the size in bytes of a 4 links on a lattice site.
 
static std::string m_inputDir
 The path of the input directory.
 

Detailed Description

Class for reding lattices from binary files.

Author
Giovanni Pederiva
Version
1.0
Date
2017-2018

This class mainly serves the purpose of providing an interface for reading GluonField objects from binary format.

Definition at line 50 of file inputconf.h.

Member Function Documentation

void LatticeIO::InputConf::getInputList ( std::vector< std::string > &  inputConfList)
static

Returns a list of all valid input files in a the input directory.

scans the input folder for valid binary files containing lattice field configurations

Parameters
inputConfLista vector of string to store the path of the configuration(s) to read

Definition at line 109 of file inputconf.cpp.

void LatticeIO::InputConf::readConf ( GluonField lattice,
int  confNum 
)
static

Reads a binary file from a int marker for the name.

reads a lattice configuration in a given field object from a numerical tag

Parameters
latticethe GluonField to read the lattice field configuration in
confNumthe numerical label of the configuration to read

Definition at line 136 of file inputconf.cpp.

void LatticeIO::InputConf::readConf ( GluonField lattice,
const char *  inputFile 
)
static

Reads a binary file given its path into a lattice object.

reads a lattice configuration in a given field object given a path

Parameters
latticethe GluonField to read the lattice field configuration in
inputFilethe path to the configuration to read

Definition at line 147 of file inputconf.cpp.

void LatticeIO::InputConf::setInputDir ( std::string  inputDir)
static

Sets the input directory.

sets the input directory static variable

Parameters
inputDirthe path of the input directory

Definition at line 101 of file inputconf.cpp.


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