Next: 4.4.3 Equation of state
Up: 4.4 Compiler macros
Previous: 4.4.1 General
Contents
Index
Subsections
4.4.2 Input/output with UIO
4.4.2.1 uio_switch_system_l01
(``uio switch system list 01'')
in uio_mac_module.F90
.
Category: I/O, account for property of machine.
Sometimes, it is useful to have in the header of a UIO file information about the system
that wrote the file. How Fortran gets this information depends on the machine.
Values:
0
: Read information from file uioenvfile.txt
. Don't write or delete the file.
1
: Call external function system()
to produce the file uioenvfile.txt
.
Read and delete the file (default).
2
: Call routine system()
to produce uioenvfile.txt
.
Read and delete the file.
3
: Call external routine HF_SH()
to produce uioenvfile.txt
.
Read and delete it.
4
: Call external function uname()
to get system information.
5
: Call external routine pxfuname()
to get system information.
4.4.2.2 uio_switch_native_l01
(``uio switch native list 01'')
in uio_mac_module.F90
.
Category: I/O, account for property of machine.
All machines can read and write their native format - only that it might differ from
one machine to the other. It is there, if needed, but should be avoided in practise.
Values:
1
: Get information about word lengths from uio_deform()
(default).
0,2
: Set word lengths explicitly.
4.4.2.3 uio_switch_ieeebe_l01
(``uio switch ieee big endian list 01'')
in uio_mac_module.F90
.
Category: I/O, account for property of machine.
This is the standard for files read of written by CO5BOLD. All machine/compiler combinations
should support it - either natively or via some conversion process.
Values:
0
: Don't include this conversion type (default).
1
: Get information about word lengths from uio_deform()
.
2
: Set word lengths explicitly.
4.4.2.4 uio_switch_ieeele_l01
(``uio switch ieee little endian list 01'')
in uio_mac_module.F90
.
Category: I/O, account for property of machine.
Values:
0
: Don't include this conversion type (default).
1
: Get information about word lengths from uio_deform()
.
2
: Set word lengths explicitly.
4.4.2.5 uio_switch_ieee_l01
(``uio switch ieee list 01'')
in uio_mac_module.F90
.
Category: I/O, account for property of machine.
This is a fallback for reading of UIO files,
that should be activated for compilation if either of the Endian formats above is allowed.
It should not be used for writing.
Values:
0
: Don't include this conversion type (default).
1
: Get information about word lengths from uio_deform()
.
2
: Set word lengths explicitly (4-byte words).
3
: Set word lengths explicitly (8-byte words).
4.4.2.6 uio_switch_crayxmp_l01
(``uio switch cray x-mp list 01'')
in uio_mac_module.F90
.
Category: I/O, account for property of machine.
This is the native format on old Cray X-MP and Cray TS machines.
Values:
0
: Don't include this conversion type (default).
1
: Get information about word lengths from uio_deform()
.
4.4.2.7 uio_switch_open_l01
(``uio switch open list 01'')
in uio_mac_module.F90
.
Category: I/O, account for property of machine.
Many compilers support a transparent conversion between number representations
during reading and writing. This is not a Fortran standard, though, and has to
be activated in different ways:
0
: No conversion (default).
1
: Use the'convert
keyword in the open()
statement
(Intel and gfortran compilers on Linux machines, standard compiler on Dec Alphas).
2
: Use asnunit()
Cray X-MP style.
3
: Use asnunit()
Cray TS style.
Next: 4.4.3 Equation of state
Up: 4.4 Compiler macros
Previous: 4.4.1 General
Contents
Index