print OS/Compiler info when starting LAMMPS shell

This commit is contained in:
Axel Kohlmeyer
2020-10-07 18:37:27 -04:00
parent 0891a8ce7d
commit d48b0ebd7b

View File

@ -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";