39 #include <boost/core/ignore_unused.hpp>
53 ProcessScaleInFld::create,
54 "rescale input field by a constant factor.");
67 boost::ignore_unused(vm);
70 "scaleinputfld: Need to specify a scale factor");
72 string scalestr =
m_config[
"scale"].as<
string>();
73 NekDouble scale = boost::lexical_cast<NekDouble>(scalestr);
75 for (
int i = 0; i <
m_f->m_data.size(); ++i)
77 int datalen =
m_f->m_data[i].size();
80 &(
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 Process(po::variables_map &vm)
Write mesh to output file.
virtual ~ProcessScaleInFld()
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.