From a4897a436e98b9b1f360e63e9a37f19d187bc284 Mon Sep 17 00:00:00 2001
From: Incardona Pietro <incardon@mpi-cbg.de>
Date: Mon, 14 Jun 2021 15:48:52 +0200
Subject: [PATCH] Fixing writer for 1D point

---
 src/VTKWriter/VTKWriter_grids_util.hpp |  4 ++--
 src/VTKWriter/is_vtk_writable.hpp      |  2 +-
 src/util/PathsAndFiles.hpp             | 10 +++++-----
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/VTKWriter/VTKWriter_grids_util.hpp b/src/VTKWriter/VTKWriter_grids_util.hpp
index 1885e6e..2ccba06 100644
--- a/src/VTKWriter/VTKWriter_grids_util.hpp
+++ b/src/VTKWriter/VTKWriter_grids_util.hpp
@@ -366,7 +366,7 @@ public:
  *
  */
 template<typename T>
-class prop_write_out<1,T>
+class prop_write_out<0,T>
 {
 public:
 
@@ -449,7 +449,7 @@ public:
  *
  */
 template<typename T>
-class prop_write_out_new<1,T>
+class prop_write_out_new<0,T>
 {
 public:
 
diff --git a/src/VTKWriter/is_vtk_writable.hpp b/src/VTKWriter/is_vtk_writable.hpp
index a7484a3..9ba1020 100644
--- a/src/VTKWriter/is_vtk_writable.hpp
+++ b/src/VTKWriter/is_vtk_writable.hpp
@@ -54,7 +54,7 @@ struct vtk_dims
 	//! dimensionality of the vtk property (scalar)
 	enum
 	{
-		value = 1
+		value = 0
 	};
 };
 
diff --git a/src/util/PathsAndFiles.hpp b/src/util/PathsAndFiles.hpp
index 92331d8..41e4ad8 100644
--- a/src/util/PathsAndFiles.hpp
+++ b/src/util/PathsAndFiles.hpp
@@ -21,7 +21,7 @@
  *
  * @return Std::string of path to current working directory.
  */
-std::string get_cwd()
+static std::string get_cwd()
 {
 	char *cwd = nullptr;
 	size_t size;
@@ -39,7 +39,7 @@ std::string get_cwd()
  * @param path Std::string with path of file for which existence should be checked.
  * @return True, if file exists, false if not.
  */
-bool check_if_file_exists(std::string path)
+static bool check_if_file_exists(std::string path)
 {
 	try
 	{
@@ -63,7 +63,7 @@ bool check_if_file_exists(std::string path)
  *
  * @param path Std::string that contains path including filename of the file that should be created.
  */
-void create_file_if_not_exist(std::string path)
+static void create_file_if_not_exist(std::string path)
 {
 	auto & v_cl = create_vcluster();
 	if (v_cl.rank() == 0)
@@ -82,7 +82,7 @@ void create_file_if_not_exist(std::string path)
  * @param path Std::string with path of directory for which existence should be checked.
  * @return True, if directory exists, false if not.
  */
-bool check_if_directory_exists(std::string path)
+static bool check_if_directory_exists(std::string path)
 {
 	try
 	{
@@ -100,7 +100,7 @@ bool check_if_directory_exists(std::string path)
  *
  * @param path Std::string that contains path including name of the folder that should be created.
  */
-void create_directory_if_not_exist(std::string path)
+static void create_directory_if_not_exist(std::string path)
 {
 	auto & v_cl = create_vcluster();
 	if (v_cl.rank() == 0)
-- 
GitLab