# Ordering in solutions vector and saved vtk files

**URL:** <https://fenicsproject.discourse.group/t/ordering-in-solutions-vector-and-saved-vtk-files/9913>\
**Category:** General\
**Created:** [December 6, 2022, 2:47pm UTC](https://fenicsproject.discourse.group/t/ordering-in-solutions-vector-and-saved-vtk-files/9913 "2022-12-06T14:47:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![0x97](https://avatars.discourse-cdn.com/v4/letter/0/ecc23a/32.png) [@0x97](https://fenicsproject.discourse.group/u/0x97)\
**Post date:** [December 6, 2022, 2:47pm UTC](https://fenicsproject.discourse.group/t/ordering-in-solutions-vector-and-saved-vtk-files/9913/1 "2022-12-06T14:47:28Z")

</div>

I’m solving a 2D heat equation, and I am saving the solution both as vtk and as numpy array, by using the .vector().get\_local() method. Is it possible that the ordering of the two arrays, the one contained in the vtk file and the one saved via numpy is not the same?  
Thanks.

---

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [December 6, 2022, 2:51pm UTC](https://fenicsproject.discourse.group/t/ordering-in-solutions-vector-and-saved-vtk-files/9913/2 "2022-12-06T14:51:12Z")

</div>

Saving as vtk and saving as an array does fundamentally different things. This has for instance been covered in: [Mapping from mesh.coordinates() to u.vector() - #2 by dokken](https://fenicsproject.discourse.group/t/mapping-from-mesh-coordinates-to-u-vector/5067/2)

Without a minimal reproducable example it is hard to give any more concrete advice.
