more code formatting consistency changes for loops and conditionals
This commit is contained in:
@ -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) {
|
void PairLCBOP::g_decompose_x( double x, size_t *field_idx, double *offset) {
|
||||||
size_t i=0;
|
size_t i=0;
|
||||||
while( i<(6-1) && !( x<gX[i+1] ) )
|
while ((i<(6-1)) && !(x<gX[i+1]))
|
||||||
i++;
|
i++;
|
||||||
*field_idx = i;
|
*field_idx = i;
|
||||||
*offset = ( x - gX[i] );
|
*offset = ( x - gX[i] );
|
||||||
|
|||||||
@ -485,8 +485,7 @@ void FixGCMC::init()
|
|||||||
(force->pair->single_enable == 0) ||
|
(force->pair->single_enable == 0) ||
|
||||||
(force->pair_match("^hybrid",0)) ||
|
(force->pair_match("^hybrid",0)) ||
|
||||||
(force->pair_match("^eam",0)) ||
|
(force->pair_match("^eam",0)) ||
|
||||||
(force->pair->tail_flag)
|
(force->pair->tail_flag)) {
|
||||||
) {
|
|
||||||
full_flag = true;
|
full_flag = true;
|
||||||
if (comm->me == 0)
|
if (comm->me == 0)
|
||||||
error->warning(FLERR,"Fix gcmc using full_energy option");
|
error->warning(FLERR,"Fix gcmc using full_energy option");
|
||||||
|
|||||||
@ -287,8 +287,7 @@ void FixWidom::init()
|
|||||||
(force->pair->single_enable == 0) ||
|
(force->pair->single_enable == 0) ||
|
||||||
(force->pair_match("hybrid",0)) ||
|
(force->pair_match("hybrid",0)) ||
|
||||||
(force->pair_match("eam",0)) ||
|
(force->pair_match("eam",0)) ||
|
||||||
(force->pair->tail_flag)
|
(force->pair->tail_flag)) {
|
||||||
) {
|
|
||||||
full_flag = true;
|
full_flag = true;
|
||||||
if (comm->me == 0)
|
if (comm->me == 0)
|
||||||
error->warning(FLERR,"Fix widom using full_energy option");
|
error->warning(FLERR,"Fix widom using full_energy option");
|
||||||
|
|||||||
@ -95,8 +95,7 @@ FixNVTManifoldRattle::FixNVTManifoldRattle(LAMMPS *lmp, int narg, char **arg,
|
|||||||
which = got_temp = 0;
|
which = got_temp = 0;
|
||||||
|
|
||||||
int argi = 6 + ptr_m->nparams();
|
int argi = 6 + ptr_m->nparams();
|
||||||
while( argi < narg )
|
while (argi < narg) {
|
||||||
{
|
|
||||||
if (strcmp( arg[argi], "temp") == 0) {
|
if (strcmp( arg[argi], "temp") == 0) {
|
||||||
if (argi+3 >= narg)
|
if (argi+3 >= narg)
|
||||||
error->all(FLERR,"Keyword 'temp' needs 3 arguments");
|
error->all(FLERR,"Keyword 'temp' needs 3 arguments");
|
||||||
|
|||||||
Reference in New Issue
Block a user