9 #include <fei_macros.hpp>
11 #include <test_utils/ElemBlock.hpp>
15 ElemBlock::ElemBlock()
18 numNodesPerElement_(0),
19 numFieldsPerNode_(NULL),
28 elemDOFFieldIDs_(NULL),
29 interleaveStrategy_(0),
35 ElemBlock::~ElemBlock() {
40 void ElemBlock::deleteMemory() {
41 for(
int i=0; i<numElements_; i++) {
42 for(
int j=0; j<numStiffRows_; j++) {
43 delete [] elemStiff_[i][j];
45 delete [] elemStiff_[i];
46 delete [] elemLoad_[i];
47 delete [] elemConn_[i];
50 for(
int j=0; j<numNodesPerElement_; j++) {
51 delete [] nodalFieldIDs_[j];
53 delete [] nodalFieldIDs_;
54 delete [] numFieldsPerNode_;
61 if (numElemDOF_ > 0) {
62 delete [] elemDOFFieldIDs_;
67 numNodesPerElement_ = 0;