From a1f1ccae9ec1f389895891ef55d53b61e3f39817 Mon Sep 17 00:00:00 2001 From: David L Parkhurst Date: Fri, 10 Aug 2012 23:02:55 +0000 Subject: [PATCH] Runs, getting xyz file right, checking results. git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@6864 1feff8c3-07ed-0310-ac33-dd36852eb9cd --- src/IPhreeqc.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/IPhreeqc.cpp b/src/IPhreeqc.cpp index 5a86bd89..27b0ad3c 100644 --- a/src/IPhreeqc.cpp +++ b/src/IPhreeqc.cpp @@ -1048,6 +1048,14 @@ void IPhreeqc::do_run(const char* sz_routine, std::istream* pis, PFN_PRERUN_CALL } if (!this->SelectedOutputFileOn) ASSERT(!this->punch_ostream); + + // Consider this addition + { + this->PhreeqcPtr->pr.all = (this->OutputFileOn || this->OutputStringOn) ? TRUE : FALSE; + this->PhreeqcPtr->punch.in = (this->SelectedOutputFileOn || this->SelectedOutputStringOn) ? TRUE : FALSE; + } + + /* the converse is not necessarily true */ this->PhreeqcPtr->n_user_punch_index = -1;