Can you check

if dolfin/swig/common/pre.i

is included in the generated

    .instant/cache/dolfin_compile_code_XXX/dolfin_compile_code_XXX.i

file? In that file we include tghe petsc4py.i with all the relevant
typesmaps. So if we do not include that file we probably should :)

Johan

On Mon, Nov 3, 2014 at 3:52 PM, Øyvind Evju <[email protected]> wrote:

> When petsc4py is installed, the mpi_comm_world-function returns a
> petsc4py.PETSc.Comm-object. I guess this is true for all MPI communicators.
> When writing an extension module using a MPI_Comm as argument, this fails.
>
> MWE:
>
>
>
>
>
>
> *from dolfin import *cpp_module="""void foo(MPI_Comm comm)
> {}"""compiled_module =
> compile_extension_module(cpp_module)compiled_module.foo(mpi_comm_world())*
>
> I guess this is related to this:
> https://bitbucket.org/fenics-project/dolfin/issue/195/petsc4py-applies-own-typemap-for-mpi_comm
>
> Any way to work with this?
>
>
> -Øyvind
>
>
> _______________________________________________
> fenics mailing list
> [email protected]
> http://fenicsproject.org/mailman/listinfo/fenics
>
>
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to