Skip to content

Commit f951e98

Browse files
committed
Communicate coordinates with CELL_DIMENSIONS
1 parent 5d42de1 commit f951e98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

grid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void initializeGrids(
184184
initSpatialCellCoordinates(mpiGrid);
185185
phiprof::stop("Set spatial cell coordinates");
186186

187-
SpatialCell::set_mpi_transfer_type(Transfer::CELL_PARAMETERS);
187+
SpatialCell::set_mpi_transfer_type(Transfer::CELL_DIMENSIONS);
188188
mpiGrid.update_copies_of_remote_neighbors(SYSBOUNDARIES_NEIGHBORHOOD_ID);
189189

190190
phiprof::start("Initialize system boundary conditions");

spatial_cell.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,8 @@ namespace spatial_cell {
664664

665665
// send spatial cell dimensions
666666
if ((SpatialCell::mpi_transfer_type & Transfer::CELL_DIMENSIONS)!=0){
667-
displacements.push_back((uint8_t*) &(this->parameters[CellParams::DX]) - (uint8_t*) this);
668-
block_lengths.push_back(sizeof(Real) * 3);
667+
displacements.push_back((uint8_t*) &(this->parameters[CellParams::XCRD]) - (uint8_t*) this);
668+
block_lengths.push_back(sizeof(Real) * 6);
669669
}
670670

671671
// send BGBXVOL BGBYVOL BGBZVOL PERBXVOL PERBYVOL PERBZVOL

0 commit comments

Comments
 (0)