]> https://gitweb.dealii.org/ - dealii.git/commitdiff
VTU: put xml closing element on separate line
authorTimo Heister <timo.heister@gmail.com>
Sun, 23 Jan 2022 21:36:08 +0000 (16:36 -0500)
committerTimo Heister <timo.heister@gmail.com>
Sun, 23 Jan 2022 21:37:02 +0000 (16:37 -0500)
We try to output VTU XML data in somewhat pretty way like
  <Points>
    <DataArray type="Float32" NumberOfComponents="3" format="binary">
[BASE64 data]
    </DataArray>
  </Points>
but we were missing a newline after writing scalar base64 data. Fix
this.

source/base/data_out_base.cc

index 92490893f751b3861d57bfdc8bb39372066f3b39..05622a848fc1cd93cfc0ec908399326d2d39ff50 100644 (file)
@@ -6189,6 +6189,7 @@ namespace DataOutBase
           } // loop over nodes
 
         vtu_out << data;
+        out << "\n";
         out << "    </DataArray>\n";
 
       } // loop over ranges
@@ -6211,6 +6212,7 @@ namespace DataOutBase
           std::vector<float> data(data_vectors[data_set].begin(),
                                   data_vectors[data_set].end());
           vtu_out << data;
+          out << "\n";
           out << "    </DataArray>\n";
         }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.