diff --git a/src/pair_table.cpp b/src/pair_table.cpp index d6ea173122..f12271a03a 100644 --- a/src/pair_table.cpp +++ b/src/pair_table.cpp @@ -343,7 +343,7 @@ void PairTable::read_table(Table *tb, char *file, char *keyword) // open file - FILE *fp = fopen(file,"r"); + FILE *fp = open_potential(file); if (fp == NULL) { char str[128]; sprintf(str,"Cannot open file %s",file);