Bridge++
Version 1.5.4
|
FieldIO_Binary_Distributed class for file I/O of Field data in binary format. More...
#include <fieldIO_Binary_Distributed.h>
Public Member Functions | |
FieldIO_Binary_Distributed (const IO_Format::Format *format) | |
void | read_file (Field *v, const std::string filename) |
read data from file. More... | |
void | write_file (Field *v, const std::string filename) |
write data to file. More... | |
Public Member Functions inherited from FieldIO | |
FieldIO (const IO_Format::Format *format) | |
< constructor. format specifies data layout on file. More... | |
virtual | ~FieldIO () |
virtual void | read_file (std::vector< Field * > &vv, const std::string &filename) |
virtual void | write_file (std::vector< Field * > &vv, const std::string &filename) |
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... | |
Static Public Attributes | |
static const std::string | class_name = "FieldIO_Binary_Distributed" |
Static Public Attributes inherited from FieldIO | |
static const std::string | class_name = "FieldIO" |
Additional Inherited Members | |
Static Public Member Functions inherited from FieldIO | |
static void | byte_swap (void *buf, size_t size, size_t nmemb) |
< convert byte order. alternative interface. More... | |
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 () |
Protected Attributes inherited from FieldIO | |
const IO_Format::Format * | m_format |
Bridge::VerboseLevel | m_vl |
FieldIO_Binary_Distributed class for file I/O of Field data in binary 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_Binary_Distributed provides file I/O of Field data in binary format. File I/O is performed in parallel by fstream. The interface is defined in the FieldIO base class, and this class defines concrete realisation. [13 Oct 2015 S.Ueda]
Definition at line 39 of file fieldIO_Binary_Distributed.h.
|
inline |
Definition at line 45 of file fieldIO_Binary_Distributed.h.
|
virtual |
read data from file.
Implements FieldIO.
Definition at line 20 of file fieldIO_Binary_Distributed.cpp.
|
virtual |
write data to file.
Implements FieldIO.
Definition at line 95 of file fieldIO_Binary_Distributed.cpp.
|
static |
Definition at line 42 of file fieldIO_Binary_Distributed.h.