49 "rescale input field by a constant factor.");
63 "scaleinputfld: Need to specify a scale factor");
65 string scalestr =
m_config[
"scale"].as<
string>();
68 for (
int i = 0; i <
m_f->m_data.size(); ++i)
70 int datalen =
m_f->m_data[i].size();
73 &(
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.
void v_Process(po::variables_map &vm) override
Write mesh to output file.
ProcessScaleInFld(FieldSharedPtr f)
~ProcessScaleInFld() override
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()
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.