move Force::open_potential() to utils::open_potential()

This commit is contained in:
Axel Kohlmeyer
2020-08-29 22:37:14 -04:00
parent 798226967f
commit 4396dbd9a3
38 changed files with 43 additions and 98 deletions

View File

@ -209,7 +209,7 @@ void PairList::settings(int narg, char **arg)
if (strcmp(arg[2],"check") == 0) check_flag = 1;
}
FILE *fp = force->open_potential(arg[0]);
FILE *fp = utils::open_potential(arg[0],lmp,nullptr);
char line[1024];
if (fp == NULL)
error->all(FLERR,"Cannot open pair list file");