Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
deal.II
meshworker
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
>
55
class
LocalIntegrator
:
public
Subscriptor
56
{
57
public
:
62
LocalIntegrator
();
63
67
LocalIntegrator
(
bool
use_cell
,
bool
use_boundary
,
bool
use_face
);
68
72
virtual
~LocalIntegrator
()
override
=
default
;
73
78
virtual
void
79
cell
(
DoFInfo<dim, spacedim, number>
&dinfo,
80
IntegrationInfo<dim, spacedim>
&info)
const
;
85
virtual
void
86
boundary
(
DoFInfo<dim, spacedim, number>
&dinfo,
87
IntegrationInfo<dim, spacedim>
&info)
const
;
92
virtual
void
93
face
(
DoFInfo<dim, spacedim, number>
&dinfo1,
94
DoFInfo<dim, spacedim, number>
&dinfo2,
95
IntegrationInfo<dim, spacedim>
&info1,
96
IntegrationInfo<dim, spacedim>
&info2)
const
;
97
102
bool
use_cell
;
103
108
bool
use_boundary
;
109
114
bool
use_face
;
115
124
std::vector<std::string>
input_vector_names
;
125
134
std::vector<std::string>
output_names
;
135
144
DeclException0
(
ExcPureFunction
);
145
};
146
}
// namespace MeshWorker
147
148
149
150
DEAL_II_NAMESPACE_CLOSE
151
152
#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:102
MeshWorker::IntegrationInfo
Definition:
integration_info.h:78
MeshWorker::LocalIntegrator::use_face
bool use_face
Definition:
local_integrator.h:114
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:108
MeshWorker::LocalIntegrator
Definition:
local_integrator.h:55
MeshWorker::LocalIntegrator::output_names
std::vector< std::string > output_names
Definition:
local_integrator.h:134
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:124
DeclException0
#define DeclException0(Exception0)
Definition:
exceptions.h:473
MeshWorker::DoFInfo
Definition:
dof_info.h:74
MeshWorker::LocalIntegrator::LocalIntegrator
LocalIntegrator()
Definition:
mesh_worker.cc:61
Generated by
1.8.16