CHROMA
lib
actions
ferm
invert
multi_syssolver_mr_params.cc
Go to the documentation of this file.
1
/*! \file
2
* \brief Params of MR inverter
3
*/
4
5
#include "
actions/ferm/invert/multi_syssolver_mr_params.h
"
6
7
namespace
Chroma
8
{
9
10
// Read parameters
11
void
read
(XMLReader& xml,
const
std::string
& path,
MultiSysSolverMRParams
& param)
12
{
13
XMLReader paramtop(xml, path);
14
15
read
(paramtop,
"RsdCG"
, param.
RsdCG
);
16
read
(paramtop,
"MaxCG"
, param.
MaxCG
);
17
}
18
19
// Writer parameters
20
void
write
(XMLWriter& xml,
const
std::string
& path,
const
MultiSysSolverMRParams
& param)
21
{
22
push
(xml, path);
23
24
// int version = 1;
25
// write(xml, "version", version);
26
write
(xml,
"invType"
,
"MR_INVERTER"
);
27
write
(xml,
"RsdCG"
, param.
RsdCG
);
28
write
(xml,
"MaxCG"
, param.
MaxCG
);
29
30
pop
(xml);
31
}
32
33
//! Default constructor
34
MultiSysSolverMRParams::MultiSysSolverMRParams
()
35
{
36
RsdCG
=
zero
;
37
MaxCG
= 0;
38
}
39
40
//! Read parameters
41
MultiSysSolverMRParams::MultiSysSolverMRParams
(XMLReader& xml,
const
std::string
& path)
42
{
43
read
(xml, path, *
this
);
44
}
45
46
}
Chroma::read
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
Definition:
asqtad_fermact_params_s.cc:33
Chroma::write
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
Definition:
asqtad_fermact_params_s.cc:40
multi_syssolver_mr_params.h
Params of MR inverter.
Chroma
Asqtad Staggered-Dirac operator.
Definition:
klein_gord.cc:10
Chroma::push
push(xml_out,"Condensates")
Chroma::pop
pop(xml_out)
Chroma::zero
Double zero
Definition:
invbicg.cc:106
testing::internal::string
::std::string string
Definition:
gtest.h:1979
Chroma::MultiSysSolverMRParams
Params for MR inverter.
Definition:
multi_syssolver_mr_params.h:17
Chroma::MultiSysSolverMRParams::MaxCG
int MaxCG
Definition:
multi_syssolver_mr_params.h:22
Chroma::MultiSysSolverMRParams::MultiSysSolverMRParams
MultiSysSolverMRParams()
Default constructor.
Definition:
multi_syssolver_mr_params.cc:34
Chroma::MultiSysSolverMRParams::RsdCG
multi1d< Real > RsdCG
Definition:
multi_syssolver_mr_params.h:21
Generated by
1.9.1