How to run a TCL proc at every step in NAMD using callback command?

From: yjcoshc (
Date: Thu Jun 14 2018 - 03:10:32 CDT


   I want to run a TCL proc every step in NAMD and the manual tells me
the callback command can do that, so I have added following lines in the
NAMD configuration file:

proc foo {labels values} {
     print $labels
     print "foo\n"
     print $values
callback foo
run 50000000

However when I read the log file the "foo" string is only printed once.
What I want is running the foo proc at every step. Are there any
examples of using the callback command?


Haochuan Chen

This archive was generated by hypermail 2.1.6 : Tue Dec 31 2019 - 23:19:59 CST