refactor MPI library info query so it can be added to -help flag output

This commit is contained in:
Axel Kohlmeyer
2019-12-11 05:33:16 -05:00
parent e68824a392
commit 876032b762
3 changed files with 27 additions and 15 deletions

View File

@ -1271,14 +1271,18 @@ void LAMMPS::print_config(FILE *fp)
const char *pkg;
int ncword, ncline = 0;
char *infobuf = Info::get_os_info();
const char *infobuf = Info::get_os_info();
fprintf(fp,"OS: %s\n\n",infobuf);
delete[] infobuf;
infobuf = Info::get_compiler_info();
fprintf(fp,"Compiler: %s with %s\n",infobuf,Info::get_openmp_info());
delete[] infobuf;
fprintf(fp,"C++ standard: %s\n\n",Info::get_cxx_info());
fprintf(fp,"C++ standard: %s\n",Info::get_cxx_info());
int major,minor;
infobuf = Info::get_mpi_info(major,minor);
fprintf(fp,"MPI v%d.%d: %s\n\n",major,minor,infobuf);
fputs("Active compile time flags:\n\n",fp);
if (Info::has_gzip_support()) fputs("-DLAMMPS_GZIP\n",fp);