Skip to content
Snippets Groups Projects
Commit 99f431b2 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

[Cleanup] Rename: minimalCorrectionReduction -> requiredReduction

parent 4c607324
No related branches found
No related tags found
No related merge requests found
...@@ -479,8 +479,8 @@ int main(int argc, char *argv[]) { ...@@ -479,8 +479,8 @@ int main(int argc, char *argv[]) {
auto const fixedPointTolerance = auto const fixedPointTolerance =
parset.get<double>("solver.tnnmg.fixed_point_tolerance"); parset.get<double>("solver.tnnmg.fixed_point_tolerance");
auto const damping = parset.get<double>("solver.damping"); auto const damping = parset.get<double>("solver.damping");
auto const minimalCorrectionReduction = auto const requiredReduction =
parset.get<double>("solver.minimal_correction_reduction"); parset.get<double>("solver.requiredReduction");
auto const printProgress = parset.get<bool>("io.printProgress"); auto const printProgress = parset.get<bool>("io.printProgress");
for (size_t run = 1; run <= timesteps; ++run) { for (size_t run = 1; run <= timesteps; ++run) {
VectorType u; VectorType u;
...@@ -533,7 +533,7 @@ int main(int argc, char *argv[]) { ...@@ -533,7 +533,7 @@ int main(int argc, char *argv[]) {
stateUpdater->extractState(computed_state); stateUpdater->extractState(computed_state);
double const correction = stateEnergyNorm.diff(computed_state, alpha); double const correction = stateEnergyNorm.diff(computed_state, alpha);
if (state_fpi <= 2 // Let the first two steps pass through unchanged if (state_fpi <= 2 // Let the first two steps pass through unchanged
|| correction < minimalCorrectionReduction * lastCorrection) { || correction < requiredReduction * lastCorrection) {
alpha = computed_state; alpha = computed_state;
dampingWriter << "N "; dampingWriter << "N ";
} else { // alpha is still the old time step here } else { // alpha is still the old time step here
......
...@@ -23,7 +23,7 @@ width = 5 ...@@ -23,7 +23,7 @@ width = 5
[solver] [solver]
tolerance = 1e-10 tolerance = 1e-10
damping = 0.5 damping = 0.5
minimal_correction_reduction = 0.5 requiredReduction = 0.5
[solver.tnnmg] [solver.tnnmg]
maxiterations = 1000000 maxiterations = 1000000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment