# Running the case on the cluster without errors, but hanging for a long time in the first step

**URL:** <https://precice.discourse.group/t/running-the-case-on-the-cluster-without-errors-but-hanging-for-a-long-time-in-the-first-step/2150>\
**Category:** Using preCICE\
**Tags:** openfoam, calculix, fsi\
**Created:** [October 9, 2024, 1:15pm UTC](https://precice.discourse.group/t/running-the-case-on-the-cluster-without-errors-but-hanging-for-a-long-time-in-the-first-step/2150 "2024-10-09T13:15:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiayu\_sun](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/jiayu_sun/32/1750_2.png) [@jiayu\_sun](https://precice.discourse.group/u/jiayu_sun)\
**Post date:** [October 9, 2024, 1:15pm UTC](https://precice.discourse.group/t/running-the-case-on-the-cluster-without-errors-but-hanging-for-a-long-time-in-the-first-step/2150/1 "2024-10-09T13:15:22Z")

</div>

Hi everyone, I have encountered a problem. I am simulating the problem of elastic structures entering into water on the cluster, openfoam handles fluid, calculix handles solid and precice addresses the coupling. **Is it normal for simulations to get stuck in the first step for a long time, even several days?** It should be noted that I only called one node, so there should be no cross node communication issues. There is no **precice-run** file that has already been generated. I use Slurm to submit assignments. These are my fluid and solid interface mesh.

 ![fluid FSI interface](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/6/6d7e17d39c8b78dd8f3a7eff6d7c4c4f3f691985.png)  
 ![solid FSI interface](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/f/fce536c5fbd4941a6248d56a66776a3447101231.png)  
This is my precice configuration file, seems no problem for me.  
[precice-config.xml](https://precice.discourse.group/uploads/short-url/iWEL7wvl1RgqwgUm7uDogieQMdJ.xml) (2.5 KB)  
 ![Visualization of Precice Configuration Files](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/5/5f82d87aa983c931548d87b4118883fc64515fcb.png)  
The cluster submits the job files and output files as follows.  
[slurm.txt](https://precice.discourse.group/uploads/short-url/ggoB24ebZg1MjseaIn2aJSAYR0V.txt) (417 Bytes)  
[utput=Job\_Results1950.out|attachment](https://precice.discourse.group/uploads/short-url/mzeIlLyyyAf3IStpIcaB18HDumS.out) (23.6 KB)  
Some of the cases are getting some results even after a few days, but the initialization process is very slow, I would like to know if this is normal and if I have any problems submitting jobs using slurm? Because I know very little about clusters. Can anyone give me some ideas on troubleshooting the problem, my experience with precice is still limited. Appreciate it.

---

<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:** [October 10, 2024, 10:51am UTC](https://precice.discourse.group/t/running-the-case-on-the-cluster-without-errors-but-hanging-for-a-long-time-in-the-first-step/2150/2 "2024-10-10T10:51:33Z")

</div>

Hi,

You are using PETSc-based compact RBF mappings with a _relatively_ big case. This can quickly get out of hands in terms of memory and compute time. I recommend you to try a `nearest-neighbour` mapping to see if the simulation starts as expected.

To better understand the behaviour of the various mappings, please have a look at section 3.2.3 of the second preCICE reference paper. Especially the Figure 11 should be interesting to you.

[https://open-research-europe.ec.europa.eu/articles/2-51/v2](https://open-research-europe.ec.europa.eu/articles/2-51/v2)

If you can isolate the hang to the computation of the RBF mapping, then you could try to reduce the support radius of your basis functions to make the RBF system matrices sparser.

If the repartitioning phase is the problem, then you could try enabling two-level initialization.

In all cases, upgrading preCICE and adapters to the latest releases will make a significant difference. We improved the runtime of many of these components. You could even try the new partition of unity RBF mapping.

Best  
Frédéric

---

<div class="post-metadata">

**Author:** ![jiayu\_sun](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/jiayu_sun/32/1750_2.png) [@jiayu\_sun](https://precice.discourse.group/u/jiayu_sun)\
**Post date:** [October 11, 2024, 1:22am UTC](https://precice.discourse.group/t/running-the-case-on-the-cluster-without-errors-but-hanging-for-a-long-time-in-the-first-step/2150/3 "2024-10-11T01:22:59Z")

</div>

Dear developer,  
Thank you for your prompt response. Based on your suggestion, I think I should try different mapping schemes. Specifically, the output of openfoam remains stuck for a long time on

> —[precice] 0m Setting up master communication to coupling partner/s

and the output of calculix remains stuck on

> —[precice] 0m I am participant “solid”  
> Set ID Found

What’s going on at this stage?  
The cluster is using CentOS 7 system. I would like to know if the latest precice support version is still 2.3.0.

Best Regards  
Sun

---

<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:** [October 11, 2024, 10:56am UTC](https://precice.discourse.group/t/running-the-case-on-the-cluster-without-errors-but-hanging-for-a-long-time-in-the-first-step/2150/4 "2024-10-11T10:56:52Z")

</div>

> [@jiayu\_sun](#):
>
> What’s going on at this stage?

It’s difficult to say what exactly is going on as both solver outputs are interleaved.  
My best guess is that the CalculiX adapter hangs while OpenFOAM waits to establish a communication.  
Could you please output the run scripts to separate files? That would help a lot.

It may also be possible that the calulix version and adapter version are not compatible. Which versions are you using?

> [@jiayu\_sun](#):
>
> The cluster is using CentOS 7 system. I would like to know if the latest precice support version is still 2.3.0.

preCICE doesn’t support CentOS as such. It supports the latest two LTS versions of Ubuntu. If the compilers and dependencies are present on a system, then preCICE should work.  
But given that CentOS 7 has reached end of maintenance this June, there won’t be any package updates or similar for your platform.  
If you want to update, using spack is probably your best bet.

Best,  
Frédéric

---

<div class="post-metadata">

**Author:** ![jiayu\_sun](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/jiayu_sun/32/1750_2.png) [@jiayu\_sun](https://precice.discourse.group/u/jiayu_sun)\
**Post date:** [October 12, 2024, 7:37am UTC](https://precice.discourse.group/t/running-the-case-on-the-cluster-without-errors-but-hanging-for-a-long-time-in-the-first-step/2150/5 "2024-10-12T07:37:36Z")

</div>

Dear developer,

I’ve run some 2D cases on the cluster before, which means that there should be no compatibility issues with the installed software. I am using calculix 2.20 and the corresponding version of calculix-adapter. My initial judgement is that the problem should be in the coupling mesh and data mapping settings, which I am still actively tweaking.  
Thank you for your help.

Sun

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/precice/original/1X/67d2a5fa6f80e597e2267ff17fa8c1673cd11caa.svg) [@system](https://precice.discourse.group/u/system)\
**Post date:** [October 17, 2024, 12:49pm UTC](https://precice.discourse.group/t/running-the-case-on-the-cluster-without-errors-but-hanging-for-a-long-time-in-the-first-step/2150/6 "2024-10-17T12:49:25Z")

</div>

Closed on October 17, 2024, 12:49pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
