<div class="gmail_quote">On Tue, Nov 22, 2011 at 04:40, Benjamin Sanderse <span dir="ltr"><<a href="mailto:B.Sanderse@cwi.nl">B.Sanderse@cwi.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello all,<br>
<br>
I am trying to output parallel data in binary format that can be read by Tecplot. For this I use the TecIO library from Tecplot, which provide a set of Fortran/C subroutines. With these subroutines it is easy to write binary files that can be read by Tecplot, but, as far as I can see, they can not be directly used with parallel Petsc vectors. On a single processor everything works fine, but on more processors it fails.<br>
I am thinking now of different workarounds:<br>
<br>
1. Create a sequential vector from the parallel vector, and call the TecIO subroutines with this sequential vector. For large problems this will probably be too slow, and actually I don't know how to copy the content of a parallel vector into a sequential one.<br>
2. Write a tecplot file from each processor, with the data from that processor. The problem is that this requires combining the files afterwards, and this is probably not easy (certainly not in binary format?).<br>
3. Change the tecplot subroutines or write own binary output with VecView(). It might not be easy to get the output right so that Tecplot understands it.<br></blockquote><div><br></div><div>Are you using DMDA or do you have your own unstructured mesh? Supposedly Tecplot can read HDF5, so you might be able to use PETSc's parallel HDF5 viewer and still read it with Tecplot.</div>
<div><br></div><div>What other formats does Tecplot support and how do they recommend handling parallelism? The open source visualization packages have put a great deal of effort into supporting many different data formats (including Tecplot's native format). It would be rather unfair if Tecplot didn't support some of the open source formats.</div>
</div>