21 #include <boost/tokenizer.hpp> 22 #include "boost/lexical_cast.hpp" 29 : dim(isec->n_points() - 1),
30 master(ele_master), slave(ele_slave),
31 master_map(master->dim(), dim), slave_map(slave->dim(), dim),
32 master_shift(master->dim()), slave_shift(slave->dim())
37 cout <<
"Exception: master->dim() > slave->dim()" << endl;
45 for (
unsigned int i = 1; i < (
dim + 1); ++i) {
63 {
return slave->dim();}
71 vec1=arma::vec(coord_el1);
75 vec2=arma::vec(coord_el2);
82 OLD_ASSERT(( point.n_elem ==
dim ),
"Map to slave: point.n_elem(%d) != dim(%d) \n", point.n_elem,
dim);
83 int result_dim =
master->dim();
84 arma::vec result(result_dim+1);
92 OLD_ASSERT(( point.n_elem ==
dim ),
"Map to slave: point.n_elem(%d) != dim(%d) \n", point.n_elem,
dim);
93 int result_dim =
slave->dim();
94 arma::vec result(result_dim+1);
102 static const double factorial[4] = {1.0, 1.0, 2.0, 6.0};
arma::vec map_to_master(const arma::vec &point) const
Intersection(const ElementFullIter ele_master, const ElementFullIter ele_slave, const IntersectionLocal *isec)
const IntersectionPoint * get_point(const unsigned int index) const
arma::vec map_to_slave(const arma::vec &point) const
const std::vector< double > & el2_coord() const
unsigned int dim
dimenze pruniku
unsigned int master_dim()
dimension of the master element
const std::vector< double > & el1_coord() const
arma::Mat< double > master_map
matrix part of linear transform from reference element of intersection to reference element of master...
unsigned int slave_dim()
dimension of the slave element
arma::vec master_shift
shift vector of the linear transform
void intersection_point_to_vectors(const IntersectionPoint *point, arma::vec &vec1, arma::vec &vec2)
arma::Mat< double > slave_map
double intersection_true_size() const
#define OLD_ASSERT_EQUAL(a, b)