forked from precice/python-bindings
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprecice.pxd
More file actions
16 lines (11 loc) · 675 Bytes
/
Copy pathprecice.pxd
File metadata and controls
16 lines (11 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""precice
The python module precice offers python language bindings to the C++ coupling library precice. Please refer to precice.org for further information.
"""
import numpy as np
cimport numpy as np
cimport cython
cimport SolverInterface as SolverInterface
from mpi4py import MPI
from cpython.version cimport PY_MAJOR_VERSION # important for determining python version in order to properly normalize string input. See http://docs.cython.org/en/latest/src/tutorial/strings.html#general-notes-about-c-strings and https://github.com/precice/precice/issues/68 .
cdef class Interface:
cdef SolverInterface.SolverInterface *thisptr # hold a C++ instance being wrapped