Add library functions for accessing LAMMPS configuration

This commit is contained in:
Richard Berger
2018-06-25 23:56:18 -04:00
parent 35f5a685f6
commit 19f81e0802
5 changed files with 100 additions and 6 deletions

View File

@ -1190,6 +1190,15 @@ bool Info::has_exceptions() {
#endif
}
bool Info::has_package(const char * package_name) {
for(int i = 0; LAMMPS::installed_packages[i] != NULL; ++i) {
if(strcmp(package_name, LAMMPS::installed_packages[i]) == 0) {
return true;
}
}
return false;
}
/* ---------------------------------------------------------------------- */
char **Info::get_variable_names(int &num) {