python-bindings icon indicating copy to clipboard operation
python-bindings copied to clipboard

SolverInterface with MPI.COMM_WORLD not working

Open BenjaminRodenberg opened this issue 5 years ago • 0 comments

I just tried to run the following script:

import precice
from mpi4py import MPI

solver_interface = precice.Interface("SolverOne", "precice-config.xml", 0, 1, MPI.COMM_WORLD)

It unfortunately resulted in a segmentation fault.

Note that we actually have a test for this case: https://github.com/precice/python-bindings/blob/8463bf1160a734f0de76fc53090f779a4a6cae5a/test/test_bindings_module.pyx#L21-L23

However, it is not actually testing what we want it to test. I assume this is due to the mocked up preCICE version that we use for testing hiding problems with MPI.

BenjaminRodenberg avatar Oct 20 '20 15:10 BenjaminRodenberg