Commit Graph

84 Commits

Author SHA1 Message Date
f59e391713 avoid leaking empty allocations 2020-07-08 20:10:40 -04:00
9a268da7de remove unneeded typecasts and use fmt::print() instead of fprintf() 2020-07-07 20:53:42 -04:00
4c67822e6b remove unneeded typecasts 2020-07-07 20:27:01 -04:00
955bff7c4e add body support, change bonus buf to 1d so can be variable length 2020-07-07 11:34:30 -06:00
7918919d30 enable write_data for atom styles with bonus data 2020-07-06 17:30:45 -06:00
a0157f8063 use fmtlib consistently when writing data files 2020-07-05 17:16:58 -04:00
5d1d406e01 must initialize ngrow in the constructor 2020-06-23 11:02:57 -04:00
516a31796e need to move destruction of base per-atom properties back to atom.cpp so we don't leak memory in read_restart and don't crash with replicate 2020-06-22 23:12:11 -04:00
198258766d ensure that per-arrays are only freed if the last atom style instance is deleted 2020-06-22 18:59:09 -04:00
4a447f1809 move deleting all array data associated with an atom style to AtomVec base class destructor 2020-06-19 12:31:31 -04:00
547137f737 remove unused code 2020-06-17 23:48:09 -04:00
d990c1e7c0 simplify through using {fmt} 2020-06-17 01:25:22 -04:00
32c1dcf44f improve match for "id" first checks 2020-06-17 01:25:06 -04:00
db469b5cfd plug memory leak in AtomVec classes 2020-06-17 01:24:36 -04:00
55089df679 add a few missing typecasts 2020-06-12 07:01:32 -04:00
81d937ee97 Performance optimization of Tokenizer
Reduces string allocations and removes std::vector from Tokenizer
Most processing now happens on-demand.
2020-06-11 00:22:04 -04:00
e5f937388a fix bugs with reading restart files when using -DLAMMPS_BIGBIG 2020-06-07 22:14:51 -04:00
864103f93e fix cut-n-paste bug that crashed LAMMPS on reading molecular data files with -DLAMMPS_BIGBIG 2020-06-07 21:35:06 -04:00
cee7cd5fe9 consolidate enumerator for per-atom array data types 2020-06-07 11:44:42 -04:00
c02c352ca2 use {fmt} to write out atomic data 2020-06-04 21:56:00 -04:00
2710a22574 Merge branch 'master' into tokenizer 2020-05-28 07:33:10 -04:00
e2765a5c49 silence compiler warnings about unused arguments and variables and alike 2020-05-27 12:55:59 -04:00
3d567c14ef Revert changes to be more C-like for Steve 2020-05-20 18:00:01 -04:00
807130c771 Replace AtomVec::tokenize and use Tokenizer 2020-05-20 15:50:10 -04:00
dc74fac4d3 silence compiler warning 2020-05-15 20:04:49 -04:00
0ab3ebbac0 improve readability 2020-05-11 13:31:47 -04:00
822c7c5ca1 elimitate nthreads member, change threads from int to bool and determine number of threads dynamically
this fixes #2081
2020-05-11 10:57:27 -04:00
987bff27d4 fix issues in AtomVec refactoring detected by compiler warnings 2020-05-10 14:05:32 -04:00
18c77db8c3 Add Kokkos vel methods 2020-05-07 15:16:17 -06:00
5db1e4fe8d Initialize variables since Kokkos doesn't call setup_fields 2020-05-07 13:19:12 -06:00
d69009ac45 Fix pointer delete issue with Kokkos package 2020-05-07 11:10:09 -06:00
adc04f87f6 whitespace fixes 2020-05-01 08:24:24 -04:00
ecd3652f61 update to current master 2020-04-30 11:57:17 -06:00
f560cd6dd5 make certain, the molecular flag is always initialized 2020-03-21 01:08:09 -04:00
d34f9af291 fixed bug with writing of data file velocities 2020-01-30 14:27:45 -07:00
646dc83394 remove trailing whitespace 2020-01-21 15:46:28 -05:00
90ff2eb6c9 modified versions of creating atoms on subset of lattice, ditto for set type/fraction 2020-01-21 13:31:47 -07:00
ccc8f29d60 added support for USER-AWPMD package 2019-12-18 12:04:37 -07:00
b6374bacfb enable replicate to work with local ptrs 2019-12-18 08:56:03 -07:00
db6d272303 more additions to USER atom styles and bug fixes 2019-12-13 13:54:12 -07:00
f51ee40640 atom_vec.cpp 2019-12-03 11:24:12 -07:00
ccca80a6a5 changes to enable atom_style hybrid to work 2019-12-02 15:39:54 -07:00
4f6cb13592 added atom styles with bonus data, also a few USER packages 2019-11-27 16:03:50 -07:00
6c18e366d7 changes to start to make atom style hybrid work 2019-11-26 18:34:51 -07:00
3736af0aaf initial refactoring on AtomVec class 2019-11-26 13:42:32 -07:00
11a3fd6ce4 Merge pull request #1556 from lammps/bug-maxexchange
more robust version of atom exchange size
2019-07-30 17:09:18 -04:00
93748a18ae further clean up of AtomVec classes after merging PR #1552 to master 2019-07-10 00:22:03 -04:00
2fd327d057 more robust version of atom exchange size 2019-07-09 16:17:54 -06:00
06dcc9e283 Merge branch 'master' into improve-include-consistency
# Conflicts:
#	src/USER-MESO/atom_vec_tdpd.cpp
2019-07-09 14:50:00 -04:00
cfaa537296 use alternate implementation of numeric conversion functions
these new functions allow to choose between aborting with Error::one()
and exiting with Error::all(). in the long run those should replace
all of the functions in Force.
2019-07-08 17:51:37 -04:00