whitespace fixes

This commit is contained in:
Axel Kohlmeyer
2022-12-16 05:08:07 -05:00
parent 28f8525fa0
commit dc7bf29c09
3 changed files with 5 additions and 5 deletions

View File

@ -126,7 +126,7 @@ DumpImage::DumpImage(LAMMPS *lmp, int narg, char **arg) :
gridflag = NO;
lineflag = triflag = bodyflag = fixflag = NO;
id_grid_compute = id_grid_fix = nullptr;
if (atom->nbondtypes == 0) bondflag = NO;
else {
bondflag = YES;
@ -929,7 +929,7 @@ void DumpImage::create_image()
if (gridflag) {
// reset lighting for flat surfaces to make them brighter
image->ambientColor[0] = image->ambientColor[1] = image->ambientColor[2] = 0.9;
image->keyLightColor[0] = image->keyLightColor[1] = image->keyLightColor[2] = 0.3;
image->fillLightColor[0] = image->fillLightColor[1] = image->fillLightColor[2] = 0.3;

View File

@ -2053,7 +2053,7 @@ void FixAveGrid::reset_grid()
delete grid_window[i];
delete [] grid_window;
}
// allocate grid instance and grid data for new decomposition
allocate_grid();
@ -2100,7 +2100,7 @@ void FixAveGrid::reset_grid()
if (dimension == 2) delete grid2d_previous;
else delete grid3d_previous;
deallocate_one_grid(grid_sample_previous,nxlo_out_previous,nylo_out_previous,nzlo_out_previous);
deallocate_one_grid(grid_nfreq_previous,nxlo_out_previous,nylo_out_previous,nzlo_out_previous);
if (aveflag == RUNNING || aveflag == WINDOW)

View File

@ -819,7 +819,7 @@ void Image::draw_triangle(double *x, double *y, double *z, double *surfaceColor)
// using <= if test can leave single-pixel gaps between 2 tris
// using < if test fixes it
// suggested by Nathan Fabian, Nov 2022
MathExtra::sub3 (zlocal, xlocal, s1);
MathExtra::sub3 (ylocal, xlocal, s2);
MathExtra::sub3 (p, xlocal, s3);