remove dead code and silence warnings about unused parameters
This commit is contained in:
@ -136,7 +136,7 @@ void FixHyperGlobal::init()
|
|||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
void FixHyperGlobal::init_list(int id, NeighList *ptr)
|
void FixHyperGlobal::init_list(int /* id */, NeighList *ptr)
|
||||||
{
|
{
|
||||||
list = ptr;
|
list = ptr;
|
||||||
}
|
}
|
||||||
@ -167,7 +167,7 @@ void FixHyperGlobal::setup_pre_reverse(int eflag, int vflag)
|
|||||||
|
|
||||||
void FixHyperGlobal::pre_neighbor()
|
void FixHyperGlobal::pre_neighbor()
|
||||||
{
|
{
|
||||||
int i,m,jnum,iold,jold,ilocal,jlocal;
|
int m,iold,jold,ilocal,jlocal;
|
||||||
double distsq;
|
double distsq;
|
||||||
|
|
||||||
// reset local IDs for owned bond atoms, since atoms have migrated
|
// reset local IDs for owned bond atoms, since atoms have migrated
|
||||||
@ -200,10 +200,10 @@ void FixHyperGlobal::pre_neighbor()
|
|||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
void FixHyperGlobal::pre_reverse(int eflag, int vflag)
|
void FixHyperGlobal::pre_reverse(int /* eflag */, int /* vflag */)
|
||||||
{
|
{
|
||||||
int i,j,m,imax,jmax;
|
int i,j,m,imax,jmax;
|
||||||
double xtmp,ytmp,ztmp,delx,dely,delz;
|
double delx,dely,delz;
|
||||||
double r,r0,estrain,rmax,r0max,emax,dt_boost;
|
double r,r0,estrain,rmax,r0max,emax,dt_boost;
|
||||||
double vbias,fbias,fbiasr;
|
double vbias,fbias,fbiasr;
|
||||||
|
|
||||||
@ -299,11 +299,9 @@ void FixHyperGlobal::pre_reverse(int eflag, int vflag)
|
|||||||
|
|
||||||
void FixHyperGlobal::build_bond_list(int natom)
|
void FixHyperGlobal::build_bond_list(int natom)
|
||||||
{
|
{
|
||||||
int i,j,n,ii,jj,inum,jnum;
|
int i,j,ii,jj,inum,jnum;
|
||||||
double xtmp,ytmp,ztmp,delx,dely,delz,rsq;
|
double xtmp,ytmp,ztmp,delx,dely,delz,rsq;
|
||||||
int *ilist,*jlist,*numneigh,**firstneigh;
|
int *ilist,*jlist,*numneigh,**firstneigh;
|
||||||
tagint *bptr;
|
|
||||||
double *rptr;
|
|
||||||
|
|
||||||
if (natom) {
|
if (natom) {
|
||||||
nevent++;
|
nevent++;
|
||||||
|
|||||||
@ -316,7 +316,7 @@ void FixHyperLocal::init()
|
|||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
void FixHyperLocal::init_list(int id, NeighList *ptr)
|
void FixHyperLocal::init_list(int /* id */, NeighList *ptr)
|
||||||
{
|
{
|
||||||
list = ptr;
|
list = ptr;
|
||||||
}
|
}
|
||||||
@ -413,7 +413,7 @@ void FixHyperLocal::pre_neighbor()
|
|||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
void FixHyperLocal::pre_reverse(int eflag, int vflag)
|
void FixHyperLocal::pre_reverse(int /* eflag */, int /* vflag */)
|
||||||
{
|
{
|
||||||
int i,j,m,ii,jj,inum,jnum,iold,jold,nbond,bondindex;
|
int i,j,m,ii,jj,inum,jnum,iold,jold,nbond,bondindex;
|
||||||
tagint itag,jtag;
|
tagint itag,jtag;
|
||||||
@ -788,7 +788,6 @@ void FixHyperLocal::pre_reverse(int eflag, int vflag)
|
|||||||
|
|
||||||
if (checkcoeff && update->ntimestep % checkcoeff_every == 0) {
|
if (checkcoeff && update->ntimestep % checkcoeff_every == 0) {
|
||||||
int jb,jbonds;
|
int jb,jbonds;
|
||||||
double ibias,jbias;
|
|
||||||
|
|
||||||
for (i = 0; i < nlocal; i++) {
|
for (i = 0; i < nlocal; i++) {
|
||||||
nbond = numbond[i];
|
nbond = numbond[i];
|
||||||
@ -998,9 +997,9 @@ void FixHyperLocal::build_bond_list(int natom)
|
|||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
int FixHyperLocal::pack_forward_comm(int n, int *list, double *buf,
|
int FixHyperLocal::pack_forward_comm(int n, int *list, double *buf,
|
||||||
int pbc_flag, int *pbc)
|
int /* pbc_flag */, int * /* pbc */)
|
||||||
{
|
{
|
||||||
int i,j,k,m,ibond,nbond,start;
|
int i,j,m;
|
||||||
|
|
||||||
m = 0;
|
m = 0;
|
||||||
|
|
||||||
@ -1039,7 +1038,7 @@ int FixHyperLocal::pack_forward_comm(int n, int *list, double *buf,
|
|||||||
|
|
||||||
void FixHyperLocal::unpack_forward_comm(int n, int first, double *buf)
|
void FixHyperLocal::unpack_forward_comm(int n, int first, double *buf)
|
||||||
{
|
{
|
||||||
int i,j,k,m,last,ibond,nbond,jlocal,flag;
|
int i,m,last;
|
||||||
|
|
||||||
m = 0;
|
m = 0;
|
||||||
last = first + n;
|
last = first + n;
|
||||||
@ -1158,7 +1157,7 @@ void FixHyperLocal::grow_arrays(int nmax)
|
|||||||
copy values within local atom-based arrays
|
copy values within local atom-based arrays
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
void FixHyperLocal::copy_arrays(int i, int j, int delflag)
|
void FixHyperLocal::copy_arrays(int i, int j, int /* delflag */)
|
||||||
{
|
{
|
||||||
// avoid valgrind copy-to-self warning
|
// avoid valgrind copy-to-self warning
|
||||||
|
|
||||||
|
|||||||
@ -413,7 +413,7 @@ void Hyper::command(int narg, char **arg)
|
|||||||
short dynamics run
|
short dynamics run
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
void Hyper::dynamics(int nsteps, double &time_category)
|
void Hyper::dynamics(int nsteps, double & /* time_category */)
|
||||||
{
|
{
|
||||||
update->whichflag = 1;
|
update->whichflag = 1;
|
||||||
update->nsteps = nsteps;
|
update->nsteps = nsteps;
|
||||||
@ -470,7 +470,7 @@ void Hyper::quench(int flag)
|
|||||||
//update->minimize->setup_minimal(1);
|
//update->minimize->setup_minimal(1);
|
||||||
|
|
||||||
// NOTE: what doing with ncalls?
|
// NOTE: what doing with ncalls?
|
||||||
int ncalls = neighbor->ncalls;
|
// int ncalls = neighbor->ncalls;
|
||||||
|
|
||||||
timer->barrier_start();
|
timer->barrier_start();
|
||||||
update->minimize->run(maxiter);
|
update->minimize->run(maxiter);
|
||||||
|
|||||||
Reference in New Issue
Block a user