forked from lijiext/lammps
Remove unused PairEAM::grab
This commit is contained in:
parent
2b9ab58971
commit
5bdc3e9f84
|
@ -789,26 +789,6 @@ void PairEAM::interpolate(int n, double delta, double *f, double **spline)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
|
||||||
grab n values from file fp and put them in list
|
|
||||||
values can be several to a line
|
|
||||||
only called by proc 0
|
|
||||||
------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
void PairEAM::grab(FILE *fptr, int n, double *list)
|
|
||||||
{
|
|
||||||
char *ptr;
|
|
||||||
char line[MAXLINE];
|
|
||||||
|
|
||||||
int i = 0;
|
|
||||||
while (i < n) {
|
|
||||||
utils::sfgets(FLERR,line,MAXLINE,fptr,NULL,error);
|
|
||||||
ptr = strtok(line," \t\n\r\f");
|
|
||||||
if (ptr) list[i++] = atof(ptr);
|
|
||||||
while ((ptr = strtok(NULL," \t\n\r\f"))) list[i++] = atof(ptr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
double PairEAM::single(int i, int j, int itype, int jtype,
|
double PairEAM::single(int i, int j, int itype, int jtype,
|
||||||
|
|
|
@ -107,7 +107,6 @@ class PairEAM : public Pair {
|
||||||
virtual void allocate();
|
virtual void allocate();
|
||||||
virtual void array2spline();
|
virtual void array2spline();
|
||||||
void interpolate(int, double, double *, double **);
|
void interpolate(int, double, double *, double **);
|
||||||
void grab(FILE *, int, double *);
|
|
||||||
|
|
||||||
virtual void read_file(char *);
|
virtual void read_file(char *);
|
||||||
virtual void file2array();
|
virtual void file2array();
|
||||||
|
|
Loading…
Reference in New Issue