From ee24be38cbc348fe86274a1026447d7c6d89ac0f Mon Sep 17 00:00:00 2001 From: sjplimp Date: Wed, 27 Jul 2016 14:09:42 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15371 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- lib/colvars/colvarbias_alb.cpp | 2 +- lib/colvars/colvarbias_restraint.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/colvars/colvarbias_alb.cpp b/lib/colvars/colvarbias_alb.cpp index e6865ae15b..8c8956082e 100644 --- a/lib/colvars/colvarbias_alb.cpp +++ b/lib/colvars/colvarbias_alb.cpp @@ -81,7 +81,7 @@ int colvarbias_alb::init(std::string const &conf) //we split the time between updating and equilibrating update_freq /= 2; - if (update_freq == 0) + if (update_freq <= 1) cvm::fatal_error("Error: must set updateFrequency to greater than 2.\n"); enable(f_cvb_history_dependent); diff --git a/lib/colvars/colvarbias_restraint.cpp b/lib/colvars/colvarbias_restraint.cpp index 6b4f76ff7f..c6ef954e34 100644 --- a/lib/colvars/colvarbias_restraint.cpp +++ b/lib/colvars/colvarbias_restraint.cpp @@ -135,6 +135,8 @@ int colvarbias_restraint::init(std::string const &conf) if (cvm::debug()) cvm::log("Done initializing a new restraint bias.\n"); + + return COLVARS_OK; } @@ -537,6 +539,7 @@ int colvarbias_restraint_harmonic::init(std::string const &conf) cvm::to_str(restraint_convert_k(force_k, colvars[i]->width))+ " according to the specified width.\n"); } + return COLVARS_OK; } @@ -581,6 +584,7 @@ int colvarbias_restraint_linear::init(std::string const &conf) cvm::to_str(restraint_convert_k(force_k, colvars[i]->width))+ " according to the specified width.\n"); } + return COLVARS_OK; }