OOMMF Home next up previous contents index
Next: OOMMF eXtensible Solver Up: OOMMF Documentation Previous: Platform-Independent Make


OOMMF Variable Types and Macros

The following typedefs are defined in the oommf/pkg/oc/platform/ocport.h header file; this file is created by the pimake build process (see oommf/pkg/oc/procs.tcl), and contains platform and machine specific information.

The oommf/pkg/oc/platform/ocport.h header file also defines the following macros for use with the floating point variable types:

Note that all of the above macros have a leading ``OC_'' prefix. The prefix is intended to protect against possible name collisions with system header files. Versions of some of these macros are also defined without the prefix; these definitions represent backward support for existing OOMMF extensions. All new code should use the versions with the ``OC_'' prefix, and old code should be updated where possible. The complete list of deprecated macros is:

BOOL, UINT2m, INT4m, UINT4m, REAL4, REAL4m, REAL8, REAL8m, REALWIDE, REAL4_EPSILON, REAL8_EPSILON, SQRT_REAL8_EPSILON, CUBE_ROOT_REAL8_EPSILON, FP_REGISTER_EXTRA_PRECISION

Macros for system identification:

Additional macros and typedefs:


OOMMF Home next up previous Contents index

OOMMF Documentation Team
September 27, 2019