19.01.2015 Views

MOLPRO

MOLPRO

MOLPRO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3 DEFINITION OF <strong>MOLPRO</strong> INPUT LANGUAGE 10<br />

3.5 Options<br />

Options have the general form NAME[=value]<br />

where value can be a number, and expression, or a string. Several options are separated by<br />

comma or blank. NAME must begin with a character [A-Z]. If options are given on a COMMAND<br />

line or on directives within a command block, they are valid only for the corresponding program<br />

(see Sec. 3.3). If options are given in a procedure, they are valid only in the procedure and<br />

procedures called from the current procedure; whenever a procedure is terminated, the options<br />

of the previous level are restored.<br />

Options can also be single keywords, like SYM or NOSYM. In this case, the option is switched<br />

on or off, depending whether or not the key begins with NO. Alternatively, such logical options<br />

can also be set or unset using NAME=ON or NAME=OFF. For instance, SYM=OFF is equivalent<br />

to NOSYM. Furthermore, YES and NO are aliases for ON and OFF, respectively.<br />

3.6 Data<br />

Data are defined as a sequence of numbers, expressions, or strings, separated by commas or<br />

blanks. Generally, the order of data is essential. Empty fields are interpreted as zeros. Strings<br />

and variables must begin with a character [A-Z]. If + or − follows blank and directly precedes<br />

a number or variable it is interpreted as sign and not a binary operator. If there are no blanks<br />

before and after such operators, or blanks follow them, they are interpreted as binary operators.<br />

Examples:<br />

3 - 4 4 yields [-1,4]<br />

3-4 4 yields [-1,4]<br />

3 -4 4 yields [3,-4,4]<br />

3,-4 4 yields [3,-4,4]<br />

3, -4, 4 yields [3,-4,4]<br />

Expressions (including numbers) may contain variables.<br />

Examples for the use of data: geometry and basis input, LATTICE, OCC, CLOSED, CORE, WF<br />

directives.<br />

In some cases several lines of data are needed for a certain command or directive; in such cases<br />

the data must follow directly the corresponding command|directive, and must be enclosed in<br />

square brackets:<br />

COMMAND,options<br />

[data]<br />

Normally, the input format of data is <strong>MOLPRO</strong> style, i.e., numbers are separated by commas,<br />

and variables as well as expressions can be used.<br />

If data are included using external files, the input format of data is free format: no commas are<br />

needed, but no variables and expressions can be used.<br />

3.7 Expressions<br />

In any input field, data can be entered in the form of expressions. Numbers and variables are<br />

special cases of expressions. An expression is typed in Fortran style and may contain any number<br />

of nested parenthesis. The standard intrinsic functions are also available (see next section).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!