diff --git a/src/VTKWriter/VTKWriter_grids_util.hpp b/src/VTKWriter/VTKWriter_grids_util.hpp index 2ccba0603a04014c8688815f55ca96f64c352a3a..0214d2e2913a59ff3f35b3a57af1a624bec2a13b 100644 --- a/src/VTKWriter/VTKWriter_grids_util.hpp +++ b/src/VTKWriter/VTKWriter_grids_util.hpp @@ -114,7 +114,10 @@ template<unsigned int i, typename ele_g, bool has_attributes> std::string get_po // We check if it is a vector or scalar like type if (vtk_dims<ctype>::value == 1) + { v_out += "SCALARS " + getAttrName<ele_g,has_attributes>::get(i,prop_names,oprp) + " " + type + "\n"; + v_out += "LOOKUP_TABLE default\n"; + } else v_out += "VECTORS " + getAttrName<ele_g,has_attributes>::get(i,prop_names,oprp) + " " + type + "\n"; }