BCNodeSet.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/BCNodeSet.hpp>
00012 #include <cstdlib>
00013 
00014 //==============================================================================
00015 BCNodeSet::BCNodeSet()
00016  : numNodes_(0),
00017    nodeIDs_(NULL),
00018    fieldID_(-1),
00019    offsetsIntoField_(NULL),
00020    prescribed_values_(NULL)
00021 {
00022 }
00023 
00024 //==============================================================================
00025 BCNodeSet::~BCNodeSet() {
00026    deleteMemory();
00027 }
00028 
00029 //==============================================================================
00030 void BCNodeSet::deleteMemory() {
00031    delete [] offsetsIntoField_;
00032    delete [] prescribed_values_;
00033 
00034    delete [] nodeIDs_;
00035 
00036    numNodes_ = 0;
00037 }
00038 

Generated on Wed May 12 21:30:40 2010 for FEI by  doxygen 1.4.7