]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove obsolete exceptions
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Apr 2013 14:42:48 +0000 (14:42 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Apr 2013 14:42:48 +0000 (14:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@29299 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/exceptions.h
deal.II/source/base/function_parser.cc

index b7dba6957633efadba5f97440f22943811c46a47..613252055e5176ca6fd897ac7f8b57436796f80b 100644 (file)
@@ -75,7 +75,7 @@ public:
    * well as the violated condition and the name of the exception as
    * a char pointer.
    */
-  void set_fields (const char *f,
+  void set_fields (const char *file,
                    const int   line,
                    const char *function,
                    const char *cond,
@@ -786,17 +786,9 @@ namespace StandardExceptions
                   << arg1);
 
   /**
-   * Exception used when running into functions that are only supported
-   * in a backward compatibility mode.
+   * Parallel vectors with ghost elements are read-only vectors.
    */
-  DeclException1 (ExcCompatibility,
-                  char *,
-                  << "You are using a backward compatibility feature\n"
-                  << "that you have disabled during configuration of\n"
-                  << "the library by the --disable-compat="
-                  << arg1 << " switch. You should either use an\n"
-                  << "alternative function, or configure again without\n"
-                  << "this switch and recompile the library.");
+  DeclException0 (ExcGhostsPresent);
 
   /**
    * Some of our numerical classes allow for setting alll entries to
@@ -808,53 +800,25 @@ namespace StandardExceptions
   DeclException0 (ExcScalarAssignmentOnlyForZeroValue);
 
   /**
-   * This function requires the LAPACK library. Please reconfigure using
-   * the option <tt>--with-lapack</tt> and check if it is actually included.
+   * This function requires support for the LAPACK library.
    */
   DeclException0 (ExcNeedsLAPACK);
 
   /**
-   * This function requires the UMFPack library. Please reconfigure
-   * using the option <tt>--with-umfpack</tt> and check if it is actually
-   * included.
-   */
-  DeclException0 (ExcNeedsUMFPACK);
-
-  /**
-   * This function requires the METIS library. Please reconfigure using
-   * the option <tt>--with-metis</tt> and check if it is actually included.
-   */
-  DeclException0 (ExcNeedsMETIS);
-
-  /**
-   * This function requires the Petsc library. Please reconfigure using
-   * the option <tt>--with-petsc</tt> and check if it is actually included.
-   */
-  DeclException0 (ExcNeedsPETSC);
-
-  /**
-   * This function requires the NetCDF library, which is neither in your
-   * standard path nor configured with --with-netcdf.
+   * This function requires support for the NetCDF library.
    */
   DeclException0 (ExcNeedsNetCDF);
 
   /**
-   * Parallel vectors with ghost elements are read-only vectors.
+   * This function requires support for the FunctionParser library.
    */
-  DeclException0 (ExcGhostsPresent);
+  DeclException0 (ExcNeedsFunctionparser);
 
-  /**
-   * A configuration option disabled this feature. In order to use it,
-   * you must reconfigure and recompile the libraries.
-   */
-  DeclException1 (ExcDisabled, char *,
-                  << "This feature was disabled by the "
-                  "configuration option --disable-"
-                  << arg1 << ". Reconfigure to use it!");
 
 //@}
 } /*namespace StandardExceptions*/
 
+
 /**
  * Special assertion for dimension mismatch.
  *
@@ -868,6 +832,7 @@ namespace StandardExceptions
 #define AssertDimension(dim1,dim2) Assert((dim1) == (dim2),       \
                                           ExcDimensionMismatch((dim1),(dim2)))
 
+
 /**
  * Special assertion, testing whether <tt>vec</tt> has size
  * <tt>dim1</tt>, and each entry of the vector has the
@@ -879,6 +844,7 @@ namespace StandardExceptions
 #define AssertVectorVectorDimension(vec,dim1,dim2) AssertDimension((vec).size(), (dim1)) \
   for (unsigned int i=0;i<dim1;++i) { AssertDimension((vec)[i].size(), (dim2)); }
 
+
 /**
  * Special assertion for index range of nonnegative indices.
  *
@@ -896,31 +862,6 @@ namespace StandardExceptions
 #define AssertIndexRange(index,range) Assert((index) < (range), \
                                              ExcIndexRange((index),0,(range)))
 
-
-/*
- * Unfortunately, the following must be repeated for each library,
- * since we cannot have ifdefs in macros.
- */
-
-/**
- * Assert support for the LAPACK library
- */
-#ifdef DEAL_II_WITH_LAPACK
-#  define AssertLAPACK {}
-#else
-#  define AssertLAPACK Assert(false, ExcNeedsLAPACK())
-#endif
-
-/**
- * Assert support for the UMFPACK library
- */
-#ifdef DEAL_II_WITH_UMFPACK
-#  define AssertUMFPACK {}
-#else
-#  define AssertUMFPACK Assert(false, ExcNeedsUMFPACK())
-#endif
-
-
 using namespace StandardExceptions;
 
 DEAL_II_NAMESPACE_CLOSE
index 72a1717f9aa28d051a2cd4a6803ad74e57bf4a13..8c6095384e3ca6136411bed6ea279dd04ec5e372 100644 (file)
@@ -280,7 +280,7 @@ FunctionParser<dim>::initialize(const std::string &,
                                 const bool,
                                 const bool)
 {
-  Assert(false, ExcDisabled("parser"));
+  Assert(false, ExcNeedsFunctionparser());
 }
 
 
@@ -293,7 +293,7 @@ FunctionParser<dim>::initialize(const std::string &,
                                 const bool,
                                 const bool)
 {
-  Assert(false, ExcDisabled("parser"));
+  Assert(false, ExcNeedsFunctionparser());
 }
 
 
@@ -305,7 +305,7 @@ FunctionParser<dim>::initialize(const std::string &,
                                 const bool,
                                 const bool)
 {
-  Assert(false, ExcDisabled("parser"));
+  Assert(false, ExcNeedsFunctionparser());
 }
 
 
@@ -318,7 +318,7 @@ FunctionParser<dim>::initialize(const std::string &,
                                 const bool,
                                 const bool)
 {
-  Assert(false, ExcDisabled("parser"));
+  Assert(false, ExcNeedsFunctionparser());
 }
 
 
@@ -326,7 +326,7 @@ template <int dim>
 double FunctionParser<dim>::value (
   const Point<dim> &, unsigned int) const
 {
-  Assert(false, ExcDisabled("parser"));
+  Assert(false, ExcNeedsFunctionparser());
   return 0.;
 }
 
@@ -335,7 +335,7 @@ template <int dim>
 void FunctionParser<dim>::vector_value (
   const Point<dim> &, Vector<double> &) const
 {
-  Assert(false, ExcDisabled("parser"));
+  Assert(false, ExcNeedsFunctionparser());
 }
 
 

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.