Reference documentation for deal.II version 9.1.1
\(\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  template <int dim, int spacedim, typename number>
33  class DoFInfo;
34  template <int dim, int spacedim>
35  class IntegrationInfo;
36 
54  template <int dim, int spacedim = dim, typename number = double>
56  {
57  public:
63 
68 
72  virtual ~LocalIntegrator() override = default;
73 
78  virtual void
80  IntegrationInfo<dim, spacedim> &info) const;
85  virtual void
87  IntegrationInfo<dim, spacedim> &info) const;
92  virtual void
96  IntegrationInfo<dim, spacedim> &info2) const;
97 
102  bool use_cell;
103 
109 
114  bool use_face;
115 
124  std::vector<std::string> input_vector_names;
125 
134  std::vector<std::string> output_names;
135 
145  };
146 } // namespace MeshWorker
147 
148 
149 
150 DEAL_II_NAMESPACE_CLOSE
151 
152 #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