Yes, it is.

-Øyvind

2014-11-03 16:09 GMT+01:00 Johan Hake <[email protected]>:

> 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
>>
>>
>

Attachment: dolfin_compile_code_40f53a4aa48d2708de43c76b10a83f1c08591810.i
Description: Binary data

_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to