Skip to content
Snippets Groups Projects
Commit 6b7fb245 authored by Florian Atteneder's avatar Florian Atteneder
Browse files

can't smooth boundary cells in non-periodic problems

parent 7d58e113
No related branches found
No related tags found
2 merge requests!52improvements to ScalarEq, EulerEq, SRHD,!51Draft: Fa/wip/srhd+av
......@@ -161,6 +161,7 @@ function smooth_C0_1st_order!(bulk_v, cell_v, mesh::Mesh2d, isperiodic_x=true, i
v_iter = dg1d.CellDataIterator(mesh, bulk_v)
for (k,(v,cell)) in enumerate(zip(v_iter,cells))
dg1d.is_boundarycell(cell) && continue
# left, right, up, down
l, r, d, u = cell.neighbors
# left-down, left-up, right-down, right-up
......@@ -197,6 +198,7 @@ function smooth_C0_2nd_order!(bulk_v, cell_v, mesh::Mesh2d, isperiodic_x=true, i
v_iter = dg1d.CellDataIterator(mesh, bulk_v)
for (k,(v,cell)) in enumerate(zip(v_iter,cells))
dg1d.is_boundarycell(cell) && continue
# left, right, up, down
l, r, d, u = cell.neighbors
# left-down, left-up, right-down, right-up
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment