|
Bridge++
Ver. 1.1.x
|
GaugeConfig class for file I/O of gauge configuration. More...
#include <gaugeConfig.h>
Public Member Functions | |
| GaugeConfig (const string &type) | |
| virtual | ~GaugeConfig () |
| void | read_file (Field *u, const string &filename) |
| void | write_file (Field *u, const string &filename) |
| void | read_config (Field *U, int confnum) |
| void | write_config (Field *U, int confnum) |
| void | set_prefix (string prefix) |
| void | set_postfix (string postfix) |
| void | set_parameters (const string &prefix, const string &postfix) |
Static Public Member Functions | |
| static void | set_cold (Field *U) |
| cold start. set all links to unity. More... | |
Protected Attributes | |
| string | m_prefix |
| string | m_postfix |
| Bridge::VerboseLevel | m_vl |
| FieldIO * | m_fieldio |
Private Member Functions | |
| string | config_filename (const int) |
| GaugeConfig (const GaugeConfig &) | |
| GaugeConfig & | operator= (const GaugeConfig &) |
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.
Filename may be generated from configuration number with prefix and postfix specified by set_prefix/set_postfix methods or set_parameters. i.e. prefix + %06d + postfix .
Definition at line 56 of file gaugeConfig.h.
| GaugeConfig::GaugeConfig | ( | const string & | type | ) |
Definition at line 57 of file gaugeConfig.cpp.
|
virtual |
Definition at line 80 of file gaugeConfig.cpp.
|
inlineprivate |
Definition at line 90 of file gaugeConfig.h.
|
private |
Definition at line 88 of file gaugeConfig.cpp.
|
private |
| void GaugeConfig::read_config | ( | Field * | U, |
| int | confnum | ||
| ) |
Definition at line 124 of file gaugeConfig.cpp.
| void GaugeConfig::read_file | ( | Field * | u, |
| const string & | filename | ||
| ) |
Definition at line 100 of file gaugeConfig.cpp.
|
static |
cold start. set all links to unity.
Definition at line 35 of file gaugeConfig.cpp.
|
inline |
Definition at line 80 of file gaugeConfig.h.
|
inline |
Definition at line 75 of file gaugeConfig.h.
|
inline |
Definition at line 70 of file gaugeConfig.h.
| void GaugeConfig::write_config | ( | Field * | U, |
| int | confnum | ||
| ) |
Definition at line 131 of file gaugeConfig.cpp.
| void GaugeConfig::write_file | ( | Field * | u, |
| const string & | filename | ||
| ) |
Definition at line 112 of file gaugeConfig.cpp.
|
protected |
Definition at line 96 of file gaugeConfig.h.
|
protected |
Definition at line 94 of file gaugeConfig.h.
|
protected |
Definition at line 94 of file gaugeConfig.h.
|
protected |
Definition at line 95 of file gaugeConfig.h.