51 "Extracts a plane from a 3DH1D expansion, requires planeid to be "
59 "plane id in wavespace to be set zero. Default planeid is zero");
70 if (
m_f->m_numHomogeneousDir != 1)
73 "ProcessZeroHomogeneousPlane only works for Homogeneous1D.");
77 if (
m_f->m_exp[0]->GetNumElmts() == 0)
82 int planeid =
m_config[
"planeid"].as<
int>();
83 int nfields =
m_f->m_variables.size();
86 m_f->m_session->LoadParameter(
"Strip_Z", nstrips, 1);
90 for (
int i = 0; i <
m_f->m_exp[0]->GetZIDs().size(); ++i)
92 if (
m_f->m_exp[0]->GetZIDs()[i] == planeid)
100 for (
int s = 0; s < nstrips; ++s)
102 for (
int i = 0; i < nfields; ++i)
104 int n = s * nfields + i;
107 int Ncoeff =
m_f->m_exp[n]->GetPlane(plane)->GetNcoeffs();
109 m_f->m_exp[n]->GetPlane(plane)->UpdateCoeffs(), 1);
111 m_f->m_exp[n]->BwdTrans(
m_f->m_exp[n]->GetCoeffs(),
112 m_f->m_exp[n]->UpdatePhys());
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode...
FieldSharedPtr m_f
Field object.
std::map< std::string, ConfigOption > m_config
List of configuration values.
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.
ProcessZeroHomogeneousPlane(FieldSharedPtr f)
~ProcessZeroHomogeneousPlane() 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()
void Zero(int n, T *x, const int incx)
Zero vector.
Represents a command-line configuration option.