45 Commits

Author SHA1 Message Date
Scott R Charlton
3eb956bdf0 removed dependency on phrqtype.h by using a template for addPair
removed unnecessary Phreeqc.h

git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@6512 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2012-04-19 22:19:46 +00:00
David L Parkhurst
91f650a5e9 Merged ErrorHandling 6119-6268 changes.
All reactant structs have been removed.
Tony's pressure uses mu in pressure term of log_k.
Test cases run, discriminant check at 1e-8.

Still want to optimize out some k_temp calls and checks for same T, P, mu.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@6269 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2012-03-06 23:42:49 +00:00
David L Parkhurst
18906cdd2f Removed skipped code.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@6081 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2012-01-18 17:23:36 +00:00
David L Parkhurst
ea54bb8f57 reworked logic for using previously read line from parser.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@6076 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2012-01-18 01:40:57 +00:00
David L Parkhurst
bcdeaf2233 Tony's 17Jan2012 changes to gases, prep, read.cpp
Working on bugs in ss.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@6074 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2012-01-18 00:18:13 +00:00
David L Parkhurst
7683982877 changed all double to LDBLE
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@6038 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2012-01-11 21:13:51 +00:00
David L Parkhurst
9758c574e4 Last of SKIPs
In parser, do not echo if using last line.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5982 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2012-01-05 19:39:34 +00:00
David L Parkhurst
18eba6bd38 cleaning up bugs with exchange
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5978 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2012-01-05 16:36:31 +00:00
David L Parkhurst
acf62c7881 gas_phase and irrev removed.
get_line moved to PHRQ_io.

Still debugging some.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5967 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2012-01-04 16:07:40 +00:00
David L Parkhurst
17a4c8442d Moved keywords to separate class
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5835 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-11-30 18:30:51 +00:00
David L Parkhurst
7e26eec197 Last checkin svn deleted obsolete files output.h, output.cpp, phreeqc_files, main.cpp.
removed all PHREEQC_CLASS ifdefs

Need to remove old_io ifdefs

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5712 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-10-20 21:14:33 +00:00
David L Parkhurst
601d8515b8 Removed PHREEQC_CPP and some PHREEQC_CLASS.
Will continue to remove PHREEQC_CLASS.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5711 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-10-20 20:06:32 +00:00
David L Parkhurst
534005377e Cleaned up kinetics.cpp.
Changed io in Parser.cxx a little.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5696 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-10-18 19:27:52 +00:00
David L Parkhurst
e89dd5938c Removed SKIP code in PHRQ_io and Parser.
removes old handler code from PHRQ_io.cpp
remove error_msg, warning_msg from Parser. 

Removed commented lines.

rewrote a couple places in parser that used cerr instead of error_msg.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5666 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-09-30 19:28:20 +00:00
David L Parkhurst
6fa41ac02e Rewrote PHRQ_io. Removed handlers.
Now 1-1 correspondence between phreeqc output methods and PHRQ_io output methods.

Removed error_msg and output_msg from Parser.

Moved prototype for fpnunchf, _user, _end_row, to output.h.

Scott needs to finalize as interface.

Next will remove dead code from PHRQ_io, PHRQ_io_output.cpp, and Parse.cxx.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5665 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-09-30 18:36:28 +00:00
David L Parkhurst
c2987e2d6b Think ErrorHandling reproduces original results.
Need to keep stripping P_INSTANCE and PHREEQC_PTR from code.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5647 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-09-26 16:52:32 +00:00
David L Parkhurst
b7729cf254 Changed all check of input_error to get_input_errors for phreeqc.
Started removing PHREEQC_PTR and P_INSTANCE. Redid all read_raw.

Breaks some echoing or printing of output. Need to check why.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5646 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-09-23 22:33:19 +00:00
David L Parkhurst
50b369a294 Compiles all configurations of phreeqcpp.vcproj
Does not use callbacks.

Uses phrq_io instance of PHRQ_io.

I am sure it will not compile as plain phreeqc without modification.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5640 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-09-22 00:08:29 +00:00
David L Parkhurst
7eeeab4569 all classes inherit from PHRQ_base, except
NameDouble, StorageBinListItem.

NumKeyword inherits from PHRQ_base, others inherit NumKeyword.

ChartHandler and ChartObject inherit from PHRQ_base.

CurveObject does not inherit from PHRQ_base.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/branches/ErrorHandling@5637 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-09-20 20:05:43 +00:00
David L Parkhurst
79e978a773 reverting Tony's change.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@5596 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-08-19 14:00:51 +00:00
David L Parkhurst
978f151573 Removed unnecessary header file ISolution.h
Tony's fix for plotting CSV

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@5582 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-08-17 14:25:58 +00:00
David L Parkhurst
41a6354f1e Added example 20 to examples.fm.
Added ex20 files to Version3/ex.

