branch: devel-tetsuo-xml-binary commit 9ca13df888438e55ad596b8d5eb426da59cf47c7 Author: Tetsuo Koyama <tkoyama...@gmail.com> AuthorDate: Sun Jul 12 16:13:44 2020 +0900
:up: src/getfem/getfem_export.h --- src/getfem/getfem_export.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/getfem/getfem_export.h b/src/getfem/getfem_export.h index bc6769e..f6f9171 100644 --- a/src/getfem/getfem_export.h +++ b/src/getfem/getfem_export.h @@ -279,9 +279,8 @@ namespace getfem { os << "<DataArray type=\"Float32\" Name=\"" << remove_spaces(name) << "\" NumberOfComponents=\"9\" " << (ascii ? "format=\"ascii\">\n" : "format=\"binary\">\n"); - for (size_type i=0; i < nb_val; ++i) { + for (size_type i=0; i < nb_val; ++i) write_3x3tensor(U.begin() + i*Q); - } } else GMM_ASSERT1(false, std::string(vtk ? "vtk" : "vtu") + " does not accept vectors of dimension > 3");