place queries for OS and compiler into functions in Info and use them for both, the info command and lmp -h/-help
This commit is contained in:
@ -1081,6 +1081,14 @@ void LAMMPS::print_config(FILE *fp)
|
||||
const char *pkg;
|
||||
int ncword, ncline = 0;
|
||||
|
||||
char *infobuf = Info::get_os_info();
|
||||
fprintf(fp,"OS: %s\n\n",infobuf);
|
||||
delete[] infobuf;
|
||||
|
||||
infobuf = Info::get_compiler_info();
|
||||
fprintf(fp,"Compiler: %s\n\n",infobuf);
|
||||
delete[] infobuf;
|
||||
|
||||
fputs("Active compile time flags:\n\n",fp);
|
||||
if (Info::has_gzip_support()) fputs("-DLAMMPS_GZIP\n",fp);
|
||||
if (Info::has_png_support()) fputs("-DLAMMPS_PNG\n",fp);
|
||||
|
||||
Reference in New Issue
Block a user