21394574ed
stop with error, if trying to use wildcard for vector-style variable without upper bound
2025-05-20 18:11:28 -04:00
a443e6ea5e
properly forward file and line number for grid ID parsing
2025-05-20 18:10:40 -04:00
4126c9ed75
implement workaround for compilers that require -DFMT_STATIC_THOUSANDS_SEPARATOR
2025-04-23 14:20:10 -04:00
3d5430bfe4
Merge branch 'develop' into errors-more-cleanup
2025-03-23 16:01:00 -04:00
c037ec07a2
make utils::errorurl() point to generic page with error code 0
2025-03-20 22:45:41 -04:00
e4c96459e5
flag some more compatible time and out-of-bounds errors with errorurl()s
2025-03-20 06:16:59 -04:00
0a7b528d39
don't silence format errors
2025-03-17 11:01:16 -04:00
035aefcc26
address issues flagged by coverity scan
2025-03-15 21:38:18 -04:00
9d70c8b8ae
provide error information for two more cases
2025-03-13 05:31:41 -04:00
508eeddf87
Merge branch 'develop' into add-error-explanations
2025-03-12 11:39:13 -04:00
fa262967e6
add url for error 10
2025-03-12 07:28:22 -06:00
4d453a65e6
fix bug in utils::strcompress()
...
calling back() on empty strings is undefined behavior.
2025-02-21 23:33:15 -07:00
c19389a205
bug fix for pointing to the command name
2025-02-18 10:54:52 -05:00
42e379a8de
Merge remote-tracking branch 'github/develop' into add-error-explanations
2025-01-31 03:23:51 -05:00
8baec60155
implement an utils::print() function similar to fmt::print()
...
this doesn't have the constexpr requirement for the format string.
also it will help porting to std::format in C++20, which doesn't
have a similar functionality either.
2025-01-23 00:03:30 -05:00
cc36947449
make use of new Error class APIs
2025-01-22 22:15:08 -05:00
d99c960eb9
resolve unit test failures due to enhanced error handling
2025-01-18 21:40:48 -05:00
efd5165707
avoid segfaults if there was no input processing
2025-01-17 23:27:36 -05:00
e38c13a764
add strcompress function and use it for error output
2025-01-17 22:59:44 -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
9b443c9a4d
add utility function to compare two string while ignoring whitespace
2025-01-17 14:06:30 -05:00
b9dbfc6eb2
add support to flag failed arguments for calls to expand_args()
2025-01-17 10:40:34 -05:00
fa54fd1097
add option to suppress printing the last command
2025-01-16 21:11:27 -05:00
da5a12fcd1
increase visibility of highlighting the failed argument
2025-01-16 11:39:53 -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
c476e6704b
revert workarounds for Intel ICC 19.x
2025-01-12 20:13:24 -05:00
4519489f8b
fix unit test and another workaround for intel compilers
2025-01-12 19:42:03 -05:00
943504fd98
move timespec2seconds exception handling to calling function
2025-01-12 17:48:20 -05:00
b300ef29ee
simplify; make certain nmax is always initialized
2024-08-22 23:39:29 -04:00
4c15ac99a3
expand_type_int verify->bool
2024-08-18 23:05:52 -06:00
1afa56e0da
expand_type_int: optional flag to check types
...
verifying type could probably be default, except for historical reasons
would involve removing redundant checks after calling routine
2024-08-18 22:39:01 -06:00
5082d15844
use std::stoXX() functions and check for incomplete conversions and exceptions
2024-07-30 03:38:53 -04:00
246698d3c2
Timer::_timeout should be double and it should be allowed to have fractions.
2024-06-29 03:43:26 -04:00
da2dc9a154
handle case of no LAMMPS instance or no simulation box
2024-06-26 01:30:14 -04:00
5cbe85ecf1
remove redundant error argument (accessible through lmp)
2024-06-25 18:19:41 -04:00
fcba5ee3c9
silence compiler warnings and apply clang-format
2024-06-25 15:01:17 -04:00
44b99b6b76
bounds() wrapper for type labels
2024-05-12 14:30:55 -04:00
61b9469fd1
Revert "example with augmented utils::bounds"
...
This reverts commit 25d4b3484d .
2024-05-12 02:00:48 -04:00
25d4b3484d
example with augmented utils::bounds
...
option to check for type label
2024-05-12 01:00:09 -04:00
267e75133a
generalize passthrough args
2024-04-18 14:30:27 -04:00
b3e03d5188
refactor expand_types to return int
2024-04-17 18:56:28 -04:00
0ce25755cd
second round of include-what-you-use updates
2024-02-28 15:37:13 -05:00
010a7a4d44
check for out-of-range or invalid numbers more thoroughly
2023-12-08 21:07:38 -05:00
5a455c5e3a
remove redundant calls to fmt::format() from calls to error->one/all() and utils::logmesg()
2023-09-26 23:56:51 -04:00
c332103938
make short read detection bugfix work in parallel
2023-06-26 15:20:29 -04:00
ffda6596da
detect and flag short reads with missing lines in utils::read_lines_from_file()
2023-06-22 10:48:07 -04:00
34e8a74989
apply changes suggested by clang-tidy
2023-01-27 11:49:43 -05:00
27da716852
getting out of the insurance business :-)
2023-01-23 16:45:41 -05:00
3e9bb99daa
Merge branch 'develop' into collected-small-changes to resolve merge conflicts
2022-12-19 12:42:09 -05:00
72b0a2dfdf
Merge pull request #3405 from lammps/distributed-grids
...
Support for distributed grids
2022-12-19 12:06:25 -05:00