# How does pyfr organize its data

**URL:** <https://pyfr.discourse.group/t/how-does-pyfr-organize-its-data/903>\
**Category:** Development\
**Created:** [29 August 2023 09:22 UTC](https://pyfr.discourse.group/t/how-does-pyfr-organize-its-data/903 "2023-08-29T09:22:02Z")\
**Posts on this page:** 2\
**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:** [29 August 2023 09:22 UTC](https://pyfr.discourse.group/t/how-does-pyfr-organize-its-data/903/1 "2023-08-29T09:22:02Z")

</div>

Hi, everyone . I really want to know how Pyfr organizes its data? Where does it appear in the code?

---

<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:** [29 August 2023 16:33 UTC](https://pyfr.discourse.group/t/how-does-pyfr-organize-its-data/903/2 "2023-08-29T16:33:02Z")

</div>

What memory is used depends on the kernel, but the memory used to perform the calculation is mostly allocated here: [https://github.com/PyFR/PyFR/blob/98929401cd2d607da4058f13ecac3f4a6aeee60b/pyfr/solvers/base/elements.py#L154](https://github.com/PyFR/PyFR/blob/98929401cd2d607da4058f13ecac3f4a6aeee60b/pyfr/solvers/base/elements.py#L154)

Which malloc is used depends on the backend, but you can see some memory being allocated as well as some optional memory for things like the quadrature point when using anti-aliasing.
