Next: 7.10.2 Procedure calls Up: 7.10 Procedures Previous: 7.10 Procedures

7.10.1 Procedure definition

Procedures are sequences of commands and/or options. They can be defined anywhere in the input as

[PROC ]procname=$\{$
command blocks
directives
$\}$

or

PROC procname
command blocks
directives
ENDPROC

In order to avoid unexpected results, procname must differ from all known command names. Procedures must not contain geometry blocks.

Note that procedures are not executed when encountered in the input, but only when called. Procedure definitions must not be nested. Procedures can contain procedure calls up to a nesting level of 10.



molpro@molpro.net
Oct 10, 2007