complete LAMMPS shell docs interation. Warn if exceptions are missing but don't fail

This commit is contained in:
Axel Kohlmeyer
2020-10-04 14:03:34 -04:00
parent e360219a8a
commit ffcd905bf1
6 changed files with 144 additions and 13 deletions

View File

@ -3,6 +3,8 @@
// Copyright (c) 2020 Axel Kohlmeyer <akohlmey@gmail.com>
// This software is distributed under the GNU General Public License.
#include "library.h"
#include "utils.h"
@ -561,6 +563,10 @@ int main(int argc, char **argv)
std::string trimmed;
std::cout << "LAMMPS Shell version 1.0\n";
if (!lammps_config_has_exceptions())
std::cout << "WARNING: LAMMPS was compiled without exceptions\n"
"WARNING: Some features will not work as expected\n";
lmp = lammps_open_no_mpi(argc, argv, nullptr);
if (lmp == nullptr) return 1;