Reducing the accuracy to low from medium gives around a 10% speed boost. But we default to medium because there are anisotropic effects of using the smaller stencil:
With a low-accuracy Laplacian (0,1,0; 1,-4,1; 0,1,0):
Notice the squared-off waves.
Compare with using a medium-accuracy (isotropic, 2nd-order errors) Laplacian (1,4,1; 4,-20,4; 1,4,1)/20 (as was used previously, and is our new default) where the waves show no directional preference.
Higher-accuracy stencils (4th order errors) are useful in advection.vti and likely others. See previous discussion here: #118
This closes #127.
Reducing the accuracy to low from medium gives around a 10% speed boost. But we default to medium because there are anisotropic effects of using the smaller stencil:
With a low-accuracy Laplacian (0,1,0; 1,-4,1; 0,1,0): Notice the squared-off waves. Compare with using a medium-accuracy (isotropic, 2nd-order errors) Laplacian (1,4,1; 4,-20,4; 1,4,1)/20 (as was used previously, and is our new default) where the waves show no directional preference.
Higher-accuracy stencils (4th order errors) are useful in advection.vti and likely others. See previous discussion here: #118