diff --git a/src/PolarGrid/polargrid.cpp b/src/PolarGrid/polargrid.cpp index a54aa3645..70b6f2aa9 100644 --- a/src/PolarGrid/polargrid.cpp +++ b/src/PolarGrid/polargrid.cpp @@ -211,7 +211,7 @@ void PolarGrid::initializeLineSplitting(std::optional splitting_radius) i_r++) { /* We assume lengthRadialSmoother_ >= 3 in the further implementation */ double uniform_theta_k = (2 * M_PI) / ntheta(); double radius_r = radius(i_r); - double radial_dist_h = radius(i_r) - radius(i_r - 1); + double radial_dist_h = radius(i_r + 1) - radius(i_r); ; double q = uniform_theta_k / radial_dist_h; if (q * radius_r > 1.0) { diff --git a/tests/GMGPolar/pcg_tests.cpp b/tests/GMGPolar/pcg_tests.cpp index d03cdbe4a..336c31ff1 100644 --- a/tests/GMGPolar/pcg_tests.cpp +++ b/tests/GMGPolar/pcg_tests.cpp @@ -222,7 +222,7 @@ using gmgpolar_test_suite = testing::Types< std::integral_constant, // residualNormType std::integral_constant, // absoluteTolerance std::integral_constant, // relativeTolerance - std::integral_constant, // expected_iterations + std::integral_constant, // expected_iterations std::integral_constant, // expected_l2_error std::integral_constant, // expected_inf_error std::integral_constant // expected_residual_reduction @@ -349,7 +349,7 @@ using gmgpolar_test_suite = testing::Types< std::integral_constant, // residualNormType std::integral_constant, // absoluteTolerance std::integral_constant, // relativeTolerance - std::integral_constant, // expected_iterations + std::integral_constant, // expected_iterations std::integral_constant, // expected_l2_error std::integral_constant, // expected_inf_error std::integral_constant // expected_residual_reduction diff --git a/tests/GMGPolar/solve_tests.cpp b/tests/GMGPolar/solve_tests.cpp index bc2472977..5e6e91502 100644 --- a/tests/GMGPolar/solve_tests.cpp +++ b/tests/GMGPolar/solve_tests.cpp @@ -301,7 +301,7 @@ using gmgpolar_test_suite = testing::Types< std::integral_constant, // residualNormType std::integral_constant, // absoluteTolerance std::integral_constant, // relativeTolerance - std::integral_constant, // expected_iterations + std::integral_constant, // expected_iterations std::integral_constant, // expected_l2_error std::integral_constant, // expected_inf_error std::integral_constant // expected_residual_reduction @@ -508,7 +508,7 @@ using gmgpolar_test_suite = testing::Types< std::integral_constant, // residualNormType std::integral_constant, // absoluteTolerance std::integral_constant, // relativeTolerance - std::integral_constant, // expected_iterations + std::integral_constant, // expected_iterations std::integral_constant, // expected_l2_error std::integral_constant, // expected_inf_error std::integral_constant // expected_residual_reduction