skip table consistency check for bitmapped tables

This commit is contained in:
Axel Kohlmeyer
2017-07-17 18:18:21 -04:00
parent 992ce79701
commit 23033404b0

View File

@ -453,6 +453,10 @@ void PairTable::read_table(Table *tb, char *file, char *keyword)
double r,e,f,rprev,rnext,eprev,enext,fleft,fright;
int ferror = 0;
// bitmapped tables do not follow regular ordering, so we cannot check them here
if (tb->rflag != BMP) {
for (int i = 1; i < tb->ninput-1; i++) {
r = tb->rfile[i];
rprev = tb->rfile[i-1];
@ -468,6 +472,7 @@ void PairTable::read_table(Table *tb, char *file, char *keyword)
//printf("Values %d: %g %g %g\n",i,r,e,f);
//printf(" secant %d %d %g: %g %g %g\n",i,ferror,r,fleft,fright,f);
}
}
if (ferror) {
char str[128];