# Python sover: multiple MPI initializations

**URL:** <https://precice.discourse.group/t/python-sover-multiple-mpi-initializations/493>\
**Category:** Using preCICE\
**Tags:** openfoam, mpi, python, fsi\
**Created:** [February 28, 2021, 6:23pm UTC](https://precice.discourse.group/t/python-sover-multiple-mpi-initializations/493 "2021-02-28T18:23:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nikki](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/nikki/32/561_2.png) [@nikki](https://precice.discourse.group/u/nikki)\
**Post date:** [March 1, 2021, 2:50am UTC](https://precice.discourse.group/t/python-sover-multiple-mpi-initializations/493/3 "2021-03-01T02:50:24Z")

</div>

Hello @Makis,

Thank you for your response. I wasn’t aware that OpenSeesPy was initializing MPI, but it seems as though it was.  
I commented out all lines referencing anything OpenSees, and have encountered a new issue. I have attached log files for reference.

> —[precice] e[0m This is preCICE version 2.0.2  
> —[precice] e[0m Revision info: no-info [Git failed/Not a repository]  
> —[precice] e[0m Configuring preCICE with configuration: “./precice-config-Py-OF.xml”  
> —[precice] e[0m Setting up master communication to coupling partner/s  
> —[precice] e[0m Masters are connected  
> —[precice] e[0m Setting up preliminary slaves communication to coupling partner/s  
> —[precice] e[0m Receive global mesh Fluid1-Mesh  
> —[precice] e[0m Prepare partition for mesh Solid1-Mesh  
> —[precice] e[0m Gather mesh Solid1-Mesh  
> —[precice] e[0m Send global mesh Solid1-Mesh  
> **\> —[precice] e[31mERROR: e[0m The provided mesh Solid1-Mesh is invalid (possibly empty).**

It seems that the Solid1\_Mesh is not being assigned properly, and thus preCICE cannot complete the coupling. I assumed that the calls to

> meshID = interface.get\_mesh\_id(“Solid1\_Mesh”)  
> vertexIDs = interface.set\_mesh\_vertices(meshID, grid)

in Solid1Solver.py would be sufficient to achieve this.  
Is there a command I am missing?

Regards,  
-Nicolette

[Fluid1.log](https://precice.discourse.group/uploads/short-url/njMcENVBKxTtWtjecfpoZL1rSZe.log) (5.2 KB)  
[slurm-1593374.out](https://precice.discourse.group/uploads/short-url/tgefHPnJUq5AZn6Fq7jOF4L6s2Q.out) (5.1 KB)  
[Solid1.log](https://precice.discourse.group/uploads/short-url/8juwqx2ehrhTaXA2MNuDtO0EhV4.log) (947 Bytes)

---

_[View the full topic](https://precice.discourse.group/t/python-sover-multiple-mpi-initializations/493)._
