Bridge++  Ver. 1.3.x
GaugeConfig Class Reference

GaugeConfig class for file I/O of gauge configuration. More...

#include <gaugeConfig.h>

Inheritance diagram for GaugeConfig:
GaugeConfig_SF

Public Member Functions

 GaugeConfig (const string &type)
 
virtual ~GaugeConfig ()
 
void read_file (Field *U, const string &filename)
 
void read_file (unique_ptr< Field_G > &U, const string &filename)
 
void write_file (Field *U, const string &filename)
 
void write_file (unique_ptr< Field_G > &U, const string &filename)
 

Static Public Attributes

static const std::string class_name = "GaugeConfig"
 

Protected Attributes

Bridge::VerboseLevel m_vl
 
FieldIOm_fieldio
 

Private Member Functions

 GaugeConfig (const GaugeConfig &)
 
GaugeConfigoperator= (const GaugeConfig &)
 

Detailed Description

GaugeConfig class for file I/O of gauge configuration.

This class family is used to setup and output the gauge configuration. This is the base class, which implements common functions, and read/write methods are implemented in subclasses. At present, cutting off the gauge field for each node and deliver it to the node is implemented in this class. It may be better to separate that to other class for general usage for other field objects. [28 Dec 2011 H.Matsufuru]

GaugeConfig class provides file I/O of gauge configuration. It provides an interface to underlying FieldIO class family;

The file format is specified by a string argument type to the constructor (in a somewhat similar manner as factory). Data layout is ILDG layout for most of the cases except for Fortran_JLQCD in which JLQCD layout is applied.

"NO_OUTPUT" is added to GaugeConfig::write_file() [22 Feb 2015 Y.Namekawa] unique_ptr is introduced to avoid memory leaks [21 Mar 2015 Y.Namekawa]

Definition at line 61 of file gaugeConfig.h.

Constructor & Destructor Documentation

GaugeConfig::GaugeConfig ( const string &  type)

Definition at line 19 of file gaugeConfig.cpp.

GaugeConfig::~GaugeConfig ( )
virtual

Definition at line 48 of file gaugeConfig.cpp.

GaugeConfig::GaugeConfig ( const GaugeConfig )
private

Member Function Documentation

GaugeConfig& GaugeConfig::operator= ( const GaugeConfig )
private
void GaugeConfig::read_file ( Field U,
const string &  filename 
)

Definition at line 56 of file gaugeConfig.cpp.

void GaugeConfig::read_file ( unique_ptr< Field_G > &  U,
const string &  filename 
)

Definition at line 68 of file gaugeConfig.cpp.

void GaugeConfig::write_file ( Field U,
const string &  filename 
)

Definition at line 80 of file gaugeConfig.cpp.

void GaugeConfig::write_file ( unique_ptr< Field_G > &  U,
const string &  filename 
)

Definition at line 96 of file gaugeConfig.cpp.

Member Data Documentation

const std::string GaugeConfig::class_name = "GaugeConfig"
static

Definition at line 64 of file gaugeConfig.h.

FieldIO* GaugeConfig::m_fieldio
protected

Definition at line 85 of file gaugeConfig.h.

Bridge::VerboseLevel GaugeConfig::m_vl
protected

Definition at line 84 of file gaugeConfig.h.


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