39#include <boost/core/ignore_unused.hpp>
53 "rescale input field by a constant factor.");
66 boost::ignore_unused(vm);
69 "scaleinputfld: Need to specify a scale factor");
71 string scalestr =
m_config[
"scale"].as<
string>();
72 NekDouble scale = boost::lexical_cast<NekDouble>(scalestr);
74 for (
int i = 0; i <
m_f->m_data.size(); ++i)
76 int datalen =
m_f->m_data[i].size();
79 &(
m_f->m_data[i][0]), 1);
#define ASSERTL0(condition, msg)
FieldSharedPtr m_f
Field object.
std::map< std::string, ConfigOption > m_config
List of configuration values.
Abstract base class for processing modules.
virtual void v_Process(po::variables_map &vm) override
Write mesh to output file.
ProcessScaleInFld(FieldSharedPtr f)
virtual ~ProcessScaleInFld()
static ModuleKey className
static std::shared_ptr< Module > create(FieldSharedPtr f)
Creates an instance of this class.
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()
The above copyright notice and this permission notice shall be included.
void Smul(int n, const T alpha, const T *x, const int incx, T *y, const int incy)
Scalar multiply y = alpha*x.
Represents a command-line configuration option.