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
c37b5e50b1
flag error when trying to compute an average of an empty vector
2020-07-03 22:35:53 -04:00
307f54611f
use doubles to avoid multiple integer overflows in slope() function
2020-07-02 16:43:00 -04:00
91502b8bf6
more simplification
2020-06-26 16:22:19 -04:00
54a8b4e08b
more local buffers removed and file error status added.
2020-06-04 20:14:19 -04:00
dd11fb3964
remove .c_str() and simplify output in several places
2020-06-03 16:37:30 -04:00
23c55b0046
fix "use of class after delete" bug
2020-05-11 16:23:04 -04:00
1192845ad5
avoid segmentation faults in universe/uloop variable increment
2020-03-25 08:19:24 -04:00
21f3f51ea2
better error messages on accessing invalid IDs in variable expressions
2019-08-05 23:17:38 -04:00
a50d57bceb
Merge branch 'master' into improve-include-consistency
...
# Conflicts:
# src/utils.cpp
2019-07-19 17:57:58 -04:00
e72aef2a96
more sscanf() return value checking
2019-07-19 12:01:16 -04:00
256531a29a
put implementation header first for all remaining main folder source files
2019-07-03 19:34:13 -04:00
42c31227d9
continuing to clean up include file lists
2019-07-01 15:59:16 -04:00
17602b4c26
some more include file cleanup.
...
include cstdlib where functions like atoi() are used
remove unneeded include statements from headers
2019-06-27 01:02:17 -04:00
6536399fc3
Merge pull request #1476 from uihsnv/log_spacing
...
A function logfreq3(), for logarithmic spacing
2019-06-17 14:12:59 -04:00
3e2f3a8058
avoid a case of mixing malloc()/free() with new/delete
2019-06-10 18:22:04 -04:00
3b7c15a8b2
Merging to stay up-to-date
...
Merge remote-tracking branch 'lammps_upstream/master' into log_spacing
2019-06-01 10:33:27 +05:30
68d69955d0
fix off-by-one error
2019-05-31 14:38:12 -04:00
02e7dd5716
also allow %e in format variables of suffix
2019-05-30 14:52:26 -04:00
1a5c3c6dcb
add check that allows only %f and %g conversions in variable format strings
2019-05-30 14:46:07 -04:00
c2a200fe85
A function logfreq3(), for logarithmical spacing
...
Unlike logfreq(), this also allows for fractional ratios
Resolves #1471
2019-05-26 14:00:21 +05:30
e359e80118
fix bug reported in issue #1410
2019-04-04 22:39:58 -04:00
81dd96f970
print more meaningful error message when trying to access individual data from a local array produced by a compute */local
2019-04-04 12:42:54 -04:00
ba320967a5
fix variable delete bug reported in #1346
2019-02-27 16:08:41 -05:00
7e1f760b72
rename python.h to lmppython.h and correspondingly python.cpp to lmppython.cpp
2019-02-04 14:24:53 -05:00
6f8c544a7d
add option to print_var_error() function to delegate errors to error->one() instead of error->all()
...
this change is applied to cases that may happen on individual ranks only, e.g. out-of-range access, division by zero, invalid argument.
2019-01-10 16:50:00 -05:00
09abc0c75a
Fix memory leak in Variable::compute_atom
2018-11-29 00:41:40 -05:00
3508eca337
make sure all local Tree pointers are initialized, either to a newly allocated Tree() or NULL
2018-11-28 18:49:37 -05:00
1fc3b4618c
remove dead code and silence compiler warnings
2018-11-15 16:50:56 -05:00
4d52cb9245
more buffer overflow avoiding through using snprintf()
2018-09-06 09:57:43 -04:00
7a2cb10864
Remove unused variable ( #1076 )
2018-08-24 10:42:08 -06:00
e9bc939098
Fix more unused parameter warnings ( #1076 )
2018-08-23 12:22:44 -06:00
5789ef9128
bug-fix for slope() function in variable
2018-08-03 10:08:02 -06:00
3e79296dcf
Variable style 'string' substitutes variables in definition
2018-06-14 13:10:08 +02:00
e4071d7f46
replace C-style include files with their C++ equivalents
2018-04-27 18:00:24 -04:00
59dbb49cf9
remove trailing whitespace
2018-03-16 12:37:27 -04:00
ee862d8bf5
replace leading tabs
2018-03-16 12:34:33 -04:00
01cfb710ff
propagate printing variable name with error deeper into the code
...
this now covers a large set of cases where the variable name can be printed.
it also is complete for the current code, since no more default arguments are required
2018-01-16 11:31:20 -05:00
3de39c70c1
print variable name with errors only for known variables.
...
this makes errors for "anonymous" evaluations (if statement, immediate variables) less confusing.
2018-01-16 11:29:48 -05:00
f37f4f0041
support more cases where the variable name is reported on errors
2018-01-14 17:56:03 -05:00
26917280be
state name of the affected variable in error messages where possible
2018-01-11 15:01:08 -05:00
e3973796ba
fix bug in power operator in LAMMPS variable expressions
2017-07-27 15:51:45 -04:00
2d8bce78a6
Refactor PYTHON package and wrapper classes
2017-04-11 21:22:30 -04:00
7dd60f9737
Fix typos in src files
2017-03-05 21:03:40 -05:00
e364b80724
added length keyword to python command
2016-12-16 10:24:25 -07:00
f9a9e27f5a
add error location propagation to atom->set_mass() and atom->check_mass()
2016-10-26 16:01:40 -04:00
c46be7db62
changes to imbalance weight factors
2016-10-05 10:33:39 -06:00
c3ff8812b3
added XOR operator to variable command
2016-10-03 17:57:33 -06:00
083ff54c0c
small bug fixes
...
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15527 f3b2605a-c512-4ea7-a41b-209d697bcdaa
2016-08-31 20:26:15 +00:00
7bf1d9b40f
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15489 f3b2605a-c512-4ea7-a41b-209d697bcdaa
2016-08-23 22:17:44 +00:00