# Error partitioning the mesh

**URL:** <https://pyfr.discourse.group/t/error-partitioning-the-mesh/1261>\
**Category:** Just Starting\
**Tags:** mesh\
**Created:** [14 May 2025 08:04 UTC](https://pyfr.discourse.group/t/error-partitioning-the-mesh/1261 "2025-05-14T08:04:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arun-s-p](https://yyz2.discourse-cdn.com/free1/user_avatar/pyfr.discourse.group/arun-s-p/32/733_2.png) [@arun-s-p](https://pyfr.discourse.group/u/arun-s-p)\
**Post date:** [14 May 2025 08:04 UTC](https://pyfr.discourse.group/t/error-partitioning-the-mesh/1261/1 "2025-05-14T08:04:35Z")

</div>

I am trying to partition the 2D Euler vortex test case with Metis 5.2.1, by  
`pyfr partition add -p metis euler-vortex.pyfrm 2 .`  
I get the error: `ValueError: Invalid partitioning name`  
Has the command for partitioning changed from that given in the documentation? I tried to follow `pyfr partition add -p metis mesh np name`.

---

<div class="post-metadata">

**Author:** ![p.vincent](https://yyz2.discourse-cdn.com/free1/user_avatar/pyfr.discourse.group/p.vincent/32/225_2.png) [@p.vincent](https://pyfr.discourse.group/u/p.vincent)\
**Post date:** [14 May 2025 08:23 UTC](https://pyfr.discourse.group/t/error-partitioning-the-mesh/1261/2 "2025-05-14T08:23:51Z")

</div>

I think you can just drop the . at the end.

---

<div class="post-metadata">

**Author:** ![arun-s-p](https://yyz2.discourse-cdn.com/free1/user_avatar/pyfr.discourse.group/arun-s-p/32/733_2.png) [@arun-s-p](https://pyfr.discourse.group/u/arun-s-p)\
**Post date:** [14 May 2025 12:04 UTC](https://pyfr.discourse.group/t/error-partitioning-the-mesh/1261/3 "2025-05-14T12:04:06Z")

</div>

That helps with 3 of the 2d examples - double mach reflection, shock tube and cylinder. For the other cases, 3d & 2d, a segmentation fault is thrown.

---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [14 May 2025 14:21 UTC](https://pyfr.discourse.group/t/error-partitioning-the-mesh/1261/4 "2025-05-14T14:21:12Z")

</div>

Do you have the exact command you are using along with the precise version of PyFR?

Regards, Freddie.

---

<div class="post-metadata">

**Author:** ![arun-s-p](https://yyz2.discourse-cdn.com/free1/user_avatar/pyfr.discourse.group/arun-s-p/32/733_2.png) [@arun-s-p](https://pyfr.discourse.group/u/arun-s-p)\
**Post date:** [15 May 2025 07:40 UTC](https://pyfr.discourse.group/t/error-partitioning-the-mesh/1261/5 "2025-05-15T07:40:20Z")

</div>

PyFR 2.1, compiled from source using _setup.py_.  
`pyfr partition add -p metis euler-vortex.pyfrm 2`

Edit:  
Using scotch gives the same error for these cases.  
`pyfr partition add -p scotch -e quad:3 -e tri:2 couette-flow.pyfrm 2`

---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [15 May 2025 11:32 UTC](https://pyfr.discourse.group/t/error-partitioning-the-mesh/1261/6 "2025-05-15T11:32:34Z")

</div>

That is not the correct syntax for v2.1. The “add” syntax is new in the development version of PyFR v3 which uses a different file format.

Please use v2.1 from PyPI.

Regards, Freddie.
