more code formatting consistency changes for loops and conditionals

This commit is contained in:
Axel Kohlmeyer
2020-12-30 09:27:47 -05:00
parent 28de7e351a
commit 51a20175c9
171 changed files with 744 additions and 747 deletions

View File

@ -868,7 +868,7 @@ double PairLCBOP::b(int i, int j, double rij[3],
void PairLCBOP::g_decompose_x( double x, size_t *field_idx, double *offset) {
size_t i=0;
while( i<(6-1) && !( x<gX[i+1] ) )
while ((i<(6-1)) && !(x<gX[i+1]))
i++;
*field_idx = i;
*offset = ( x - gX[i] );

View File

@ -485,8 +485,7 @@ void FixGCMC::init()
(force->pair->single_enable == 0) ||
(force->pair_match("^hybrid",0)) ||
(force->pair_match("^eam",0)) ||
(force->pair->tail_flag)
) {
(force->pair->tail_flag)) {
full_flag = true;
if (comm->me == 0)
error->warning(FLERR,"Fix gcmc using full_energy option");

View File

@ -287,8 +287,7 @@ void FixWidom::init()
(force->pair->single_enable == 0) ||
(force->pair_match("hybrid",0)) ||
(force->pair_match("eam",0)) ||
(force->pair->tail_flag)
) {
(force->pair->tail_flag)) {
full_flag = true;
if (comm->me == 0)
error->warning(FLERR,"Fix widom using full_energy option");

View File

@ -95,8 +95,7 @@ FixNVTManifoldRattle::FixNVTManifoldRattle(LAMMPS *lmp, int narg, char **arg,
which = got_temp = 0;
int argi = 6 + ptr_m->nparams();
while( argi < narg )
{
while (argi < narg) {
if (strcmp( arg[argi], "temp") == 0) {
if (argi+3 >= narg)
error->all(FLERR,"Keyword 'temp' needs 3 arguments");