27.1 BlockAttributes

A block is a group of elements of identical shape, basis, order using the same quadrature type and order. We also assume the block of elements has the same deformation type and so either has an affine mapping referred to as “Regular” elements or non-affine mapped element referred to as “Deformed” elements. The BlockAttributes base class stores the most basic information of a block. The private member variables of the BlockAttributes class are indicated below:

1class BlockAttributes 
2{ 
3public: 
4    BlockAttributes(const size_t num_elements, 
5                    const size_t num_elements_with_padding, 
6                    const size_t num_data, const size_t interleave_width) 
7        : m_num_elements(num_elements), 
8          num_elements_with_padding(num_elements_with_padding), 
9          m_num_data(num_data), m_size(num_elements_with_padding * num_data), 
10          m_interleave_width(interleave_width) 
11    { 
12    } 
13... 
14 
15private: 
16    const size_t m_num_elements; 
17    const size_t num_elements_with_padding; 
18    const size_t m_num_data; 
19    const size_t m_size; 
20    size_t m_interleave_width; 
21};

Once a BlockAttributes is instantiated, only the m_interleave_width member variable can be modified by using the SetInterleaveWidth member function

1void SetInterleaveWidth(const size_t interleave_width) 
2{ 
3    ... 
4}