diff src/SbpOperators/volumeops/volume_operator.jl @ 1143:9275d95e2d90 refactor/grids

Merge with default
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 19 Oct 2022 22:36:02 +0200
parents fc57804c9bf4
children 5ddf5ae48391
line wrap: on
line diff
--- a/src/SbpOperators/volumeops/volume_operator.jl	Wed Apr 27 10:25:53 2022 +0200
+++ b/src/SbpOperators/volumeops/volume_operator.jl	Wed Oct 19 22:36:02 2022 +0200
@@ -15,7 +15,7 @@
     # Create 1D volume operator in along coordinate direction
     op = VolumeOperator(restrict(grid, direction), inner_stencil, closure_stencils, parity)
     # Create 1D IdentityTensors for each coordinate direction
-    one_d_grids = restrict.(Ref(grid), Tuple(1:dimension(grid)))
+    one_d_grids = restrict.(Ref(grid), Tuple(dims(grid)))
     Is = IdentityTensor{eltype(grid)}.(size.(one_d_grids))
     # Formulate the correct outer product sequence of the identity mappings and
     # the volume operator