Skip to content

Commit

Permalink
copy grid data instead of calling initializer twice
Browse files Browse the repository at this point in the history
  • Loading branch information
gentryx committed May 23, 2016
1 parent a2d8646 commit bb848f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parallelization/nesting/commonstepper.h
Expand Up @@ -161,7 +161,7 @@ class CommonStepper : public Stepper<CELL_TYPE>
newGrid.reset(new GridType(gridBox, CELL_TYPE(), CELL_TYPE(), topoDim));

initializer->grid(&*oldGrid);
initializer->grid(&*newGrid);
*newGrid = *oldGrid;

notifyPatchProviders(partitionManager->getOuterRim(), ParentType::GHOST, globalNanoStep());
notifyPatchProviders(partitionManager->ownRegion(), ParentType::INNER_SET, globalNanoStep());
Expand Down

0 comments on commit bb848f8

Please sign in to comment.