Loading...
Searching...
No Matches
tiny_element.cc
Go to the documentation of this file.
#include "rheolef/tiny_element.h"
#include "rheolef/geo_element.h"
using namespace rheolef;
using namespace std;
ostream&
operator << (ostream& os, const tiny_element& K)
{
if (K.variant() == tiny_element::max_variant) {
error_macro ("unexpected type");
return os;
}
if (K.dimension() >= 2) {
os << K.name() << "\t";
}
for (tiny_element::size_type i = 0; i < K.size(); i++) {
os << K[i];
if (i != K.size()-1) {
os << " ";
}
}
return os;
}
tiny_element::tiny_element (const geo_element& x)
{
set_variant (x.variant());
set_index (x.index());
for (size_type i = 0; i < x.size(); i++)
t_[i] = x[i];
}
rheolef::geo_element
see the geo_element page for the full documentation
Definition geo_element.h:102
rheolef::geo_element::size
size_type size() const
Definition geo_element.h:168
rheolef::geo_element::index
size_t index() const
Definition msh2geo.cc:237
rheolef::geo_element::variant
variant_type variant() const
Definition geo_element.h:161
rheolef::reference_element::size
size_type size() const
Definition reference_element.h:102
rheolef::reference_element::max_variant
static const variant_type max_variant
Definition reference_element.h:82
rheolef::reference_element::dimension
size_type dimension() const
Definition reference_element.h:101
rheolef::reference_element::variant
variant_type variant() const
Definition reference_element.h:99
rheolef::reference_element::size_type
std::vector< int >::size_type size_type
Definition reference_element.h:71
rheolef::reference_element::name
char name() const
Definition reference_element.h:100
rheolef::tiny_element::t_
size_type t_[8]
Definition tiny_element.h:48
rheolef::tiny_element::tiny_element
tiny_element(variant_type t=max_variant)
Definition tiny_element.h:52
rheolef::tiny_element::set_variant
void set_variant(variant_type t)
Definition tiny_element.h:61
rheolef::tiny_element::set_index
void set_index(size_t idx)
Definition tiny_element.h:41
error_macro
#define error_macro(message)
Definition dis_macros.h:49
rheolef
This file is part of Rheolef.
Definition compiler_eigen.h:39
rheolef::operator<<
std::ostream & operator<<(std::ostream &os, const catchmark &m)
Definition catchmark.h:99
std
STL namespace.