]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace #if DEBUG with #ifdef DEBUG 14874/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 10 Mar 2023 20:53:53 +0000 (15:53 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 10 Mar 2023 20:54:41 +0000 (15:54 -0500)
12 files changed:
include/deal.II/matrix_free/vector_access_internal.h
include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h
source/base/quadrature.cc
source/hp/fe_collection.cc
source/lac/petsc_parallel_vector.cc
tests/adolc/helper_scalar_failure_01.cc
tests/adolc/helper_scalar_failure_02.cc
tests/adolc/helper_scalar_failure_03.cc
tests/adolc/helper_scalar_failure_04.cc
tests/adolc/helper_scalar_failure_05.cc
tests/symengine/sd_common_tests/batch_optimizer_07.h
tests/symengine/symengine_tensor_operations_03.cc

index 92ad7e59d69f8d50133d1ebad5e5f66efcbd6de9..abc647baab40daaf960e503117000777e56c780a 100644 (file)
@@ -25,7 +25,7 @@
 #include <deal.II/matrix_free/matrix_free.h>
 #include <deal.II/matrix_free/type_traits.h>
 
-#if DEBUG
+#ifdef DEBUG
 #  include <boost/algorithm/string/join.hpp>
 #endif
 
@@ -210,7 +210,7 @@ namespace internal
     (void)matrix_free;
     (void)dof_info;
 
-#if DEBUG
+#ifdef DEBUG
     if (vec.partitioners_are_compatible(*dof_info.vector_partitioner) == false)
       {
         unsigned int dof_index = numbers::invalid_unsigned_int;
index 1dd8eb62e2644d16665d2e2c7e5354ed51bcf057..25288806cf3eb5ffc6e2411ec545af42fc04beb5 100644 (file)
@@ -1791,7 +1791,7 @@ namespace internal
                              fe.n_dofs_per_vertex() > 0;
                     });
 
