50 "Computes number of modes in each direction for each element.");
65 int expdim =
m_f->m_graph->GetMeshDimension();
66 int nfields =
m_f->m_variables.size();
67 int addfields = expdim;
69 m_f->m_variables.push_back(
"P1");
72 m_f->m_variables.push_back(
"P2");
76 m_f->m_variables.push_back(
"P3");
80 if (
m_f->m_exp[0]->GetNumElmts() == 0)
85 int npoints =
m_f->m_exp[0]->GetNpoints();
89 m_f->m_session->LoadParameter(
"Strip_Z", nstrips, 1);
91 for (i = 0; i < addfields; ++i)
97 nExp =
m_f->m_exp[0]->GetExpSize();
99 for (
int n = 0; n < nExp; n++)
101 offset =
m_f->m_exp[0]->GetPhys_Offset(n);
102 nq =
m_f->m_exp[0]->GetExp(n)->GetTotPoints();
104 for (i = 0; i < expdim; i++)
106 int P =
m_f->m_exp[0]->GetExp(n)->GetBasis(i)->GetNumModes();
112 for (s = 0; s < nstrips; ++s)
114 for (i = 0; i < addfields; ++i)
117 m_f->AppendExpList(
m_f->m_numHomogeneousDir);
119 m_f->m_exp.begin() + s * (nfields + addfields) + nfields + i;
120 m_f->m_exp.insert(it, Exp);
124 for (s = 0; s < nstrips; ++s)
126 for (i = 0; i < addfields; ++i)
128 int fid = s * (nfields + addfields) + nfields + i;
131 m_f->m_exp[fid]->FwdTransLocalElmt(outfield[i],
132 m_f->m_exp[fid]->UpdateCoeffs());
FieldSharedPtr m_f
Field object.
Abstract base class for processing modules.
void v_Process(po::variables_map &vm) override
Write mesh to output file.
static std::shared_ptr< Module > create(FieldSharedPtr f)
Creates an instance of this class.
ProcessNumModes(FieldSharedPtr f)
~ProcessNumModes() override
static ModuleKey className
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
std::shared_ptr< Field > FieldSharedPtr
std::pair< ModuleType, std::string > ModuleKey
ModuleFactory & GetModuleFactory()
@ P
Monomial polynomials .
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
void Fill(int n, const T alpha, T *x, const int incx)
Fill a vector with a constant value.
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)