[petsc-dev] DMDA VTK viewer regression: field names missing

Jed Brown jed at jedbrown.org
Wed Mar 27 21:56:16 CDT 2019


Prior to this PR, which was merged for 3.10

  https://bitbucket.org/petsc/petsc/pull-requests/1029/dmda-vtk-viewing-output-multiple-dof/diff
  https://bitbucket.org/petsc/petsc/commits/ea2d7708fa6

we could have files that look like the following, and thus were easy to
navigate in Paraview and Visit.

<VTKFile type="StructuredGrid" version="0.1" byte_order="LittleEndian">
  <StructuredGrid WholeExtent="0 12 0 24 0 24">
    <Piece Extent="0 12 0 24 0 24">
      <Points>
        <DataArray type="Float64" Name="Position" NumberOfComponents="3" format="appended" offset="0" />
      </Points>
      <PointData Scalars="ScalarPointData">
        <DataArray type="Float64" Name="Density" NumberOfComponents="1" format="appended" offset="195004" />
        <DataArray type="Float64" Name="MomentumX" NumberOfComponents="1" format="appended" offset="260008" />
        <DataArray type="Float64" Name="MomentumY" NumberOfComponents="1" format="appended" offset="325012" />
        <DataArray type="Float64" Name="MomentumZ" NumberOfComponents="1" format="appended" offset="390016" />
        <DataArray type="Float64" Name="Total Energy" NumberOfComponents="1" format="appended" offset="455020" />
      </PointData>
    </Piece>
  </StructuredGrid>
  <AppendedData encoding="raw">

Now the same viewer setup and VecView yields a file that is far more
opaque and requires the user to remember what all the field numbers
mean.

<VTKFile type="StructuredGrid" version="0.1" byte_order="LittleEndian">
  <StructuredGrid WholeExtent="0 12 0 24 0 24">
    <Piece Extent="0 12 0 24 0 24">
      <Points>
        <DataArray type="Float64" Name="Position" NumberOfComponents="3" format="appended" offset="0" />
      </Points>
      <PointData Scalars="ScalarPointData">
        <DataArray type="Float64" Name="Unnamed Vec data" NumberOfComponents="5" format="appended" offset="195004" />
      </PointData>
    </Piece>
  </StructuredGrid>
  <AppendedData encoding="raw">


Do others consider this a regression?  Is it feasible to fix for 3.11?


More information about the petsc-dev mailing list