Flow123d  DF_patch_fe_darcy_complete-579fe1e
patch_fe_values.cc
Go to the documentation of this file.
1 /*!
2  *
3  * Copyright (C) 2015 Technical University of Liberec. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License version 3 as published by the
7  * Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12  *
13  *
14  * @file patch_fe_values.cc
15  * @brief Class FEValues calculates finite element data on the actual
16  * cells such as shape function values, gradients, Jacobian of
17  * the mapping from the reference cell etc.
18  * @author Jan Stebel, David Flanderka
19  */
20 
21 #include "fem/patch_fe_values.hh"
23 #include "fem/op_accessors_impl.hh"
24 #include "fem/mapping_p1.hh"
25 #include "fem/fe_system.hh"
26 #include "fem/fe_values_map.hh"
27 
28 
29 
30 template<unsigned int spacedim>
31 template<unsigned int dim>
33  ASSERT((dim>=0) && (dim<=2))(dim).error("Dimension must be 0, 1, 2.");
34  return fe_[Dim<dim+1>{}]->n_dofs();
35 }
36 
37 template<>
38 template<>
39 unsigned int PatchFEValues<3>::n_dofs_high<3>() const {
40  return fe_[Dim<3>{}]->n_dofs();
41 }
42 
43 
44 
45 
46 // explicit instantiation
47 template unsigned int PatchFEValues<3>::n_dofs_high<1>() const;
48 template unsigned int PatchFEValues<3>::n_dofs_high<2>() const;
49 template unsigned int PatchFEValues<3>::n_dofs_high<3>() const;
50 
51 template class PatchFEValues<3>;
#define ASSERT(expr)
Definition: asserts.hh:351
MixedPtr< FiniteElement > fe_
Mixed of shared pointers of FiniteElement object.
unsigned int n_dofs_high() const
Returns the number of shape functions og higher dim element.
Class FESystem for compound finite elements.
Class MappingP1 implements the affine transformation of the unit cell onto the actual cell.
Class FEValues calculates finite element data on the actual cells such as shape function values,...
Store finite element data on the actual patch such as shape function values, gradients,...
Definition: mixed.hh:25