${SLEPC_INCLUDES}
)
+IF( ${SOLVERLAB_WITH_MPI} )
+ INCLUDE_DIRECTORIES(
+ ${Python_INCLUDE_DIRS}
+ ${CoreFlows_INCLUDES} #
+ ${PETSC_INCLUDES}
+ ${SLEPC_INCLUDES}
+ ${MPI4PY_ROOT_DIR}/include/
+ )
+ENDIF( ${SOLVERLAB_WITH_MPI} )
+
IF (${CMAKE_VERSION} VERSION_LESS "3.8.0")
SWIG_ADD_MODULE(CoreFlows python CoreFlows.i)
ELSE (${CMAKE_VERSION} VERSION_LESS "3.8.0")
%include std_vector.i
%include std_map.i
+#ifdef MPI4PY_ROOT_DIR
+%include MPI4PY_ROOT_DIR/include/mpi4py/mpi4py.i
+%mpi4py_typemap(Comm, MPI_Comm);
+#endif
+
%apply bool& INOUT {bool &stop}
namespace std {