Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
local_integrator.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2006 - 2019 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 
23 
24 #include <functional>
25 #include <string>
26 #include <vector>
27 
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 
154 
155 #endif
MeshWorker::LocalIntegrator::~LocalIntegrator
virtual ~LocalIntegrator() override=default
MeshWorker::LocalIntegrator::boundary
virtual void boundary(DoFInfo< dim, spacedim, number > &dinfo, IntegrationInfo< dim, spacedim > &info) const
Definition: mesh_worker.cc:91
MeshWorker
Definition: assemble_flags.h:30
MeshWorker::LocalIntegrator::use_cell
bool use_cell
Definition: local_integrator.h:105
MeshWorker::IntegrationInfo
Definition: integration_info.h:78
MeshWorker::LocalIntegrator::use_face
bool use_face
Definition: local_integrator.h:117
MeshWorker::LocalIntegrator::cell
virtual void cell(DoFInfo< dim, spacedim, number > &dinfo, IntegrationInfo< dim, spacedim > &info) const
Definition: mesh_worker.cc:81
MeshWorker::LocalIntegrator::ExcPureFunction
static ::ExceptionBase & ExcPureFunction()
Subscriptor
Definition: subscriptor.h:62
MeshWorker::LocalIntegrator::use_boundary
bool use_boundary
Definition: local_integrator.h:111
MeshWorker::LocalIntegrator
Definition: local_integrator.h:58
subscriptor.h
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
MeshWorker::LocalIntegrator::output_names
std::vector< std::string > output_names
Definition: local_integrator.h:137
MeshWorker::LocalIntegrator::face
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
MeshWorker::LocalIntegrator::input_vector_names
std::vector< std::string > input_vector_names
Definition: local_integrator.h:127
DeclException0
#define DeclException0(Exception0)
Definition: exceptions.h:473
config.h
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
MeshWorker::DoFInfo
Definition: dof_info.h:76
MeshWorker::LocalIntegrator::LocalIntegrator
LocalIntegrator()
Definition: mesh_worker.cc:61