Skip to content
Snippets Groups Projects
Commit d7b3c41e authored by Carlo Camilloni's avatar Carlo Camilloni
Browse files

removed unused variable

parent a445358f
No related branches found
No related tags found
No related merge requests found
...@@ -596,7 +596,7 @@ void Keywords::addOutputComponent( const std::string& name, const std::string& k ...@@ -596,7 +596,7 @@ void Keywords::addOutputComponent( const std::string& name, const std::string& k
plumed_assert( !outputComponentExists( name, false ) ); plumed_assert( !outputComponentExists( name, false ) );
plumed_massert( name.find("-")==std::string::npos,"dash is reseved character in component names" ); plumed_massert( name.find("-")==std::string::npos,"dash is reseved character in component names" );
std::string sname; std::size_t num2=name.find_first_of("_"); std::size_t num2=name.find_first_of("_");
if( num2!=std::string::npos ) plumed_massert( num2==0, "underscore is reserved character in component names that has special meaning"); if( num2!=std::string::npos ) plumed_massert( num2==0, "underscore is reserved character in component names that has special meaning");
ckey.insert( std::pair<std::string,std::string>(name,key) ); ckey.insert( std::pair<std::string,std::string>(name,key) );
......
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