programming style

This commit is contained in:
Axel Kohlmeyer
2023-06-16 12:12:23 -04:00
parent 74c4eb1063
commit 59c5ed63e3

View File

@ -201,7 +201,7 @@ DumpImage::DumpImage(LAMMPS *lmp, int narg, char **arg) :
if (iflag == ArgInfo::COMPUTE) id_grid_compute = utils::strdup(id); if (iflag == ArgInfo::COMPUTE) id_grid_compute = utils::strdup(id);
else if (iflag == ArgInfo::FIX) id_grid_fix = utils::strdup(id); else if (iflag == ArgInfo::FIX) id_grid_fix = utils::strdup(id);
delete [] id; delete[] id;
grid_igrid = igrid; grid_igrid = igrid;
grid_idata = idata; grid_idata = idata;
grid_index = index; grid_index = index;
@ -461,18 +461,18 @@ DumpImage::~DumpImage()
{ {
delete image; delete image;
delete [] diamtype; delete[] diamtype;
delete [] diamelement; delete[] diamelement;
delete [] colortype; delete[] colortype;
delete [] colorelement; delete[] colorelement;
delete [] bdiamtype; delete[] bdiamtype;
delete [] bcolortype; delete[] bcolortype;
memory->destroy(chooseghost); memory->destroy(chooseghost);
memory->destroy(bufcopy); memory->destroy(bufcopy);
memory->destroy(gbuf); memory->destroy(gbuf);
delete [] id_grid_compute; delete[] id_grid_compute;
delete [] id_grid_fix; delete[] id_grid_fix;
} }
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */