Commit Graph

20 Commits

Author SHA1 Message Date
cbc529881c support hybrid atom styles in in fix propel/self 2020-09-30 14:07:46 -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
bb7447363c more include cleanup and IWYU tweaks 2020-09-04 07:22:39 -04:00
2e0af2fdce some more second pass cleanup 2020-09-04 00:46:23 -04:00
88ddfa4eb0 more IWYU cleanup in packages 2020-09-03 05:20:02 -04:00
6113169a47 IWYU based include statement cleanup 2020-09-02 17:39:34 -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
7766b29c97 replace strncmp by strcmp 2020-01-20 21:54:29 +01:00
3ccab876f7 fix string length for strncmp 2020-01-20 18:16:20 +01:00
8ed271f16f change mode of propel/self to quat instead of quaternion 2020-01-20 17:41:20 +01:00
074e18d9cb fix one more whitespace issue 2020-01-19 13:34:21 -05:00
f4d9715cc7 make code follow LAMMPS conventions more closely and do some cleanups
- remove tabs and trailing whitespace
- remove references to atom style body, since code only works with ellipsoid
- adjust function names and tests for requirements to be more obvious and work correctly in parallel
- remove rather specific debug code
- remove non-essential c++11 features
- refactor, correct, and simplify parsing of types keyword arguments
2020-01-19 13:07:54 -05:00
fe4f7899d2 Use x-axis along the particle's quaternion.
This change allows the fix to work in 2D as well.
2020-01-10 11:32:57 +01:00
60c0270375 Added option to impose fix propel/self only to specific types 2020-01-10 11:32:03 +01:00
768fd8f7fe Added type support. 2020-01-10 11:32:02 +01:00
3144b91fb3 Some code clean-up, added safety check in post_force_velocity. 2020-01-10 11:31:58 +01:00
074dfd8651 Commit before merging latest changes in master. 2020-01-10 11:31:57 +01:00
8c7890b6df Added two modes, one via velocity and one via quaternion. 2020-01-10 11:31:57 +01:00
942812a654 Commit before changing branches. 2020-01-10 11:31:21 +01:00
2a0081d135 Renamed fix active to fix propel/self 2020-01-10 11:31:20 +01:00