# Failed expression ranksAtInterface ! = 0

**URL:** <https://precice.discourse.group/t/failed-expression-ranksatinterface-0/436>\
**Category:** Using preCICE\
**Tags:** inactive\
**Created:** [January 25, 2021, 8:34am UTC](https://precice.discourse.group/t/failed-expression-ranksatinterface-0/436 "2021-01-25T08:34:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lixiaole2017](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/lixiaole2017/32/499_2.png) [@lixiaole2017](https://precice.discourse.group/u/lixiaole2017)\
**Post date:** [January 25, 2021, 8:34am UTC](https://precice.discourse.group/t/failed-expression-ranksatinterface-0/436/1 "2021-01-25T08:34:18Z")

</div>

Hi,  
I do fluid-fluid coupling calculations. Initialization can be passed when both fluid solvers are parallel, but one with parallel and the other without parallel cannot be initialized  
Error:

```
Failed expression: ranksAtInterface ! = 0

```

What’s happening?  
Thank you  
YJ Li

---

<div class="post-metadata">

**Author:** ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)\
**Post date:** [January 25, 2021, 12:35pm UTC](https://precice.discourse.group/t/failed-expression-ranksatinterface-0/436/2 "2021-01-25T12:35:20Z")

</div>

Welcome @lixiaole2017!

This is definitely not a user-friendly error message and we should improve it. But in order to do this, we need to be able to reproduce the problem.

Could you please give more details? Which solvers are you using? Which preCICE version? Any other details about the case you are running?

---

<div class="post-metadata">

**Author:** ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)\
**Post date:** [March 10, 2021, 10:25am UTC](https://precice.discourse.group/t/failed-expression-ranksatinterface-0/436/3 "2021-03-10T10:25:43Z")

</div>

@lixiaole2017 did you manage to solve this? In a newer preCICE version (v2.1 or later), this should be much better.

---

<div class="post-metadata">

**Author:** ![fsimonis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/fsimonis/32/6_2.png) [@fsimonis](https://precice.discourse.group/u/fsimonis)\
**Post date:** [March 10, 2021, 10:53am UTC](https://precice.discourse.group/t/failed-expression-ranksatinterface-0/436/4 "2021-03-10T10:53:16Z")

</div>

Hi,  
This is actually an assertion deep in the partitioning package.  
As @Makis said, this should be an error with a user-friendly message.

What this means is that when running in parallel, there is no overlap between the meshes of both solvers.

If it still fails running both solvers in on a single core each, then this is a strong indicator that the meshes are not describing the same geometry. _The error message will be different in that case_  
Otherwise, it could also be that the interface meshes are super coarse, which could lead to problems.

---

<div class="post-metadata">

**Author:** ![fsimonis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/fsimonis/32/6_2.png) [@fsimonis](https://precice.discourse.group/u/fsimonis)\
**Post date:** [January 2, 2024, 9:56am UTC](https://precice.discourse.group/t/failed-expression-ranksatinterface-0/436/5 "2024-01-02T09:56:36Z")

</div>

Closed on January 2, 2024, 9:56am UTC


