git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3067 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2009-08-13 17:33:39 +00:00
parent 15164afd0a
commit 70378d5ef4
3 changed files with 2 additions and 19 deletions

View File

@ -486,7 +486,7 @@ double Force::numeric(char *str)
int n = strlen(str);
for (int i = 0; i < n; i++) {
if (isdigit(str[i])) continue;
if (str[i] == '-' || str[i] == '.') continue;
if (str[i] == '-' || str[i] == '+' || str[i] == '.') continue;
if (str[i] == 'e' || str[i] == 'E') continue;
error->all("Expecting floating point argument in input script");
}
@ -504,7 +504,7 @@ int Force::inumeric(char *str)
{
int n = strlen(str);
for (int i = 0; i < n; i++) {
if (isdigit(str[i]) || str[i] == '-') continue;
if (isdigit(str[i]) || str[i] == '-' || str[i] == '+') continue;
error->all("Expecting integer argument in input script");
}