# Repartitioning a pyfrm mesh

**URL:** <https://pyfr.discourse.group/t/repartitioning-a-pyfrm-mesh/940>\
**Category:** Cases\
**Tags:** mesh\
**Created:** [11 October 2023 10:52 UTC](https://pyfr.discourse.group/t/repartitioning-a-pyfrm-mesh/940 "2023-10-11T10:52:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![luli](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@luli](https://pyfr.discourse.group/u/luli)\
**Post date:** [11 October 2023 10:52 UTC](https://pyfr.discourse.group/t/repartitioning-a-pyfrm-mesh/940/1 "2023-10-11T10:52:37Z")

</div>

In the materials provided in the JCP-2019 paper（Locally adaptive pseudo-time stepping for high-order Flux Reconstruction）, the mesh file pyfrm has been divided into 4 blocks for multi GPU run, but I only have one GPU. How Can I change the mesh back ?

---

<div class="post-metadata">

**Author:** ![WillT](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WillT](https://pyfr.discourse.group/u/WillT)\
**Post date:** [11 October 2023 11:44 UTC](https://pyfr.discourse.group/t/repartitioning-a-pyfrm-mesh/940/2 "2023-10-11T11:44:42Z")

</div>

You can partition the mesh as per the documentation.

---

<div class="post-metadata">

**Author:** ![luli](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@luli](https://pyfr.discourse.group/u/luli)\
**Post date:** [12 October 2023 05:59 UTC](https://pyfr.discourse.group/t/repartitioning-a-pyfrm-mesh/940/3 "2023-10-12T05:59:04Z")

</div>

Can I just use “pyfr partition 1 mesh.pyfrm .” command ?

---

<div class="post-metadata">

**Author:** ![luli](https://avatars.discourse-cdn.com/v4/letter/l/5f9b8f/32.png) [@luli](https://pyfr.discourse.group/u/luli)\
**Post date:** [12 October 2023 06:06 UTC](https://pyfr.discourse.group/t/repartitioning-a-pyfrm-mesh/940/4 "2023-10-12T06:06:07Z")

</div>

I mean that in the materials provided in the article, the mesh file is in “pyfrm” format, not in msh format, and has been partitioned, but I only have one GPU. What should I do？

---

<div class="post-metadata">

**Author:** ![WillT](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WillT](https://pyfr.discourse.group/u/WillT)\
**Post date:** [12 October 2023 07:36 UTC](https://pyfr.discourse.group/t/repartitioning-a-pyfrm-mesh/940/5 "2023-10-12T07:36:22Z")

</div>

Yep, that should work. As with all the commands in pyfr you can do `pyfr partition --help` and it will tell you how to use it. In the partitioners case, it accepts a pyfr mesh file (ie a pyfrm file) and can optionally take pyfr solution files (pyfrs files) as inputs.
