41 RP::add(prefix+
".n",
"Number of populations to use", 0);
42 RP::addComposing(prefix+
".rho",
"Number density (m^-3)");
43 RP::addComposing(prefix+
".rhoPertAbsAmp",
"Absolute amplitude of the density perturbation");
44 RP::addComposing(prefix+
".Tx",
"Temperature (K)");
45 RP::addComposing(prefix+
".Ty",
"Temperature");
46 RP::addComposing(prefix+
".Tz",
"Temperature");
47 RP::addComposing(prefix+
".Vx",
"Bulk velocity x component (m/s)");
48 RP::addComposing(prefix+
".Vy",
"Bulk velocity y component (m/s)");
49 RP::addComposing(prefix+
".Vz",
"Bulk velocity z component (m/s)");
57 RP::get(prefix+
".rho", populations.
rho);
59 RP::get(prefix+
".Tx", populations.
Tx);
60 RP::get(prefix+
".Ty", populations.
Ty);
61 RP::get(prefix+
".Tz", populations.
Tz);
62 RP::get(prefix+
".Vx", populations.
Vx);
63 RP::get(prefix+
".Vy", populations.
Vy);
64 RP::get(prefix+
".Vz", populations.
Vz);
69 cerr <<
"ERROR, you need to define at least one particle population " << __FILE__ <<
":" << __LINE__ << endl;
73 cerr <<
"ERROR, number of populations does not match the size of rho in " << __FILE__ <<
":" << __LINE__ << endl;
77 cerr <<
"ERROR, number of populations does not match the size of rhoPertAbsAmp in " << __FILE__ <<
":" << __LINE__ << endl;
81 cerr <<
"ERROR, number of populations does not match the size of Tx in " << __FILE__ <<
":" << __LINE__ << endl;
85 cerr <<
"ERROR, number of populations does not match the size of Ty in " << __FILE__ <<
":" << __LINE__ << endl;
89 cerr <<
"ERROR, number of populations does not match the size of Tz in " << __FILE__ <<
":" << __LINE__ << endl;
93 cerr <<
"ERROR, number of populations does not match the size of Vx in " << __FILE__ <<
":" << __LINE__ << endl;
97 cerr <<
"ERROR, number of populations does not match the size of Vy in " << __FILE__ <<
":" << __LINE__ << endl;
101 cerr <<
"ERROR, number of populations does not match the size of Vz in " << __FILE__ <<
":" << __LINE__ << endl;
bool getParameters(const std::string &prefix, projects::GaussianPopulation &populations)
bool addParameters(const std::string &prefix)
std::vector< Real > rhoPertAbsAmp