mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
git-subtree-dir: phreeqcpp git-subtree-mainline: ba5f2ba885b4cc757201e28f9b4dce158f7cc66b git-subtree-split: da9d06b423a87ed5eae503c0faf779ac11c96027
24 lines
412 B
C++
24 lines
412 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);
|
|
this->PhreeqcPtr->free_check_null(this->rate);
|
|
}
|
|
}
|
|
this->PhreeqcPtr = NULL;
|
|
this->rate = NULL;
|
|
}
|