You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -13,15 +13,19 @@ function oprec!(n::Integer, v::AbstractVector, alpha::Real, delta2::Real)
13
13
return v
14
14
end
15
15
16
-
# This example calculates the spectrum of the nonlocal diffusion operator:
17
-
#
18
-
# \mathcal{L}_\delta u = \int_{\mathbb{S}^2} \rho_\delta(|\mathbf{x}-\mathbf{y}|)\left[u(\mathbf{x}) - u(\mathbf{y})\right] \,\mathrm{d}\Omega(\mathbf{y}),
19
-
#
20
-
# defined in Eq. (2) of
21
-
#
22
-
# R. M. Slevinsky, H. Montanelli, and Q. Du, [A spectral method for nonlocal diffusion operators on the sphere](https://doi.org/10.1016/j.jcp.2018.06.024), *J. Comp. Phys.*, **372**:893--911, 2018.
23
-
#
16
+
"""
17
+
This example calculates the spectrum of the nonlocal diffusion operator:
24
18
19
+
```math
20
+
ℒ_δ u = ∫_𝕊² ρ_δ(|𝐱-𝐲|)[u(𝐱) - u(𝐲)] dΩ(𝐲),
21
+
```
22
+
23
+
defined in Eq. (2) of
24
+
25
+
R. M. Slevinsky, H. Montanelli, and Q. Du, A spectral method for nonlocal diffusion operators on the sphere, J. Comp. Phys., 372:893--911, 2018.
26
+
27
+
available at https://doi.org/10.1016/j.jcp.2018.06.024
28
+
"""
25
29
functionevaluate_lambda(n::Integer, alpha::T, delta::T) where T
26
30
delta2 = delta*delta
27
31
scl = (1+alpha)*(2-delta2/2)
@@ -56,7 +60,7 @@ function evaluate_lambda(n::Integer, alpha::T, delta::T) where T
0 commit comments