FEI Version of the Day
Loading...
Searching...
No Matches
CommNodeSet.cpp
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//==============================================================================
15CommNodeSet::CommNodeSet()
16 : numNodes_(0),
17 nodeIDs_(NULL),
18 procs_(NULL),
19 procsPerNode_(NULL)
20{
21}
22
23//==============================================================================
24CommNodeSet::~CommNodeSet() {
25 deleteMemory();
26}
27
28//==============================================================================
29void 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