#include "eon/potentials/Metatomic/metatomic_c_abi.h"#include "eon/Parameters.h"#include "eon/potentials/Metatomic/MetatomicPotential.h"#include <cstdio>#include <exception>#include <memory>#include <string>Go to the source code of this file.
Classes | |
| struct | EonMtaPot |
Macros | |
| #define | EON_MTA_BUILD |
Functions | |
| static const char * | nz (const char *s) |
| static void | set_err (char *errbuf, size_t errlen, const char *msg) |
| int | eon_mta_abi_version (void) |
| ABI version for loader checks. | |
| EonMtaPot * | eon_mta_pot_create (const EonMtaConfig *cfg, char *errbuf, size_t errlen) |
| Create pot. | |
| void | eon_mta_pot_destroy (EonMtaPot *pot) |
| 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. | |
| #define EON_MTA_BUILD |
Definition at line 8 of file MetatomicCAbi.cpp.
| int eon_mta_abi_version | ( | void | ) |
| 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.
| void eon_mta_pot_destroy | ( | EonMtaPot * | pot | ) |
Definition at line 76 of file MetatomicCAbi.cpp.
| 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.
|
static |
Definition at line 23 of file MetatomicCAbi.cpp.
|
static |
Definition at line 25 of file MetatomicCAbi.cpp.