# OpenFOAM in parallel: Repartitioning filtered-out mesh

**URL:** <https://precice.discourse.group/t/openfoam-in-parallel-repartitioning-filtered-out-mesh/2183>\
**Category:** Official adapters and tutorials\
**Tags:** openfoam, hpc\
**Created:** [October 23, 2024, 11:01am UTC](https://precice.discourse.group/t/openfoam-in-parallel-repartitioning-filtered-out-mesh/2183 "2024-10-23T11:01:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepak](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@Deepak](https://precice.discourse.group/u/Deepak)\
**Post date:** [October 23, 2024, 11:01am UTC](https://precice.discourse.group/t/openfoam-in-parallel-repartitioning-filtered-out-mesh/2183/1 "2024-10-23T11:01:37Z")

</div>

I am trying to run parallel simulation of flow-over-heated-plate tutorial in a HPC.

The tutorial runs well in my local PC (using single processor and also in parallel using multiple processors).

The tutorial runs well in HPC when using single processor.

The tutorial fails when trying to run in parallel using 1 node or multiple nodes of HPC.

When using multiple nodes, the two openfoam sovlers are unable to communicate with each other.

When using a single node, I am getting the following error

 ![error message](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/1/15f9857e1885aba0726083e84be51f8490832e25.png)

First, I would like to deal with running the simulation in parallel in a single node.

Based on the error message, I have tried the following

[1] Coupled participants do not match geometry wise - I am sure there might not be any issue with the geometry because it runs well (in parallel) in my local PC.  
[2] I have tried to increase the safety-factor = 1.0. It did not work.  
[3] I have set the geometrifilter=no-filter. It did not work.

I have attached my case files, SLURM job file and config file, herewith.  
[flow-over-heated-plate.zip](https://precice.discourse.group/uploads/short-url/8KSywVcYqXC3IIPdaSuIaWnmWU6.zip) (16.6 KB)

Thanks in advance for any help or direction.

---

<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 27, 2025, 8:49pm UTC](https://precice.discourse.group/t/openfoam-in-parallel-repartitioning-filtered-out-mesh/2183/2 "2025-03-27T20:49:23Z")

</div>

@Deepak you probably found the reason already, but I am trying to not leave any topic without an answer.

I can reproduce this with 1 fluid rank and 17 solid ranks on my laptop.

The reason is very simple: The solid interface only has 32 cells per x-direction. In the `system/decomposeParDict` of the `solid-openfoam`, you are defining a partitioning in 26 subdomains in the x-direction. This leads to some parts of the interface having only one cell.

While one could argue whether not supporting one-cell interfaces is a bug or not, I would argue that in practice one should keep in mind that such dividing the case in so small subdomains typically increases communication so much that kills any kind of performance benefits that parallelism brings.
