remove dead code, silence compiler warnings
This commit is contained in:
@ -1072,10 +1072,10 @@ void FixCMAP::read_data_header(char *line)
|
|||||||
store CMAP interactions as if newton_bond = OFF, even if actually ON
|
store CMAP interactions as if newton_bond = OFF, even if actually ON
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
void FixCMAP::read_data_section(char *keyword, int n, char *buf,
|
void FixCMAP::read_data_section(char * /*keyword*/, int /*n*/, char *buf,
|
||||||
tagint id_offset)
|
tagint id_offset)
|
||||||
{
|
{
|
||||||
int m,tmp,itype;
|
int m,itype;
|
||||||
tagint atom1,atom2,atom3,atom4,atom5;
|
tagint atom1,atom2,atom3,atom4,atom5;
|
||||||
|
|
||||||
auto lines = utils::split_lines(buf);
|
auto lines = utils::split_lines(buf);
|
||||||
|
|||||||
@ -294,7 +294,6 @@ void FixNVESphere::final_integrate()
|
|||||||
// update v,omega for all particles
|
// update v,omega for all particles
|
||||||
// d_omega/dt = torque / inertia
|
// d_omega/dt = torque / inertia
|
||||||
|
|
||||||
double rke = 0.0;
|
|
||||||
for (int i = 0; i < nlocal; i++)
|
for (int i = 0; i < nlocal; i++)
|
||||||
if (mask[i] & groupbit) {
|
if (mask[i] & groupbit) {
|
||||||
dtfm = dtf / rmass[i];
|
dtfm = dtf / rmass[i];
|
||||||
@ -306,8 +305,5 @@ void FixNVESphere::final_integrate()
|
|||||||
omega[i][0] += dtirotate * torque[i][0];
|
omega[i][0] += dtirotate * torque[i][0];
|
||||||
omega[i][1] += dtirotate * torque[i][1];
|
omega[i][1] += dtirotate * torque[i][1];
|
||||||
omega[i][2] += dtirotate * torque[i][2];
|
omega[i][2] += dtirotate * torque[i][2];
|
||||||
rke += (omega[i][0]*omega[i][0] + omega[i][1]*omega[i][1] +
|
|
||||||
omega[i][2]*omega[i][2])*radius[i]*radius[i]*rmass[i];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -328,7 +328,7 @@ int MinLineSearch::linemin_quadratic(double eoriginal, double &alpha)
|
|||||||
int i,m,n;
|
int i,m,n;
|
||||||
double fdothall,fdothme,hme,hmax,hmaxall;
|
double fdothall,fdothme,hme,hmax,hmaxall;
|
||||||
double de_ideal,de;
|
double de_ideal,de;
|
||||||
double delfh,engprev,relerr,alphaprev,fhprev,ff,fh,alpha0;
|
double delfh,engprev,relerr,alphaprev,fhprev,fh,alpha0;
|
||||||
double dot[2],dotall[2];
|
double dot[2],dotall[2];
|
||||||
double *xatom,*x0atom,*fatom,*hatom;
|
double *xatom,*x0atom,*fatom,*hatom;
|
||||||
double alphamax;
|
double alphamax;
|
||||||
@ -439,12 +439,8 @@ int MinLineSearch::linemin_quadratic(double eoriginal, double &alpha)
|
|||||||
dotall[1] += fextra[i]*hextra[i];
|
dotall[1] += fextra[i]*hextra[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ff = dotall[0];
|
|
||||||
fh = dotall[1];
|
fh = dotall[1];
|
||||||
if (output->thermo->normflag) {
|
if (output->thermo->normflag) fh /= atom->natoms;
|
||||||
ff /= atom->natoms;
|
|
||||||
fh /= atom->natoms;
|
|
||||||
}
|
|
||||||
|
|
||||||
delfh = fh - fhprev;
|
delfh = fh - fhprev;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user