mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
Fixed gas_phase problem. total_p was reset for fixed pressure in a couple of places (prep and tidy).
Added test case ch4-valid and added to Makefile. git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@7643 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
4cb5d32f0d
commit
ce037cb208
5
prep.cpp
5
prep.cpp
@ -4230,7 +4230,10 @@ calc_PR(std::vector<struct phase *> phase_ptrs, LDBLE P, LDBLE TK, LDBLE V_m)
|
||||
}
|
||||
if (gas_phase_ptr && iterations > 2)
|
||||
{
|
||||
gas_phase_ptr->Set_total_p(P);
|
||||
if (gas_phase_ptr->Get_type() == cxxGasPhase::GP_VOLUME)
|
||||
{
|
||||
gas_phase_ptr->Set_total_p(P);
|
||||
}
|
||||
gas_phase_ptr->Set_v_m(V_m);
|
||||
return (OK);
|
||||
}
|
||||
|
||||
5
tidy.cpp
5
tidy.cpp
@ -1005,7 +1005,10 @@ tidy_gas_phase(void)
|
||||
}
|
||||
V_m = calc_PR(phase_ptrs, P, gas_phase_ptr->Get_temperature(), 0);
|
||||
gas_phase_ptr->Set_v_m(V_m);
|
||||
gas_phase_ptr->Set_total_p(P);
|
||||
if (gas_phase_ptr->Get_type() == cxxGasPhase::GP_VOLUME)
|
||||
{
|
||||
gas_phase_ptr->Set_total_p(P);
|
||||
}
|
||||
std::vector<cxxGasComp> gc = gas_phase_ptr->Get_gas_comps();
|
||||
for (size_t j = 0; j < gas_phase_ptr->Get_gas_comps().size(); j++)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user