# Restart simulation with different resources

**URL:** https://pyfr.discourse.group/t/restart-simulation-with-different-resources/798
**Category:** Development
**Created:** [16 April 2023 07:12 UTC](https://pyfr.discourse.group/t/restart-simulation-with-different-resources/798 "2023-04-16T07:12:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Frankx9](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@Frankx9](https://pyfr.discourse.group/u/Frankx9)
#### Post date: [16 April 2023 07:12 UTC](https://pyfr.discourse.group/t/restart-simulation-with-different-resources/798/1 "2023-04-16T07:12:18Z")

</div>

Hi,

is there any plan on allowing a restart of a given simulation using different resources (i.e. number of partitions)?

Say, for example, that I’m running with cuda with X GPUs and want to switch to openmp with Y CPUs

Regards

---

<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: [16 April 2023 17:18 UTC](https://pyfr.discourse.group/t/restart-simulation-with-different-resources/798/2 "2023-04-16T17:18:32Z")

</div>

I’m not sure what you mean?

As noted in the documentation you can use `pyfr partition` to repartition a mesh and associated solution files. You may then restart using these repartitioned mesh/solution files.

Regards, Freddie.

---

<div class="post-metadata">

### Author: ![Frankx9](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@Frankx9](https://pyfr.discourse.group/u/Frankx9)
#### Post date: [17 April 2023 05:39 UTC](https://pyfr.discourse.group/t/restart-simulation-with-different-resources/798/3 "2023-04-17T05:39:18Z")

</div>

When using rk45, for example, do I have to repartition not only the \*.pyfrm file but also the latest 4 \*.pyfrs files?

---

<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: [17 April 2023 07:56 UTC](https://pyfr.discourse.group/t/restart-simulation-with-different-resources/798/4 "2023-04-17T07:56:42Z")

</div>

No, RK methods don’t use the time history in the interpolation, that’s there advantage. The RK integration only requires a single solution and then takes a series of substeps, these get stored and used to build the next sub step.

---

<div class="post-metadata">

### Author: ![Frankx9](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@Frankx9](https://pyfr.discourse.group/u/Frankx9)
#### Post date: [17 April 2023 10:23 UTC](https://pyfr.discourse.group/t/restart-simulation-with-different-resources/798/5 "2023-04-17T10:23:48Z")

</div>

Got it!

As always, very grateful for the help!
