Skip to content
Snippets Groups Projects
Commit cd741185 authored by renchao.lu's avatar renchao.lu
Browse files

[CL] Uninitialize pH.

parent 7c52b843
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include <vector> #include <vector>
#include "MathLib/LinAlg/GlobalMatrixVectorTypes.h" #include "MathLib/LinAlg/GlobalMatrixVectorTypes.h"
#include "MathLib/LinAlg/MatrixVectorTraits.h"
#include "Output.h" #include "Output.h"
namespace MeshLib namespace MeshLib
...@@ -45,12 +44,9 @@ struct AqueousSolution ...@@ -45,12 +44,9 @@ struct AqueousSolution
AqueousSolution(double temperature_, double pressure_, AqueousSolution(double temperature_, double pressure_,
MeshLib::PropertyVector<double>* pe_, double const pe0_, MeshLib::PropertyVector<double>* pe_, double const pe0_,
std::vector<Component>&& components_, std::vector<Component>&& components_,
ChargeBalance charge_balance_, ChargeBalance charge_balance_)
std::size_t const num_chemical_systems_)
: temperature(temperature_), : temperature(temperature_),
pressure(pressure_), pressure(pressure_),
pH(MathLib::MatrixVectorTraits<GlobalVector>::newInstance(
num_chemical_systems_)),
pe(pe_), pe(pe_),
pe0(pe0_), pe0(pe0_),
components(std::move(components_)), components(std::move(components_)),
......
...@@ -41,13 +41,8 @@ std::unique_ptr<AqueousSolution> createAqueousSolution( ...@@ -41,13 +41,8 @@ std::unique_ptr<AqueousSolution> createAqueousSolution(
auto charge_balance = createChargeBalance(config); auto charge_balance = createChargeBalance(config);
return std::make_unique<AqueousSolution>(temperature, return std::make_unique<AqueousSolution>(
pressure, temperature, pressure, pe, pe0, std::move(components), charge_balance);
pe,
pe0,
std::move(components),
charge_balance,
mesh.getNumberOfBaseNodes());
} }
} // namespace PhreeqcIOData } // namespace PhreeqcIOData
} // namespace ChemistryLib } // namespace ChemistryLib
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment