getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] (no subject)


From: Tetsuo Koyama
Subject: [Getfem-commits] (no subject)
Date: Wed, 6 May 2020 19:59:36 -0400 (EDT)

branch: devel-tetsuo-xml
commit 25908c2394985599ec81706e11109276c508826c
Author: Tetsuo Koyama <address@hidden>
AuthorDate: Wed May 6 12:29:19 2020 +0000

    :wrench: tensor output
---
 src/getfem/getfem_export.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/getfem/getfem_export.h b/src/getfem/getfem_export.h
index a8f9c0e..36042ab 100644
--- a/src/getfem/getfem_export.h
+++ b/src/getfem/getfem_export.h
@@ -422,7 +422,8 @@ namespace getfem {
                 "inconsistency in the size of the dataset: "
                 << gmm::vect_size(U) << " != " << nb_val << "*" << Q);
     if (Q == 1) {
-      os << "<DataArray type=\"Float32\" Name=\"" << remove_spaces(name) << 
"\" format=\"ascii\">\n";
+      os << "<DataArray type=\"Float32\" Name=\"" << remove_spaces(name);
+      os << "\" format=\"ascii\">\n";
       for (size_type i=0; i < nb_val; ++i) {
         write_val(float(U[i]));
       }
@@ -437,7 +438,7 @@ namespace getfem {
          in the VTU file, they are written with C (row major) order
        */
       os << "<DataArray type=\"Float32\" Name=\"" << remove_spaces(name);
-      os << "\" NumberOfComponents=\"" << Q*Q << "\" format=\"ascii\">";
+      os << "\" NumberOfComponents=\"9\" format=\"ascii\">";
       for (size_type i=0; i < nb_val; ++i) {
         write_3x3tensor(U.begin() + i*Q);
       }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]