39 #include <boost/core/ignore_unused.hpp> 50 ModuleKey ProcessJacobianEnergy::className =
53 ProcessJacobianEnergy::create,
54 "Show high frequency energy of Jacobian.");
69 boost::ignore_unused(vm);
71 int nfields =
m_f->m_variables.size();
72 m_f->m_variables.push_back(
"jacenergy");
74 if (
m_f->m_exp[0]->GetNumElmts() == 0)
79 int NumHomogeneousDir =
m_f->m_numHomogeneousDir;
84 m_f->m_exp.resize(nfields + 1);
85 exp =
m_f->AppendExpList(NumHomogeneousDir);
87 m_f->m_exp[nfields] = exp;
98 for (
int i = 0; i < exp->GetExpSize(); ++i)
107 int coeffoffset = exp->GetCoeff_Offset(i);
123 NekDouble jacmeasure = jacmax / jacmin - 1.0;
131 Elmt->FwdTrans(phys, tmp = coeffs + coeffoffset);
133 exp->BwdTrans(coeffs, phys);
virtual void Process(po::variables_map &vm)
Write mesh to output file.
std::map< std::string, ConfigOption > m_config
List of configuration values.
Represents a command-line configuration option.
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
T Vmax(int n, const T *x, const int incx)
Return the maximum element in x – called vmax to avoid conflict with max.
T Vmin(int n, const T *x, const int incx)
Return the minimum element in x - called vmin to avoid conflict with min.
void Fill(int n, const T alpha, T *x, const int incx)
Fill a vector with a constant value.
std::shared_ptr< Field > FieldSharedPtr
std::shared_ptr< StdExpansion > StdExpansionSharedPtr
The base class for all shapes.
std::pair< ModuleType, std::string > ModuleKey
const SpatialDomains::GeomFactorsSharedPtr & GetMetricInfo() const
virtual ~ProcessJacobianEnergy()
Geometry is straight-sided with constant geometric factors.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
int GetTotPoints() const
This function returns the total number of quadrature points used in the element.
Abstract base class for processing modules.
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
Geometry is curved or has non-constant factors.
ModuleFactory & GetModuleFactory()
FieldSharedPtr m_f
Field object.