Skip to content

Commit

Permalink
Fix cppecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanniBussi committed Feb 12, 2024
1 parent 4736354 commit b955736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/Keywords.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void Keywords::add( const std::string & t, const std::string & k, const std::str
void Keywords::addFlag( const std::string & k, const bool def, const std::string & d ) {
plumed_massert( !exists(k) && !reserved(k), "keyword " + k + " has already been registered");
std::string defstr; plumed_massert( !def, "the second argument to addFlag must be false " + k );
if( def ) { defstr="( default=on ) "; } else { defstr="( default=off ) "; }
defstr="( default=off ) ";
types.insert( std::pair<std::string,KeyType>(k,KeyType("flag")) );
documentation.insert( std::pair<std::string,std::string>(k,defstr + d) );
allowmultiple.insert( std::pair<std::string,bool>(k,false) );
Expand Down

1 comment on commit b955736

@PlumedBot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found broken examples in automatic/performance-optimization.txt
Found broken examples in automatic/a-trieste-6.txt
Found broken examples in automatic/munster.txt
Found broken examples in automatic/ANN.tmp
Found broken examples in automatic/EDS.tmp
Found broken examples in automatic/EMMI.tmp
Found broken examples in automatic/ENVIRONMENTSIMILARITY.tmp
Found broken examples in automatic/FOURIER_TRANSFORM.tmp
Found broken examples in automatic/FUNCPATHGENERAL.tmp
Found broken examples in automatic/FUNCPATHMSD.tmp
Found broken examples in automatic/FUNNEL.tmp
Found broken examples in automatic/FUNNEL_PS.tmp
Found broken examples in automatic/GHBFIX.tmp
Found broken examples in automatic/INCLUDE.tmp
Found broken examples in automatic/MAZE_OPTIMIZER_BIAS.tmp
Found broken examples in automatic/MAZE_RANDOM_ACCELERATION_MD.tmp
Found broken examples in automatic/MAZE_SIMULATED_ANNEALING.tmp
Found broken examples in automatic/MAZE_STEERED_MD.tmp
Found broken examples in automatic/PIV.tmp
Found broken examples in automatic/PLUMED.tmp
Found broken examples in MiscelaneousPP.md

Please sign in to comment.