[petsc-users] petsc4py and mixed python/c++ code

Geoffrey Irving irving at naml.us
Mon Nov 11 13:46:57 CST 2013


I'm revamping Otherlab's use of petsc, and taking another look at
petsc4py as part of that.  Previously we rolled our own Python
bindings, but it'd be great to not have to do that.

However, our usage would involve writing new C/C++ functions which
take petsc types as arguments, and then exposing these new functions
to python.  Is there a way to do this if the petsc4py bindings are
written in Cython?

Geoffrey


More information about the petsc-users mailing list