From 93ab6d44599813c19571ac2a7d883455c0b9c07f Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 8 Apr 2018 18:38:56 -0400 Subject: [PATCH] Fix indentation. --- include/deal.II/base/exceptions.h | 94 +++++++++++++++---------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 55f4c0dfb7..33341335a3 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -1111,20 +1111,20 @@ namespace deal_II_exceptions #ifdef DEBUG # ifdef DEAL_II_HAVE_BUILTIN_EXPECT # define Assert(cond, exc) \ -{ \ - if (__builtin_expect(!(cond), false)) \ - ::dealii::deal_II_exceptions::internals:: issue_error_noreturn( \ - ::dealii::deal_II_exceptions::internals::abort_on_exception, \ - __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \ -} + { \ + if (__builtin_expect(!(cond), false)) \ + ::dealii::deal_II_exceptions::internals:: issue_error_noreturn( \ + ::dealii::deal_II_exceptions::internals::abort_on_exception, \ + __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \ + } # else /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/ # define Assert(cond, exc) \ -{ \ - if (!(cond)) \ - ::dealii::deal_II_exceptions::internals:: issue_error_noreturn( \ - ::dealii::deal_II_exceptions::internals::abort_on_exception, \ - __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \ -} + { \ + if (!(cond)) \ + ::dealii::deal_II_exceptions::internals:: issue_error_noreturn( \ + ::dealii::deal_II_exceptions::internals::abort_on_exception, \ + __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \ + } # endif /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/ #else #define Assert(cond, exc) \ @@ -1151,20 +1151,20 @@ namespace deal_II_exceptions #ifdef DEBUG # ifdef DEAL_II_HAVE_BUILTIN_EXPECT # define AssertNothrow(cond, exc) \ -{ \ - if (__builtin_expect(!(cond), false)) \ - ::dealii::deal_II_exceptions::internals::issue_error_nothrow( \ - ::dealii::deal_II_exceptions::internals::abort_nothrow_on_exception, \ - __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \ -} + { \ + if (__builtin_expect(!(cond), false)) \ + ::dealii::deal_II_exceptions::internals::issue_error_nothrow( \ + ::dealii::deal_II_exceptions::internals::abort_nothrow_on_exception, \ + __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \ + } # else /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/ # define AssertNothrow(cond, exc) \ -{ \ - if (!(cond)) \ - ::dealii::deal_II_exceptions::internals::issue_error_nothrow( \ - ::dealii::deal_II_exceptions::internals::abort_nothrow_on_exception, \ - __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \ -} + { \ + if (!(cond)) \ + ::dealii::deal_II_exceptions::internals::issue_error_nothrow( \ + ::dealii::deal_II_exceptions::internals::abort_nothrow_on_exception, \ + __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \ + } # endif /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/ #else #define AssertNothrow(cond, exc) \ @@ -1188,20 +1188,20 @@ namespace deal_II_exceptions */ #ifdef DEAL_II_HAVE_BUILTIN_EXPECT #define AssertThrow(cond, exc) \ -{ \ - if (__builtin_expect(!(cond), false)) \ - ::dealii::deal_II_exceptions::internals:: issue_error_noreturn( \ - ::dealii::deal_II_exceptions::internals::throw_on_exception, \ - __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \ -} + { \ + if (__builtin_expect(!(cond), false)) \ + ::dealii::deal_II_exceptions::internals:: issue_error_noreturn( \ + ::dealii::deal_II_exceptions::internals::throw_on_exception, \ + __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \ + } #else /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/ #define AssertThrow(cond, exc) \ -{ \ - if (!(cond)) \ - ::dealii::deal_II_exceptions::internals::issue_error_noreturn( \ - ::dealii::deal_II_exceptions::internals::throw_on_exception, \ - __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \ -} + { \ + if (!(cond)) \ + ::dealii::deal_II_exceptions::internals::issue_error_noreturn( \ + ::dealii::deal_II_exceptions::internals::throw_on_exception, \ + __FILE__, __LINE__, __PRETTY_FUNCTION__, #cond, #exc, exc); \ + } #endif /*ifdef DEAL_II_HAVE_BUILTIN_EXPECT*/ /** @@ -1215,7 +1215,7 @@ namespace deal_II_exceptions * @author Guido Kanschat 2007 */ #define AssertDimension(dim1,dim2) \ -Assert((dim1) == (dim2), dealii::ExcDimensionMismatch((dim1),(dim2))) + Assert((dim1) == (dim2), dealii::ExcDimensionMismatch((dim1),(dim2))) /** @@ -1225,9 +1225,9 @@ Assert((dim1) == (dim2), dealii::ExcDimensionMismatch((dim1),(dim2))) * @ingroup Exceptions * @author Guido Kanschat 2010 */ -#define AssertVectorVectorDimension(vec,dim1,dim2) \ -AssertDimension((vec).size(), (dim1)); \ -for (unsigned int i=0;i::type)>::type>((index),0,(range))) + Assert((index) < (range), \ + dealii::ExcIndexRangeType::type)>::type>((index),0,(range))) /** * An assertion that checks whether a number is finite or not. We explicitly @@ -1266,8 +1266,8 @@ void(typename std::common_type(number))) + Assert(dealii::numbers::is_finite(number), \ + dealii::ExcNumberNotFinite(std::complex(number))) #ifdef DEAL_II_WITH_MPI /** @@ -1281,7 +1281,7 @@ dealii::ExcNumberNotFinite(std::complex(number))) * @author David Wells, 2016 */ #define AssertThrowMPI(error_code) \ -AssertThrow(error_code == MPI_SUCCESS, dealii::ExcMPI(error_code)) + AssertThrow(error_code == MPI_SUCCESS, dealii::ExcMPI(error_code)) #else #define AssertThrowMPI(error_code) {} #endif // DEAL_II_WITH_MPI -- 2.39.5