Skip to content

Commit

Permalink
Allow empty string as cvc config
Browse files Browse the repository at this point in the history
Current error message was unclear (no valid cvc)
Missing parameters will be caught individually.
Useful for alchLambda cvc, which needs no config.
  • Loading branch information
jhenin committed Feb 11, 2024
1 parent 9e75574 commit 7daf68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/colvar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ int colvar::init_components_type(const std::string& conf, const char* def_config
def_config_key,
&def_conf,
&pos) ) {
if (!def_conf.size()) continue;

cvm::log("Initializing "
"a new \""+std::string(def_config_key)+"\" component"+
(cvm::debug() ? ", with configuration:\n"+def_conf
Expand Down

0 comments on commit 7daf68d

Please sign in to comment.