# Print out FR matrixes

**URL:** <https://pyfr.discourse.group/t/print-out-fr-matrixes/40>\
**Category:** General\
**Created:** [14 July 2014 09:28 UTC](https://pyfr.discourse.group/t/print-out-fr-matrixes/40 "2014-07-14T09:28:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonio\_Garcia-Uceda](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Antonio\_Garcia-Uceda](https://pyfr.discourse.group/u/Antonio_Garcia-Uceda)\
**Post date:** [14 July 2014 09:28 UTC](https://pyfr.discourse.group/t/print-out-fr-matrixes/40/1 "2014-07-14T09:28:09Z")

</div>

Dear all,

My name is Antonio Garcia-Uceda, and I’m working on implementing a FR algorithm for hybrid meshes.

Could you tell me where exactly in the pyFR sources I have to include commands to print out the matrixes M1,…,M8 in which the FR equations are casted? Many thanks.

Best regards,  
Antonio

---

<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 July 2014 14:43 UTC](https://pyfr.discourse.group/t/print-out-fr-matrixes/40/2 "2014-07-14T14:43:51Z")

</div>

The matrices are defined in `shapes.py`. You can place the relevant  
print/save statements inside the constructor of `BaseShape`. For example:

`print self.m0`

will output some details about the `m0` matrix. However, I would caution  
against the use of these matrices. The ordering of entries depends on  
the choice of face and flux point counting patterns along with how one  
decides to arrange values out in memory. Moreover, they also depend on  
the choice of reference element.

Regards, Freddie.
