Initial commit of mliap unified work
This commit is contained in:
@ -29,10 +29,12 @@
|
||||
|
||||
#ifdef MLIAP_PYTHON
|
||||
#include "mliap_model_python.h"
|
||||
#include "mliap_unified.h"
|
||||
// The above should somehow really be included in the next file.
|
||||
// We could get around this with cython --capi-reexport-cincludes
|
||||
// However, that exposes -too many- headers.
|
||||
#include "mliap_model_python_couple.h"
|
||||
#include "mliap_unifiedpy.h"
|
||||
#endif
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
@ -66,6 +68,9 @@ PythonImpl::PythonImpl(LAMMPS *lmp) : Pointers(lmp)
|
||||
// This -must- happen before python is initialized.
|
||||
int err = PyImport_AppendInittab("mliap_model_python_couple", PyInit_mliap_model_python_couple);
|
||||
if (err) error->all(FLERR, "Could not register MLIAPPY embedded python module.");
|
||||
|
||||
err = PyImport_AppendInittab("mliap_unifiedpy", PyInit_mliap_unifiedpy);
|
||||
if (err) error->all(FLERR, "Could not register MLIAPPY unified embedded python module.");
|
||||
#endif
|
||||
|
||||
Py_Initialize();
|
||||
|
||||
Reference in New Issue
Block a user