Skip to content
Snippets Groups Projects
Commit e2cf3e09 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Changed message about undocumented components

I removed the sentence saying that 2.2 will crash.

We should likely make it fail on travis-ci so that
we remember to add the documentation, but I cannot
do it know as one regtest basic/rt44b in v2.2
would fail.
parent a451840f
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,7 @@ void ActionWithValue::addComponent( const std::string& name ){
// plumed_massert( keywords.outputComponentExists(name,true), "a description of component " + name + " has not been added to the manual");
if( !keywords.outputComponentExists(name,true) ){
warning("a description of component " + name + " has not been added to the manual. Components should be registered like keywords in "
"registerKeywords as described in the developer docs. In version 2.2 this warning will turn into an error i.e. component registration will be compulsory");
"registerKeywords as described in the developer docs.");
}
std::string thename; thename=getLabel() + "." + name;
for(unsigned i=0;i<values.size();++i){
......@@ -146,7 +146,7 @@ void ActionWithValue::addComponentWithDerivatives( const std::string& name ){
// plumed_massert( keywords.outputComponentExists(name,true), "a description of component " + name + " has not been added to the manual");
if( !keywords.outputComponentExists(name,true) ){
warning("a description of component " + name + " has not been added to the manual. Components should be registered like keywords in "
"registerKeywords as described in the developer doc. In version 2.2 this warning will turn into an error i.e. component registration will be compulsory");
"registerKeywords as described in the developer doc.");
}
std::string thename; thename=getLabel() + "." + name;
for(unsigned i=0;i<values.size();++i){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment