branch: devel-tetsuo-xml-binary commit 432ea9fcf0939292b8d373cc3dca4d7a7974d656 Author: Tetsuo Koyama <tkoyama...@gmail.com> AuthorDate: Sun Jul 12 16:13:31 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 356353c..bc6769e 100644 --- a/src/getfem/getfem_export.h +++ b/src/getfem/getfem_export.h @@ -267,9 +267,8 @@ namespace getfem { os << "<DataArray type=\"Float32\" Name=\"" << remove_spaces(name) << "\" " << "NumberOfComponents=\"3\" " << (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_vec(U.begin() + i*Q, Q); - } } else if (Q == gmm::sqr(dim_)) { /* tensors : coef are supposed to be stored in FORTRAN order in the VTK/VTU file, they are written with C (row major) order