DEAL_II_NAMESPACE_OPEN
+namespace VectorTools
+{
+ class ExcPointNotAvailableHere;
+}
+
namespace Functions
{
* @ref GlossGhostCell).
* If the cell is artificial, we have no access to the solution there and
* functions that evaluate the solution at such a point will trigger an
- * exception of type FEFieldFunction::ExcPointNotAvailableHere. The same
+ * exception of type VectorTools::ExcPointNotAvailableHere. The same
* kind of exception will also be produced if the cell is a ghost cell: On
* such cells, one could in principle evaluate the solution, but it becomes
* easier if we do not allow to do so because then there is exactly one
* {
* solution_at_origin = solution_function.value (origin);
* }
- * catch (const typename Functions::FEFieldFunction<dim,DoFHandler<dim>,TrilinosWrappers::MPI::Vector>::ExcPointNotAvailableHere &)
+ * catch (const VectorTools::ExcPointNotAvailableHere &)
* {
* point_found = false;
* }
* ...do something...;
* @endcode
*
- * @note To C++,
- * <code>Functions::FEFieldFunction<dim>::ExcPointNotAvailableHere</code>
- * and <code>Functions::FEFieldFunction<dim,DoFHandler<dim>,
- * TrilinosWrappers::MPI::Vector>::ExcPointNotAvailableHere</code> are
- * distinct types. You need to make sure that the type of the exception you
- * catch matches the type of the object that throws it, as shown in the
- * example above.
- *
* @ingroup functions
* @author Luca Heltai, 2006, Markus Buerg, 2012, Wolfgang Bangerth, 2013
*/
std::vector<std::vector<unsigned int> > &maps) const;
/**
- * Exception
+ * @deprecated Use VectorTools::ExcPointNotAvailableHere instead.
*/
- DeclException0 (ExcPointNotAvailableHere);
+ typedef VectorTools::ExcPointNotAvailableHere ExcPointNotAvailableHere DEAL_II_DEPRECATED;
private:
/**
#include <deal.II/hp/q_collection.h>
#include <deal.II/fe/fe_values.h>
#include <deal.II/numerics/fe_field_function.h>
+#include <deal.II/numerics/vector_tools.h>
DEAL_II_NAMESPACE_OPEN
const std::pair<typename dealii::internal::ActiveCellIterator<dim, dim, DH>::type, Point<dim> > my_pair
= GridTools::find_active_cell_around_point (mapping, *dh, p);
AssertThrow (my_pair.first->is_locally_owned(),
- ExcPointNotAvailableHere());
+ VectorTools::ExcPointNotAvailableHere());
cell = my_pair.first;
qp = my_pair.second;
const std::pair<typename dealii::internal::ActiveCellIterator<dim, dim, DH>::type, Point<dim> > my_pair
= GridTools::find_active_cell_around_point (mapping, *dh, p);
AssertThrow (my_pair.first->is_locally_owned(),
- ExcPointNotAvailableHere());
+ VectorTools::ExcPointNotAvailableHere());
cell = my_pair.first;
qp = my_pair.second;
const std::pair<typename dealii::internal::ActiveCellIterator<dim, dim, DH>::type, Point<dim> > my_pair
= GridTools::find_active_cell_around_point (mapping, *dh, p);
AssertThrow (my_pair.first->is_locally_owned(),
- ExcPointNotAvailableHere());
+ VectorTools::ExcPointNotAvailableHere());
cell = my_pair.first;
qp = my_pair.second;
my_pair = GridTools::find_active_cell_around_point
(mapping, *dh, points[0]);
AssertThrow (my_pair.first->is_locally_owned(),
- ExcPointNotAvailableHere());
+ VectorTools::ExcPointNotAvailableHere());
cell = my_pair.first;
qp = my_pair.second;
const std::pair<typename dealii::internal::ActiveCellIterator<dim, dim, DH>::type, Point<dim> > my_pair
= GridTools::find_active_cell_around_point (mapping, *dh, points[first_outside]);
AssertThrow (my_pair.first->is_locally_owned(),
- ExcPointNotAvailableHere());
+ VectorTools::ExcPointNotAvailableHere());
cells.push_back(my_pair.first);
qpoints.push_back(std::vector<Point<dim> >(1, my_pair.second));