[MAP Logo]

Materials Algorithms Project
Program Library



Subroutine MAP_UTIL_REEDI

  1. Provenance of code.
  2. Purpose of code.
  3. Specification.
  4. Description of subroutine's operation.
  5. References.
  6. Parameter descriptions.
  7. Error indicators.
  8. Accuracy estimate.
  9. Any additional information.
  10. Example of code
  11. Auxiliary subroutines required.
  12. Keywords.
  13. Download source code.
  14. Links.

Provenance of Source Code

H.K.D.H. Bhadeshia,
Phase Transformations Group,
Department of Materials Science and Metallurgy,
University of Cambridge,
Cambridge, U.K.

Top | Next

Purpose

To read an integer in a way which, to some extent, traps typing errors.
After 10 invalid attempts to read the input, the program is terminated.

Top | Next | Prev

Specification

Language:FORTRAN
Product form:Source code

SUBROUTINE MAP_UTIL_REED(I)

INTEGER I

Top | Next | Prev

Description

Uses the ERR specifier in a READ statement to detect incorrect data input.

Top | Next | Prev

References

See, for example, T.M.R. Ellis, FORTRAN 77 Programming, Addison-Wesley 1993, p184.

Top | Next | Prev

Parameters

Input parameters

I - Integer
Number to be checked.

Output parameters

None
Outputs error message to STDOUT.

Top | Next | Prev

Error Indicators

Uses the FORTRAN ERR specifier to detect an incorrect input data value.

Top | Next | Prev

Accuracy

Not applicable.

Top | Next | Prev

Further Comments

Used in many MAP programs, e.g. MAP_STEEL_MUCG46.

See also MAP_UTIL_REED.

Top | Next | Prev

Example

1. Program text

       None supplied.

2. Program data

None supplied.

3. Program results

None supplied.

Top | Next | Prev

Auxiliary Routines

None.

Top | Next | Prev

Keywords

error trapping, integer

Top | Next | Prev

Download

Download source code

Top | Prev


MAP originated from a joint project of the National Physical Laboratory and the University of Cambridge.

MAP Website administration / map@msm.cam.ac.uk

Top | Index | MAP Homepage Valid HTML 3.2!