mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-07-19 01:13:50 +02:00
1.6 KiB
1.6 KiB
qmckl.h
header file
This file produces the qmckl.h
header file, which is to be included
when qmckl functions are used.
We also create here the qmckl_f.f90
which is the Fortran interface file.
Constants
Success/failure
These are the codes returned by the functions to indicate success
or failure. All such functions should have as a return type qmckl_exit_code
.
#define QMCKL_SUCCESS 0
#define QMCKL_FAILURE 1
typedef int32_t qmckl_exit_code;
typedef int64_t qmckl_context ;
integer, parameter :: QMCKL_SUCCESS = 0
integer, parameter :: QMCKL_FAILURE = 0
Precision-related constants
Controlling numerical precision enables optimizations. Here, the default parameters determining the target numerical precision and range are defined.
#define QMCKL_DEFAULT_PRECISION 53
#define QMCKL_DEFAULT_RANGE 11
integer, parameter :: QMCKL_DEFAULT_PRECISION = 53
integer, parameter :: QMCKL_DEFAULT_RANGE = 11