Skip to content
Snippets Groups Projects
Commit d67b58d3 authored by AlenaKaranchuk's avatar AlenaKaranchuk
Browse files

fix last merge issues in MPIIOMigrationCoProcessor and MPIIORestartCoProcessor

parent 5c85a59b
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,7 @@ private:
friend class MPIIORestartCoProcessor;
friend class MPIIOMigrationCoProcessor;
friend class MPIIOMigrationBECoProcessor;
friend class CheckpointConverter;
};
#endif //COORDINATETRANSFORMATION3D_H
......@@ -1698,6 +1698,7 @@ void MPIIOMigrationBECoProcessor::readDataSet(int step)
// find the nesessary block and fill it
SPtr<Block3D> block = grid->getBlock(blockID);
this->lbmKernel->setBlock(block);
SPtr<LBMKernel> kernel = this->lbmKernel->clone();
LBMReal collFactor = LBMSystem::calcCollisionFactor(this->nue, block->getLevel());
kernel->setCollisionFactor(collFactor);
......
......@@ -1560,13 +1560,14 @@ void MPIIOMigrationCoProcessor::readBlocks(int step)
}
// clear the grid
std::vector<SPtr<Block3D>> blocksVector;
grid->getBlocks(0, blocksVector);
int del = 0;
for (SPtr<Block3D> block : blocksVector)
std::vector<SPtr<Block3D>> blocksVector[25];
int minInitLevel = this->grid->getCoarsestInitializedLevel();
int maxInitLevel = this->grid->getFinestInitializedLevel();
for (int level = minInitLevel; level <= maxInitLevel; level++)
{
grid->deleteBlock(block);
del++;
grid->getBlocks(level, blocksVector[level]);
for (SPtr<Block3D> block : blocksVector[level]) // blocks of the current level
grid->deleteBlock(block);
}
// restore the grid
......
......@@ -1921,6 +1921,7 @@ void MPIIORestartCoProcessor::readDataSet(int step)
// find the nesessary block and fill it
SPtr<Block3D> block = grid->getBlock(dataSetArray[n].x1, dataSetArray[n].x2, dataSetArray[n].x3, dataSetArray[n].level);
this->lbmKernel->setBlock(block);
SPtr<LBMKernel> kernel = this->lbmKernel->clone();
kernel->setGhostLayerWidth(dataSetArray[n].ghostLayerWidth);
kernel->setCollisionFactor(dataSetArray[n].collFactor);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment