Skip to content

Commit 838580a

Browse files
author
Darth Vader
committed
Merge commit '22345a0eb9d012747f75211ff67526ed16a55321'
2 parents a83249c + 22345a0 commit 838580a

File tree

1 file changed

+8
-8
lines changed
  • src/phast/PhreeqcRM/src/IPhreeqcPhast/IPhreeqc/phreeqcpp

1 file changed

+8
-8
lines changed

src/phast/PhreeqcRM/src/IPhreeqcPhast/IPhreeqc/phreeqcpp/GasComp.cxx

+8-8
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ cxxGasComp::read_raw(CParser & parser, bool check)
9999
// Allow return to Exchange for more processing
100100
break;
101101

102-
case 0: // phase_name
102+
case 7: // phase_name
103103
output_msg("-phase_name is obsolete. Define with -component\n");
104104
break;
105105

@@ -138,7 +138,7 @@ cxxGasComp::read_raw(CParser & parser, bool check)
138138
}
139139
break;
140140

141-
case 5: // p
141+
case 0: // p
142142
if (!(parser.get_iss() >> this->p))
143143
{
144144
this->p = 0;
@@ -148,7 +148,7 @@ cxxGasComp::read_raw(CParser & parser, bool check)
148148
}
149149
break;
150150

151-
case 6: // phi
151+
case 5: // phi
152152
if (!(parser.get_iss() >> this->phi))
153153
{
154154
this->phi = 0;
@@ -158,7 +158,7 @@ cxxGasComp::read_raw(CParser & parser, bool check)
158158
}
159159
break;
160160

161-
case 7: // f
161+
case 6: // f
162162
if (!(parser.get_iss() >> this->f))
163163
{
164164
this->f = 0;
@@ -253,13 +253,13 @@ cxxGasComp::Deserialize(Dictionary & dictionary, std::vector < int >&ints,
253253
}
254254

255255
const std::vector< std::string >::value_type temp_vopts[] = {
256-
std::vector< std::string >::value_type("phase_name"), // 0
256+
std::vector< std::string >::value_type("p"), // 0
257257
std::vector< std::string >::value_type("name"), // 1
258258
std::vector< std::string >::value_type("p_read"), // 2
259259
std::vector< std::string >::value_type("moles"), // 3
260260
std::vector< std::string >::value_type("initial_moles"), // 4
261-
std::vector< std::string >::value_type("p"), // 5
262-
std::vector< std::string >::value_type("phi"), // 6
263-
std::vector< std::string >::value_type("f") // 7
261+
std::vector< std::string >::value_type("phi"), // 5
262+
std::vector< std::string >::value_type("f"), // 6
263+
std::vector< std::string >::value_type("phase_name") // 7
264264
};
265265
const std::vector< std::string > cxxGasComp::vopts(temp_vopts, temp_vopts + sizeof temp_vopts / sizeof temp_vopts[0]);

0 commit comments

Comments
 (0)