# Applying turbulence generation patch file

**URL:** <https://pyfr.discourse.group/t/applying-turbulence-generation-patch-file/935>\
**Category:** General\
**Created:** [3 October 2023 15:11 UTC](https://pyfr.discourse.group/t/applying-turbulence-generation-patch-file/935 "2023-10-03T15:11:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fei](https://avatars.discourse-cdn.com/v4/letter/f/59ef9b/32.png) [@fei](https://pyfr.discourse.group/u/fei)\
**Post date:** [3 October 2023 15:11 UTC](https://pyfr.discourse.group/t/applying-turbulence-generation-patch-file/935/1 "2023-10-03T15:11:23Z")

</div>

Hello, everyone

I add the patch file in pyfr, and run “patch \< stg.diff”, but it appears errors. Is anyone experiencing the same issue?

---

<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:** [5 October 2023 12:52 UTC](https://pyfr.discourse.group/t/applying-turbulence-generation-patch-file/935/3 "2023-10-05T12:52:18Z")

</div>

I’m not quiet sure where your patch has come from, but maybe consider `git apply`: [Git - git-apply Documentation](https://git-scm.com/docs/git-apply)

---

<div class="post-metadata">

**Author:** ![fei](https://avatars.discourse-cdn.com/v4/letter/f/59ef9b/32.png) [@fei](https://pyfr.discourse.group/u/fei)\
**Post date:** [6 October 2023 14:21 UTC](https://pyfr.discourse.group/t/applying-turbulence-generation-patch-file/935/4 "2023-10-06T14:21:22Z")

</div>

The patch is from synthetic turbulence generation paper. I use git apply, it shows all .py files are not directory.

---

<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:** [6 October 2023 15:43 UTC](https://pyfr.discourse.group/t/applying-turbulence-generation-patch-file/935/5 "2023-10-06T15:43:52Z")

</div>

You will need to apply this to a specific version of pyfr, as things have changed since that paper and it won’t work.
