Skip to content

Commit

Permalink
Fix bug in grid used for distributed pressure BCs
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ramadhan committed Feb 8, 2021
1 parent efd2553 commit efd410d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Distributed/distributed_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function DistributedModel(; architecture, grid, boundary_conditions=nothing, mod
pressure_solver = haskey(model_kwargs, :pressure_solver) ? Dict(model_kwargs)[:pressure_solver] :
DistributedFFTBasedPoissonSolver(architecture, grid, my_grid)

p_bcs = PressureBoundaryConditions(grid)
p_bcs = PressureBoundaryConditions(my_grid)
p_bcs = inject_halo_communication_boundary_conditions(p_bcs, my_rank, my_connectivity)

pHY′ = CenterField(child_architecture(architecture), my_grid, p_bcs)
Expand Down

0 comments on commit efd410d

Please sign in to comment.