61 int nfield = pFields.num_elements();
64 for (
int n = 0; n < nfield; ++n)
66 m_variables[n] = pFields[n]->GetSession()->GetVariable(n);
76 for(
int n = 0; n < pFields.num_elements(); ++n)
79 pFields[n]->GetCoeffs(),
std::vector< Array< OneD, NekDouble > > m_outFields
unsigned int m_numSamples
virtual void v_Initialise(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time)
static std::string className
Name of the class.
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
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.
virtual SOLVER_UTILS_EXPORT void v_Initialise(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time)
virtual bool v_IsTimeDependent()
virtual void v_ProcessSample(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time)
std::map< std::string, std::string > ParamMap
SOLVER_UTILS_EXPORT FilterAverageFields(const LibUtilities::SessionReaderSharedPtr &pSession, const ParamMap &pParams)
virtual void v_PrepareOutput(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time)
FilterFactory & GetFilterFactory()
void Vadd(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Add vector z = x+y.
virtual SOLVER_UTILS_EXPORT ~FilterAverageFields()
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.