C ABI between Metatomic frontend and libmetatomic_engine.so. More...
#include <stddef.h>Go to the source code of this file.
Classes | |
| struct | RgpotMtaConfig |
| Flat config (subset of MetatomicConfig). More... | |
Macros | |
| #define | RGPOT_MTA_API __attribute__((visibility("default"))) |
| #define | RGPOT_MTA_ABI_VERSION 1 |
Typedefs | |
| typedef struct RgpotMtaPot | RgpotMtaPot |
| typedef struct RgpotMtaConfig | RgpotMtaConfig |
| Flat config (subset of MetatomicConfig). | |
Functions | |
| RGPOT_MTA_API int | rgpot_mta_abi_version (void) |
| RGPOT_MTA_API RgpotMtaPot * | rgpot_mta_create (const RgpotMtaConfig *cfg, char *errbuf, size_t errlen) |
| RGPOT_MTA_API void | rgpot_mta_destroy (RgpotMtaPot *pot) |
| RGPOT_MTA_API int | rgpot_mta_force (RgpotMtaPot *pot, long nAtoms, const double *positions, const int *atomicNrs, double *forces, double *energy, double *variance, const double *box) |
| Energy + forces. | |
| RGPOT_MTA_API int | rgpot_mta_available (void) |
C ABI between Metatomic frontend and libmetatomic_engine.so.
Units: positions Angstrom, energy eV, forces eV/Angstrom (eOn/rgpot host). Mirrors the NWChem engine split: thin consumer, optional heavy torch engine.
Definition in file metatomic_c_abi.h.
| #define RGPOT_MTA_ABI_VERSION 1 |
Definition at line 43 of file metatomic_c_abi.h.
| #define RGPOT_MTA_API __attribute__((visibility("default"))) |
Definition at line 23 of file metatomic_c_abi.h.
| typedef struct RgpotMtaConfig RgpotMtaConfig |
Flat config (subset of MetatomicConfig).
NULL strings => empty/default.
| typedef struct RgpotMtaPot RgpotMtaPot |
Definition at line 26 of file metatomic_c_abi.h.
| RGPOT_MTA_API int rgpot_mta_abi_version | ( | void | ) |
Definition at line 29 of file MetatomicEngineAbi.cpp.
| RGPOT_MTA_API int rgpot_mta_available | ( | void | ) |
Definition at line 30 of file MetatomicEngineAbi.cpp.
| RGPOT_MTA_API RgpotMtaPot * rgpot_mta_create | ( | const RgpotMtaConfig * | cfg, |
| char * | errbuf, | ||
| size_t | errlen ) |
Definition at line 32 of file MetatomicEngineAbi.cpp.
| RGPOT_MTA_API void rgpot_mta_destroy | ( | RgpotMtaPot * | pot | ) |
Definition at line 62 of file MetatomicEngineAbi.cpp.
| RGPOT_MTA_API int rgpot_mta_force | ( | RgpotMtaPot * | pot, |
| long | nAtoms, | ||
| const double * | positions, | ||
| const int * | atomicNrs, | ||
| double * | forces, | ||
| double * | energy, | ||
| double * | variance, | ||
| const double * | box ) |
Energy + forces.
Returns 0 on success. variance may be NULL.
Definition at line 64 of file MetatomicEngineAbi.cpp.