fix wide halo bug in list memory

This commit is contained in:
James McClure
2021-02-09 15:25:20 -05:00
parent 7cdc358af2
commit e421406788
2 changed files with 3 additions and 2 deletions

View File

@@ -288,6 +288,7 @@ void ScaLBLWideHalo_Communicator::Send(double *data){
req1[25] = MPI_COMM_SCALBL.Isend(&sendCount_xYZ,1,rank_xYZ,sendtag+25);
req2[25] = MPI_COMM_SCALBL.Irecv(&recvCount_Xyz,1,rank_Xyz,recvtag+25);
//...................................................................................
}

View File

@@ -95,7 +95,7 @@ private:
int *dvcRecvList_xyZ,*dvcRecvList_XyZ,*dvcRecvList_xYZ,*dvcRecvList_XYZ;
//......................................................................................
inline int getHaloBlock(int imin, int imax, int jmin, int jmax, int kmin, int kmax, int *dvcList){
inline int getHaloBlock(int imin, int imax, int jmin, int jmax, int kmin, int kmax, int *& dvcList){
int count = 0;
int *List;
List = new int [(imax-imin)*(jmax-jmin)*(kmax-kmin)];