Commit Graph

409 Commits

Author SHA1 Message Date
d1941392d3 disable clang-format for all existing .cpp files (for now) 2021-05-05 23:53:38 -04:00
1e294111e7 Merge branch 'master' of https://github.com/lammps/lammps into lammps-master 2021-04-27 14:46:33 -04:00
6b04ebd617 Merge branch 'master' into varargs-log-error-functions 2021-04-26 13:27:58 -04:00
e9e0bb71b6 Use varargs version of Error:all() and Error::one() where applicable 2021-04-25 21:30:51 -04:00
7e7a448a08 remove the old versions of the utility function and use the new 2021-04-24 21:33:36 -04:00
99fa6ed4b4 delay part of the variable.cpp refactoring until we have better unit testing for it. 2021-04-23 16:50:35 -04:00
b7272bbbf7 restore variable declaration 2021-04-23 16:38:37 -04:00
ef858ae70f silence compiler warnings 2021-04-23 16:19:57 -04:00
025489ec2c Merge remote-tracking branch 'origin/master' into collected_small_changes 2021-04-17 11:05:23 -04:00
e5877d8aa9 More explicit code in simple case 2021-04-17 11:04:38 -04:00
fab571cf6b IWYU reported header updates 2021-04-13 00:47:49 -04:00
96f59a58d3 be a little more paranoid about avoiding memory leakage 2021-04-09 21:53:18 -04:00
7a2910f05f must have num == 2 for getenv style variables 2021-04-09 21:44:34 -04:00
a69c5a5cae fix bugs in shell putenv and getenv style variables. add more unit tests. 2021-04-09 20:19:04 -04:00
2dfafe4adb add is_file() special variable function and unit tests for it 2021-04-02 12:07:43 -04:00
20e6174e59 cannot use tokenizer for parse_args() as the search for commata must be away of parenthesis 2021-03-29 21:11:07 -04:00
67f1f12c20 more tests for expressions 2021-03-23 21:42:45 -04:00
85d1257222 move redundant enumerator to Variable class definition in variable.h 2021-03-23 21:41:50 -04:00
4f46ee30a2 avoid crash when functions expecting an argument are used without 2021-03-23 18:13:01 -04:00
346c36e227 replace redundant functions to handle constants with (unordered) map 2021-03-23 17:48:47 -04:00
014f9ad527 simplify Variable::parse_args() by using Tokenizer class 2021-03-23 16:47:04 -04:00
3d67d1eee9 simplify 2021-03-16 00:50:29 -04:00
194a551590 complete refactor of file/atomfile variable parsing code 2021-03-14 10:45:07 -04:00
11386097c6 avoid strtok() when reading variables from file 2021-03-13 21:00:09 -05:00
5036adeff0 timestep processing functions must use bigint instead of int 2021-02-05 19:23:05 -05:00
24bf1e5b0c make use of utils::strdup() 2021-02-04 17:33:02 -05:00
4e791ac4f7 replace 'strstr(xxx,"x_") == xxx' with utils::strmatch("^x_") 2021-02-04 15:20:43 -05:00
48f15e485d put consistent definition of INVOKED_* constants as enumerator into compute.h 2021-01-31 20:13:47 -05:00
b92adfaf6f pointer and style issues 2021-01-31 14:59:10 -05:00
797555b5ce toward multiple maps 2021-01-28 23:44:02 -05:00
5d2e3b3ecb direct support for coeff commands
pair_coeff, bond_coeff, angle_coeff, dihedral_coeff, improper_coeff
2021-01-25 20:08:25 -05:00
c7215b54be add labelmap function to variable command 2021-01-23 17:28:11 -05:00
382ade15fe more consistent formatting of for/while loops and if statements 2020-12-30 09:09:08 -05:00
adf74b3a22 use https://lammps.sandia.gov based URLs consistently 2020-10-21 16:45:30 -04:00
f0f933a711 allow forward slash in strings for if statements 2020-10-06 18:44:26 -04:00
8c56f60939 use bigint instead of int for timestep related variable functions to avoid overflows 2020-10-01 09:35:45 -04:00
b350dce573 improve error messages for variables and python commands 2020-09-23 19:02:55 -04:00
4c51a8ae57 move version and num_ver from Universe to LAMMPS and make num_ver an int 2020-09-19 11:37:08 -04:00
0f6a34775c Merge branch 'master' into symbolic-atom-constants 2020-09-15 17:44:31 -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
9d0c3bc665 replace some numeric constants in Atom and AtomVec classes with enumerators 2020-09-11 19:07:55 -04:00
9925122cea more IWYU updates 2020-09-03 00:22:09 -04:00
96d8d12a88 replace calls to force->*numeric() with the corresponding utils::*numeric()
this also removes the now obsolete functions from Force
2020-08-29 20:31:02 -04:00
67a9856e0c silence compiler warning when converting MAXBIGINT to a double 2020-08-04 19:07:53 -04:00
5b4275002c Merge branch 'master' into kim_fix 2020-07-20 20:27:41 -04:00
65f9c1abf5 bugfix: reorder instructions 2020-07-17 14:00:16 -04:00
b3bd36947d add convenience function to allow variable->set() command with a single string argument 2020-07-17 13:57:54 -04:00
2fb6a61f2a refactor code to make better use of std::string and simplify using changes to Variable class API 2020-07-17 01:23:17 -04:00
63bebf58fd add convenience function to allow variable->set() command with a single string argument 2020-07-17 00:46:31 -04:00
dd7bc1d34e use const char * instead of char * so we don't need a cast for string constants 2020-07-17 00:45:58 -04:00