global does not work in configuration and callback function

From: jc guo (
Date: Sat Oct 24 2015 - 01:46:21 CDT

Dear NAMD users,

I was testing following codes (taken from replica.namd), I want to get MD
variables such as $TS, $ENERGY during every MD step, but the "global"
command seems not work after "callback", I could not print out $saved_label.

proc save_callback {labels values} {
  global saved_labels saved_values
  set saved_labels $labels
  set saved_values $values
callback save_callback

puts stderr $saved_labels

Anyone know about it? and sometime I was very confused about how to get
results generated at each MD step.

Thanks before any reply.

Best regards,

This archive was generated by hypermail 2.1.6 : Tue Dec 27 2016 - 23:21:27 CST