FEI Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CommNodeSet.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  : numNodes_(0),
17  nodeIDs_(NULL),
18  procs_(NULL),
19  procsPerNode_(NULL)
20 {
21 }
22 
23 //==============================================================================
25  deleteMemory();
26 }
27 
28 //==============================================================================
30  for(int i=0; i<numNodes_; i++) {
31  delete [] procs_[i];
32  }
33 
34  delete [] procs_;
35  delete [] procsPerNode_;
36  delete [] nodeIDs_;
37  numNodes_ = 0;
38 }
39 
int * procsPerNode_
Definition: CommNodeSet.hpp:20
GlobalID * nodeIDs_
Definition: CommNodeSet.hpp:18
int ** procs_
Definition: CommNodeSet.hpp:19
void deleteMemory()
Definition: CommNodeSet.cpp:29