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.

7 FILE HANDLING 43<br />

7 FILE HANDLING<br />

7.1 FILE<br />

The FILE directive is used to open permanent files, which can be used for later restarts. The<br />

syntax in <strong>MOLPRO</strong>94 and later versions is<br />

FILE,file,name,[status]<br />

file is the logical <strong>MOLPRO</strong> file number (1-9). name is the file name (will be converted to lower<br />

case). status can be one of the following:<br />

UNKNOWN<br />

OLD<br />

NEW<br />

ERASE<br />

SCRATCH<br />

DELETE<br />

A permanent file is opened. If it exists, it is automatically restarted.<br />

This is the default.<br />

Same effect as UNKNOWN. No error occurs if the file does not exist.<br />

A permanent file is opened. If it already exists, it is erased and not<br />

restarted.<br />

Same effect as NEW.<br />

A temporary file is opened. If it already exists, it is erased and not<br />

restarted. After the job has finished, the file is no longer existent.<br />

Same effect as SCRATCH.<br />

Note that RESTART is now the default for all permanent files. All temporary files are usually<br />

allocated automatically where needed. I/O buffers are allocated at the top of the dynamic memory,<br />

and the available memory decreases by the size of the buffers. The MEMORY card must<br />

therefore be presented before the first FILE card!<br />

Examples:<br />

FILE,1,H2O.INT<br />

allocates permanent file 1 with name H2O.INT. Previous information<br />

on the file is recovered.<br />

FILE,2,H2O.WFU,NEW allocates permanent file 2 with name H2O.WFU. All previous information<br />

on the file is erased.<br />

Note that filenames are converted to lower case on unix machines.<br />

7.2 DELETE<br />

DELETE,file1, file2, . . .<br />

Deletes the specified files. file refers to the logical <strong>MOLPRO</strong> file numbers as specified on the<br />

FILE card.<br />

7.3 ERASE<br />

ERASE,file1, file2, . . .<br />

Erases the specified files. file refers to the logical <strong>MOLPRO</strong> file numbers as specified on the<br />

FILE card.

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

Saved successfully!

Ooh no, something went wrong!