78 const int nConvectiveFields,
85 int nPointsTot = fields[0]->GetNpoints();
86 for (
int i = 0; i < inarray.num_elements(); ++i)
virtual void v_Advect(const int nConvectiveFields, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &advVel, const Array< OneD, Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble &time)
Advects a vector field.
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
virtual void v_InitObject(LibUtilities::SessionReaderSharedPtr pSession, Array< OneD, MultiRegions::ExpListSharedPtr > pFields)
Initialises the advection object.
AdvectionFactory & GetAdvectionFactory()
Gets the factory for initialising advection objects.
static std::string className
Name of class.
static SolverUtils::AdvectionSharedPtr create(std::string)
Creates an instance of this class.
void Zero(int n, T *x, const int incx)
Zero vector.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.