diff --git a/src/VTKWriter/VTKWriter_grids_util.hpp b/src/VTKWriter/VTKWriter_grids_util.hpp index 1885e6e3b610ee62224268109ec333581608c237..2ccba0603a04014c8688815f55ca96f64c352a3a 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 a7484a3f5b57dc5b59c744a502487e1f4c5d7631..9ba10202983cfb56c968eb483d7634ce3f58642e 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 92331d8aa1c9b9a6d6561c838361860fbfe27dfc..41e4ad8772afedf7d1b94f05c1a28ae93fcb3cca 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)