From: Wolfgang Bangerth Date: Wed, 31 Jan 2024 03:21:28 +0000 (-0700) Subject: Convert a few more places of Assert(false, dealii::ExcNotImplemented()); X-Git-Tag: relicensing~90^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16572%2Fhead;p=dealii.git Convert a few more places of Assert(false, dealii::ExcNotImplemented()); --- diff --git a/include/deal.II/cgal/point_conversion.h b/include/deal.II/cgal/point_conversion.h index 9ccf20f516..fb59e0d032 100644 --- a/include/deal.II/cgal/point_conversion.h +++ b/include/deal.II/cgal/point_conversion.h @@ -72,7 +72,7 @@ namespace CGALWrappers else if constexpr (cdim == 3) return CGALPointType(p[0], dim > 1 ? p[1] : 0, dim > 2 ? p[2] : 0); else - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); return CGALPointType(); } @@ -93,7 +93,7 @@ namespace CGALWrappers cdim > 1 ? CGAL::to_double(p.y()) : 0, cdim > 2 ? CGAL::to_double(p.z()) : 0); else - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } } // namespace CGALWrappers diff --git a/include/deal.II/lac/scalapack.templates.h b/include/deal.II/lac/scalapack.templates.h index d568e1e4eb..fa592e9d56 100644 --- a/include/deal.II/lac/scalapack.templates.h +++ b/include/deal.II/lac/scalapack.templates.h @@ -946,7 +946,7 @@ Cgerv2d(int /*context*/, int /*rsrc*/, int /*csrc*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -972,7 +972,7 @@ Cgesd2d(int /*context*/, int /*rdest*/, int /*cdest*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -998,7 +998,7 @@ ppotrf(const char * /*UPLO*/, const int * /*DESCA*/, int * /*INFO*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1037,7 +1037,7 @@ pgetrf(const int * /*m*/, int * /*ipiv*/, int * /*INFO*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1077,7 +1077,7 @@ ppotri(const char * /*UPLO*/, const int * /*DESCA*/, int * /*INFO*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1119,7 +1119,7 @@ pgetri(const int * /*N*/, int * /*liwork*/, int * /*info*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1165,7 +1165,7 @@ ptrtri(const char * /*UPLO*/, const int * /*DESCA*/, int * /*INFO*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1210,7 +1210,7 @@ ppocon(const char * /*uplo*/, const int * /*LIWORK*/, int * /*INFO*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1263,7 +1263,7 @@ plansy(const char * /*norm*/, const int * /*DESCA*/, number * /*work*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline double @@ -1308,7 +1308,7 @@ pgesv(const int * /*n*/, const int * /*descb*/, int * /*info*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1368,7 +1368,7 @@ pgemm(const char * /*transa*/, const int * /*JC*/, const int * /*DESCC*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1467,7 +1467,7 @@ plange(const char * /*norm*/, const int * /*desca*/, number * /*work*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline double @@ -1515,7 +1515,7 @@ psyev(const char * /*jobz*/, const int * /*lwork*/, int * /*info*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1575,7 +1575,7 @@ placpy(const char * /*uplo*/, const int * /*jb*/, const int * /*descb*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1625,7 +1625,7 @@ pgemr2d(const int * /*m*/, const int * /*descb*/, const int * /*ictxt*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1665,7 +1665,7 @@ template inline void plamch(const int * /*ictxt*/, const char * /*cmach*/, number & /*val*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1713,7 +1713,7 @@ psyevx(const char * /*jobz*/, number * /*gap*/, int * /*info*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1864,7 +1864,7 @@ pgesvd(const char * /*jobu*/, int * /*lwork*/, int * /*info*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -1974,7 +1974,7 @@ pgels(const char * /*trans*/, int * /*lwork*/, int * /*info*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -2036,7 +2036,7 @@ pgeadd(const char * /*transa*/, const int * /*JC*/, const int * /*DESCC*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -2091,7 +2091,7 @@ ptran(const int * /*m*/, const int * /*JC*/, const int * /*DESCC*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void @@ -2156,7 +2156,7 @@ psyevr(const char * /*jobz*/, int * /*liwork*/, int * /*info*/) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); } inline void diff --git a/source/base/quadrature_lib.cc b/source/base/quadrature_lib.cc index 4b56f42f12..92dc5ea6ba 100644 --- a/source/base/quadrature_lib.cc +++ b/source/base/quadrature_lib.cc @@ -319,7 +319,7 @@ namespace internal break; default: - Assert(false, dealii::StandardExceptions::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); break; } return weights; diff --git a/source/lac/scalapack.cc b/source/lac/scalapack.cc index c9954a8438..3430a81256 100644 --- a/source/lac/scalapack.cc +++ b/source/lac/scalapack.cc @@ -39,7 +39,7 @@ template inline hid_t hdf5_type_id(const number *) { - Assert(false, dealii::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); // don't know what to put here; it does not matter return -1; } diff --git a/source/multigrid/mg_transfer_global_coarsening.cc b/source/multigrid/mg_transfer_global_coarsening.cc index 0c3fe87bf7..ba7734b0ee 100644 --- a/source/multigrid/mg_transfer_global_coarsening.cc +++ b/source/multigrid/mg_transfer_global_coarsening.cc @@ -33,7 +33,7 @@ namespace MGTransferGlobalCoarseningTools case PolynomialCoarseningSequenceType::go_to_one: return 1u; default: - Assert(false, StandardExceptions::ExcNotImplemented()); + DEAL_II_NOT_IMPLEMENTED(); return 1u; } }