#include <stddef.h>Go to the source code of this file.
Classes | |
| struct | EonMtaConfig |
| Flat config for create (mirrors Parameters::metatomic_options_t). More... | |
Macros | |
| #define | EON_MTA_API __attribute__((visibility("default"))) |
| #define | EON_MTA_ABI_VERSION 1 |
Typedefs | |
| typedef struct EonMtaPot | EonMtaPot |
| Opaque pot handle. | |
| typedef struct EonMtaConfig | EonMtaConfig |
| Flat config for create (mirrors Parameters::metatomic_options_t). | |
Functions | |
| EON_MTA_API EonMtaPot * | eon_mta_pot_create (const EonMtaConfig *cfg, char *errbuf, size_t errlen) |
| Create pot. | |
| EON_MTA_API void | eon_mta_pot_destroy (EonMtaPot *pot) |
| EON_MTA_API int | eon_mta_pot_force (EonMtaPot *pot, long nAtoms, const double *positions, const int *atomicNrs, double *forces, double *energy, double *variance, const double *box) |
| Evaluate energy + forces. | |
| EON_MTA_API int | eon_mta_abi_version (void) |
| ABI version for loader checks. | |
| #define EON_MTA_ABI_VERSION 1 |
Definition at line 79 of file metatomic_c_abi.h.
| #define EON_MTA_API __attribute__((visibility("default"))) |
Definition at line 27 of file metatomic_c_abi.h.
| typedef struct EonMtaConfig EonMtaConfig |
Flat config for create (mirrors Parameters::metatomic_options_t).
All string pointers may be NULL (treated as empty / defaults).
| typedef struct EonMtaPot EonMtaPot |
Opaque pot handle.
Definition at line 31 of file metatomic_c_abi.h.
| EON_MTA_API int eon_mta_abi_version | ( | void | ) |
| EON_MTA_API EonMtaPot * eon_mta_pot_create | ( | const EonMtaConfig * | cfg, |
| char * | errbuf, | ||
| size_t | errlen ) |
Create pot.
On failure returns NULL and writes a message into errbuf (if non-NULL and errlen > 0).
Definition at line 35 of file MetatomicCAbi.cpp.
| EON_MTA_API void eon_mta_pot_destroy | ( | EonMtaPot * | pot | ) |
Definition at line 76 of file MetatomicCAbi.cpp.
| EON_MTA_API int eon_mta_pot_force | ( | EonMtaPot * | pot, |
| long | nAtoms, | ||
| const double * | positions, | ||
| const int * | atomicNrs, | ||
| double * | forces, | ||
| double * | energy, | ||
| double * | variance, | ||
| const double * | box ) |
Evaluate energy + forces.
Returns 0 on success, nonzero on failure. variance may be NULL.
Definition at line 78 of file MetatomicCAbi.cpp.