Skip to content

Commit 02a7a22

Browse files
committed
doc: Warn about using deprecated feature
1 parent 5089478 commit 02a7a22

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/colvarbias_restraint.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ std::ostream & colvarbias_restraint_harmonic::write_traj(std::ostream &os)
806806

807807
int colvarbias_restraint_harmonic::change_configuration(std::string const &conf)
808808
{
809+
cvm::log("Warning: Updating configuration mid-run for an existing restraint is unsupported, and will raise an error in a future release. The supported method is deleting the restraint and re-creating, which will also do a better error check.");
809810
return colvarbias_restraint_centers::change_configuration(conf) |
810811
colvarbias_restraint_k::change_configuration(conf);
811812
}

0 commit comments

Comments
 (0)