for (i = 0; i < components.size(); i++) { if (components[i] == "H") continue; if (components[i] == "O") continue; if (components[i] == "H2O") continue; if (components[i] == "Charge") continue; in << components[i] << " 1e-6\n"; } // Added line for isotopes in << "END; MIX; " << next << " 1.0; END\n"; ///////////////// int status = phast_iphreeqc_worker->RunString(in.str().c_str()); if (status != 0) { this->ErrorMessage(phast_iphreeqc_worker->GetErrorString()); throw PhreeqcRMStop(); }