Bridge++
Ver. 2.0.2
|
FieldIO_LIME class for file I/O of Field data in LIME format. More...
#include <fieldIO_LIME.h>
Public Member Functions | |
FieldIO_LIME (const IO_Format::Format *format) | |
void | read_file (Field &v, const std::string &filename) |
read data from file. (‘const’ is added [18 Mar 2021]) More... | |
void | write_file (Field &v, const std::string &filename) |
write data to file. (‘const’ is added [18 Mar 2021]) More... | |
Public Member Functions inherited from FieldIO | |
FieldIO (const IO_Format::Format *format) | |
< constructor. format specifies data layout on file. More... | |
virtual | ~FieldIO () |
void | deliver (Field *vlocal, Field *vglobal) |
distribute data on primary node over parallel nodes. More... | |
void | gather (Field *vglobal, Field *vlocal) |
gather data on parallel nodes to primary node. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from FieldIO | |
static void | convert_endian (void *buf, size_t size, size_t nmemb) |
check if machine byte order is big-endian. More... | |
static bool | is_bigendian () |
Static Public Attributes inherited from FieldIO | |
static const std::string | class_name = "FieldIO" |
Protected Attributes inherited from FieldIO | |
const IO_Format::Format * | m_format |
Bridge::VerboseLevel | m_vl |
FieldIO_LIME class for file I/O of Field data in LIME format.
The file format treated in this class is the same as ILDG file format, while not packed to LIME file. The endian is big as the definition of ILDG file. [28 Dec 2011 H.Matsufuru]
FieldIO_LIME class provides file I/O of Field data in LIME file format. This class uses lime library to handle LIME archive.
File I/O is performed on the primary node (rank 0 usually), and the field data is gathered from/scattered to parallel nodes.
This class is available when USE_LIMELIB is defined; otherwise instantiation fails at runtime.
Handling of Metadata is not supported in the current version.
N.B. The present implementation much assumes records to be ILDG data.
Definition at line 78 of file fieldIO_LIME.h.
|
inline |
Definition at line 81 of file fieldIO_LIME.h.
|
virtual |
read data from file. (‘const’ is added [18 Mar 2021])
Implements FieldIO.
Definition at line 343 of file fieldIO_LIME.cpp.
|
virtual |
write data to file. (‘const’ is added [18 Mar 2021])
Implements FieldIO.
Definition at line 350 of file fieldIO_LIME.cpp.