Reference documentation for deal.II version Git 7026f387cc 2019-10-15 14:19:01 -0400
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
local_integrator.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2006 - 2018 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 
17 #ifndef dealii_mesh_worker_local_integrator_h
18 #define dealii_mesh_worker_local_integrator_h
19 
20 #include <deal.II/base/config.h>
21 
22 #include <deal.II/base/subscriptor.h>
23 
24 #include <functional>
25 #include <string>
26 #include <vector>
27 
28 DEAL_II_NAMESPACE_OPEN
29 
30 namespace MeshWorker
31 {
32  // Forward declarations
33 #ifndef DOXYGEN
34  template <int dim, int spacedim, typename number>
35  class DoFInfo;
36  template <int dim, int spacedim>
37  class IntegrationInfo;
38 #endif
39 
57  template <int dim, int spacedim = dim, typename number = double>
59  {
60  public:
66 
71 
75  virtual ~LocalIntegrator() override = default;
76 
81  virtual void
83  IntegrationInfo<dim, spacedim> &info) const;
88  virtual void
90  IntegrationInfo<dim, spacedim> &info) const;
95  virtual void
99  IntegrationInfo<dim, spacedim> &info2) const;
100 
105  bool use_cell;
106 
112 
117  bool use_face;
118 
127  std::vector<std::string> input_vector_names;
128 
137  std::vector<std::string> output_names;
138 
148  };
149 } // namespace MeshWorker
150 
151 
152 
153 DEAL_II_NAMESPACE_CLOSE
154 
155 #endif
virtual void cell(DoFInfo< dim, spacedim, number > &dinfo, IntegrationInfo< dim, spacedim > &info) const
Definition: mesh_worker.cc:81
static ::ExceptionBase & ExcPureFunction()
#define DeclException0(Exception0)
Definition: exceptions.h:473
std::vector< std::string > output_names
virtual ~LocalIntegrator() override=default
std::vector< std::string > input_vector_names
virtual void face(DoFInfo< dim, spacedim, number > &dinfo1, DoFInfo< dim, spacedim, number > &dinfo2, IntegrationInfo< dim, spacedim > &info1, IntegrationInfo< dim, spacedim > &info2) const
Definition: mesh_worker.cc:101
virtual void boundary(DoFInfo< dim, spacedim, number > &dinfo, IntegrationInfo< dim, spacedim > &info) const
Definition: mesh_worker.cc:91