# Fail to couple Syrthes and CS using multi-processors

**URL:** <https://code-saturne.org/forum/t/fail-to-couple-syrthes-and-cs-using-multi-processors/1321>\
**Category:** Syrthes related questions\
**Created:** [January 24, 2017, 12:27pm UTC](https://code-saturne.org/forum/t/fail-to-couple-syrthes-and-cs-using-multi-processors/1321 "2017-01-24T12:27:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jundi\_He](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@Jundi\_He](https://code-saturne.org/forum/u/Jundi_He)\
**Post date:** [January 24, 2017, 12:27pm UTC](https://code-saturne.org/forum/t/fail-to-couple-syrthes-and-cs-using-multi-processors/1321/1 "2017-01-24T12:27:22Z")

</div>

Hi, I have met a problem when coupling the simulation. First I independently run the fluid and solid simulation on CS and Syrthes, both using 4 processors, the simulation can run successfully. After that, I set 1 processors for the solid domain and 1 for the fluid domain in the coupling\_parameter file, and execute runcase in terminal, it can start the calculation. After that, I set 2 processors for the solid domain and 2 for the fluid domain, and there appears an error, which is shown on the screenshot, I’d like to know what is the problem? Thank you! (Previously I’ve reinstall the MPI library, and reinstall Code Saturne).

 ![2017-01-24-121323_1920x1200_scrot.png](https://code-saturne.org/forum/uploads/default/original/2X/2/274063c7b041bf365b501e652ca7fdb156957d67.png)

---

<div class="post-metadata">

**Author:** ![Yvan\_Fournier](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yvan\_Fournier](https://code-saturne.org/forum/u/Yvan_Fournier)\
**Post date:** [January 24, 2017, 2:55pm UTC](https://code-saturne.org/forum/t/fail-to-couple-syrthes-and-cs-using-multi-processors/1321/2 "2017-01-24T14:55:14Z")

</div>

Hello,

Did you check the log files indicated in the message? what do they say ?

Regards,

Yvan

---

<div class="post-metadata">

**Author:** ![Jundi\_He](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@Jundi\_He](https://code-saturne.org/forum/u/Jundi_He)\
**Post date:** [January 24, 2017, 3:23pm UTC](https://code-saturne.org/forum/t/fail-to-couple-syrthes-and-cs-using-multi-processors/1321/3 "2017-01-24T15:23:46Z")

</div>

Hi, I’ve read the Syrthes.log and listing file but I can’t understand what they are talking about. Thank you.  
[listing.txt](https://code-saturne.org/forum/uploads/short-url/CBZCa0dLB6oDVwPTyJLisJkyBZ.txt) (31.8 KB)  
[syrthes.log](https://code-saturne.org/forum/uploads/short-url/mlZZSvbbRjukfzviZfcKxroSfbC.log) (12.3 KB)

---

<div class="post-metadata">

**Author:** ![Jundi\_He](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@Jundi\_He](https://code-saturne.org/forum/u/Jundi_He)\
**Post date:** [January 24, 2017, 3:35pm UTC](https://code-saturne.org/forum/t/fail-to-couple-syrthes-and-cs-using-multi-processors/1321/4 "2017-01-24T15:35:43Z")

</div>

Hi:

Previously I set 4 processors for CS and 4 for Syrthes, and it failed like this. This time I set 4 processors for CS and 2 processors for Syrthes, and it can run the coupling simulation, but the calculation finish very fast. I click into the result folder of the monitoring point, only one iteration has been run. Thanks for the time.

Regards  
Jundi He

 ![runcase.png](https://code-saturne.org/forum/uploads/default/original/2X/9/9b91c3abbf9ee141c190440fc1e1b4a2956fa02b.png)  
 ![monitoring_point.png](https://code-saturne.org/forum/uploads/default/original/2X/e/ea7ae5591001dbe59e3b5340aed695b122382106.png)

---

<div class="post-metadata">

**Author:** ![Yvan\_Fournier](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/y/4bbf92/32.png) [@Yvan\_Fournier](https://code-saturne.org/forum/u/Yvan_Fournier)\
**Post date:** [January 24, 2017, 8:46pm UTC](https://code-saturne.org/forum/t/fail-to-couple-syrthes-and-cs-using-multi-processors/1321/5 "2017-01-24T20:46:56Z")

</div>

Hello,

What partitioning method are you using for Syrthes ? For this very small case, using Metis may lead to a rank with an empty mesh, which crashes Syrthes.

Try Scotch on the Syrthes side (though I’m not sure the Code\_Saturne 4.0 handles this part of the Syrthes script; it does in version 5.0, with a first beta which will be released this week), or a larger mesh

Regards,

Yvan

---

<div class="post-metadata">

**Author:** ![Jundi\_He](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@Jundi\_He](https://code-saturne.org/forum/u/Jundi_He)\
**Post date:** [January 24, 2017, 9:29pm UTC](https://code-saturne.org/forum/t/fail-to-couple-syrthes-and-cs-using-multi-processors/1321/6 "2017-01-24T21:29:54Z")

</div>

Hi, I’ve solve the problem, by setting only one processors for Syrthes, if I set 2 processors for Syrthes, it will crash like the first picture, which tells you some MPI problems. Like I have 8 processors in my computer, I can only use 1 for Syrthes, the other 7 for Code\_Saturne. In this setting, I can run the coupling simulation with fluid and solid domain. Thank you.

Regards!  
Jundi He
