Bridge++  Ver. 2.0.2
fieldIO_LIME_Parallel.h
Go to the documentation of this file.
1 
14 #ifndef FIELDIO_LIME_PARALLEL_INCLUDED
15 #define FIELDIO_LIME_PARALLEL_INCLUDED
16 
17 #include <string>
18 using std::string;
19 
21 
22 #include "fieldIO.h"
23 #include "Field/field.h"
24 #include "bridgeIO.h"
25 
27 
51 #ifdef USE_MPI
52 
53 class FieldIO_LIME_Parallel : public FieldIO
54 {
55  public:
56  static const std::string class_name;
57 
58  public:
59  FieldIO_LIME_Parallel(const IO_Format::Format *format) : FieldIO(format), m_is_initialized(false) {}
60 
61  void read_file(Field& v, const std::string& filename);
62  void write_file(Field& v, const std::string& filename);
63 
64  private:
65 
66  bool m_is_initialized;
67 
68  int m_nvol;
69 
70  MPI_Datatype m_type_vector;
71  MPI_Datatype m_type_tiled;
72 
73  int initialize();
74  int finalize();
75 };
76 
77 #else
78 
79 // for Single version, just an alias of FieldIO_LIME.
80 
82 {
83  public:
85 };
86 #endif /* USE_MPI */
87 #endif /* GAUGECONFIG_ILDG_INCLUDED */
bridgeIO.h
FieldIO_LIME_Parallel::FieldIO_LIME_Parallel
FieldIO_LIME_Parallel(const IO_Format::Format *format)
Definition: fieldIO_LIME_Parallel.h:84
communicator_impl.h
IO_Format::Format
Definition: io_format.h:36
FieldIO_LIME::write_file
void write_file(Field &v, const std::string &filename)
write data to file. (‘const’ is added [18 Mar 2021])
Definition: fieldIO_LIME.cpp:350
FieldIO::class_name
static const std::string class_name
Definition: fieldIO.h:56
fieldIO.h
field.h
FieldIO_LIME::read_file
void read_file(Field &v, const std::string &filename)
read data from file. (‘const’ is added [18 Mar 2021])
Definition: fieldIO_LIME.cpp:343
FieldIO
FieldIO class for file I/O of space-time distributed data.
Definition: fieldIO.h:53
FieldIO_LIME
FieldIO_LIME class for file I/O of Field data in LIME format.
Definition: fieldIO_LIME.h:78
Field
Container of Field-type object.
Definition: field.h:46
FieldIO_LIME_Parallel
FieldIO_LIME_Parallel class for file I/O of Field data in LIME format.
Definition: fieldIO_LIME_Parallel.h:81