Merge pull request #224 from akohlmey/get-vars

provide an accessor for names of LAMMPS variables
This commit is contained in:
sjplimp 2016-10-19 08:36:52 -06:00 committed by GitHub
commit e0ed218cc4
2 changed files with 9 additions and 0 deletions

View File

@ -1079,3 +1079,10 @@ bool Info::has_exceptions() const {
return false;
#endif
}
/* ---------------------------------------------------------------------- */
char **Info::get_variable_names(int &num) {
num = input->variable->nvar;
return input->variable->names;
}

View File

@ -39,6 +39,8 @@ class Info : protected Pointers {
bool has_ffmpeg_support() const;
bool has_exceptions() const;
char **get_variable_names(int &num);
private:
void available_styles(FILE * out, int flags);