From 7b433cf7a21e8baa71a36f92121d6447fa011ac6 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 11 Feb 2014 22:07:40 -0500 Subject: [PATCH] add a few more cases that should recognize $LAMMPS_POTENTIALS --- src/MANYBODY/pair_comb3.cpp | 2 +- src/USER-MISC/pair_list.cpp | 2 +- src/pair_table.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MANYBODY/pair_comb3.cpp b/src/MANYBODY/pair_comb3.cpp index 574b89baf5..980cbe0bc9 100644 --- a/src/MANYBODY/pair_comb3.cpp +++ b/src/MANYBODY/pair_comb3.cpp @@ -320,7 +320,7 @@ void PairComb3::read_lib() // open libraray file on proc 0 if(comm->me == 0) { - FILE *fp = fopen("lib.comb3","r"); + FILE *fp = open_potential("lib.comb3"); if (fp == NULL) { char str[128]; sprintf(str,"Cannot open COMB3 C library file \n"); diff --git a/src/USER-MISC/pair_list.cpp b/src/USER-MISC/pair_list.cpp index 265532e56f..83b8c209ec 100644 --- a/src/USER-MISC/pair_list.cpp +++ b/src/USER-MISC/pair_list.cpp @@ -218,7 +218,7 @@ void PairList::settings(int narg, char **arg) if (strcmp(arg[2],"check") == 0) check_flag = 1; } - FILE *fp = fopen(arg[0],"r"); + FILE *fp = open_potential(arg[0]); char line[1024]; if (fp == NULL) error->all(FLERR,"Cannot open pair list file"); 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);