provide an accessor for names of LAMMPS variables
This commit is contained in:
@ -1079,3 +1079,10 @@ bool Info::has_exceptions() const {
|
|||||||
return false;
|
return false;
|
||||||
#endif
|
#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_ffmpeg_support() const;
|
||||||
bool has_exceptions() const;
|
bool has_exceptions() const;
|
||||||
|
|
||||||
|
char **get_variable_names(int &num);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void available_styles(FILE * out, int flags);
|
void available_styles(FILE * out, int flags);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user