From 31a28370bb6bcc787e9a14b43b1665b001368aaf Mon Sep 17 00:00:00 2001
From: Cristian C Lalescu <Cristian.Lalescu@ds.mpg.de>
Date: Sat, 23 Mar 2019 10:38:13 +0100
Subject: [PATCH] remove debug messages

---
 cpp/field.cpp                                 | 4 +---
 cpp/full_code/NSVEcomplex_particles.cpp       | 4 ++--
 cpp/full_code/NSVEparticles.cpp               | 4 ++--
 cpp/full_code/code_base.cpp                   | 3 +--
 cpp/full_code/direct_numerical_simulation.cpp | 3 +--
 cpp/kspace.cpp                                | 4 +---
 cpp/particles/particles_distr_mpi.hpp         | 2 +-
 cpp/vorticity_equation.cpp                    | 4 ++--
 8 files changed, 11 insertions(+), 17 deletions(-)

diff --git a/cpp/field.cpp b/cpp/field.cpp
index f900140b..077427ce 100644
--- a/cpp/field.cpp
+++ b/cpp/field.cpp
@@ -24,8 +24,6 @@
 
 
 
-#define NDEBUG
-
 #include <sys/stat.h>
 #include <cmath>
 #include <cstdlib>
@@ -35,7 +33,7 @@
 #include "scope_timer.hpp"
 #include "shared_array.hpp"
 
-
+#define NDEBUG
 
 template <typename rnumber,
           field_backend be,
diff --git a/cpp/full_code/NSVEcomplex_particles.cpp b/cpp/full_code/NSVEcomplex_particles.cpp
index 0c4cae91..701892f9 100644
--- a/cpp/full_code/NSVEcomplex_particles.cpp
+++ b/cpp/full_code/NSVEcomplex_particles.cpp
@@ -24,8 +24,6 @@
 
 
 
-//#define NDEBUG
-
 #include <string>
 #include <cmath>
 #include "NSVEcomplex_particles.hpp"
@@ -34,6 +32,8 @@
 #include "particles/p2p_computer.hpp"
 #include "particles/particles_inner_computer.hpp"
 
+#define NDEBUG
+
 template <typename rnumber>
 int NSVEcomplex_particles<rnumber>::initialize(void)
 {
diff --git a/cpp/full_code/NSVEparticles.cpp b/cpp/full_code/NSVEparticles.cpp
index 674b4f77..1952bcfc 100644
--- a/cpp/full_code/NSVEparticles.cpp
+++ b/cpp/full_code/NSVEparticles.cpp
@@ -24,13 +24,13 @@
 
 
 
-//#define NDEBUG
-
 #include <string>
 #include <cmath>
 #include "NSVEparticles.hpp"
 #include "scope_timer.hpp"
 
+#define NDEBUG
+
 template <typename rnumber>
 int NSVEparticles<rnumber>::initialize(void)
 {
diff --git a/cpp/full_code/code_base.cpp b/cpp/full_code/code_base.cpp
index 210f2c96..f412a792 100644
--- a/cpp/full_code/code_base.cpp
+++ b/cpp/full_code/code_base.cpp
@@ -24,11 +24,10 @@
 
 
 
-//#define NDEBUG
-
 #include "code_base.hpp"
 #include "scope_timer.hpp"
 
+#define NDEBUG
 
 code_base::code_base(
         const MPI_Comm COMMUNICATOR,
diff --git a/cpp/full_code/direct_numerical_simulation.cpp b/cpp/full_code/direct_numerical_simulation.cpp
index f269045a..955c1f2e 100644
--- a/cpp/full_code/direct_numerical_simulation.cpp
+++ b/cpp/full_code/direct_numerical_simulation.cpp
@@ -23,8 +23,6 @@
 
 
 
-//#define NDEBUG
-
 #include <cstdlib>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -32,6 +30,7 @@
 #include "scope_timer.hpp"
 #include "hdf5_tools.hpp"
 
+#define NDEBUG
 
 int direct_numerical_simulation::grow_file_datasets()
 {
diff --git a/cpp/kspace.cpp b/cpp/kspace.cpp
index 5accb969..452ca305 100644
--- a/cpp/kspace.cpp
+++ b/cpp/kspace.cpp
@@ -24,8 +24,6 @@
 
 
 
-#define NDEBUG
-
 #include <cmath>
 #include <cstdlib>
 #include <algorithm>
@@ -34,7 +32,7 @@
 #include "scope_timer.hpp"
 #include "shared_array.hpp"
 
-
+#define NDEBUG
 
 template <field_backend be,
           kspace_dealias_type dt>
diff --git a/cpp/particles/particles_distr_mpi.hpp b/cpp/particles/particles_distr_mpi.hpp
index c88bedac..57d80670 100644
--- a/cpp/particles/particles_distr_mpi.hpp
+++ b/cpp/particles/particles_distr_mpi.hpp
@@ -336,7 +336,7 @@ public:
 
         const bool more_than_one_thread = (omp_get_max_threads() > 1);
         MPI_Barrier(MPI_COMM_WORLD);
-        DEBUG_MSG_WAIT(MPI_COMM_WORLD, "line 338 of particles_distr_mpi.hpp\n");
+        //DEBUG_MSG_WAIT(MPI_COMM_WORLD, "line 338 of particles_distr_mpi.hpp\n");
 
         TIMEZONE_OMP_INIT_PREPARALLEL(omp_get_max_threads())
         #pragma omp parallel default(shared)
diff --git a/cpp/vorticity_equation.cpp b/cpp/vorticity_equation.cpp
index ead9345a..38ca8f6d 100644
--- a/cpp/vorticity_equation.cpp
+++ b/cpp/vorticity_equation.cpp
@@ -24,8 +24,6 @@
 
 
 
-#define NDEBUG
-
 #include <limits>
 #include <cassert>
 #include <cmath>
@@ -35,6 +33,8 @@
 #include "scope_timer.hpp"
 #include "shared_array.hpp"
 
+#define NDEBUG
+
 
 
 template <class rnumber,
-- 
GitLab