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.

9 TABLES AND PLOTTING 58<br />

8.11 Reading variables from an external file<br />

Variables can be read from an external file using<br />

READVAR, filename, [option]<br />

Such files can be save, for instance by the geometry optimization program, and reused later to<br />

recover a certain optimized geometry. The format of the input in filename is the same as for<br />

ordinary input.<br />

If option=NOINDEX|IGNOREINDEX is given then variable indices are ignored and only the<br />

last value read is saved (without index). This can be useful if for example a file saved with<br />

SAVEACT in a geometry optimization is read, and it is intended to continue with the variables<br />

that were saved last.<br />

9 TABLES AND PLOTTING<br />

9.1 Tables<br />

Variables can be printed in Table form using the command<br />

TABLE,var1,var2,. . .<br />

The values of each variable are printed in one column, so all variables used must be defined<br />

for the same range, and corresponding elements should belong together. For example, if in a<br />

calculation one has stored R(i), THETA(i), ECI(i) for each geometry i, one can print<br />

these data simply using<br />

TABLE, R, THETA, ECI<br />

By default, the number of rows equals the number of elements of the first variable. This can be<br />

changed, however, using the RANGE subcommand.<br />

The first ten columns of a table may contain string variables. For instance,<br />

hf;etot(1)=energy;method(1)=program;cpu(1)=cpustep<br />

ccsd;etot(2)=energy;method(2)=program;cpu(2)=cpustep<br />

qci;etot(3)=energy;method(3)=program;cpu(3)=cpustep<br />

table,method,etot,cpu<br />

prints a table with the SCF, CCSD, and QCI results in the first, second, and third row, respectively.<br />

For other use of string variables and tables see, e.g. the examples h2o tab.com and<br />

oh macros.com<br />

The apparence of the table may be modified using the following commands, which may be given<br />

(in any order) directly after the the TABLE card:<br />

HEADING,head1, head2,. . .<br />

FORMAT,format<br />

Specify a heading for each column. By default, the names of<br />

the variables are used as headings.<br />

Specify a format for each row in fortran style. format must<br />

be enclosed by quotes. Normally, the program determines automatically<br />

an appropriate format, which depends on the type<br />

and size of the printed data.

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

Saved successfully!

Ooh no, something went wrong!