branch: devel-tetsuo-xml-binary
commit 98d2e14cf7dc76f39409b6a61f135f3239cef635
Author: Tetsuo Koyama <[email protected]>
AuthorDate: Sun Oct 4 03:59:28 2020 +0900
:sparkles: Fix TODO
---
src/getfem_export.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/getfem_export.cc b/src/getfem_export.cc
index 28e85cc..38aac8b 100644
--- a/src/getfem_export.cc
+++ b/src/getfem_export.cc
@@ -596,7 +596,9 @@ namespace getfem
os << (ascii ? "format=\"ascii\">\n" : "format=\"binary\">\n");
int cnt = 0;
if (!vtk && !ascii) {
- int size = sizeof(int)*2;
+ int size = 0;
+ for (dal::bv_visitor cv(pmf->convex_index()); !cv.finished(); ++cv)
+ size += sizeof(int);
write_val(size);
}
for (dal::bv_visitor cv(pmf->convex_index()); !cv.finished(); ++cv) {