Skip to content
Snippets Groups Projects
Commit 042cc275 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Small Fix in the VTKWriter

parent 51f98fac
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ io_LDADD = $(LINKLIBS) ...@@ -9,7 +9,7 @@ io_LDADD = $(LINKLIBS)
nobase_include_HEADERS = CSVWriter/csv_multiarray.hpp CSVWriter/CSVWriter.hpp \ nobase_include_HEADERS = CSVWriter/csv_multiarray.hpp CSVWriter/CSVWriter.hpp \
GraphMLWriter/GraphMLWriter.hpp util.hpp \ GraphMLWriter/GraphMLWriter.hpp util.hpp \
VTKWriter/VTKWriter.hpp VTKWriter/VTKWriter_graph.hpp VTKWriter/VTKWriter_point_set.hpp VTKWriter/VTKWriter_grids.hpp VTKWriter/VTKWriter_grids_st.hpp VTKWriter/VTKWriter_grids_util.hpp VTKWriter/VTKWriter_vector_box.hpp HDF5_XdmfWriter/HDF5_XdmfWriter.hpp HDF5_XdmfWriter/HDF5_XdmfWriter_point_set.hpp HDF5_XdmfWriter/HDF5_XdmfWriter_util.hpp \ VTKWriter/VTKWriter.hpp VTKWriter/VTKWriter_dist_graph.hpp VTKWriter/VTKWriter_graph.hpp VTKWriter/VTKWriter_point_set.hpp VTKWriter/VTKWriter_grids.hpp VTKWriter/VTKWriter_grids_st.hpp VTKWriter/VTKWriter_grids_util.hpp VTKWriter/VTKWriter_vector_box.hpp HDF5_XdmfWriter/HDF5_XdmfWriter.hpp HDF5_XdmfWriter/HDF5_XdmfWriter_point_set.hpp HDF5_XdmfWriter/HDF5_XdmfWriter_util.hpp \
Plot/GoogleChart.hpp Plot/util.hpp Plot/GoogleChart.hpp Plot/util.hpp
......
...@@ -111,11 +111,10 @@ struct vtk_dist_vertex_node ...@@ -111,11 +111,10 @@ struct vtk_dist_vertex_node
* \param n_obj object container to access its properties for example encapc<...> * \param n_obj object container to access its properties for example encapc<...>
* *
*/ */
vtk_dist_vertex_node(std::string & v_node, typename G::V_container & n_obj, s_type (&x)[3]) : vtk_dist_vertex_node(std::string & v_node, typename G::V_container & n_obj, s_type (&x)[3])
x(x), vo(n_obj), v_node(v_node), z_set(false) :z_set(false),x(x), vo(n_obj), v_node(v_node)
{ {
} }
;
//! \brief Write collected information //! \brief Write collected information
void write() void write()
......
...@@ -64,6 +64,9 @@ struct vtk_vertex_node_array_scalar_selector<true> ...@@ -64,6 +64,9 @@ struct vtk_vertex_node_array_scalar_selector<true>
template<typename T, typename ele_v, typename G, typename s_type> template<typename T, typename ele_v, typename G, typename s_type>
static inline void move(typename G::V_container &vo, s_type (&x)[3], bool &z_set) static inline void move(typename G::V_container &vo, s_type (&x)[3], bool &z_set)
{ {
if (G::V_type::attributes::name[T::value] != "x")
return;
if (std::extent<ele_v>::value == 3) if (std::extent<ele_v>::value == 3)
z_set = true; z_set = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment