git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14829 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -221,7 +221,7 @@ int colvarscript::proc_colvar(int argc, char const *argv[]) {
|
||||
|
||||
if (subcmd == "update") {
|
||||
cv->calc();
|
||||
cv->update();
|
||||
cv->update_forces_energy();
|
||||
result = (cv->value()).to_simple_string();
|
||||
return COLVARS_OK;
|
||||
}
|
||||
@ -243,6 +243,16 @@ int colvarscript::proc_colvar(int argc, char const *argv[]) {
|
||||
return COLVARS_OK;
|
||||
}
|
||||
|
||||
if (subcmd == "getappliedforce") {
|
||||
result = (cv->bias_force()).to_simple_string();
|
||||
return COLVARS_OK;
|
||||
}
|
||||
|
||||
if (subcmd == "getsystemforce") {
|
||||
result = (cv->system_force()).to_simple_string();
|
||||
return COLVARS_OK;
|
||||
}
|
||||
|
||||
if (subcmd == "addforce") {
|
||||
if (argc < 4) {
|
||||
result = "addforce: missing parameter: force value\n" + help_string();
|
||||
|
||||
Reference in New Issue
Block a user