# Savevtk for meshS and hpddm

**URL:** <https://community.freefem.org/t/savevtk-for-meshs-and-hpddm/1949>\
**Category:** General Discussion\
**Created:** [August 19, 2022, 2:44pm UTC](https://community.freefem.org/t/savevtk-for-meshs-and-hpddm/1949 "2022-08-19T14:44:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![julienG](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/julieng/32/222_2.png) [@julienG](https://community.freefem.org/u/julienG)\
**Post date:** [August 19, 2022, 2:44pm UTC](https://community.freefem.org/t/savevtk-for-meshs-and-hpddm/1949/1 "2022-08-19T14:44:59Z")

</div>

Dear all,

It seems that `savevtk` does not work for `meshS` type with `hpddm`…

See for example:

> macro dimension()3S// EOM  
> macro def(u)u// EOM  
> func Pk = P2;  
> include “macro\_ddm.idp”;  
> load “hpddm”;  
> //  
> mesh Th0 = square(100,100,[x,y]);  
> meshS Th=movemesh23(Th0,transfo=[x,y,0]);  
> //  
> fespace Wh(Th, Pk);  
> real[int] D; createPartition(Th, D, Pk)  
> Wh w; w = D;  
> //  
> int[int] fforder = [1];  
> savevtk(“createPartition.vtu”, Th, w, dataname = " w", order = fforder);

This generates the following error

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/c/c6a906084c15b781a43ccb8203058af13e95d325.png)

The same code however works fine for serial code (see for example [test-serial.edp](https://community.freefem.org/uploads/short-url/3EqYFcZch5tnSB9yL9dgPmFT5Xp.edp))

Is there a special command for this?  
Thank you!

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [August 20, 2022, 5:00am UTC](https://community.freefem.org/t/savevtk-for-meshs-and-hpddm/1949/2 "2022-08-20T05:00:02Z")

</div>

It’s not implemented in `plugin/seq/iovtk.cpp` (search for occurrences of `COMMON_HPDDM_PARALLEL_IO` and `MeshS`. Feel free to submit a merge request, I’d be happy to review it.
