mirror of https://github.com/lammps/lammps.git
use ev_init() and add some more cosmetic changes to pair granular
This commit is contained in:
parent
2fa6e913ef
commit
b9bddd7ba6
|
@ -170,13 +170,10 @@ void PairGranular::compute(int eflag, int vflag)
|
|||
int *touch,**firsttouch;
|
||||
double *history,*allhistory,**firsthistory;
|
||||
|
||||
bool touchflag;
|
||||
bool touchflag = false;
|
||||
const bool historyupdate = (update->setupflag) ? false : true;
|
||||
|
||||
if (eflag || vflag) ev_setup(eflag,vflag);
|
||||
else evflag = vflag_fdotr = 0;
|
||||
|
||||
int historyupdate = 1;
|
||||
if (update->setupflag) historyupdate = 0;
|
||||
ev_init(eflag,vflag);
|
||||
|
||||
// update rigid body info for owned & ghost atoms if using FixRigid masses
|
||||
// body[i] = which body atom I is in, -1 if none
|
||||
|
|
Loading…
Reference in New Issue