Skip to content

Commit

Permalink
increase guard cells to account for averaging/finite differencing steps
Browse files Browse the repository at this point in the history
  • Loading branch information
adamslc committed Aug 29, 2024
1 parent 8eae7ec commit 1fbd1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function create_electrostatic_simulation(
sim = Simulation(AbstractSimulationStep[])

# Create fields
lower_guard_cells = div(interpolation_order, 2)
lower_guard_cells = div(interpolation_order, 2) + 1
rho = Field(grid, NodeOffset(), V, lower_guard_cells)
phi = Field(grid, NodeOffset(), V, lower_guard_cells)
Eedge = Field(grid, EdgeOffset(), V, lower_guard_cells)
Expand Down

0 comments on commit 1fbd1b2

Please sign in to comment.