Loading...
Searching...
No Matches
AssemblerBase.h
// Copyright (C) 2007-2009 Anders Logg
//
// This file is part of DOLFIN.
//
// DOLFIN is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// DOLFIN is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
//
// Modified by Garth N. Wells, 2007-2008.
// Modified by Ola Skavhaug, 2008.
//
// First added: 2007-01-17
// Last changed: 2013-09-19
#ifndef __ASSEMBLER_BASE_H
#define __ASSEMBLER_BASE_H
#include <string>
#include <utility>
#include <vector>
#include <dolfin/common/types.h>
#include <dolfin/log/log.h>
namespace dolfin
{
// Forward declarations
class GenericTensor;
class Form;
class AssemblerBase
{
public:
AssemblerBase() : add_values(false), finalize_tensor(true),
keep_diagonal(false) {}
bool add_values;
bool finalize_tensor;
bool keep_diagonal;
void init_global_tensor(GenericTensor& A, const Form& a);
protected:
static void check(const Form& a);
static std::string progress_message(std::size_t rank,
std::string integral_type);
};
}
#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:202
dolfin::AssemblerBase::init_global_tensor
void init_global_tensor(GenericTensor &A, const Form &a)
Definition AssemblerBase.cpp:49
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:318
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