branch: devel-tetsuo-xml-binary commit 7891cdbd1e0a45438ccfcac397d7541a7519c57d Author: Tetsuo Koyama <tkoyama...@gmail.com> AuthorDate: Sun Jul 12 16:13:17 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 b1e5840..356353c 100644 --- a/src/getfem/getfem_export.h +++ b/src/getfem/getfem_export.h @@ -258,9 +258,8 @@ namespace getfem { else os << "<DataArray type=\"Float32\" Name=\"" << remove_spaces(name) << "\" " << (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_val(float(U[i])); - } } else if (Q <= 3) { if (vtk) os << "VECTORS " << remove_spaces(name) << " float\n";