iphreeqc/phreeqcpp/UserPunch.cpp

24 lines
384 B
C++

#include "UserPunch.h"
#include "Phreeqc.h"
UserPunch::UserPunch(int n, PHRQ_io *io)
: cxxNumKeyword(io)
{
this->PhreeqcPtr = NULL;
this->rate = NULL;
}
UserPunch::~UserPunch(void)
{
if (this->rate != NULL)
{
if (this->PhreeqcPtr != NULL)
{
this->PhreeqcPtr->rate_free(this->rate);
delete this->rate;
}
}
this->PhreeqcPtr = NULL;
this->rate = NULL;
}