Commit Graph

168 Commits

Author SHA1 Message Date
5a88db838d Merge pull request #1946 from yafshar/kim-property
Add new kim_property command
2020-03-27 20:58:52 -04:00
3b1244831e Add Python::has_minimum_version 2020-03-27 16:28:43 -04:00
d1388b4ea8 Merge pull request #1941 from e-kwsm/typo
Fix typos in comments and output.
2020-03-18 20:24:06 -04:00
8b75fb2950 initialize the python interpreter instance with python->init() 2020-03-18 16:56:47 -05:00
05b273d731 kim_property command
A new KIM command to make it as easy as possible to write
material properties computed in LAMMPS to standard KIM
property instance format.
2020-03-16 08:11:58 -05:00
649a8cc01a Fix typo 2020-03-14 13:57:48 +09:00
e4489f58ca make forward declaration consistent with KIM-API code 2020-03-11 19:05:04 -04:00
b0d0037f50 Certificate Verification
if SSL report an error ("certificate verify failed") during the
handshake and thus refuses further communication with that server,
you can specify your own CA cert path by setting the environment
variable CURL_CA_BUNDLE to the path of your choice.
2019-12-12 12:57:34 -06:00
5ce8860dce Updating the 'kim_query' default behavior and adding the 'list' setting
Adding the 'list' setting of {formatarg} (default behavior or if
{formatarg} is not specified), the result is returned as a
space-separated list of values in {variable}.
2019-10-29 11:51:05 -05: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
3cca4e0d2d New capabilities for updating KIM portable models parameters
1. Add new capabilities within LAMMPS for setting parameters of
the KIM portable models (PM). The current implementation extends
the 'pair_coeff' command to modify the PM parameters.
A series of additional parameters after the species list is the
input to the modified command. Each set of the other setting
is parameter name, range of array indices, and corresponding
parameter values.

2. Add two getters to the PairKIM class to get the KIM_Model object,
and the atom type list outside the 'pair_kim' command for ease of
use and extension ability of a new 'kim_param' command.
2019-10-29 11:50:28 -05:00
63cb88daae Printing the mutable parameters of the KIM portable models
Calling 'kim_init' would report the mutable parameters
of KIM portable models (PM) including parameter's name,
data type, and extent.
2019-10-29 10:46:35 -05:00
681a0e12e3 Set KIM pointer appropriately for Energy 2019-10-15 15:38:19 -05:00
259176c590 Add user-agent setting to kim_query curl command 2019-08-14 17:16:10 -06:00
6833d6def6 Merge branch 'master' into kim-simulator-models
# Resolved Conflicts:
#	src/KIM/kim_query.cpp
#	src/KIM/pair_kim.cpp
2019-07-29 20:43:10 -04:00
c03e9c9711 Adjust write_echo() within kim_query 2019-07-29 16:11:29 -05:00
2ffc35297b make kim_query log of variable setting look more like other KIM log messages
this adds BEGIN/END marker comments and echoes the actual command line
that the kim_query command implicitly executes
2019-07-29 16:57:34 -04:00
ea4107c4b4 add write_echo() method to Input class for logging implicit commands where the echo command would send explicit ones 2019-07-29 16:36:57 -04:00
2afc498a2b Add logging to kim_query (compile error at moment) 2019-07-29 15:04:15 -05:00
a0abd270b5 kim_query check for empty query result 2019-07-29 11:41:01 -05:00
6a5902ec48 Update kim_init to use KIM::Collections::GetItemType()
A bit of a cleaner solution.  Should be no visible change for users.
2019-07-26 11:14:46 -05:00
47689b4ad3 make include files independent of previously included headers. include them first in implementation files.
this is to be compliant with upcoming definition of include file policy
2019-07-26 06:03:21 -04:00
fadb40051b Update kim_query & clear and update examples/kim 2019-07-25 14:03:35 -05:00
b5a066ecd0 Better error checking for kim_init log.cite behavior 2019-07-24 21:08:08 -05:00
dd4368dd1b Fix bug in pair_kim.cpp for partialParticleVirial computation 2019-07-23 13:41:31 -05:00
5b4f77b919 kim_query check for explicit 'model=' key in arguments (give error if present). 2019-07-16 16:20:48 -05:00
dbd0158d3f Adjust/update kim_query do_query() routine 2019-07-11 12:01:35 -05:00
ea68db964a trim (left and right) strings from kim_query xxxx split 2019-07-10 14:21:07 -05:00
5236497932 Changed 'bohr_per_atu_si' to 'bohr_per_atu_electron_si' 2019-07-09 18:36:51 -04:00
1f47da6c51 Add fixed_types to kim_init & split to kim_query 2019-07-08 17:46:47 -05:00
5b3a15bd94 putting implementation header first in package folder sources 2019-07-03 19:58:25 -04:00
bb5a1c5205 Adjust log.cite behavior 2019-07-03 13:38:08 -05:00
00d820dcf9 Added support for log.cite to kim_init 2019-07-03 13:20:55 -05:00
63dcd999d8 Switch to kim-api c-bindings for SimulatorModel 2019-07-03 11:49:38 -05:00
f6319146b0 Update kim_query to new interface 2019-06-25 15:03:24 -05:00
4284a4fac4 Changed me to me_si and fixed some typos in comments 2019-06-24 14:51:35 -05:00
6d54cf6a07 programming style changes 2019-06-23 17:53:12 -04:00
bfe6cc29e8 fix bug of not storing pointers 2019-06-23 17:52:43 -04:00
c6d0f807b5 output messages that would otherwise only show up in logs only when logs are enable for screen or logfile 2019-06-23 14:13:24 -04:00
27d1f79fe3 simplify another case of stringstream to use plain std::string 2019-06-23 13:39:12 -04:00
065638edba remove unused macro and reformat to closer match LAMMPS programming style 2019-06-23 13:31:43 -04:00
c557c7492b adapt names of stored properties to code that uses fix STORE/KIM 2019-06-23 13:31:12 -04:00
ac82aa754b correct off-by-one error and simplify code by using std::string instead of std::stringstream 2019-06-23 13:13:05 -04:00
4a22e3bf70 Implement kim_init, kim_interactions & various updates 2019-06-22 15:21:57 -05:00
f81c9c5322 Changed _u_* output to log to variable commands 2019-06-22 10:21:05 -05:00
dbfd1fd0e7 Added atom-type-num-list mapping to kim_style 2019-06-21 22:11:58 -05:00
08cee18f32 Added code to define unit conversion factors 2019-06-21 18:39:18 -05:00
0613c10395 Work on kim_style for latest definition prototype 2019-06-20 16:45:45 -05:00
128d021c10 Update to latest prototype for SimulatorModel interface 2019-06-20 13:13:13 -05:00
9a428217d9 prototype implementation of unit conversion variable support 2019-06-10 17:19:18 -04:00