simplify
This commit is contained in:
@ -46,6 +46,11 @@ CommTiled::CommTiled(LAMMPS *lmp) : Comm(lmp)
|
|||||||
style = 1;
|
style = 1;
|
||||||
layout = Comm::LAYOUT_UNIFORM;
|
layout = Comm::LAYOUT_UNIFORM;
|
||||||
pbc_flag = NULL;
|
pbc_flag = NULL;
|
||||||
|
buf_send = NULL;
|
||||||
|
buf_recv = NULL;
|
||||||
|
overlap = NULL;
|
||||||
|
rcbinfo = NULL;
|
||||||
|
cutghostmulti = NULL;
|
||||||
init_buffers();
|
init_buffers();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,8 +78,7 @@ CommTiled::~CommTiled()
|
|||||||
memory->destroy(overlap);
|
memory->destroy(overlap);
|
||||||
deallocate_swap(maxswap);
|
deallocate_swap(maxswap);
|
||||||
memory->sfree(rcbinfo);
|
memory->sfree(rcbinfo);
|
||||||
|
memory->destroy(cutghostmulti);
|
||||||
if (mode == Comm::MULTI) memory->destroy(cutghostmulti);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
@ -105,9 +109,8 @@ void CommTiled::init()
|
|||||||
{
|
{
|
||||||
Comm::init();
|
Comm::init();
|
||||||
|
|
||||||
if (mode == Comm::SINGLE && cutghostmulti) memory->destroy(cutghostmulti);
|
memory->destroy(cutghostmulti);
|
||||||
|
if (mode == Comm::MULTI)
|
||||||
if (mode == Comm::MULTI && !cutghostmulti)
|
|
||||||
memory->create(cutghostmulti,atom->ntypes+1,3,"comm:cutghostmulti");
|
memory->create(cutghostmulti,atom->ntypes+1,3,"comm:cutghostmulti");
|
||||||
|
|
||||||
int bufextra_old = bufextra;
|
int bufextra_old = bufextra;
|
||||||
|
|||||||
Reference in New Issue
Block a user