[MAP Logo]

Materials Algorithms Project
Program Library



Subroutine MAP_CRYSTAL_TYPE

  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 check for systematic absences in various lattice types.

Top | Next | Prev

Specification

Language:FORTRAN
Product form:Source code

SUBROUTINE MAP_CRYSTAL_TYPE(H, K, L, JTYPE, JLOG)

REAL H, K, L

INTEGER JTYPE, JLOG

Top | Next | Prev

Description

MAP_CRYSTAL_TYPE checks the lattice planes of a crystal of a specified lattice type for systematic absences.

Top | Next | Prev

References

  1. D. McKie and C. McKie, Essentials of Crystallography, Blackwell Scientific Publ., London, 1986, 197.

Top | Next | Prev

Parameters

Input parameters

H, K, L - reals


JTYPE - integer
JTYPE defines the lattice type:-
JTYPE=1 is for primitive.
JTYPE=2 is for body-centered cubic.
JTYPE=3 is for face-centered cubic.
JTYPE=4 is for A-centered.
JTYPE=5 is for B-centered.
JTYPE=6 is for C-centered.

Output parameters

JLOG - integer
JLOG is set to 0 if the HKL is not absent, 1 if it is.

Top | Next | Prev

Error Indicators

None.

Top | Next | Prev

Accuracy

Ideally, H,K,L, should be integers.

Top | Next | Prev

Further Comments

None.

Top | Next | Prev

Example

1. Program text

       REAL H, K, L
       INTEGER JTYPE, JLOG
       READ (5,*) H, K, L
       READ (5,*) JTYPE
       CALL MAP_CRYSTAL_TYPE(H, K, L, JTYPE, JLOG)
       WRITE (6,*) JLOG
       STOP
       END

2. Program data

2.0   0.0   3.0
3

3. Program results

1

Top | Next | Prev

Auxiliary Routines

Utility Subroutines:
MAP_UTIL_ODD

Top | Next | Prev

Keywords

systematic absence, lattice plane

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!