Skip to content

Commit

Permalink
One more use of get_keyval_feature
Browse files Browse the repository at this point in the history
  • Loading branch information
jhenin committed Mar 13, 2017
1 parent 77689eb commit 37f5f64
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/colvar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,17 +365,14 @@ harmonicWalls {\n\

int colvar::init_extended_Lagrangian(std::string const &conf)
{
bool b_extended_Lagrangian;
get_keyval(conf, "extendedLagrangian", b_extended_Lagrangian, false);
get_keyval_feature(this, conf, "extendedLagrangian", f_cv_extended_Lagrangian, false);

if (b_extended_Lagrangian) {
if (is_enabled(f_cv_extended_Lagrangian)) {
cvm::real temp, tolerance, period;

cvm::log("Enabling the extended Lagrangian term for colvar \""+
this->name+"\".\n");

enable(f_cv_extended_Lagrangian);

xr.type(value());
vr.type(value());
fr.type(value());
Expand Down

0 comments on commit 37f5f64

Please sign in to comment.