52 ParamMap::const_iterator it;
55 it = pParams.find(
"alpha");
56 if (it == pParams.end())
58 it = pParams.find(
"tau");
59 if (it == pParams.end())
61 ASSERTL0(
false,
"FilterMovingAverage needs either alpha or tau.");
81 it = pParams.find(
"tau");
82 if (it != pParams.end())
85 "Cannot define both alpha and tau in MovingAverage.");
100 int nfield = pFields.num_elements();
103 for (
int n = 0; n < nfield; ++n)
105 m_variables[n] = pFields[n]->GetSession()->GetVariable(n);
123 for (
int n = 0; n < pFields.num_elements(); ++n)
127 pFields[n]->GetCoeffs(),
#define ASSERTL0(condition, msg)
std::vector< Array< OneD, NekDouble > > m_outFields
unsigned int m_numSamples
virtual SOLVER_UTILS_EXPORT ~FilterMovingAverage()
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
static std::string className
Name of the class.
unsigned int m_sampleFrequency
std::vector< std::string > m_variables
static FilterSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const std::map< std::string, std::string > &pParams)
Creates an instance of this class.
NekDouble Evaluate() const
virtual SOLVER_UTILS_EXPORT void v_Initialise(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time)
virtual void v_Initialise(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time)
std::map< std::string, std::string > ParamMap
LibUtilities::SessionReaderSharedPtr m_session
virtual bool v_IsTimeDependent()
SOLVER_UTILS_EXPORT FilterMovingAverage(const LibUtilities::SessionReaderSharedPtr &pSession, const ParamMap &pParams)
FilterFactory & GetFilterFactory()
virtual void v_ProcessSample(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time)
void Svtsvtp(int n, const T alpha, const T *x, int incx, const T beta, const T *y, int incy, T *z, int incz)
vvtvvtp (scalar times vector plus scalar times vector):
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.