Skip to content

Commit

Permalink
Merge branch 'v2.8' into v2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanniBussi committed Feb 12, 2024
2 parents 720ab40 + b955736 commit 7b8345f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/cltools/pesmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class PesMD : public PLMD::CLTool {
keys.add("compulsory","plumed","plumed.dat","the name of the plumed input file containing the potential");
keys.add("compulsory","ipos","0.0","the initial position of the system");
keys.add("compulsory","idum","0","The random number seed");
keys.addFlag("periodic","false","are your input coordinates periodic");
keys.addFlag("periodic",false,"are your input coordinates periodic");
keys.add("optional","min","minimum value the coordinates can take for a periodic domain");
keys.add("optional","max","maximum value the coordinates can take for a periodic domain");
}
Expand Down
1 change: 0 additions & 1 deletion src/colvar/Template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ PLUMED_REGISTER_ACTION(Template,"TEMPLATE")
void Template::registerKeywords(Keywords& keys) {
Colvar::registerKeywords(keys);
keys.addFlag("TEMPLATE_DEFAULT_OFF_FLAG",false,"flags that are by default not performed should be specified like this");
keys.addFlag("TEMPLATE_DEFAULT_ON_FLAG",true,"flags that are by default performed should be specified like this");
keys.add("compulsory","TEMPLATE_COMPULSORY","all compulsory keywords should be added like this with a description here");
keys.add("optional","TEMPLATE_OPTIONAL","all optional keywords that have input should be added like a description here");
keys.add("atoms","ATOMS","the keyword with which you specify what atoms to use should be added like this");
Expand Down
2 changes: 1 addition & 1 deletion src/core/ActionWithValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void ActionWithValue::registerKeywords(Keywords& keys) {

void ActionWithValue::noAnalyticalDerivatives(Keywords& keys) {
keys.remove("NUMERICAL_DERIVATIVES");
keys.addFlag("NUMERICAL_DERIVATIVES",true,"analytical derivatives are not implemented for this keyword so numerical derivatives are always used");
keys.addFlag("NUMERICAL_DERIVATIVES",false,"analytical derivatives are not implemented for this keyword so numerical derivatives are always used");
}

void ActionWithValue::componentsAreNotOptional(Keywords& keys) {
Expand Down
3 changes: 1 addition & 2 deletions src/eds/EDS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ void EDS::registerKeywords(Keywords &keys)
keys.add("optional", "VIRIAL", "Add an update penalty for having non-zero virial contributions. Only makes sense with multiple correlated CVs.");
keys.add("optional", "LOGWEIGHTS", "Add weights to use for computing statistics. For example, if biasing with metadynamics.");
keys.addFlag("LM", false, "Use Levenberg-Marquadt algorithm along with simultaneous keyword. Otherwise use gradient descent.");
keys.addFlag("LM_MIXING", "1", "Initial mixing parameter when using Levenberg-Marquadt minimization.");

keys.add("compulsory", "LM_MIXING", "1", "Initial mixing parameter when using Levenberg-Marquadt minimization.");
keys.add("optional", "RESTART_FMT", "the format that should be used to output real numbers in EDS restarts");
keys.add("optional", "OUT_RESTART", "Output file for all information needed to continue EDS simulation. "
"If you have the RESTART directive set (global or for EDS), this file will be appended to. "
Expand Down
2 changes: 1 addition & 1 deletion src/function/FuncSumHills.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ void FuncSumHills::registerKeywords(Keywords& keys) {
keys.add("optional","OUTHISTO"," output file for histogram ");
keys.add("optional","INITSTRIDE"," stride if you want an initial dump ");
keys.add("optional","STRIDE"," stride when you do it on the fly ");
keys.addFlag("ISCLTOOL",true,"use via plumed command line: calculate at read phase and then go");
keys.addFlag("ISCLTOOL",false,"use via plumed command line: calculate at read phase and then go");
keys.addFlag("PARALLELREAD",false,"read parallel HILLS file");
keys.addFlag("NEGBIAS",false,"dump negative bias ( -bias ) instead of the free energy: needed in well tempered with flexible hills ");
keys.addFlag("NOHISTORY",false,"to be used with INITSTRIDE: it splits the bias/histogram in pieces without previous history ");
Expand Down
2 changes: 1 addition & 1 deletion src/maze/Optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void Optimizer::registerKeywords(Keywords& keys) {

keys.addFlag(
"NLIST",
true,
false,
"Use a neighbor list of ligand-protein atom pairs to speed up the "
"calculating of the distances."
);
Expand Down
4 changes: 2 additions & 2 deletions src/tools/Keywords.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ 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;
if( def ) { defstr="( default=on ) "; } else { defstr="( default=off ) "; }
std::string defstr; plumed_massert( !def, "the second argument to addFlag must be false " + k );
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 7b8345f

@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/a-masterclass-22-09.txt
Found broken examples in automatic/a-masterclass-22-11.txt
Found broken examples in automatic/a-masterclass-22-12.txt
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.