first few pieces of pair style python

This commit is contained in:
Axel Kohlmeyer
2017-05-14 18:29:06 -04:00
parent 06c151421c
commit 34cc3946b8
6 changed files with 440 additions and 2 deletions

View File

@ -51,7 +51,7 @@ PythonImpl::PythonImpl(LAMMPS *lmp) : Pointers(lmp)
pfuncs = NULL;
// one-time initialization of Python interpreter
// pymain stores pointer to main module
// pyMain stores pointer to main module
external_interpreter = Py_IsInitialized();
Py_Initialize();
@ -63,7 +63,6 @@ PythonImpl::PythonImpl(LAMMPS *lmp) : Pointers(lmp)
if (!pModule) error->all(FLERR,"Could not initialize embedded Python");
pyMain = (void *) pModule;
PyGILState_Release(gstate);
}