Commit Graph

90 Commits

Author SHA1 Message Date
1ca38db9df simplify and avoid temporary buffers when piping to/from gzip 2021-04-07 23:26:21 -04:00
1f50557b38 Adopt utils::strdup in dump styles 2021-03-19 15:34:43 -04:00
e2e6639013 add typecast to avoid (unlikely but possible) integer overflows.
this will silence a lot of static code analysis warnings
2021-02-02 17:27:04 -05:00
adf74b3a22 use https://lammps.sandia.gov based URLs consistently 2020-10-21 16:45:30 -04:00
cebf6d33ba Merge pull request #2358 from eagunn/iss2345
Replace instances of NULL with nullptr
2020-09-15 17:41:24 -04:00
0183e999c9 consistently return "memory_usage" as double. 2020-09-15 01:59:58 -04:00
93a0d4c096 fix up some comments 2020-09-12 14:26:34 -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
485a169ef2 move merge sort to utils namespace 2020-09-06 17:38:53 -04:00
6113169a47 IWYU based include statement cleanup 2020-09-02 17:39:34 -04:00
31bd76efa5 Merge remote-tracking branch 'origin/master' into zstd_support 2020-09-01 12:58:41 -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
0d8454ac25 First version of Zstd dump atom 2020-08-25 23:27:42 -04:00
01214de6bd add support for adding an ITEM: TIME output to some dump files 2019-09-30 11:03:22 -04:00
e413aaf217 add support for optionally including unit information in standard dump files 2019-09-12 14:37:42 -04:00
7967cb1133 put implementation header first to avoid issues with mpi.h and lmptype.h with OpenMPI 2019-07-03 06:16:16 -04:00
31cbccda85 continue cleaning up include file lists 2019-06-29 09:37:44 -04:00
a20d58312d add missing convesion to fractional coordinates and back for enforced PBC dumps of triclinic cells 2019-03-25 12:25:50 -04:00
e9bc939098 Fix more unused parameter warnings (#1076) 2018-08-23 12:22:44 -06:00
f65b06de0e dump_modify maxfiles tweak 2018-05-11 15:54:16 -06:00
075598b405 port dump_modify maxfiles option to COMPRESS and MPIIO package 2018-05-10 23:44:27 -04:00
7780d92823 implement 'dump_modify maxfiles' feature as discussed 2018-05-10 23:25:26 -04:00
e4071d7f46 replace C-style include files with their C++ equivalents 2018-04-27 18:00:24 -04:00
a19e8fb269 Merge branch 'master' into resetids 2018-03-30 09:15:24 -06:00
5fd17670b1 new reset_ids command and dump_modify delay option 2018-03-28 11:31:35 -06:00
2aef3a0e96 new dump_modify refresh and compute displace/atom refresh commands for incremental dump files 2018-03-27 14:37:04 -06:00
8d384b9149 whitespace cleanup 2017-10-02 15:03:48 -04:00
d2610d9e7c minor changes to NEB doc pages and examples 2017-06-20 08:19:23 -06:00
c1b0b1b3f9 restore old qsort() based code and add preprocessor directives to switch
-DLMP_USE_LIBC_QSORT will use qsort() from libc to sort (requires static/global variables).
-DLMP_USE_MERGE_SORT will use a plain merge sort. slightly slower for expensive comparisons.
-DLMP_USE_HYBRID_SORT will use hybrid merge sort. faster than merge sort (no static/global variables)
2017-06-16 18:17:48 -04:00
8500a197ae whitespace cleanup 2017-06-14 23:13:10 -04:00
1f17e8ebbb remove need for static class member variables in Dump and Irregular
The dump and irregular classes were using qsort() from the C-library
for sorting lists through custom comparison functions, which required
access to additional data, which was passed via static class variables,
i.e. globals. This collides with having multiple LAMMPS instances in
the same address space.

the calls to qsort() are replaced with a custom merge sort, which passes
a void pointer to the comparison functions, which can contain any kind
of desired information, e.g. a class handle or a list
2017-06-14 23:10:53 -04:00
6759630c16 bug fix for dump sort in descending order 2016-11-23 17:08:36 -07:00
2634468676 dead code removal 2016-10-19 10:42:02 -04:00
6ccf4b4525 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15481 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2016-08-20 22:41:29 +00:00
bfba361f65 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15480 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2016-08-20 22:22:00 +00:00
0bffc1711e git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15435 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2016-08-04 16:39:15 +00:00
38226b8086 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15426 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2016-08-03 16:09:38 +00:00
5087bdb20c prevented reorder from being used with fix gcmc
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14285 f3b2605a-c512-4ea7-a41b-209d697bcdaa
2015-12-05 03:28:45 +00:00
354e20f431 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14220 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2015-10-30 20:04:06 +00:00
047be536bc git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13983 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2015-09-02 20:39:55 +00:00
3841dd58ca git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13931 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2015-08-21 22:55:12 +00:00
aeb7fec23a git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12814 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2014-12-02 02:15:39 +00:00
f14e5cdce6 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12714 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2014-11-18 00:15:46 +00:00
a59a131024 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12017 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2014-05-22 14:38:26 +00:00
3d6ac732ad git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11616 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2014-03-10 15:45:25 +00:00
fffe7f95b7 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11379 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2014-01-29 18:40:05 +00:00
0ce16af78b git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11328 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2014-01-25 22:46:08 +00:00
bad19033d0 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11250 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2014-01-17 18:43:09 +00:00
b8b0226d1b git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11069 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2013-11-26 17:07:52 +00:00
0ee331d2a7 git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11043 f3b2605a-c512-4ea7-a41b-209d697bcdaa 2013-11-22 00:10:56 +00:00