8.10 Clearing variables

Variables can be deleted using

CLEAR,name1, name2, ...

Wild cards can be used as in SHOW, e.g.,


clears all variables whose names begin with ENERG. All variables can be cleared using


The length of vectors can be truncated simply by redefining the length specifier: #R=2 truncates the array R to length 2. Higher elements are no longer available (but could be redefined). Setting #R=0 is equivalent to the command CLEAR,R.

molpro@molpro.net 2019-05-24