Topic Options
#472 - 10/30/03 05:04 AM What does UNIT stand for?
tjaart Offline
Forum Member

Registered: 10/16/03
Posts: 40
Loc: Pretoria, South Africa
Hi all

In all the scripts you open a UNIT with a number afterwards. What does this UNIT stand for? What does it do? Is certain numbers reserved and what do the numebrs stand for?

Thanks!!!!!
_________________________
Tjaart de Beer

Top
#473 - 10/30/03 11:02 AM Re: What does UNIT stand for? [Re: tjaart]
cao Offline
Forum Member

Registered: 10/17/03
Posts: 23
The document, io.doc will be helpful!

Top
#474 - 10/31/03 01:29 AM Re: What does UNIT stand for? [Re: cao]
tjaart Offline
Forum Member

Registered: 10/16/03
Posts: 40
Loc: Pretoria, South Africa
I don't seem to find anything on UNIT in either io.doc or usage.doc? Any other files where I may look?
_________________________
Tjaart de Beer

Top
#475 - 10/31/03 11:46 AM Re: What does UNIT stand for? [Re: tjaart]
cao Offline
Forum Member

Registered: 10/17/03
Posts: 23
Sorry for incorrect information.
From usage.doc
Fortran I/O Units Usage by CHARMM
In order to keep CHARMM as machine independent as possible, all
specification of files is done through Fortran unit numbers. Two unit
numbers have special signifigance, 5 and 6. Unit 5 is the command file
interpreted by CHARMM. Unit 6 is the output file for all printed
messages. As commands are read from unit 5, they are echoed on unit 6.
All other unit numbers have no predefined meaning. The CHARMM OPEN
command may be used to assign files to units.

It just follows fortran's I/O rules.

Top

Moderator:  John Legato, lennart