Remove unused PairEAM::grab

This commit is contained in:
Richard Berger 2020-05-28 14:37:52 -04:00
parent 2b9ab58971
commit 5bdc3e9f84
No known key found for this signature in database
GPG Key ID: A9E83994E0BA0CAB
2 changed files with 0 additions and 21 deletions

View File

@ -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,

View File

@ -107,7 +107,6 @@ class PairEAM : public Pair {
virtual void allocate();
virtual void array2spline();
void interpolate(int, double, double *, double **);
void grab(FILE *, int, double *);
virtual void read_file(char *);
virtual void file2array();