remove comments

This commit is contained in:
Adrian-Diaz
2019-12-04 12:32:04 -05:00
committed by GitHub
parent 06964c58de
commit c262d08e84

View File

@ -2016,12 +2016,8 @@ void CommTiled::allocate_swap(int n)
pbc_flag = new int*[n]; pbc_flag = new int*[n];
pbc = new int**[n]; pbc = new int**[n];
//if(mode == SINGLE){
sendbox = new double**[n]; sendbox = new double**[n];
//}
//else{
sendbox_multi = new double***[n]; sendbox_multi = new double***[n];
//}
maxsendlist = new int*[n]; maxsendlist = new int*[n];
sendlist = new int**[n]; sendlist = new int**[n];
@ -2034,12 +2030,8 @@ void CommTiled::allocate_swap(int n)
pbc_flag[i] = NULL; pbc_flag[i] = NULL;
pbc[i] = NULL; pbc[i] = NULL;
//if(mode == SINGLE){
sendbox[i] = NULL; sendbox[i] = NULL;
// }
//else{
sendbox_multi[i] = NULL; sendbox_multi[i] = NULL;
//}
maxsendlist[i] = NULL; maxsendlist[i] = NULL;
sendlist[i] = NULL; sendlist[i] = NULL;
} }
@ -2086,14 +2078,10 @@ void CommTiled::grow_swap_send(int i, int n, int nold)
pbc_flag[i] = new int[n]; pbc_flag[i] = new int[n];
memory->destroy(pbc[i]); memory->destroy(pbc[i]);
memory->create(pbc[i],n,6,"comm:pbc_flag"); memory->create(pbc[i],n,6,"comm:pbc_flag");
//if(mode == SINGLE){
memory->destroy(sendbox[i]); memory->destroy(sendbox[i]);
memory->create(sendbox[i],n,6,"comm:sendbox"); memory->create(sendbox[i],n,6,"comm:sendbox");
//}
//else {
memory->destroy(sendbox_multi[i]); memory->destroy(sendbox_multi[i]);
memory->create(sendbox_multi[i],n,atom->ntypes+1,6,"comm:sendbox_multi"); memory->create(sendbox_multi[i],n,atom->ntypes+1,6,"comm:sendbox_multi");
//}
delete [] maxsendlist[i]; delete [] maxsendlist[i];
maxsendlist[i] = new int[n]; maxsendlist[i] = new int[n];
@ -2151,12 +2139,8 @@ void CommTiled::deallocate_swap(int n)
delete [] pbc_flag[i]; delete [] pbc_flag[i];
memory->destroy(pbc[i]); memory->destroy(pbc[i]);
//if(mode == Comm::SINGLE){
memory->destroy(sendbox[i]); memory->destroy(sendbox[i]);
// }
//else{
memory->destroy(sendbox_multi[i]); memory->destroy(sendbox_multi[i]);
// }
delete [] maxsendlist[i]; delete [] maxsendlist[i];
for (int j = 0; j < nprocmax[i]; j++) memory->destroy(sendlist[i][j]); for (int j = 0; j < nprocmax[i]; j++) memory->destroy(sendlist[i][j]);
@ -2176,12 +2160,8 @@ void CommTiled::deallocate_swap(int n)
delete [] pbc_flag; delete [] pbc_flag;
delete [] pbc; delete [] pbc;
//if(mode == SINGLE){
delete [] sendbox; delete [] sendbox;
// }
//else{
delete [] sendbox_multi; delete [] sendbox_multi;
//}
delete [] maxsendlist; delete [] maxsendlist;
delete [] sendlist; delete [] sendlist;