FEI Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
ElemBlock.cpp
Go to the documentation of this file.
1/*--------------------------------------------------------------------*/
2/* Copyright 2005 Sandia Corporation. */
3/* Under the terms of Contract DE-AC04-94AL85000, there is a */
4/* non-exclusive license for use of this work by or on behalf */
5/* of the U.S. Government. Export of this program may require */
6/* a license from the United States Government. */
7/*--------------------------------------------------------------------*/
8
9#include <fei_macros.hpp>
10#include <fei_defs.h>
12#include <cstdlib>
13
14//==============================================================================
16 : blockID_(0),
17 numElements_(0),
18 numNodesPerElement_(0),
19 numFieldsPerNode_(NULL),
20 nodalFieldIDs_(NULL),
21 elemIDs_(NULL),
22 elemConn_(NULL),
23 numStiffRows_(0),
24 elemFormat_(0),
25 elemStiff_(NULL),
26 elemLoad_(NULL),
27 numElemDOF_(0),
28 elemDOFFieldIDs_(NULL),
29 interleaveStrategy_(0),
30 lumpingStrategy_(0)
31{
32}
33
34//==============================================================================
38
39//==============================================================================
41 for(int i=0; i<numElements_; i++) {
42 for(int j=0; j<numStiffRows_; j++) {
43 delete [] elemStiff_[i][j];
44 }
45 delete [] elemStiff_[i];
46 delete [] elemLoad_[i];
47 delete [] elemConn_[i];
48 }
49
50 for(int j=0; j<numNodesPerElement_; j++) {
51 delete [] nodalFieldIDs_[j];
52 }
53 delete [] nodalFieldIDs_;
54 delete [] numFieldsPerNode_;
55
56 delete [] elemStiff_;
57 delete [] elemLoad_;
58 delete [] elemConn_;
59 delete [] elemIDs_;
60
61 if (numElemDOF_ > 0) {
62 delete [] elemDOFFieldIDs_;
63 numElemDOF_ = 0;
64 }
65
66 numElements_ = 0;
68}
69
int * numFieldsPerNode_
Definition ElemBlock.hpp:20
double *** elemStiff_
Definition ElemBlock.hpp:26
int numNodesPerElement_
Definition ElemBlock.hpp:19
GlobalID ** elemConn_
Definition ElemBlock.hpp:23
GlobalID * elemIDs_
Definition ElemBlock.hpp:22
double ** elemLoad_
Definition ElemBlock.hpp:27
void deleteMemory()
Definition ElemBlock.cpp:40
int numElements_
Definition ElemBlock.hpp:18
int numStiffRows_
Definition ElemBlock.hpp:24
int numElemDOF_
Definition ElemBlock.hpp:28
int ** nodalFieldIDs_
Definition ElemBlock.hpp:21
int * elemDOFFieldIDs_
Definition ElemBlock.hpp:29