Skip to content
Snippets Groups Projects
Commit ffbee928 authored by Anna Wellmann's avatar Anna Wellmann
Browse files

Change some function names and add comment

parent 18ef42b7
No related branches found
No related tags found
1 merge request!159Fix a segmentation fault that occurred during the interpolation from fine to coarse
......@@ -466,7 +466,7 @@ void IndexRearrangementForStreams::reorderRecvIndicesForCommAfterFtoC(
void IndexRearrangementForStreams::splitFineToCoarseIntoBorderAndBulk(const uint &level)
{
this->getGridInterfaceIndicesBorderBulkFC(level);
this->reorderFineToCoarseIntoBorderAndBulk(level);
para->getParD(level)->intFCBorder.kFC = para->getParH(level)->intFCBorder.kFC;
para->getParD(level)->intFCBulk.kFC = para->getParH(level)->intFCBulk.kFC;
......@@ -481,7 +481,7 @@ void IndexRearrangementForStreams::splitFineToCoarseIntoBorderAndBulk(const uint
para->getParD(level)->offFCBulk.zOffFC = para->getParD(level)->offFC.zOffFC + para->getParD(level)->intFCBorder.kFC;
}
void IndexRearrangementForStreams::getGridInterfaceIndicesBorderBulkFC(int level)
void IndexRearrangementForStreams::reorderFineToCoarseIntoBorderAndBulk(int level)
{
// create some local variables for better readability
uint *iCellFccAll = para->getParH(level)->intFC.ICellFCC;
......@@ -547,7 +547,7 @@ void IndexRearrangementForStreams::getGridInterfaceIndicesBorderBulkFC(int level
void IndexRearrangementForStreams::splitCoarseToFineIntoBorderAndBulk(const uint &level)
{
this->getGridInterfaceIndicesBorderBulkCF(level);
this->reorderCoarseToFineIntoBorderAndBulk(level);
para->getParD(level)->intCFBorder.kCF = para->getParH(level)->intCFBorder.kCF;
para->getParD(level)->intCFBulk.kCF = para->getParH(level)->intCFBulk.kCF;
......@@ -562,7 +562,7 @@ void IndexRearrangementForStreams::splitCoarseToFineIntoBorderAndBulk(const uint
para->getParD(level)->offCFBulk.zOffCF = para->getParD(level)->offCF.zOffCF + para->getParD(level)->intCFBorder.kCF;
}
void IndexRearrangementForStreams::getGridInterfaceIndicesBorderBulkCF(int level)
void IndexRearrangementForStreams::reorderCoarseToFineIntoBorderAndBulk(int level)
{
// create some local variables for better readability
uint *iCellCfcAll = para->getParH(level)->intCF.ICellCFC;
......
......@@ -142,12 +142,13 @@ private:
//! subarrays: \details The coarse cells for interpolation from coarse to fine (iCellCFC) are divided into two
//! subgroups: border and bulk. The fine cells (iCellCFF) are reordered accordingly. The offset cells (xOffCF,
//! yOffCF, zOffCF) must be reordered in the same way.
void getGridInterfaceIndicesBorderBulkCF(int level);
void reorderCoarseToFineIntoBorderAndBulk(int level);
//! \brief This function reorders the arrays of FCC/FCF indices and return pointers and sizes of the new subarrays:
//! \details The coarse cells for interpolation from fine to coarse (iCellFCC) are divided into two subgroups:
//! border and bulk. The fine cells (iCellFCF) are reordered accordingly.
void getGridInterfaceIndicesBorderBulkFC(int level);
//! border and bulk. The fine cells (iCellFCF) are reordered accordingly. The offset cells (xOffFC,
//! yOffFC, zOffFC) must be reordered in the same way.
void reorderFineToCoarseIntoBorderAndBulk(int level);
private:
......
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