45 "The \"VARY\" sub-command defines a variable to be adjusted.") {
47 (
"NAME",
"the variable reference");
49 (
"STEP",
"the step size", 0.2);
51 (
"LOWER",
"the lower limit, if any");
53 (
"UPPER",
"the upper limit, if any");
78 pars[2] = pars[3] = 0.0;
106 std::cerr <<
"\n### Warning ### "
107 <<
"Parameter is already variable -- new attributes used.\n"
The base class for all OPAL actions.
static Match * block
The block of match data.
std::vector< Attribute > itsAttr
The object attributes (see Attribute.hh).
virtual void execute()
Execute the command.
void addVariable(AbstractVar *)
Add a matching variable.
void deleteVariable(const std::string &name)
Delete a matching variable.
Concrete class for a matching variable.
void registerOwnership(const AttributeHandler::OwnerType &itsClass) const
virtual VaryCmd * clone(const std::string &name)
Make clone.
double getReal(const Attribute &attr)
Return real value.
VaryCmd()
Exemplar constructor.
Attribute makeReference(const std::string &name, const std::string &help)
Create a reference attribute.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
Inform & endl(Inform &inf)