mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
Issue 160 in phreeqc. llnl minimum temperature problem. There are several places where a SOLUTION is constructed to get lists or test the database. By default the SOLUTION is 25C, so if llnl has a minimum temperature greater (or maximum temperature less) than 25, an error is encountered. The fix is to change the temperature of the SOLUTIONs to the minimum temperature of the llnl grid if llnl is being used.
This commit is contained in:
parent
2dcf40623f
commit
666e4b813e
@ -1056,8 +1056,13 @@ int IPhreeqc::test_db(void)
|
||||
{
|
||||
std::ostringstream oss;
|
||||
int sn = this->PhreeqcPtr->next_user_number(Keywords::KEY_SOLUTION);
|
||||
oss << "SOLUTION " << sn <<"; DELETE; -solution " << sn;
|
||||
|
||||
//oss << "SOLUTION " << sn <<"; DELETE; -solution " << sn;
|
||||
oss << "SOLUTION " << sn << ";";
|
||||
if (this->PhreeqcPtr->llnl_temp.size() > 0)
|
||||
{
|
||||
oss << "-temp " << this->PhreeqcPtr->llnl_temp[0] << ";";
|
||||
}
|
||||
oss << "DELETE; -solution " << sn;
|
||||
this->PhreeqcPtr->set_reading_database(TRUE);
|
||||
int n = this->RunString(oss.str().c_str());
|
||||
this->PhreeqcPtr->set_reading_database(FALSE);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user