QUDA  v1.1.0
A library for QCD on GPUs
vector_io.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 namespace quda
6 {
7 
12  class VectorIO
13  {
14  const std::string filename;
15 #ifdef HAVE_QIO
16  bool parity_inflate;
17 #endif
18  public:
25  VectorIO(const std::string &filename, bool parity_inflate = false);
26 
31  void load(std::vector<ColorSpinorField *> &vecs);
32 
37  void save(const std::vector<ColorSpinorField *> &vecs);
38  };
39 
40 } // namespace quda
VectorIO is a simple wrapper class for loading and saving sets of vector fields using QIO.
Definition: vector_io.h:13
void load(std::vector< ColorSpinorField * > &vecs)
Load vectors from filename.
Definition: vector_io.cpp:20
void save(const std::vector< ColorSpinorField * > &vecs)
Save vectors to filename.
Definition: vector_io.cpp:119
VectorIO(const std::string &filename, bool parity_inflate=false)
Definition: vector_io.cpp:9
::std::string string
Definition: gtest-port.h:891