FEI Package Browser (Single Doxygen Collection)
Version of the Day
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
test_utils
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
>
11
#include <
test_utils/CommNodeSet.hpp
>
12
#include <cstdlib>
13
14
//==============================================================================
15
CommNodeSet::CommNodeSet
()
16
: numNodes_(0),
17
nodeIDs_(NULL),
18
procs_(NULL),
19
procsPerNode_(NULL)
20
{
21
}
22
23
//==============================================================================
24
CommNodeSet::~CommNodeSet
() {
25
deleteMemory
();
26
}
27
28
//==============================================================================
29
void
CommNodeSet::deleteMemory
() {
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
CommNodeSet::procsPerNode_
int * procsPerNode_
Definition:
CommNodeSet.hpp:20
CommNodeSet::~CommNodeSet
~CommNodeSet()
Definition:
CommNodeSet.cpp:24
CommNodeSet.hpp
fei_defs.h
CommNodeSet::nodeIDs_
GlobalID * nodeIDs_
Definition:
CommNodeSet.hpp:18
CommNodeSet::CommNodeSet
CommNodeSet()
Definition:
CommNodeSet.cpp:15
CommNodeSet::numNodes_
int numNodes_
Definition:
CommNodeSet.hpp:17
CommNodeSet::procs_
int ** procs_
Definition:
CommNodeSet.hpp:19
CommNodeSet::deleteMemory
void deleteMemory()
Definition:
CommNodeSet.cpp:29
fei_macros.hpp
Generated by
1.8.5