Modified parser to accept " or ' for titles.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@5412 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-05-18 19:02:35 +00:00
David L Parkhurst
2a491b71a4 merged MULTICHART branch back to trunk
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@5365 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2011-05-04 00:24:40 +00:00
David L Parkhurst
b1fca87a57 Added -mix, -reaction, -temperature, -cells to DUMP.
Added warning for use of REACTION and kinetics.



git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4800 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-09-08 20:33:43 +00:00
David L Parkhurst
4de8e60e36 Changed phqalloc to allow 3 cases:
USE_PHRQ_ALLOC + NDEBUG
USE_PHRQ_ALLOC without NDEBUG
and 
no USE_PHRQ_ALLOC

Works with 6 configurations, but not
clrClass_debug
nor clrClass_release.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4679 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-07-22 01:25:27 +00:00
Scott R Charlton
89090c46ee added stdlib.h for exit on SunOS
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4675 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-07-21 01:55:39 +00:00
David L Parkhurst
4b31197710 Redid modifications for hidden variables using l_ prefix.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4674 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-07-21 00:18:01 +00:00
Scott R Charlton
053c817df8 added stdlib.h for exit prototype on SunOS
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4667 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-07-20 05:43:08 +00:00
Scott R Charlton
261bc0113a fixed p_instance bug for raw and ppdump
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4650 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-07-16 01:04:30 +00:00
David L Parkhurst
9ed87e33ad std header files added.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@4146 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2010-03-05 23:00:20 +00:00
David L Parkhurst
b454429379 Fixed error with callback. Had not saved the phreeqc pointer in the parser constructor.
Fixed project, directories for versions were all messed up. 

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3881 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-09 01:03:21 +00:00
David L Parkhurst
65ff0a9456 Fixed Makefile on Linux to make class version.
Added eol and other changes for linux.

Had statics in ReadClass.cxx, removed.

Problems with .dmp files. May be because of statics.




git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3879 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-08 23:58:06 +00:00
David L Parkhurst
3131740cfb Compiles as class, debug, and Release.
Requires recompilation of the entire solution for some reason.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3878 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-08 22:12:42 +00:00
Scott R Charlton
07d5fa7413 merged 3750-3846 of plusify; system.cxx and system.h need to be formated
removed char * and used std::string's and std::map's

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3847 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-12-03 01:49:56 +00:00
David L Parkhurst
ff19c86d65 The tellg and seekg did not work for gz files because the
methods are not implemented.

Modified the parser to accumulate lines so that they
could be turned into a stream and reread. Modified
kinetics, exchange, ppassemblage, ssassemblage, and surface to use the new way to reread lines for component values. 

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3742 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-11-03 17:55:36 +00:00
David L Parkhurst
2fd35ce463 Delete, Dump seem to work.
SOLUTION_MODIFY seems to work, but need to check all features.

EQUILIBRIUM_PHASES_MODIFY fails. Need to use maps to allow update I think. 

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3719 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2009-10-23 00:03:23 +00:00
David L Parkhurst
3313c814a9 Ran indent program on phreeqcpp
indent -bli0 -i4 -ts4 -npcs -nbc *.cxx




git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@3168 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2008-10-31 15:19:39 +00:00
David L Parkhurst
e7ec5c7691 Removed echo that was always true. Made huge string that crashed
restart. Results are same without the removed lines.




git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@2276 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2007-09-21 19:01:46 +00:00
David L Parkhurst
07f03ea2e5 Fixed echo in parser for ReadClass.cxx.
Works with testcase "raw".

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@1607 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2007-01-10 23:19:56 +00:00
David L Parkhurst
2dc33fb7ae Working on echoing for CParser
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@1605 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2007-01-10 21:45:56 +00:00
David L Parkhurst
3320ef3c93 removed error increment in get_option. Logic allows a missing option in component reads, which bubble up to keyword reads.
Turned off echo for initial_condition read of restart file.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@1604 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2007-01-10 16:57:42 +00:00
David L Parkhurst
888140c4a5 Updated with phreeqc files.
Main difference is the logic for rebuilding a model. Should
run faster now, but has slight differences in example files.

Imported changes from ph2orch.

Plan to make phreeqcpp a subdirectory of ph2orch/src.




git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@1601 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2007-01-10 00:03:03 +00:00
David L Parkhurst
309d3d7bee Fixed cast warnings in c++
git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@1008 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2006-07-07 21:27:45 +00:00
David L Parkhurst
2fe8f7d44e Working on saving state.
I think there is a compiler bug with map iterators in template definitions.



git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@796 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2006-02-27 21:17:46 +00:00
David L Parkhurst
60a1544019 Copying new classes (cxx) and cpp files to src
Will remove cpp and header files and make phreeqc an external directory.




git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@785 1feff8c3-07ed-0310-ac33-dd36852eb9cd
2006-02-16 00:21:39 +00:00