branch: fixing_binary_vtk_export commit de3f720b817640c6e358ce1d876495f15c449ce9 Author: aa <a...@plaxis.com> Date: Wed Jul 26 14:52:25 2017 +0200
moving three functions in vtk_export to protected classification to make them accessible for derived classes --- src/getfem/getfem_export.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/getfem/getfem_export.h b/src/getfem/getfem_export.h index 37a2df5..fb53aaf 100644 --- a/src/getfem/getfem_export.h +++ b/src/getfem/getfem_export.h @@ -78,6 +78,12 @@ namespace getfem { bool reverse_endian; enum { EMPTY, HEADER_WRITTEN, STRUCTURE_WRITTEN, IN_CELL_DATA, IN_POINT_DATA } state; + + template<class T> void write_val(T v); + template<class V> void write_vec(V p, size_type qdim); + template<class IT> void write_3x3tensor(IT p); + void write_separ(); + public: typedef enum { VTK_VERTEX = 1, VTK_LINE = 3, @@ -136,7 +142,7 @@ namespace getfem { convex_index().card() elements. */ template<class VECT> void write_cell_data(const VECT& U, - const std::string& name, + const std::string& name, size_type qdim = 1); /** export a data_set correspounding to measures of quality for each convex of the supplied mesh (which should have the same number of convex than @@ -157,10 +163,6 @@ namespace getfem { void write_mesh_structure_from_mesh_fem(); void switch_to_cell_data(); void switch_to_point_data(); - template<class T> void write_val(T v); - template<class V> void write_vec(V p, size_type qdim); - template<class IT> void write_3x3tensor(IT p); - void write_separ(); template<class VECT> void write_dataset_(const VECT& U, const std::string& name, size_type qdim,