53 ProcessScaleInFld::create,
"rescale input field by a constant factor.");
57 if((f->m_inputfiles.count(
"fld") == 0) &&
58 (f->m_inputfiles.count(
"rst") == 0) &&
59 (f->m_inputfiles.count(
"chk") == 0))
61 cout <<
"A fld, chk or rst input file must be specified for the "
62 "scaleinputfld module" << endl;
68 "scaleinputfld: Need to specify a sacle factor");
79 cout <<
"ProcessScaleInFld: Rescaling input fld" << endl;
82 ASSERTL0(
m_f->m_data.size() != 0,
"No input data defined");
84 string scalestr =
m_config[
"scale"].as<
string>();
87 for(
int i = 0; i <
m_f->m_data.size(); ++i)
89 int datalen =
m_f->m_data[i].size();
92 &(
m_f->m_data[i][0]), 1);
97 int nfields =
m_f->m_fielddef[0]->m_fields.size();
100 for (
int j = 0; j < nfields; ++j)
102 for (
int i = 0; i <
m_f->m_data.size(); ++i)
104 m_f->m_exp[j]->ExtractDataToCoeffs(
107 m_f->m_fielddef[i]->m_fields[j],
108 m_f->m_exp[j]->UpdateCoeffs());