1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-06-30 00:44:52 +02:00
qmckl/src/qmckl.org

1.2 KiB

QMCkl C header

This file produces the qmckl.h header file, which is included in all other C header files. It is the main entry point to the library.

#ifndef QMCKL_H
#define QMCKL_H

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 int qmckl_exit_code;

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

Header files

All the functions expoed in the API are defined in the following header files.

#include <stdlib.h>
#include "qmckl_memory.h"
#include "qmckl_context.h"

End of header

#endif