diff --git a/src/VTKWriter/VTKWriter_grids_util.hpp b/src/VTKWriter/VTKWriter_grids_util.hpp index 1659cc2f76ade25c74466fa633a65205aefbf0a2..a0f2b3688d6545b0e7e6c3fe77efcafa166891b2 100644 --- a/src/VTKWriter/VTKWriter_grids_util.hpp +++ b/src/VTKWriter/VTKWriter_grids_util.hpp @@ -435,7 +435,9 @@ template<unsigned int dims,typename T> inline void output_point(Point<dims,T> & { if (ft == file_type::ASCII) { - if (dims == 2) + if (dims == 1) + v_out << p.toString() << " 0.0" << " 0.0" << "\n"; + else if (dims == 2) v_out << p.toString() << " 0.0" << "\n"; else v_out << p.toString() << "\n";