teach pair potentials to open potential files via open_potential()
This commit is contained in:
@ -857,7 +857,7 @@ void PairTersoffTable::read_file(char *file)
|
||||
|
||||
FILE *fp;
|
||||
if (comm->me == 0) {
|
||||
fp = fopen(file,"r");
|
||||
fp = open_potential(file);
|
||||
if (fp == NULL) {
|
||||
char str[128];
|
||||
sprintf(str,"Cannot open Tersoff potential file %s",file);
|
||||
|
||||
Reference in New Issue
Block a user