Commit Graph

35 Commits

Author SHA1 Message Date
f4314076ae address scoping issues, use constexpr for unit constants, modernize 2023-03-20 06:18:17 -04:00
b0e7d9702b modernize and simplify 2023-03-20 01:02:22 -04:00
07bb7b3195 fix up kim unit tests broken by recent changes 2022-12-09 19:56:45 -05:00
34f44daef5 some small programming style updates 2022-12-09 16:56:50 -05: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
d6f7570d57 avoid redundant use of boolean literals 2022-04-10 20:47:31 -04:00
39b316729b use auto type when assigning from cast or using new 2022-04-10 18:16:36 -04:00
09c19a936b update URLs in source code and manual 2021-05-24 14:18:20 -04:00
d1941392d3 disable clang-format for all existing .cpp files (for now) 2021-05-05 23:53:38 -04:00
e9e0bb71b6 Use varargs version of Error:all() and Error::one() where applicable 2021-04-25 21:30:51 -04:00
0ad39757e2 Cleaning up legacy C-style string processing
Most of the C-style strcmp in the code are replaced with string for
simpler/safer/readable alternatives,
2021-02-25 13:55:24 -06:00
4af0714a8c Update the 'kim param' interface
Remove the dependency to 'kim init'. To get/set the parameter
values, pair style must be assigned. Must use 'kim interactions'
or 'pair_style kim' before 'kim param get/set'
2021-02-23 06:12:08 -06:00
c139adf95b Fix the index for get argument and correct the string variable format 2021-02-23 06:12:07 -06:00
21a60235eb Fix a wrong indexing for optional explicit argument 2021-02-23 06:12:06 -06:00
2d9dcf4e8d clean up and add extra space after comma 2021-02-12 06:16:33 -06:00
265650d97c update the error messages to 'kim param' and clean up the code 2021-02-12 06:16:33 -06:00
0c5b3bc611 clean up and remove unnecessary comments 2021-02-12 06:16:32 -06:00
0f27ba34b0 whitespace 2020-11-30 13:33:09 -05:00
3601be6ceb Update the list of include statements, for classes derived from Pointers 2020-11-26 10:40:17 -06:00
15ee87fc12 Set the identity of the Log object
Set the identity of the Log object associated with different KIM
objects.
2020-11-23 08:44:35 -06:00
a40301bc21 Clean up the interface, remove sstream and update to use the fmt::format, update the headers, remove the unnecessary echo function 2020-11-17 11:15:54 -06:00
420b0c4a22 Update the error message 2020-11-10 19:14:33 -06:00
adf74b3a22 use https://lammps.sandia.gov based URLs consistently 2020-10-21 16:45:30 -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
88ddfa4eb0 more IWYU cleanup in packages 2020-09-03 05:20:02 -04:00
c73f8a5500 Update the KIM error messages 2020-07-19 08:13:03 -05:00
c844de03ef Update the KIM error messages 2020-07-19 08:08:30 -05:00
5fec11a0db Update the KIM error messages 2020-07-19 08:04:13 -05:00
1b0f35c241 Replace macro with std::to_string
Following the C++ Core Guidelines, Macros must go.
2020-07-16 20:19:51 -05:00
f163477d3a Clean up the code 2020-07-16 20:00:09 -05:00
505cc1036f refactor KIM package code for using {fmt} and std::string 2020-06-11 13:25:41 -04:00
dd11fb3964 remove .c_str() and simplify output in several places 2020-06-03 16:37:30 -04:00
c8c92189b4 New capabilities for accessing KIM portable models parameters
Add an ability within LAMMPS for getting/setting KIM
portable models (PM) parameters. The assumption is that
the model is already known (through 'kim_init') when
calling the new command.

'kim_param get' gets the value of PM parameters, where
the command input includes:
parameter name, & location, or indices range, and the
variable(s) name / variable name + split / list /explicit
to return the value(s).

'kim_param get paramname index_range varname [s|split|list|explicit]'

'kim_param set' sets the value(s) of PM parameters, where
the command input includes:
parameter name, & location, or indices range, and the
corresponding variable(s) value(s).

'kim_param set paramname index_range value(s)'

NOTE: The varable_name is the name of the lammps variable in the
lammps input script and can be used in other locations in the
script.
2019-10-29 11:51:05 -05:00