The idea is:
- cmake generates arpackdef.h from arpackdef.cmake.h.in
- autoheader generates arpackdef.h from arpackdef.autotools.h[.in]
- arpack includes arpackdef.h when/where needed:
- #define provide c_int/a_int according to architecture.
- all f90 who need to include "arpackdef.h" must be moved to F90.
Note: by convention, F90 are preprocessed (f90 are not).
- MPI does not support ILP64: integer*4 must be imposed in all
calls involving MPI (f90 example/test code).
To enable ILP64 users to compile/link, arpackdef.h is added in
the arpack installation (make install).
16 lines
247 B
C
16 lines
247 B
C
#ifndef __ARPACKDEF_H__
|
|
#define __ARPACKDEF_H__
|
|
|
|
#cmakedefine01 INTERFACE64
|
|
|
|
#if INTERFACE64
|
|
#define c_int c_int64_t
|
|
#define a_int int64_t
|
|
#define a_uint uint64_t
|
|
#else
|
|
#define a_int int
|
|
#define a_uint unsigned int
|
|
#endif
|
|
|
|
#endif
|