# I can't get .vtk file using PETCS

**URL:** <https://community.freefem.org/t/i-cant-get-vtk-file-using-petcs/3678>\
**Category:** General Discussion\
**Created:** [January 8, 2025, 4:40pm UTC](https://community.freefem.org/t/i-cant-get-vtk-file-using-petcs/3678 "2025-01-08T16:40:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zxss](https://avatars.discourse-cdn.com/v4/letter/z/bc8723/32.png) [@zxss](https://community.freefem.org/u/zxss)\
**Post date:** [January 8, 2025, 4:40pm UTC](https://community.freefem.org/t/i-cant-get-vtk-file-using-petcs/3678/1 "2025-01-08T16:40:51Z")

</div>

Dear all,

I have a problem, I can’t get .vtk file when I use using parallel code with PETCS. The attached is the code. Can anyone explain why.

Thank you in advance.

Xuan  
[ex2-overlapping\_mesh.edp](https://community.freefem.org/uploads/short-url/wzsDDg5b6R9lwrdzEIJtHM0fDwq.edp) (330 Bytes)

---

<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:** [January 8, 2025, 9:22pm UTC](https://community.freefem.org/t/i-cant-get-vtk-file-using-petcs/3678/2 "2025-01-08T21:22:53Z")

</div>

I think ypu don’t need to

> load “iovtk”

the parallel `vtk` modules are loaded within

> include “macro\_ddm.idp”

---

<div class="post-metadata">

**Author:** ![zxss](https://avatars.discourse-cdn.com/v4/letter/z/bc8723/32.png) [@zxss](https://community.freefem.org/u/zxss)\
**Post date:** [January 8, 2025, 10:32pm UTC](https://community.freefem.org/t/i-cant-get-vtk-file-using-petcs/3678/3 "2025-01-08T22:32:44Z")

</div>

Thanks for your answer, this is the my running result

 ![b7c378973cb65e7027b644a093f7fba](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/6/6455244cab0b330e614ecbde88ce97fc688bdf3b.png)  
Although it shows a normal end, I don’t get the .vtk file.

I just wonder what’s wrong.

---

<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:** [January 10, 2025, 8:52am UTC](https://community.freefem.org/t/i-cant-get-vtk-file-using-petcs/3678/4 "2025-01-10T08:52:58Z")

</div>

Does it work without PETSc?

---

<div class="post-metadata">

**Author:** ![zxss](https://avatars.discourse-cdn.com/v4/letter/z/bc8723/32.png) [@zxss](https://community.freefem.org/u/zxss)\
**Post date:** [January 10, 2025, 3:56pm UTC](https://community.freefem.org/t/i-cant-get-vtk-file-using-petcs/3678/5 "2025-01-10T15:56:29Z")

</div>

Thank you for your advice, I tried it. It is also a normal end but not generates .vtk file using CMD terminal. However, when I run the program on notepad++(because it is now sequential code without PETCs), everything is OK.

So I guess it may be something with Windows operating system l, I try to use Linux instead.
