DOLFIN
DOLFIN C++ interface
dolfin
function
MultiMeshCoefficientAssigner.h
1
// Copyright (C) 2016 Anders Logg
2
//
3
// This file is part of DOLFIN.
4
//
5
// DOLFIN is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU Lesser General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// DOLFIN is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU Lesser General Public License for more details.
14
//
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
17
//
18
// First added: 2015-11-05
19
// Last changed: 2016-03-02
20
21
#ifndef __MULTIMESH_COEFFICIENT_ASSIGNER_H
22
#define __MULTIMESH_COEFFICIENT_ASSIGNER_H
23
24
#include <cstddef>
25
#include <memory>
26
27
namespace
dolfin
28
{
29
30
class
MultiMeshForm;
31
class
GenericFunction;
32
class
MultiMeshFunction;
33
47
48
class
MultiMeshCoefficientAssigner
49
{
50
public
:
51
53
MultiMeshCoefficientAssigner
(
MultiMeshForm
& form, std::size_t number);
54
56
~MultiMeshCoefficientAssigner
();
57
59
void
operator=
(std::shared_ptr<const GenericFunction> coefficient);
60
62
void
operator=
(std::shared_ptr<const MultiMeshFunction> coefficient);
63
64
private
:
65
66
// The multimesh form
67
MultiMeshForm
& _form;
68
69
// The number of the coefficient
70
std::size_t _number;
71
72
};
73
74
}
75
76
#endif
dolfin::MultiMeshCoefficientAssigner::~MultiMeshCoefficientAssigner
~MultiMeshCoefficientAssigner()
Destructor.
Definition:
MultiMeshCoefficientAssigner.cpp:40
dolfin::MultiMeshCoefficientAssigner::operator=
void operator=(std::shared_ptr< const GenericFunction > coefficient)
Assign coefficient from GenericFunction.
Definition:
MultiMeshCoefficientAssigner.cpp:46
dolfin::MultiMeshCoefficientAssigner::MultiMeshCoefficientAssigner
MultiMeshCoefficientAssigner(MultiMeshForm &form, std::size_t number)
Create multimesh coefficient assigner for coefficient with given number.
Definition:
MultiMeshCoefficientAssigner.cpp:34
dolfin::MultiMeshForm
Definition:
MultiMeshForm.h:40
dolfin::MultiMeshCoefficientAssigner
Definition:
MultiMeshCoefficientAssigner.h:48
dolfin
Definition:
adapt.h:29
Generated by
1.8.17