Amandus: Simulations based on multilevel Schwarz methods
boundary_values.h
Go to the documentation of this file.
1 /**********************************************************************
2  * Copyright (C) 2011 - 2014 by the authors
3  * Distributed under the MIT License
4  *
5  * See the files AUTHORS and LICENSE in the project root directory
6  **********************************************************************/
7 #ifndef __advectiondiffusion_boundaryvalues_h
8 #define __advectiondiffusion_boundaryvalues_h
9 
10 using namespace dealii;
11 using namespace LocalIntegrators;
12 using namespace MeshWorker;
13 
21 template <int dim>
22 class BoundaryValues : public Function<dim>
23 {
24 public:
26  virtual void value_list(const std::vector<Point<dim>>& points, std::vector<double>& values,
27  const unsigned int component = 0) const;
28 };
29 template <int dim>
30 void
31 BoundaryValues<dim>::value_list(const std::vector<Point<dim>>& points, std::vector<double>& values,
32  const unsigned int) const
33 {
34  Assert(values.size() == points.size(), ExcDimensionMismatch(values.size(), points.size()));
35  for (unsigned int i = 0; i < values.size(); ++i)
36  {
37  values[i] = 1.;
38  }
39 }
40 
41 #endif
Definition: boundary_values.h:22
virtual void value_list(const std::vector< Point< dim >> &points, std::vector< double > &values, const unsigned int component=0) const
Definition: boundary_values.h:31
BoundaryValues()
Definition: boundary_values.h:25