basis_fem_empty.cc
Go to the documentation of this file.
#include "basis_fem_empty.h"
#include "basis_fem_Pk_lagrange.h"
#include "piola_fem_lagrange.h"
namespace rheolef {
using namespace std;
template<class T>
const Eigen::Matrix<point_basic<T>,Eigen::Dynamic,1> basis_fem_empty<T>::_dummy_hat_node;
template<class T>
basis_fem_empty<T>::basis_fem_empty()
: base(basis_option())
{
base::_sopt.set_continuous(false);
_initialize_cstor_sizes();
base::_name = "empty";
base::_piola_fem.piola_fem<T>::base::operator= (new_macro(piola_fem_lagrange<T>));
}
template<class T>
basis_fem_empty<T>::~basis_fem_empty()
{
}
template<class T>
void
basis_fem_empty<T>::evaluate (
reference_element hat_K,
const point_basic<T>& hat_x,
Eigen::Matrix<T,Eigen::Dynamic,1>& values) const
{
values.resize (0);
}
template<class T>
void
basis_fem_empty<T>::grad_evaluate (
reference_element hat_K,
const point_basic<T>& hat_x,
Eigen::Matrix<point_basic<T>,Eigen::Dynamic,1>& values) const
{
values.resize (0);
}
template<class T>
void
basis_fem_empty<T>::_compute_dofs (
reference_element hat_K,
const Eigen::Matrix<T,Eigen::Dynamic,1>& f_xnod,
Eigen::Matrix<T,Eigen::Dynamic,1>& dof) const
{
dof.resize(0);
}
template<class T>
void
basis_fem_empty<T>::_initialize_cstor_sizes() const
{
basis_fem_Pk_lagrange<T>::initialize_local_first (
size_t(-1),
false,
base::_ndof_on_subgeo,
base::_nnod_on_subgeo,
base::_first_idof_by_dimension,
base::_first_inod_by_dimension);
}
template<class T>
void
basis_fem_empty<T>::_initialize_data(
reference_element hat_K) const
{
}
// instantiation in library:
template class basis_fem_empty<Float>;
} // namespace rheolef
basis_fem_Pk_lagrange.h
basis_fem_empty.h
rheolef::basis_fem_Pk_lagrange::initialize_local_first
static void initialize_local_first(size_type k, bool is_continuous, std::array< std::array< size_type, reference_element::max_variant >, 4 > &ndof_on_subgeo, std::array< std::array< size_type, reference_element::max_variant >, 4 > &nnod_on_subgeo, std::array< std::array< size_type, 5 >, reference_element::max_variant > &first_idof_by_dimension, std::array< std::array< size_type, 5 >, reference_element::max_variant > &first_inod_by_dimension)
Definition: basis_fem_Pk_lagrange.cc:41
rheolef::basis_fem_empty
Definition: basis_fem_empty.h:51
rheolef::basis_fem_empty::~basis_fem_empty
~basis_fem_empty()
Definition: basis_fem_empty.cc:40
rheolef::basis_fem_empty::basis_fem_empty
basis_fem_empty()
Definition: basis_fem_empty.cc:31
rheolef::basis_fem_empty::_initialize_cstor_sizes
void _initialize_cstor_sizes() const
Definition: basis_fem_empty.cc:72
rheolef::basis_fem_empty::_dummy_hat_node
static const Eigen::Matrix< point_basic< T >, Eigen::Dynamic, 1 > _dummy_hat_node
Definition: basis_fem_empty.h:82
rheolef::basis_fem_empty::_compute_dofs
void _compute_dofs(reference_element hat_K, const Eigen::Matrix< T, Eigen::Dynamic, 1 > &f_xnod, Eigen::Matrix< T, Eigen::Dynamic, 1 > &dof) const
Definition: basis_fem_empty.cc:63
rheolef::basis_fem_empty::evaluate
void evaluate(reference_element hat_K, const point_basic< T > &hat_x, Eigen::Matrix< T, Eigen::Dynamic, 1 > &values) const
Definition: basis_fem_empty.cc:45
rheolef::basis_fem_empty::grad_evaluate
void grad_evaluate(reference_element hat_K, const point_basic< T > &hat_x, Eigen::Matrix< point_basic< T >, Eigen::Dynamic, 1 > &values) const
Definition: basis_fem_empty.cc:54
rheolef::basis_fem_empty::_initialize_data
void _initialize_data(reference_element hat_K) const
Definition: basis_fem_empty.cc:84
rheolef::basis_option
see the basis_option page for the full documentation
Definition: basis_option.h:93
rheolef::basis_option::set_continuous
void set_continuous(bool c=true)
Definition: basis_option.h:269
rheolef::basis_rep
Definition: basis.h:209
rheolef::basis_rep::_piola_fem
piola_fem< T > _piola_fem
Definition: basis.h:394
rheolef::basis_rep::_sopt
basis_option _sopt
Definition: basis.h:393
rheolef::basis_rep::_name
std::string _name
Definition: basis.h:392
rheolef::piola_fem_lagrange
Definition: piola_fem_lagrange.h:65
rheolef::point_basic
Definition: point.h:87
rheolef::reference_element
see the reference_element page for the full documentation
Definition: reference_element.h:66
T
Expr1::float_type T
Definition: field_expr.h:261
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
piola_fem_lagrange.h