DOLFIN
DOLFIN C++ interface
assemble_local.h
1 // Copyright (C) 2015 Tormod Landet
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-09-22
19 //
20 // This file adds an easy to use wrapper for the LocalAssembler::assemble
21 // routine that can used from Python
22 
23 #ifndef __ASSEMBLE_LOCAL_H
24 #define __ASSEMBLE_LOCAL_H
25 
26 #include <Eigen/Dense>
27 #include <vector>
28 
29 namespace dolfin
30 {
31  class Form;
32  class Cell;
33 
35  void assemble_local(Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor>& A_e,
36  const Form& a, const Cell& cell);
37 
40  void assemble_local(const Form& a,
41  const Cell& cell,
42  std::vector<double>& tensor);
43 }
44 
45 #endif
void assemble_local(Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > &A_e, const Form &a, const Cell &cell)
Assemble form to local tensor on a cell (Eigen version for pybind11)
Definition: assemble_local.cpp:85
Definition: adapt.h:29