Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
lee218llnl committed Feb 26, 2018
2 parents bda49c0 + df83a69 commit a1faf57
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pynamic-pyMPI-2.6a1/libmodulebegin.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include <Python.h>

volatile int v;

void begin_break_here()
{
v++;
}

static PyObject *py_libmodulebegin_break_here(PyObject *self, PyObject *args)
{
begin_break_here();
Py_RETURN_NONE;
}

static PyMethodDef libmodulebegin_importMethods[] = {
{"begin_break_here", py_libmodulebegin_break_here, METH_VARARGS, "a function."},
{NULL, NULL, 0, NULL}
};

void initlibmodulebegin()
{
Py_InitModule("libmodulebegin", libmodulebegin_importMethods);
}

0 comments on commit a1faf57

Please sign in to comment.