make name of the actual executable (i.e. arg[0]) accessible
This commit is contained in:
@ -86,6 +86,7 @@ LAMMPS::LAMMPS(int narg, char **arg, MPI_Comm communicator)
|
|||||||
|
|
||||||
suffix = suffix2 = NULL;
|
suffix = suffix2 = NULL;
|
||||||
suffix_enable = 0;
|
suffix_enable = 0;
|
||||||
|
exename = arg[0];
|
||||||
packargs = NULL;
|
packargs = NULL;
|
||||||
num_package = 0;
|
num_package = 0;
|
||||||
char *rfile = NULL;
|
char *rfile = NULL;
|
||||||
|
|||||||
@ -46,6 +46,7 @@ class LAMMPS {
|
|||||||
|
|
||||||
char *suffix,*suffix2; // suffixes to add to input script style names
|
char *suffix,*suffix2; // suffixes to add to input script style names
|
||||||
int suffix_enable; // 1 if suffixes are enabled, 0 if disabled
|
int suffix_enable; // 1 if suffixes are enabled, 0 if disabled
|
||||||
|
char *exename; // pointer to argv[0]
|
||||||
char ***packargs; // arguments for cmdline package commands
|
char ***packargs; // arguments for cmdline package commands
|
||||||
int num_package; // number of cmdline package commands
|
int num_package; // number of cmdline package commands
|
||||||
int cite_enable; // 1 if generating log.cite, 0 if disabled
|
int cite_enable; // 1 if generating log.cite, 0 if disabled
|
||||||
|
|||||||
Reference in New Issue
Block a user