Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
python.h File Reference

Go to the source code of this file.

Functions

static double get_double (PyObject *item)
 
static int py_start (int *i, double *t, Event *ev)
 
static int py_end (int *i, double *t, Event *ev)
 
static int py_inc (int *i, double *t, Event *ev)
 
static int py_action (const int i, const double t, Event *ev)
 
int py_register_event (PyObject *action, PyObject *i, PyObject *t)
 

Variables

if PY_MAJOR_VERSION
 

Function Documentation

◆ get_double()

static double get_double ( PyObject item)
static

Definition at line 50 of file python.h.

References x.

Referenced by py_inc(), and py_start().

Here is the caller graph for this function:

◆ py_action()

static int py_action ( const int  i,
const double  t,
Event ev 
)
static

Definition at line 127 of file python.h.

References i, p, t, and x.

Referenced by py_register_event().

Here is the caller graph for this function:

◆ py_end()

static int py_end ( int i,
double t,
Event ev 
)
static

Definition at line 95 of file python.h.

References p, and x.

◆ py_inc()

static int py_inc ( int i,
double t,
Event ev 
)
static

Definition at line 103 of file python.h.

References get_double(), i, p, t, and x.

Here is the call graph for this function:

◆ py_register_event()

int py_register_event ( PyObject action,
PyObject i,
PyObject t 
)

Definition at line 138 of file python.h.

References code(), file, _Event::last, py_action(), PY_MAJOR_VERSION, strdup(), and x.

Here is the call graph for this function:

◆ py_start()

static int py_start ( int i,
double t,
Event ev 
)
static

Definition at line 62 of file python.h.

References get_double(), i, p, t, and x.

Here is the call graph for this function:

Variable Documentation

◆ PY_MAJOR_VERSION

if PY_MAJOR_VERSION

Definition at line 3 of file python.h.

Referenced by py_register_event().