From: Axel Kohlmeyer (
Date: Wed Jun 06 2007 - 16:35:17 CDT

On Wed, 6 Jun 2007, lily jin wrote:

LJ> While I run a program, all the data are saved in the memory. How can
LJ> I remove them to clear the system memory, like what 'clear' does in
LJ> MATLAB? Thank you!

there is not a single command in tcl, if i remember correctly.
but you can unset variables and arrays. they are also
cleaned up when used locally in a subroutine.

the most memory loss in VMD is usually due to trajectory
data (you can delete molecules to free that) and from
creating selections without deleting them.
other than that, it is easier to exit VMD and start over.

do you have a specific problem or can you describe a
scenario where something akin to 'clear' would be


LJ> Lily
LJ> ____________________________________________________________________________________
LJ> Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.

Axel Kohlmeyer
   Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
If you make something idiot-proof, the universe creates a better idiot.