39 #include <boost/core/ignore_unused.hpp>
54 "Computes number of modes in each direction for each element.");
69 int expdim =
m_f->m_graph->GetMeshDimension();
70 int nfields =
m_f->m_variables.size();
71 int addfields = expdim;
73 m_f->m_variables.push_back(
"P1");
76 m_f->m_variables.push_back(
"P2");
80 m_f->m_variables.push_back(
"P3");
84 if (
m_f->m_exp[0]->GetNumElmts() == 0)
89 int npoints =
m_f->m_exp[0]->GetNpoints();
93 m_f->m_session->LoadParameter(
"Strip_Z", nstrips, 1);
95 for (i = 0; i < addfields; ++i)
100 int nExp, nq, offset;
101 nExp =
m_f->m_exp[0]->GetExpSize();
103 for (
int n = 0; n < nExp; n++)
105 offset =
m_f->m_exp[0]->GetPhys_Offset(n);
106 nq =
m_f->m_exp[0]->GetExp(n)->GetTotPoints();
108 for (i = 0; i < expdim; i++)
110 int P =
m_f->m_exp[0]->GetExp(n)->GetBasis(i)->GetNumModes();
116 for (s = 0; s < nstrips; ++s)
118 for (i = 0; i < addfields; ++i)
121 m_f->AppendExpList(
m_f->m_numHomogeneousDir);
123 m_f->m_exp.begin() + s * (nfields + addfields) + nfields + i;
124 m_f->m_exp.insert(it, Exp);
128 for (s = 0; s < nstrips; ++s)
130 for (i = 0; i < addfields; ++i)
132 int fid = s * (nfields + addfields) + nfields + i;
135 m_f->m_exp[fid]->FwdTransLocalElmt(outfield[i],
136 m_f->m_exp[fid]->UpdateCoeffs());
FieldSharedPtr m_f
Field object.
Abstract base class for processing modules.
virtual void v_Process(po::variables_map &vm) override
Write mesh to output file.
virtual ~ProcessNumModes()
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()
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
The above copyright notice and this permission notice shall be included.
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)