From bda149187c70f0e769c00bc9d22a60600634cf1f Mon Sep 17 00:00:00 2001 From: Gareth Tribello Date: Fri, 13 Sep 2024 08:00:27 +0100 Subject: [PATCH] Update SwitchingFunction.cpp Fixed a typo in the documentation for the cosinus switching function. --- src/tools/SwitchingFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/SwitchingFunction.cpp b/src/tools/SwitchingFunction.cpp index 99cf034a1f..3339c2ec3b 100644 --- a/src/tools/SwitchingFunction.cpp +++ b/src/tools/SwitchingFunction.cpp @@ -113,7 +113,7 @@ s(r) = 1 - \tanh\left( \frac{ r - d_0 }{ r_0 } \right) \f$s(r) =\left\{\begin{array}{ll} 1 & \mathrm{if } r \leq d_0 \\ 0.5 \left( \cos ( \frac{ r - d_0 }{ r_0 } \pi ) + 1 \right) & \mathrm{if } d_0 < r\leq d_0 + r_0 \\ - 0 & \mathrm{if } r < d_0 + r_0 + 0 & \mathrm{if } r > d_0 + r_0 \end{array}\right. \f$