Skip to content

Commit

Permalink
Fixed a bug that makes units of time appear wrong in output file when…
Browse files Browse the repository at this point in the history
… MD code is not operating in ps
  • Loading branch information
Gareth Aneurin Tribello authored and Gareth Aneurin Tribello committed May 23, 2024
1 parent 29babd0 commit 9b42025
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/PlumedMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ void PlumedMain::cmd(std::string_view word,const TypesafePtr & val) {
ts = actionSet.selectWithLabel<ActionToPutData*>("timestep");
}
if( !ts->setValuePointer("timestep", val ) ) plumed_error();
ts->updateUnits( passtools.get() );
}
break;
/* ADDED WITH API==2 */
Expand All @@ -674,6 +675,7 @@ void PlumedMain::cmd(std::string_view word,const TypesafePtr & val) {
readInputLine("kBT: PUT CONSTANT PERIODIC=NO UNIT=energy", true);
ActionToPutData* kb = actionSet.selectWithLabel<ActionToPutData*>("kBT");
if( !kb->setValuePointer("kBT", val ) ) plumed_error();
kb->updateUnits( passtools.get() );
}
break;
/* ADDED WITH API==3 */
Expand Down

0 comments on commit 9b42025

Please sign in to comment.