From cd5061bb8719e9909fce9a2c0d68d3341c8bc9e1 Mon Sep 17 00:00:00 2001 From: renchao_lu <renchao.lu@gmail.com> Date: Fri, 12 Mar 2021 01:08:30 +0100 Subject: [PATCH] [CL] rename function. --- ChemistryLib/ChemicalSolverInterface.h | 2 +- ChemistryLib/PhreeqcIO.cpp | 2 +- ChemistryLib/PhreeqcIO.h | 2 +- ChemistryLib/PhreeqcKernel.cpp | 4 ++-- ChemistryLib/PhreeqcKernel.h | 2 +- ProcessLib/ComponentTransport/ComponentTransportProcess.cpp | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ChemistryLib/ChemicalSolverInterface.h b/ChemistryLib/ChemicalSolverInterface.h index b7339bfe695..ef6c1bbebfb 100644 --- a/ChemistryLib/ChemicalSolverInterface.h +++ b/ChemistryLib/ChemicalSolverInterface.h @@ -52,7 +52,7 @@ public: virtual void executeInitialCalculation() = 0; - virtual void doWaterChemistryCalculation(double const dt) = 0; + virtual void executeSpeciationCalculation(double const dt) = 0; virtual std::vector<GlobalVector*> getIntPtProcessSolutions() const = 0; diff --git a/ChemistryLib/PhreeqcIO.cpp b/ChemistryLib/PhreeqcIO.cpp index 07b12640a3d..f021763254c 100644 --- a/ChemistryLib/PhreeqcIO.cpp +++ b/ChemistryLib/PhreeqcIO.cpp @@ -300,7 +300,7 @@ std::vector<GlobalVector*> PhreeqcIO::getIntPtProcessSolutions() const return int_pt_process_solutions; } -void PhreeqcIO::doWaterChemistryCalculation(double const dt) +void PhreeqcIO::executeSpeciationCalculation(double const dt) { writeInputsToFile(dt); diff --git a/ChemistryLib/PhreeqcIO.h b/ChemistryLib/PhreeqcIO.h index 3871493addc..168b6588935 100644 --- a/ChemistryLib/PhreeqcIO.h +++ b/ChemistryLib/PhreeqcIO.h @@ -65,7 +65,7 @@ public: void executeInitialCalculation() override; - void doWaterChemistryCalculation(double const dt) override; + void executeSpeciationCalculation(double const dt) override; void writeInputsToFile(double const dt = 0); diff --git a/ChemistryLib/PhreeqcKernel.cpp b/ChemistryLib/PhreeqcKernel.cpp index 1c8a3c2f077..473a47290fe 100644 --- a/ChemistryLib/PhreeqcKernel.cpp +++ b/ChemistryLib/PhreeqcKernel.cpp @@ -170,7 +170,7 @@ void PhreeqcKernel::reinitializeRates() }; } -void PhreeqcKernel::doWaterChemistryCalculation(double const dt) +void PhreeqcKernel::executeSpeciationCalculation(double const dt) { std::vector<GlobalVector*> process_solutions; @@ -327,7 +327,7 @@ void PhreeqcKernel::reset(std::size_t const chemical_system_id) void PhreeqcKernel::executeInitialCalculation() { // TODO (Renchao): This function could be replaced with - // PhreeqcKernel::doWaterChemistryCalculation(std::vector<GlobalVector*>& + // PhreeqcKernel::executeSpeciationCalculation(std::vector<GlobalVector*>& // process_solutions, double const dt). std::vector<GlobalVector*> process_solutions; diff --git a/ChemistryLib/PhreeqcKernel.h b/ChemistryLib/PhreeqcKernel.h index b77c3cebc22..e8fe4f6b248 100644 --- a/ChemistryLib/PhreeqcKernel.h +++ b/ChemistryLib/PhreeqcKernel.h @@ -43,7 +43,7 @@ public: void executeInitialCalculation() override; - void doWaterChemistryCalculation(double const dt) override; + void executeSpeciationCalculation(double const dt) override; void setAqueousSolutions( std::vector<GlobalVector*> const& process_solutions); diff --git a/ProcessLib/ComponentTransport/ComponentTransportProcess.cpp b/ProcessLib/ComponentTransport/ComponentTransportProcess.cpp index ea76dff778b..02bb574341b 100644 --- a/ProcessLib/ComponentTransport/ComponentTransportProcess.cpp +++ b/ProcessLib/ComponentTransport/ComponentTransportProcess.cpp @@ -241,7 +241,7 @@ void ComponentTransportProcess::solveReactionEquation( _chemical_solver_interface->setAqueousSolutionsPrevFromDumpFile(); - _chemical_solver_interface->doWaterChemistryCalculation(dt); + _chemical_solver_interface->executeSpeciationCalculation(dt); extrapolateIntegrationPointValuesToNodes( t, _chemical_solver_interface->getIntPtProcessSolutions(), x); -- GitLab