Commit Graph

76 Commits

Author SHA1 Message Date
e0322b96ec sync new library interface function across all interfaced derived packages 2025-03-24 04:33:27 -04:00
15cdba0bf0 have Error::set_show_error() return the previous setting 2025-03-24 04:13:24 -04:00
6fca985d5d add method that allows suppressing printing error messages immediately 2025-03-23 19:01:25 -04:00
52fcfcaab1 fix typo 2025-01-31 22:04:57 -05:00
eb1174b54b try to work around the ambiguity of 0 and null pointers 2025-01-31 21:48:29 -05:00
6bb022853e avoid segfault on command line errors 2025-01-26 21:45:12 -05:00
563b5b0997 flush buffers after writing error messages 2025-01-24 20:43:12 -05:00
e4dbfee498 replace fmt::print() with utils::print() 2025-01-23 00:11:31 -05:00
e350f28e26 refactor how error output is created and only print input and parsed line if they differ in text 2025-01-17 18:06:31 -05:00
fa54fd1097 add option to suppress printing the last command 2025-01-16 21:11:27 -05:00
8c93986e47 add overloads for Error::all() and Error::one() that can point out the location of a faulty argument 2025-01-15 23:12:11 -05:00
fb33541961 use command-line consistently where applicable and drop "line" where not 2024-12-27 04:03:41 -05:00
8086228976 make communicator protected and use accessor instead. simplify 2023-04-15 21:54:13 -04:00
0cd5ae5f2e remove -DLAMMPS_EXCEPTIONS and always enable the corresponding code paths 2023-04-15 17:49:08 -04:00
27da716852 getting out of the insurance business :-) 2023-01-23 16:45:41 -05:00
00b474eee5 simplify 2022-11-22 05:46:53 -05:00
a8f45846a7 Respect thermo_modify warn always 2022-11-22 16:30:55 +10:00
2132b1d904 update developer reference text 2022-10-24 11:08:26 -04:00
cccf3f6f78 change email for contacting LAMMPS developers, add to homepage checker 2022-10-20 20:36:03 -04:00
a2ff443838 Use utils::flush_buffers() in error.cpp and thermo.cpp 2022-02-04 18:00:47 -05:00
27a6c63aeb correct format string for Error::one() 2021-12-29 16:18:48 -05:00
aab3e085a2 silence compiler warning on windows 2021-10-06 16:49:48 -04:00
2d5e8f050a Make Kokkos init/finalize calls safer 2021-06-24 13:25:35 -06:00
ddac9c21dc Update from master 2021-06-24 11:57:21 -06:00
09c19a936b update URLs in source code and manual 2021-05-24 14:18:20 -04:00
d8291eea7b Merge branch 'master' into prepare-clang-format
# Conflicts:
#	src/MOLECULE/bond_fene.h
#	src/MOLECULE/bond_fene_expand.h
2021-05-11 21:49:48 -04:00
d1941392d3 disable clang-format for all existing .cpp files (for now) 2021-05-05 23:53:38 -04:00
22e93468d6 simplify code by appling varargs messages and warnings 2021-05-05 18:19:12 -04:00
8a2a4c408e also skip warnings if per rank warning count is over. don't wait until total count is computed 2021-05-05 16:55:35 -04:00
9f4da1128b remove optional logflag argument from Error::message() and Error::warning() 2021-05-05 16:02:51 -04:00
87283f7269 apply warning limit 2021-05-05 14:48:20 -04:00
f0cc70b29a implement "thermo_modify warn" to control amount of warnings 2021-05-03 14:21:16 -04:00
4cbe6200d6 correct declaration 2021-04-25 21:02:01 -04:00
4e25204296 add vararg versions of Error::all() and Error::one() plus unit tests 2021-04-25 19:04:49 -04:00
3042e28297 try to catch format errors from fmtlib 2021-02-26 14:08:38 -05:00
5526cc2c53 Fix issue with Kokkos::finalize and library interface 2020-11-06 12:01:45 -07:00
adf74b3a22 use https://lammps.sandia.gov based URLs consistently 2020-10-21 16:45:30 -04:00
93a0d4c096 fix up some comments 2020-09-12 14:26:34 -04:00
f1ef7d85a8 T2345: Replace instances of NULL with nullptr
The following changes have been applied to src and lib folders:
regex replace: ([^"_])NULL ⇒ \1nullptr (8968 chgs in src, 1153 in lib)
Manually find/change: (void \*) nullptr ⇒ nullptr (1 case)
regex find: ".*?nullptr.*?"
  Manually ~14 cases back to "NULL" in src, ~2 in lib
  regex finds a few false positive where nullptr appears between two
  strings in a function call
2020-09-12 09:34:38 -06:00
f88f4cd60e more include file updates 2020-09-02 21:44:04 -04:00
39b61fbdbe add exit() to one() functions since compilers may not recognize that MPI_Abort() does not return. 2020-06-17 01:30:41 -04:00
9297211b06 fix style issue 2020-06-03 16:58:08 -04:00
9f3f53cc6b convert Error class to accept 'const std::string &' instead of 'const char *' 2020-06-03 15:43:05 -04:00
704207f3c8 Finalize Kokkos on error exit 2020-02-27 08:51:02 -07:00
e3c91626c8 need to include update.h when exceptions are enabled 2019-08-01 07:07:21 -04:00
7967cb1133 put implementation header first to avoid issues with mpi.h and lmptype.h with OpenMPI 2019-07-03 06:16:16 -04:00
31cbccda85 continue cleaning up include file lists 2019-06-29 09:37:44 -04:00
37d84de09c flushing buffer to see more messages for error->one calls 2019-04-18 15:55:21 -06:00
de0938da39 avoid segfault when catching command line flag errors with EXCEPTIONS enabled 2019-04-05 23:24:43 -04:00
ba1c5d3191 Avoid buffer overflow during errors with long filenames 2018-09-05 21:39:09 -04:00