use open_potential in pair style coul/streitz

This commit is contained in:
Axel Kohlmeyer
2020-08-07 18:06:43 -04:00
parent c5cd108113
commit a17633bd20

View File

@ -249,7 +249,7 @@ void PairCoulStreitz::read_file(char *file)
FILE *fp;
if (comm->me == 0) {
fp = fopen(file,"r");
fp = force->open_potential(file);
if (fp == NULL)
error->one(FLERR,fmt::format("Cannot open coul/streitz potential "
"file {}",file));