46 const std::map<std::string, std::string> &pParams) :
49 ASSERTL0(pParams.find(
"ThresholdValue") != pParams.end(),
50 "Missing parameter 'ThresholdValue'.");
52 ASSERTL0(pParams.find(
"InitialValue") != pParams.end(),
53 "Missing parameter 'InitialValue'.");
54 m_initialValue = atof(pParams.find(
"InitialValue")->second.c_str());
56 if (pParams.find(
"StartTime") != pParams.end())
58 m_startTime = atof(pParams.find(
"StartTime")->second.c_str());
62 if (pParams.find(
"OutputFile") != pParams.end())
68 if (pParams.find(
"ThresholdVar") != pParams.end())
70 std::string var = pParams.find(
"ThresholdVar")->second.c_str();
71 std::vector<string> varlist = pSession->GetVariables();
72 std::vector<string>::const_iterator x;
74 "Specified variable " + var +
75 " in ThresholdMax filter is not available.");
114 std::vector<LibUtilities::FieldDefinitionsSharedPtr> FieldDef
116 std::vector<std::vector<NekDouble> > FieldData(FieldDef.size());
118 Array<OneD, NekDouble> vCoeffs(pFields[0]->GetNcoeffs());
122 for(
int i = 0; i < FieldDef.size(); ++i)
125 FieldDef[i]->m_fields.push_back(
"m");
126 pFields[
m_thresholdVar]->AppendFieldData(FieldDef[i], FieldData[i], vCoeffs);