CRSet.cpp

00001 /*--------------------------------------------------------------------*/
00002 /*    Copyright 2005 Sandia Corporation.                              */
00003 /*    Under the terms of Contract DE-AC04-94AL85000, there is a       */
00004 /*    non-exclusive license for use of this work by or on behalf      */
00005 /*    of the U.S. Government.  Export of this program may require     */
00006 /*    a license from the United States Government.                    */
00007 /*--------------------------------------------------------------------*/
00008 
00009 #include <fei_macros.hpp>
00010 #include <fei_defs.h>
00011 #include <test_utils/CRSet.hpp>
00012 #include <cstdlib>
00013 
00014 //==============================================================================
00015 CRSet::CRSet()
00016  : crID_(-1),
00017    numNodes_(0),
00018    nodeIDs_(NULL),
00019    fieldIDs_(NULL),
00020    weights_(NULL),
00021    values_(NULL),
00022    penValues_(NULL)
00023 {
00024 }
00025 
00026 //==============================================================================
00027 CRSet::~CRSet() {
00028    deleteMemory();
00029 }
00030 
00031 //==============================================================================
00032 void CRSet::deleteMemory() {
00033 
00034    for(int j=0; j<1; j++) {
00035       delete [] nodeIDs_[j];
00036    }
00037 
00038    delete [] weights_;
00039    delete [] values_;
00040    delete [] penValues_;
00041    delete [] fieldIDs_;
00042    delete [] nodeIDs_;
00043 
00044    numNodes_ = 0;
00045 }
00046 

Generated on Tue Jul 13 09:27:44 2010 for FEI by  doxygen 1.4.7