forked from lijiext/lammps
Merge pull request #224 from akohlmey/get-vars
provide an accessor for names of LAMMPS variables
This commit is contained in:
commit
e0ed218cc4
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue