# STUCK at ---\[precice\] Synchronize participants and close communication channels

**URL:** <https://precice.discourse.group/t/stuck-at-precice-synchronize-participants-and-close-communication-channels/910>\
**Category:** Official adapters and tutorials\
**Tags:** openfoam, adapters, dealii, inactive\
**Created:** [February 10, 2022, 10:08am UTC](https://precice.discourse.group/t/stuck-at-precice-synchronize-participants-and-close-communication-channels/910 "2022-02-10T10:08:07Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piyush\_Pulukool](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/piyush_pulukool/32/1144_2.png) [@Piyush\_Pulukool](https://precice.discourse.group/u/Piyush_Pulukool)\
**Post date:** [February 10, 2022, 10:08am UTC](https://precice.discourse.group/t/stuck-at-precice-synchronize-participants-and-close-communication-channels/910/1 "2022-02-10T10:08:07Z")

</div>

Facing problem while running the turek-hron-fsi3 tutorial. Dealii is stuck at —[precice] Synchronize participants and close communication channels. Please have a look at the screenshot. Please guide me on this. Thank you!

 ![Screenshot from 2022-02-10 15-33-06](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/d/dc8a8083300294a385ea87e51f88ba1c4bbff314.png)

---

<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:** [February 10, 2022, 2:52pm UTC](https://precice.discourse.group/t/stuck-at-precice-synchronize-participants-and-close-communication-channels/910/2 "2022-02-10T14:52:37Z")

</div>

Hi @Piyush_Pulukool,

I understand that on the deal.II side, preCICE initializes and then immediately finalizes. This could mean that something went wrong on deal.II in the meantime and it is trying to exit.

Have you changed anything regarding the tutorial?

Maybe @DavidSCN can think of potential issues here.

---

<div class="post-metadata">

**Author:** ![DavidSCN](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DavidSCN](https://precice.discourse.group/u/DavidSCN)\
**Post date:** [February 10, 2022, 3:23pm UTC](https://precice.discourse.group/t/stuck-at-precice-synchronize-participants-and-close-communication-channels/910/3 "2022-02-10T15:23:07Z")

</div>

I guess the overall issue is described here [C++ throw leads to a deadlock in preCICE · Issue #964 · precice/precice · GitHub](https://github.com/precice/precice/issues/964). Problem is that somewhere in the deal.II code, an assertion is thrown, which calls the preCICE destructor. That’s a problem of preCICE’s error handling.  
However, the important question is why if fails. @Piyush_Pulukool did you modify the tutorial in some way?

---

<div class="post-metadata">

**Author:** ![Piyush\_Pulukool](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/piyush_pulukool/32/1144_2.png) [@Piyush\_Pulukool](https://precice.discourse.group/u/Piyush_Pulukool)\
**Post date:** [February 10, 2022, 4:03pm UTC](https://precice.discourse.group/t/stuck-at-precice-synchronize-participants-and-close-communication-channels/910/4 "2022-02-10T16:03:14Z")

</div>

@Makis o, @DavidSCN I have not modified any part of the source code. I am following the tutorial.

---

<div class="post-metadata">

**Author:** ![Piyush\_Pulukool](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/piyush_pulukool/32/1144_2.png) [@Piyush\_Pulukool](https://precice.discourse.group/u/Piyush_Pulukool)\
**Post date:** [February 17, 2022, 2:33pm UTC](https://precice.discourse.group/t/stuck-at-precice-synchronize-participants-and-close-communication-channels/910/5 "2022-02-17T14:33:04Z")

</div>

Hi everyone! Just need a follow up on this one. Am I the only one facing this problem? Should I reinstall any packages? All Dealii cases seem to have the same problem in my system. OpenFOAM - CalculiX cases run fine with no issues.  
Thank you for your time.

---

<div class="post-metadata">

**Author:** ![zjk2549514878](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/zjk2549514878/32/1351_2.png) [@zjk2549514878](https://precice.discourse.group/u/zjk2549514878)\
**Post date:** [June 27, 2022, 2:50pm UTC](https://precice.discourse.group/t/stuck-at-precice-synchronize-participants-and-close-communication-channels/910/6 "2022-06-27T14:50:00Z")

</div>

Distinguished scholar. Have you solved this problem?

---

<div class="post-metadata">

**Author:** ![zjk2549514878](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/zjk2549514878/32/1351_2.png) [@zjk2549514878](https://precice.discourse.group/u/zjk2549514878)\
**Post date:** [June 27, 2022, 3:15pm UTC](https://precice.discourse.group/t/stuck-at-precice-synchronize-participants-and-close-communication-channels/910/7 "2022-06-27T15:15:10Z")

</div>

Hello, I solved this problem just now. If you are using a linear solver, please be sure to change it to CG instead of Direct.

---

<div class="post-metadata">

**Author:** ![DavidSCN](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DavidSCN](https://precice.discourse.group/u/DavidSCN)\
**Post date:** [June 29, 2022, 8:37am UTC](https://precice.discourse.group/t/stuck-at-precice-synchronize-participants-and-close-communication-channels/910/8 "2022-06-29T08:37:14Z")

</div>

In case that’s the problem: You need to compile deal.II with UMFPACK, which provides the direct solver. If you compile deal.II without UMFPACK and try to run any case using the direct solver, deal.II will throw an error, which can indeed lead to a deadlock (see linked issue above). At the moment, I don’t see any obvious way to prevent this behavior (unless we want to restrict the adapter usage only to deal.II versions having UMFPACK). Note that the direct solver is most likely multiple times faster (depending on your problem size).

---

<div class="post-metadata">

**Author:** ![cj1823149636](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/cj1823149636/32/1928_2.png) [@cj1823149636](https://precice.discourse.group/u/cj1823149636)\
**Post date:** [January 30, 2024, 8:02am UTC](https://precice.discourse.group/t/stuck-at-precice-synchronize-participants-and-close-communication-channels/910/9 "2024-01-30T08:02:15Z")

</div>

Hello, regarding the termination issue, is it an installation issue with dealii? I installed it based on the source code on the official website of dealii. I encountered this termination issue when running fsi3, which uses a nonlinear solver. I don’t know how to solve this problem

---

<div class="post-metadata">

**Author:** ![DavidSCN](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DavidSCN](https://precice.discourse.group/u/DavidSCN)\
**Post date:** [January 30, 2024, 8:27am UTC](https://precice.discourse.group/t/stuck-at-precice-synchronize-participants-and-close-communication-channels/910/10 "2024-01-30T08:27:15Z")

</div>

@cj1823149636 regarding the issue described here, you have to compile deal.II using something like `cmake -DDEAL_II_WITH_UMFPACK=ON ..`. If your issue is different, please open a new thread.

---

<div class="post-metadata">

**Author:** ![DavidSCN](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DavidSCN](https://precice.discourse.group/u/DavidSCN)\
**Post date:** [January 30, 2024, 8:43am UTC](https://precice.discourse.group/t/stuck-at-precice-synchronize-participants-and-close-communication-channels/910/11 "2024-01-30T08:43:25Z")

</div>

Closed on January 30, 2024, 8:43am UTC


