Currently there are C/C++, Fortran, and Python application program interfaces (API)'s available. The C API is the 'native' API and also serves as the C++ API, the C header files being compatible with C++. While the C functions and the Fortran subroutines are described in this document, the Python API is documented separately. Observe the following conventions:
Function input parameters are marked by the attribute (input).
Function output parameters are marked by the attribute (output). Fortran programmers: Output variables may not be specified as constants in the procedure calls (the Fortran compiler will not always notice this!).
Function input parameters which are modified by a functions are marked by the attribute (input/output).
All include files are found in the directory
<prefix>/include
where <prefix>
designates the
installation directory.
The C/C++ application program interface conforms to the ANSI C
standard. Prototypes are defined in the include file
memcom.h
The old Fortran77 application program interface common variables
are defined in include file memcom.ins
which is
processed with the cpp pre-processor.
The Fortran 90 application program interface common variables are
defined in include file memcom.inc
.
See Appendix Installation for a description on how to compile and link programs with MemCom.