From d48b0ebd7ba89c81132af6bbec770a966d88dd75 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 7 Oct 2020 18:37:27 -0400 Subject: [PATCH] print OS/Compiler info when starting LAMMPS shell --- tools/lammps-shell/lammps-shell.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/lammps-shell/lammps-shell.cpp b/tools/lammps-shell/lammps-shell.cpp index b5c6594930..48ac8fe2a1 100644 --- a/tools/lammps-shell/lammps-shell.cpp +++ b/tools/lammps-shell/lammps-shell.cpp @@ -593,7 +593,9 @@ int main(int argc, char **argv) char *line; std::string trimmed; - std::cout << "LAMMPS Shell version 1.0\n"; + lammps_get_os_info(buf,buflen); + std::cout << "LAMMPS Shell version 1.0 OS: " << buf; + if (!lammps_config_has_exceptions()) std::cout << "WARNING: LAMMPS was compiled without exceptions\n" "WARNING: The shell will terminate on errors.\n";