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

Class for saving lattices to binary files. More...

#include <outputconf.h>

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

Static Public Member Functions

static void writeConf (GluonField &lattice, int confNum)
 Saves the given GluonField object to the ouput directory. More...
 
static void writeSubLattice (GluonField &lattice, int confNum)
 Saves the GluonField object in a set of files, one for each core.
 
static void setOutputDir (std::string outputDir)
 Sets the output directory path. More...
 

Static Private Attributes

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

Detailed Description

Class for saving lattices to binary files.

Author
Giovanni Pederiva
Version
1.0
Date
2017-2018

This object allows saving of GluonField objects as binary files. It uses MPI routines for handling a single output file with multiple processors.

Definition at line 54 of file outputconf.h.

Member Function Documentation

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

Sets the output directory path.

sets the output directory static variable

Parameters
outputDira string for the path of the output directory

Definition at line 58 of file outputconf.cpp.

void LatticeIO::OutputConf::writeConf ( GluonField lattice,
int  confNum 
)
static

Saves the given GluonField object to the ouput directory.

writes a lattice configuration in a given field object and a numerical tag

Parameters
latticethe GluonField to write in the default output folder
confNumthe numerical tag for the configuration to read

Definition at line 81 of file outputconf.cpp.


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