sisi4s
Loading...
Searching...
No Matches
CoulombVertexReader.hpp
Go to the documentation of this file.
1#ifndef COULOMB_VERTEX_READER_DEFINED
2#define COULOMB_VERTEX_READER_DEFINED
3
5#include <util/Tensor.hpp>
6#include <cstdint>
7#include <fstream>
8
9namespace sisi4s {
16public:
18 CoulombVertexReader(std::vector<Argument> const &argumentList);
19 virtual ~CoulombVertexReader();
20
26 virtual void run();
27
31 virtual void dryRun();
32
33 class Header {
34 public:
35 char magic[8];
37 static char const *MAGIC;
38 };
39 class Chunk {
40 public:
41 char magic[8];
42 int64_t size;
43 static char const *REALS_MAGIC;
44 static char const *IMAGS_MAGIC;
45 static char const *REALSIA_MAGIC;
46 static char const *IMAGSIA_MAGIC;
47 static char const *EPSILONS_MAGIC;
48 };
49
50protected:
51 void handleUnrestricted();
52 void unrestrictVertex();
53 void unrestrictEigenEnergies(const std::string &name);
54};
55} // namespace sisi4s
56
57#endif
#define ALGORITHM_REGISTRAR_DECLARATION(NAME)
Auxiliary macro declaring the algorithm registrar for the algorithm type of the given name....
Definition Algorithm.hpp:169
Definition Algorithm.hpp:26
Definition CoulombVertexReader.hpp:39
static char const * REALS_MAGIC
Definition CoulombVertexReader.hpp:43
static char const * IMAGSIA_MAGIC
Definition CoulombVertexReader.hpp:46
char magic[8]
Definition CoulombVertexReader.hpp:41
int64_t size
Definition CoulombVertexReader.hpp:42
static char const * EPSILONS_MAGIC
Definition CoulombVertexReader.hpp:47
static char const * REALSIA_MAGIC
Definition CoulombVertexReader.hpp:45
static char const * IMAGS_MAGIC
Definition CoulombVertexReader.hpp:44
Definition CoulombVertexReader.hpp:33
static char const * MAGIC
Definition CoulombVertexReader.hpp:37
int32_t Nv
Definition CoulombVertexReader.hpp:36
int32_t kPoints
Definition CoulombVertexReader.hpp:36
int32_t reserved_
Definition CoulombVertexReader.hpp:36
int32_t NSpins
Definition CoulombVertexReader.hpp:36
int32_t NG
Definition CoulombVertexReader.hpp:36
int32_t No
Definition CoulombVertexReader.hpp:36
char magic[8]
Definition CoulombVertexReader.hpp:35
Reads the Coulomb vertex and the occupied and virtual orbital energies from binary data file,...
Definition CoulombVertexReader.hpp:15
void handleUnrestricted()
Definition CoulombVertexReader.cxx:156
virtual ~CoulombVertexReader()
Definition CoulombVertexReader.cxx:24
virtual void dryRun()
Dry run for reading the Coulomb vertex from binary data file.
Definition CoulombVertexReader.cxx:113
virtual void run()
Reads the Full Coulomb Vertex and the occupied and virtual orbital energies from binary data file,...
Definition CoulombVertexReader.cxx:26
void unrestrictVertex()
Definition CoulombVertexReader.cxx:167
void unrestrictEigenEnergies(const std::string &name)
Definition CoulombVertexReader.cxx:204
Definition Algorithm.hpp:10