16 #ifdef USE_PARAMETERS_FACTORY
32 #ifdef USE_PARAMETERS_FACTORY
45 const string str_vlevel = params.
get_string(
"verbose_level");
51 double v_threshold, v_max;
54 err += params.
fetch_int(
"degree_of_polynomial", Np);
55 err += params.
fetch_double(
"threshold_value", v_threshold);
59 vout.
crucial(
m_vl,
"Fopr_Chebyshev: fetch error, input parameter not found.\n");
91 double b_max = v_max / v_threshold;
92 double r = 2.0 / (b_max * b_max - 1.0);
93 double s = v_threshold / sqrt(0.5 * r);
106 std::valarray<Field> dj(3);
111 Field v(Nin, Nvol, Nex);
113 for (
int k = 0; k < 3; ++k) {
114 dj[k].reset(Nin, Nvol, Nex);
124 for (
int j =
m_Npcb; j >= 2; --j) {
127 dj[jn] +=
m_Fcb2 * dj[jp1];
130 dj[jn] -= 1.0 * dj[jp2];
150 std::valarray<double> dj(3);
159 for (
int j =
m_Npcb; j >= 2; --j) {
160 dj[jn] = x * dj[jp1];
162 dj[jn] +=
m_Fcb2 * dj[jp1];
165 dj[jn] -= 1.0 * dj[jp2];
172 double v = x * dj[jp1];