plumed_massert(values[i]->name!=getLabel(),"Cannot mix single values with components");
plumed_massert(values[i]->name!=getLabel(),"Cannot mix single values with components");
plumed_massert(values[i]->name!=thename,"there is already a value with this name: "+thename);
plumed_massert(values[i]->name!=thename&&name!="bias","Since PLUMED 2.3 the component 'bias' is automatically added to all biases by the general constructor!\n"
plumed_massert(values[i]->name!=thename&&name!="bias","Since PLUMED 2.3 the component 'bias' is automatically added to all biases by the general constructor!\n"
"Remove the line addComponent(\"bias\") from your bias.");
"Remove the line addComponent(\"bias\") from your bias.");
plumed_massert(values[i]->name!=thename,"there is already a value with this name");
plumed_massert(values[i]->name!=getLabel(),"Cannot mix single values with components");
plumed_massert(values[i]->name!=getLabel(),"Cannot mix single values with components");
plumed_massert(values[i]->name!=thename,"there is already a value with this name: "+thename);
plumed_massert(values[i]->name!=thename&&name!="bias","Since PLUMED 2.3 the component 'bias' is automatically added to all biases by the general constructor!\n"
plumed_massert(values[i]->name!=thename&&name!="bias","Since PLUMED 2.3 the component 'bias' is automatically added to all biases by the general constructor!\n"
"Remove the line addComponentWithDerivatives(\"bias\") from your bias.");
"Remove the line addComponentWithDerivatives(\"bias\") from your bias.");
plumed_massert(values[i]->name!=thename,"there is already a value with this name");
}
}
values.emplace_back(newValue(this,thename,true));
values.emplace_back(newValue(this,thename,true));
std::stringmsg=" added component to this action: "+thename+" \n";
std::stringmsg=" added component to this action: "+thename+" \n";