This page explains the standard format in which MAP documentation is presented. The crystallography subroutine MAP_CRYSTAL_ANGLEE is used as an illustrative example.
The name of, and contact information for, the person or persons who provided the source code and who should be approached if further information is required.
H.K.D.H. Bhadeshia,
Phase Transformations Group,
Department of Materials Science and Metallurgy,
University of Cambridge,
Cambridge CB2 3QZ, U.K.
E-mail: name@comp.system
Give the date (to the nearest month) when the code was added to the MAP Website.
Added to MAP: August 1999.
A brief statement outlining the broad purpose of the code.
To find the angle between two vectors.
Details of the software (language of source code) or, if provided as a compiled program, details of the hardware required to run the executable file:
Language: | FORTRAN |
Product form: | Source code. |
A clear statement of the input and output arguments used by the routine, the order in which they must be passed and their type, eg:
SUBROUTINE MAP_CRYSTAL_ANGLEE(F, G, H, K, L, JR1, HH, KK, LL, JR2, ANG, ADEG, PI) REAL F(9), G(9), H, K, L, HH, KK, LL, ANG, ADEG, PI INTEGER JR1, JR2
A more detailed explanation of the purpose and operation of the code, perhaps including some background theory and any limitations on values of input arguments:-
The vectors may be defined by components in real or reciprocal space. The metric tensor F converts components from reciprocal to real space. The metric tensor G converts components from real to reciprocal space.
In order to calculate the angle, it is necessary for one vector to be defined in real space, and the other in reciprocal space. The magnitude of each vector is calculated, and the scalar product of the two vectors is used to compute the angle.
A list of references where more detailed background information can be found. These need not be published works.
A statement of the type and purpose of all the arguments supplied to and returned from the routine.
Describes any error-trapping procedures that may be implemented in the code, eg input arguments outside specified limits.
None.
A statement of known limits to the accuracy of the results generated by the code, and/or a description of the circumstances within which a specified accuracy is maintained.
Works for any crystal system.
Any additional information which does not fit into another category.
None.
A simple program illustrating the use of the routine and the output which will be generated.
REAL F(9), G(9), H, K, L, HH, KK, LL, ANG, ADEG, AP, CP, PI INTEGER JR1, JR2 INCLUDE 'map_constants_pi.f' READ (5,*) AP, CP CALL MAP_CRYSTAL_TENSOR2(F, G, AP, CP) READ (5,*) H, K, L, JR1 READ (5,*) HH, KK, LL, JR2 CALL MAP_CRYSTAL_ANGLEE(F, G, H, K, L, JR1, HH, KK, LL, JR2, ANG, ADEG, PI) WRITE (6,*) ANG, ADEG STOP END
1.0 1.0 0.0 1.0 1.0 0 1.0 0.0 1.0 1
0.500000 120.000
Any other MAP routines called from within this code.
A list of keywords which describe the use of this code.
angle
MAP originated from a joint project of the National Physical Laboratory and the University of Cambridge.
MAP Website administration / map@msm.cam.ac.uk