-#if DEBUG
+#ifdef DEBUG
       const bool fine_element_is_discontinuous =
         std::all_of(dof_handler_fine.get_fe_collection().begin(),
                     dof_handler_fine.get_fe_collection().end(),
index feb1be8d4fff0e31cff5d29f8ea7748d20fbfb5f..e02be902fab0dbd276682637529c081e878113b1 100644 (file)
@@ -587,7 +587,7 @@ QIterated<1>::QIterated(const Quadrature<1> &        base_quadrature,
     else if (std::abs(i[0] - 1.0) < 1e-12)
       i[0] = 1.0;
 
-#if DEBUG
+#ifdef DEBUG
   double sum_of_weights = 0;
   for (unsigned int i = 0; i < this->size(); ++i)
     sum_of_weights += this->weight(i);
index d90012d775079988d4080ec15679589613636731..2ac945c033dfb9d6ba19b5f3f24e33b12e5439a6 100644 (file)
@@ -480,7 +480,7 @@ namespace hp
           for (const Edge &e : sub_graph)
             identities_graph.erase(e);
 
-#if DEBUG
+#ifdef DEBUG
           // There are three checks we ought to perform:
           // - That the sub-graph is undirected, i.e. that every edge appears
           //   in both directions
index d305051996c903898a754b0d94a28410a4379d78..fddd6cbba82d4e60410828e397a6cd252713a67c 100644 (file)
@@ -293,7 +293,7 @@ namespace PETScWrappers
 
       Assert(size() == n, ExcDimensionMismatch(size(), n));
 
-#  if DEBUG
+#  ifdef DEBUG
       {
         // test ghost allocation in debug mode
         PetscInt begin, end;
index 0440be209773122f44044395a63cbf256af33900..c562d5106c40e4f2c153676b893354727c15acd4 100644 (file)
@@ -94,7 +94,7 @@ main()
   initlog();
 
   deal_II_exceptions::disable_abort_on_exception();
-#if DEBUG
+#ifdef DEBUG
   // Asserts should be triggered
   const bool expected_result = false;
 #else
index e4866bfe3918cb5472803fb7cdb56665710aaaf5..5b24a83dbf81f669dddaf25d93bcada446e2682c 100644 (file)
@@ -96,7 +96,7 @@ main()
   initlog();
 
   deal_II_exceptions::disable_abort_on_exception();
-#if DEBUG
+#ifdef DEBUG
   // Asserts should be triggered
   const bool expected_result = false;
 #else
index 899cb55d3afe61095296bab0f8478103d08dfb54..a15d2c1eea9bcb133e69d6a68e3e92444961a990 100644 (file)
@@ -97,7 +97,7 @@ main()
   initlog();
 
   deal_II_exceptions::disable_abort_on_exception();
-#if DEBUG
+#ifdef DEBUG
   // Asserts should be triggered
   const bool expected_result = false;
 #else
index 5893d63a583fd2abff05f664588961cc60f5183a..0c287eddad286a8abae935b4770b20b4c0651d64 100644 (file)
@@ -95,7 +95,7 @@ main()
   initlog();
 
   deal_II_exceptions::disable_abort_on_exception();
-#if DEBUG
+#ifdef DEBUG
   // Asserts should be triggered
   const bool expected_result_taped    = false;
   const bool expected_result_tapeless = false;
index 89f933c58ef58347557252c14846507c3e2ff299..f5b0bf65029c406e464f5bfe24501d3bcdd03c41 100644 (file)
@@ -97,7 +97,7 @@ main()
   initlog();
 
   deal_II_exceptions::disable_abort_on_exception();
-#if DEBUG
+#ifdef DEBUG
   // Asserts should be triggered
   const bool expected_result = false;
 #else
index ec4c619f6483408ded1bead183d3b6fc98d048f7..0bb447b9ce8cef6f0fc7f549703b09b748fa8844 100644 (file)
@@ -376,7 +376,7 @@ evaluate_SD_SD_stored_symbols_optimisation(const Tensor<2, dim> &t,
       using func_sd = CoupledFunction<dim, SDNumberType>;
 
       symb_psi = func_sd::psi(symb_t, symb_v, symb_s);
-#if DEBUG_EXTRA
+#ifdef DEBUG_EXTRA
       deallog << "symb_t: " << symb_t << std::endl;
       deallog << "symb_v: " << symb_v << std::endl;
       deallog << "symb_s: " << symb_s << std::endl;
@@ -397,7 +397,7 @@ evaluate_SD_SD_stored_symbols_optimisation(const Tensor<2, dim> &t,
       symb_d2psi_dt_ds = SD::differentiate(symb_dpsi_ds, symb_t);
       symb_d2psi_dv_ds = SD::differentiate(symb_dpsi_ds, symb_v);
       symb_d2psi_ds_ds = SD::differentiate(symb_dpsi_ds, symb_s);
-#if DEBUG_EXTRA
+#ifdef DEBUG_EXTRA
       print(deallog, "symb_psi", symb_psi);
       print(deallog, "symb_dpsi_dt", symb_dpsi_dt);
       print(deallog, "symb_dpsi_dv", symb_dpsi_dv);
index 6e44bdbed62bbb16d256fe597dc31f9696d4ef2a..ae7dc100458298bdd684be4d88348fb0c3cb5f50 100644 (file)
@@ -507,7 +507,7 @@ test_symmetric_tensor_tensor_vector_scalar_coupled(
   symb_d2psi_ds_x_dv  = SD::differentiate(symb_dpsi_ds, symb_v);
   symb_d2psi_ds_x_ds  = SD::differentiate(symb_dpsi_ds, symb_s);
 
-#if DEBUG
+#ifdef DEBUG
   print(std::cout, "symb_st", symb_st);
   print(std::cout, "symb_t", symb_t);
   print(std::cout, "symb_v", symb_v);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.