DOLFIN
DOLFIN C++ interface
Toggle main menu visibility
Loading...
Searching...
No Matches
dolfin
fem
AssemblerBase.h
1
// Copyright (C) 2007-2009 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
// Modified by Garth N. Wells, 2007-2008.
19
// Modified by Ola Skavhaug, 2008.
20
//
21
// First added: 2007-01-17
22
// Last changed: 2013-09-19
23
24
#ifndef __ASSEMBLER_BASE_H
25
#define __ASSEMBLER_BASE_H
26
27
#include <string>
28
#include <utility>
29
#include <vector>
30
#include <dolfin/common/types.h>
31
#include <dolfin/log/log.h>
32
33
namespace
dolfin
34
{
35
36
// Forward declarations
37
class
GenericTensor
;
38
class
Form
;
39
41
class
AssemblerBase
42
{
43
public
:
44
46
AssemblerBase
() :
add_values
(false),
finalize_tensor
(true),
47
keep_diagonal
(false) {}
48
53
bool
add_values
;
54
60
bool
finalize_tensor
;
61
67
bool
keep_diagonal
;
68
74
void
init_global_tensor
(
GenericTensor
& A,
const
Form
& a);
75
76
protected
:
77
79
static
void
check
(
const
Form
& a);
80
82
static
std::string
progress_message
(std::size_t rank,
83
std::string integral_type);
84
85
};
86
87
}
88
89
#endif
dolfin::AssemblerBase::finalize_tensor
bool finalize_tensor
Definition
AssemblerBase.h:60
dolfin::AssemblerBase::check
static void check(const Form &a)
Check form.
Definition
AssemblerBase.cpp:198
dolfin::AssemblerBase::init_global_tensor
void init_global_tensor(GenericTensor &A, const Form &a)
Definition
AssemblerBase.cpp:48
dolfin::AssemblerBase::AssemblerBase
AssemblerBase()
Constructor.
Definition
AssemblerBase.h:46
dolfin::AssemblerBase::progress_message
static std::string progress_message(std::size_t rank, std::string integral_type)
Pretty-printing for progress bar.
Definition
AssemblerBase.cpp:314
dolfin::AssemblerBase::keep_diagonal
bool keep_diagonal
Definition
AssemblerBase.h:67
dolfin::AssemblerBase::add_values
bool add_values
Definition
AssemblerBase.h:53
dolfin::Form
Base class for UFC code generated by FFC for DOLFIN with option -l.
Definition
Form.h:86
dolfin::GenericTensor
A common interface for arbitrary rank tensors.
Definition
GenericTensor.h:49
dolfin
Definition
adapt.h:30
Generated by
1.17.0