Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed initialisation of layers/boundaries, technical grid needs updating #407

Merged
merged 2 commits into from
May 15, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Moved technicalGrid.updateGhostCells to where technicalGrid things ar…
…e done.
  • Loading branch information
ykempf committed May 15, 2019
commit af0e268002a9a5bc753b2f3edc11bcc0ac271b26
3 changes: 2 additions & 1 deletion sysboundary/sysboundary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ bool SysBoundary::classifyCells(dccrg::Dccrg<spatial_cell::SpatialCell,dccrg::Ca
// sysBoundaryLayer communicated)
SpatialCell::set_mpi_transfer_type(Transfer::CELL_SYSBOUNDARYFLAG);
mpiGrid.update_copies_of_remote_neighbors(SYSBOUNDARIES_NEIGHBORHOOD_ID);
technicalGrid.updateGhostCells();

// set distance 1 cells to boundary cells, that have neighbors which are normal cells
for(uint i=0; i<cells.size(); i++) {
Expand Down Expand Up @@ -475,6 +474,8 @@ bool SysBoundary::classifyCells(dccrg::Dccrg<spatial_cell::SpatialCell,dccrg::Ca
// In dccrg initialization the max number of boundary layers is set to 3.
const uint MAX_NUMBER_OF_BOUNDARY_LAYERS = 3 * pow(2,mpiGrid.get_maximum_refinement_level());

technicalGrid.updateGhostCells();

// loop through max number of layers
for(uint layer = 1; layer <= MAX_NUMBER_OF_BOUNDARY_LAYERS; ++layer) {

Expand Down