diff src/SbpOperators/boundaryops/boundary_restriction.jl @ 588:0c411d865d66 feature/boundary_ops

Fix bug.
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Wed, 02 Dec 2020 13:33:54 +0100
parents 0e1a95b35999
children e40e7439d1b4
line wrap: on
line diff
--- a/src/SbpOperators/boundaryops/boundary_restriction.jl	Wed Dec 02 13:20:05 2020 +0100
+++ b/src/SbpOperators/boundaryops/boundary_restriction.jl	Wed Dec 02 13:33:54 2020 +0100
@@ -16,7 +16,7 @@
     e = BoundaryRestriction(restrict(grid, d), closureStencil, r)
 
     # Create 1D IdentityMappings for each coordinate direction
-    one_d_grids = restrict.(Ref(grid), Tuple(1:D))
+    one_d_grids = restrict.(Ref(grid), Tuple(1:Dim))
     Is = IdentityMapping{T}.(size.(one_d_grids))
 
     # Formulate the correct outer product sequence of the identity mappings and