Compare commits

...

7212 Commits

Author SHA1 Message Date
1cc2d0739e Compilation errors 2025-07-11 15:10:21 -06:00
f378416131 Simplifying corrections, consolidating force calculations, and reducing errors due to ambiguous surface side when external 2025-07-10 16:32:13 -06:00
5737eddfbf Fixing compilation errors pair surf granular 2025-07-01 11:09:25 -06:00
30cf2a9197 Replicating contact processing for pair local surf 2025-06-12 10:23:52 -06:00
6bfec2a52b Deterministic external corrections 2025-06-06 15:17:33 -06:00
24b449a455 Simplifying internal tri corner corrections 2025-06-04 21:52:29 -06:00
4b5f2aca49 Unifying accumulation of global/local contacted surfs 2025-06-04 11:12:37 -06:00
a9b3923b26 Moving exposed variables to parent class 2025-05-23 22:33:13 -06:00
872b29e5cf Consolidating repeated functions 2025-05-23 17:13:29 -06:00
5db41ec62b MCalculating external smoothing at a per-composite level 2025-05-23 15:38:12 -06:00
ab1ceec3bf Renaming flat_surfs -> composite_surfs 2025-05-23 14:34:32 -06:00
e8d29d0575 Adding history to fix surf/global 2025-05-21 22:14:47 -06:00
2f04f04f8b Simplifying definition of exposed points 2025-05-15 22:02:54 -06:00
27c38788fb Removing 2D and 3D contact inconsistencies 2025-05-15 12:36:27 -06:00
49d45fd46c Setting exposed variables for 2d points 2025-05-15 10:18:05 -06:00
0de52e6950 Commenting out private history variable access, simplifying some distance-to-surface calculations 2025-05-14 15:13:40 -06:00
175696cc9e Updating history variables 2025-05-14 12:50:35 -06:00
ac143f6c40 Default adjustments for edge cases 2025-05-09 17:07:28 -06:00
aa70a3affc fixing array size 2025-05-09 14:03:13 -06:00
a86784ff20 Normalizing variables 2025-05-09 08:47:14 -06:00
0022a6de9d Clarifying external definitions, improved smoothing near convex and external edges 2025-05-08 16:37:59 -06:00
2a85dfd45b More thorough checking of surface sides, improving internal corrections, misc updates 2025-05-07 16:01:36 -06:00
20c0769c5d Grouping methods for clarity, improved geom logic 2025-05-02 16:07:38 -06:00
333136edda Initial smoothing for non-flat connections 2025-05-02 11:09:32 -06:00
1f617ad2d0 Extrapolating concave rules to corners 2025-05-01 10:07:57 -06:00
5bc6bc9b87 Cleaning up smoothing for exposed corners 2025-04-29 16:37:59 -06:00
80f70627b0 Adding force corrections on exposed corners 2025-03-07 13:54:17 -07:00
28043145b9 Adding debug info for normal calculation, porting 2D changes to 3D 2025-02-18 21:59:57 -07:00
adb58182a6 Drafting smoothing near nodes for 3D 2025-02-18 12:49:03 -07:00
19e7d47566 Fixing 2D bug, more cleanup, start on 3D refactor 2025-02-14 15:57:58 -07:00
82eeba6504 More 2D logic simplication 2025-02-11 15:02:32 -07:00
0fdf10dbf1 Adding exposed edge array, more simplification of 2d logic 2025-02-10 20:47:59 -07:00
ee26d6c857 Clarifying contact smoothing logic 2025-02-04 10:56:11 -07:00
9d0f0c51b6 Adding exposed pt attribute to surfs 2025-02-04 09:27:17 -07:00
7ba480a0e3 Adding corner loop, other misc updates 2025-02-01 21:25:41 -07:00
ef3645c194 Adding flat status for corner-connected tris 2025-01-23 09:02:12 -07:00
b2a24fd013 Fixing missed corners 2025-01-22 16:15:35 -07:00
6ddb823ed3 removing 3d seg faults, simplifying shared pts 2025-01-22 13:41:25 -07:00
418a7a1b1d Sketching 3D contact method 2025-01-21 16:46:22 -07:00
667a426075 reducing code duplication 2025-01-21 16:18:37 -07:00
bdd013a6b8 remove temperature keyword from FSL 2025-01-17 16:17:51 -07:00
b31c93bc9d added check methods to FSL 2025-01-17 16:13:34 -07:00
9f90dc8a23 added local stats methods 2025-01-16 16:15:11 -07:00
776b4abeff add stats methods to FSL 2025-01-15 17:07:57 -07:00
62ce5757ae Merge branch 'develop' into granular-triangles 2025-01-15 15:19:25 -07:00
ff40a235dd chased a valgrind issue to ground 2025-01-15 15:18:13 -07:00
ffa4765b15 Merge pull request #4241 from gsalkuin/develop
Add new fix to compute force and torque due to electric potential
2025-01-14 20:33:10 -05:00
89370efe39 Merge branch 'develop' into develop 2025-01-14 19:12:14 -05:00
906399b14f Merge pull request #3 from srtee/efield_lepton_updates
Efield lepton updates
2025-01-14 19:11:09 -05:00
bbb7d86614 Merge pull request #4410 from soniasalomoni/pair_d3
pair_style d3 - D3 dispersion corrections
2025-01-14 18:21:52 -05:00
0fe7fbdb42 Merge branch 'develop' into pair_d3 2025-01-14 16:05:29 -05:00
a7f1ea0e15 one-line bug 2025-01-14 13:18:48 -07:00
3a983696e1 more code movement into new parent class 2025-01-14 13:09:28 -07:00
fd84afebc4 add 2 files to gitignore 2025-01-14 07:31:23 -07:00
b27aa31baa fix whitespace 2025-01-14 22:35:56 +10:00
276b8d9c93 streamline Lepton variable update process with ptr-vectors 2025-01-14 22:31:42 +10:00
1f7533029b deduplicate force and torque calculations 2025-01-14 22:08:16 +10:00
edb068c43f Merge pull request #4426 from akohlmey/update-to-fmtlib-11.1
Update embedded fmtlib copy to version 11.1
2025-01-14 01:24:57 -05:00
31d1addfad Merge pull request #4434 from akohlmey/collected-small-changes
Collected small changes and fixes
2025-01-14 00:41:10 -05:00
151e8a9b21 create fix surface parent class 2025-01-13 22:20:47 -07:00
7b9f7be485 replace vecs with arrays since size known at compile-time; make phi and dphi flagging uniform 2025-01-14 14:47:33 +10:00
7c8c8c9d01 update patch for WHAM code 2025-01-13 22:07:44 -05:00
b56b8a016a Merge pull request #2 from akohlmey/efield_lepton_updates
Fix efield/lepton updates
2025-01-13 20:40:17 -05:00
c2868c448e Merge remote-tracking branch 'github/develop' into collected-small-changes 2025-01-13 20:34:14 -05:00
754517dcf6 Merge branch 'collected-small-changes' of github.com:akohlmey/lammps into collected-small-changes 2025-01-13 20:32:01 -05:00
7d788b9754 doc tweaks 2025-01-13 17:25:14 -07:00
6d7926a026 add missing lammps_expand() function 2025-01-13 19:13:34 -05:00
ed75527069 sync command syntax for FSG and FSL 2025-01-13 17:08:56 -07:00
663f812799 fix inconsistent backquotes 2025-01-13 19:05:04 -05:00
55a3b28f7d replace CR-LF with LF 2025-01-13 16:19:40 -05:00
8705a14b35 create logs for example input 2025-01-13 16:18:24 -05:00
ec669676d0 remove unused variables 2025-01-13 16:11:14 -05:00
742c869534 Merge branch 'develop' into gsalkuin/develop 2025-01-13 16:08:18 -05:00
be048fc636 cosmetic changes 2025-01-13 16:01:18 -05:00
ddff545a4c Merge pull request #4431 from Becksteinlab/imd-v3-integration
Interactive Molecular Dynamics [IMD] Version 3 implementation
2025-01-13 15:59:41 -05:00
9b4ed82c05 Merge branch 'granular-triangles' of github.com:lammps/lammps into granular-triangles 2025-01-13 13:23:18 -07:00
11aec5561b Possible approach for multi-type flat surfs 2025-01-13 10:15:30 -07:00
62aa803d53 order list of removed commands and packages in reverse order of their removal date
also add an (automatic) table of contents simplify finding something
2025-01-13 12:03:31 -05:00
a22c58cd47 add missing update to invoked_bonds in ComputeReaxFFAtomKokkos 2025-01-13 00:17:05 -07:00
686326a999 Merge remote-tracking branch 'github/develop' into collected-small-changes 2025-01-13 01:05:48 -05:00
528770f07d Merge pull request #4344 from lammps/cmake-cpp-std-deprecation
Prepare development branch for requiring C++17 and deprecating GNU make support for some packages
2025-01-13 01:05:07 -05:00
d692a99e4d print PyLammps deprecation warning only once and only from MPI rank 0 2025-01-13 00:04:14 -05:00
dd6fea3fcd Merge branch 'develop' into cmake-cpp-std-deprecation 2025-01-12 23:54:50 -05:00
e20f3ec874 macOS does not like forward declarations for standard C++ classes 2025-01-12 23:50:33 -05:00
f50edb5a38 Merge pull request #4369 from rbberger/deprecate_pylammps
Python interface updates
2025-01-12 23:30:22 -05:00
0aadc4cf46 use mutex to avoid race condition when accessing thermo data during run 2025-01-12 23:27:17 -05:00
78850efaed also warn that KOKKOS will end support for legacy builds in Summer 2025 2025-01-12 21:57:25 -05:00
7c990f8b0e improve wording 2025-01-12 21:56:54 -05:00
2df402c4ff Merge branch 'develop' into cmake-cpp-std-deprecation 2025-01-12 21:47:02 -05:00
906117ff47 We no longer support Intel icc version 19 or older. Clean up checks/flags. 2025-01-12 21:46:04 -05:00
c476e6704b revert workarounds for Intel ICC 19.x 2025-01-12 20:13:24 -05:00
4519489f8b fix unit test and another workaround for intel compilers 2025-01-12 19:42:03 -05:00
c8a46fe4ce make better use for std calls and improve error messages 2025-01-12 17:48:50 -05:00
943504fd98 move timespec2seconds exception handling to calling function 2025-01-12 17:48:20 -05:00
60b10c1588 Merge remote-tracking branch 'github/develop' into update-to-fmtlib-11.1 2025-01-12 16:52:56 -05:00
f34ae8a011 simplify 2025-01-12 16:49:49 -05:00
296f1ab29f alternate attempts to work around intel icc 19 limitations 2025-01-12 16:43:37 -05:00
7b60abf569 add LAMMPS customization for Intel compilers 2025-01-12 16:11:50 -05:00
9e4a51d568 add bugfixes with update to version 11.1.2 2025-01-12 15:41:37 -05:00
a5c3305c42 sync with lammps tutorials paper description 2025-01-12 15:09:42 -05:00
85dec585a6 add tests for lammps_eval() and its python counterpart 2025-01-12 14:49:07 -05:00
dce1231052 add a lammps_eval() function to the C library interface and all derived wrappers 2025-01-12 00:39:18 -05:00
be596cca0c revert setting to run flatpak builder test action only after merges 2025-01-11 19:31:31 -05:00
cf2e800aaa extract bundle from local flatpak repo and try to install it 2025-01-11 19:20:06 -05:00
672faf9fe5 operate on "develop" branch 2025-01-11 19:06:49 -05:00
fb1c090f19 revert to lammps repo 2025-01-11 18:59:22 -05:00
cb2acb633b update workflow 2025-01-11 18:56:59 -05:00
61c541ff92 add github action to build LAMMPS-GUI as flatpak 2025-01-11 18:47:35 -05:00
91dfa41494 Merge remote-tracking branch 'github/develop' into collected-small-changes 2025-01-11 18:17:04 -05:00
a443fe4142 Merge pull request #4433 from farrelljd-iop/angle-mwlc
Angle style MWLC (meltable wormlike chain)
2025-01-11 18:07:36 -05:00
b508229bd2 adapt to LAMMPS programming style 2025-01-11 18:05:16 -05:00
8b2c852121 correct and update the Python Howto 2025-01-11 17:54:44 -05:00
994a631150 add "post no" for single-shot runs 2025-01-11 17:43:05 -05:00
be62d7e04b Merge pull request #4 from akohlmey/imd-v3-updates
Add separator comments
2025-01-11 11:51:08 -07:00
0d85c5c704 add separators 2025-01-11 11:13:47 -05:00
e3f930b33f Merge pull request #1 from akohlmey/angle-mwlc
Small updates to PR #4433
2025-01-11 10:04:12 +08:00
3126482c48 update variable command tests to include whitespace 2025-01-10 20:53:24 -05:00
c4a5906382 stop checking ML-PACE with coverity scan as recent CMake changes break it 2025-01-10 20:12:09 -05:00
4f6c3d12f7 avoid variable definition error: expected 3 arguments but found N 2025-01-10 20:10:53 -05:00
a7ded8f9dd Removing discontinuity between two sets of convex flats 2025-01-10 17:07:16 -07:00
dbc6f77e53 Merge branch 'develop' into deprecate_pylammps 2025-01-10 16:01:06 -07:00
fffd70b8b6 Cleaning up contact logic 2025-01-10 13:30:10 -07:00
6732013935 apply clang-format 2025-01-10 12:17:29 -05:00
5a0222153a small doc updates and corrections 2025-01-10 12:15:24 -05:00
e858c8a78d Merge branch 'develop' into angle-mwlc 2025-01-10 14:33:50 +08:00
4af328cba1 added contributing author email 2025-01-10 14:08:34 +08:00
5490336543 added a unit test 2025-01-10 14:06:00 +08:00
6bdc58baaf improved the documentation 2025-01-10 14:05:19 +08:00
3731513576 example IMDv3 usage 2025-01-09 21:55:44 -07:00
c7ae973948 more edits to angle_mwlc documentation 2025-01-10 12:02:27 +08:00
2b688bb013 replace defines with static constexpr 2025-01-09 21:32:58 -05:00
38c3477d2f Merge pull request #4394 from rbberger/find-package-pace
ml-pace: allow linking to existing pace library
2025-01-09 19:41:19 -05:00
4330801a2f Merge pull request #4429 from akohlmey/collected-small-changes
Collected small changes and fixes
2025-01-09 19:33:52 -05:00
00036f65e0 Simplifying brackets 2025-01-09 16:06:24 -07:00
a769b3d6b2 Merge branch 'develop' into collected-small-changes 2025-01-09 11:17:05 -05:00
cb930d6470 Merge pull request #4405 from tylercollins5737/develop
vcm example script and log added
2025-01-09 10:20:16 -05:00
9c1da4cbc9 whitespace fix in doc 2025-01-08 22:45:38 -08:00
090e55b1d8 Merge branch 'develop' into develop 2025-01-08 22:42:31 -08:00
617f798199 make sure that retstr is always initialized since it is always communicated 2025-01-09 00:37:43 -05:00
ce05f0cd9d Merge pull request #3 from akohlmey/imd-v3-updates
Imd v3 Integration updates
2025-01-08 21:07:10 -07:00
9a513ca82c Merge remote-tracking branch 'github/develop' into collected-small-changes 2025-01-08 21:54:04 -05:00
50bda6077c Merge pull request #4430 from akohlmey/update-linalg
Update linalg to version 1.4.2 corresponding to LAPACK 3.12.1
2025-01-08 21:53:33 -05:00
52d932df3b Merge pull request #4413 from stanmoore1/kk_update_4.5.0
Update Kokkos library in LAMMPS to v4.5.1
2025-01-08 21:23:19 -05:00
41e7cf7879 MPI bugfix for dump netcdf from Paul Coffman 2025-01-08 21:18:03 -05:00
494f58904c correct reference 2025-01-08 20:54:04 -05:00
1032c94c9f apply some more of LAMMPS' programming style guidelines and improve errors 2025-01-08 20:52:57 -05:00
6a363d441b small formatting tweaks, add versionadded tag 2025-01-08 20:52:45 -05:00
02a8a9d706 make LAMMPS_ASYNC_IMD a CMake variable, too, and document it properly 2025-01-08 20:50:16 -05:00
1ebf591592 Merge branch 'develop' into imd-v3-integration 2025-01-08 16:13:50 -07:00
0dacedd8b0 undo workflow changes 2025-01-08 16:12:58 -07:00
668435380b Make sure that yaml-cpp::yaml-cpp exists 2025-01-08 15:41:37 -07:00
748046089c add another couple of dependent functions 2025-01-08 16:32:56 -05:00
f3425ebfbf add one more missing dependency 2025-01-08 16:21:08 -05:00
e7d9244184 add missing dependency 2025-01-08 16:14:28 -05:00
8ec9f37611 update linalg to version 1.4 corresponding to LAPACK 3.12.1 2025-01-08 15:52:30 -05:00
ec7be395ea ml-pace: update tag 2025-01-08 11:48:34 -07:00
24763bfd8e add info on how to debug if LAMMPS seems stuck 2025-01-08 12:24:13 -05:00
ae6b2d85fb fix typo 2025-01-08 10:04:14 -05:00
cbab95e569 update for more clarity 2025-01-08 10:04:06 -05:00
1432df370b modernize access for fixes and computes 2025-01-08 08:53:12 -05:00
613c38d9e6 replace loops with explicit iterators with c++-11 auto loops 2025-01-08 08:29:53 -05:00
d66d1a2dd2 fix indexing bug in dump vtk that would ignore the first 5 custom properties 2025-01-08 08:19:09 -05:00
42adfc1ae3 Merge remote-tracking branch 'github/develop' into collected-small-changes 2025-01-08 02:28:51 -05:00
0abb371fbe Merge pull request #4428 from tadmor/fix-kim-single-proc-error-bug
Single process errors in pair style kim reported using error->one
2025-01-07 22:34:26 -05:00
a795ae35fd Single process errors in pair style kim reported using error->one
Errors during a KIM compute operation that occur on a single processor were reported using error->all, which causes LAMMPS to hang when running in parallel with more than one processor. This has been fixed by replacing error->all with error->one for those cases.
2025-01-07 12:29:34 -06:00
8595d8f05c Merge branch 'develop' of github.com:lammps/lammps into kk_update_4.5.0 2025-01-07 10:04:43 -07:00
cec242a421 remove trailing whitespace 2025-01-06 12:30:45 -07:00
467ceee9cb update patch for WHAM 2025-01-04 18:18:27 -05:00
670447ea21 correct list of valid reference syntax to computes, fixes, and properties 2025-01-04 16:22:05 -05:00
cd6ab17d36 Merge pull request #4427 from akohlmey/collected-small-changes
Collected small changes and fixes
2025-01-03 12:27:43 -05:00
bc30665689 update unit test for changes in units command error messages 2025-01-03 04:04:42 -05:00
1fcf1a7c56 add patch for customization of wham to support LAMMPS units 2025-01-02 19:39:02 -05:00
f7cea5e428 improve error messages 2025-01-02 19:38:10 -05:00
735606a0b5 document inclusion of WHAM 2025-01-02 18:03:56 -05:00
d87abc0d01 correct CMake script code for including WHAM executables in macOS app-bundle 2025-01-02 17:25:44 -05:00
399d7111d5 include WHAM software in LAMMPS-GUI compilation 2025-01-02 00:38:04 -05:00
463452e6a0 README added 2024-12-29 22:40:05 -08:00
b246599654 uploaded dated stress output file 2024-12-29 22:33:24 -08:00
f809aee52f uploaded dated plot 2024-12-29 22:31:35 -08:00
908c2aaf5e Merge branch 'develop' into develop 2024-12-29 20:35:47 -08:00
8b32516b79 display a valid URL for the download location 2024-12-29 20:11:59 -05:00
78a897c1bf check if a downloaded (solution) file is a symlink placeholder and put a copy of the original in its place 2024-12-29 17:22:07 -05:00
4d36a84738 add check whether libcurl support was compiled into LAMMPS and geturl is functional 2024-12-29 17:22:00 -05:00
9dbb9d356d reformulate to avoid command-line 2024-12-29 12:05:07 -05:00
0bdaece1f0 add keyboard shortcut and context menu entry for jump to next warning 2024-12-29 11:35:44 -05:00
f6c0c73289 improve layout of warnings panel 2024-12-29 10:48:54 -05:00
7d67bcad22 compatibility with Qt 5.12 on Ubuntu 20.04LTS 2024-12-28 22:09:29 -05:00
d70b923c5a update tutorial info texts from paper 2024-12-28 20:34:45 -05:00
73eeda3b1d display panel with number or warnings and lines in output window, button for jumping to next warning 2024-12-28 18:44:44 -05:00
f50b5d63f3 combine the first two and the second two wizard pages into one page each 2024-12-28 12:38:52 -05:00
be9ace068a show download progress in status line and progress bar 2024-12-28 12:38:45 -05:00
e5ee94a13c add overloads for automatic string style conversions 2024-12-28 12:38:39 -05:00
bbef7e3eac update TODO 2024-12-27 23:01:20 -05:00
211099b7ca small updates and corrections to the LAMMPS-GUI howto 2024-12-27 22:57:51 -05:00
90d1e4d45f add code paths for all 8 tutorial wizards. only descriptive text is missing. 2024-12-27 15:42:36 -05:00
c9b69b00c5 bugfix update to version 11.1.1 2024-12-27 12:03:23 -05:00
9241f89582 avoid 32-bit integer overflow by reordering 2024-12-27 11:35:28 -05:00
f71fa8e94e logo images for all 8 currently supported tutorials 2024-12-27 10:20:18 -05:00
916e5a81fb more fix::init() checks and some clang-formatting for NH style classes 2024-12-27 08:44:02 -05:00
1d4e2d7867 another chunk of added/updated/modernized internal compute checks at Fix::init() 2024-12-27 04:18:01 -05:00
fb33541961 use command-line consistently where applicable and drop "line" where not 2024-12-27 04:03:41 -05:00
de0baba124 add updates/corrections, improve formatting 2024-12-27 03:50:51 -05:00
53c3fa2afd memcpymask is a constant and thus should be uppercase 2024-12-27 01:54:44 -05:00
332653d5ca output embedded fmt lib version info with help flag and info config command 2024-12-26 23:36:46 -05:00
5ece81323e suppress bogus compiler warnings about overflowing buffer size in memcpy() 2024-12-26 22:53:44 -05:00
833607f926 import code for fmtlib 11.1.0 2024-12-26 22:10:28 -05:00
48178ccc50 highlight error and warning messages in output window 2024-12-26 17:19:12 -05:00
5947e3e82c use LAMMPS' warning function from Error class 2024-12-26 16:27:20 -05:00
f3cbf55d3c update LAMMPS-GUI todo list 2024-12-26 16:26:51 -05:00
c78c53b36f more checking on temperature and pressure computes plus bugfixes 2024-12-24 16:06:17 -05:00
77ab630080 update LAMMPS-GUI TODO list 2024-12-24 15:36:40 -05:00
f00addcfaf Merge pull request #4422 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-12-24 14:40:56 -05:00
940473af98 Merge branch 'kk_update_4.5.0' of github.com:stanmoore1/lammps into kk_update_4.5.0 2024-12-24 10:35:16 -07:00
e31ca3c9c5 Update CMake 2024-12-24 10:35:05 -07:00
a23dcb67d1 Merge branch 'develop' into kk_update_4.5.0 2024-12-24 09:59:33 -07:00
c27ca94660 Update Kokkos library in LAMMPS to v4.5.1 2024-12-24 09:58:51 -07:00
fbba20fa89 validate that a non-temperature compute has not been replaced without fix_modify 2024-12-23 20:24:24 -05:00
78aee50de8 small cosmetic changes, simplify d2/d3 examples, and create consistent logs 2024-12-20 18:49:55 -05:00
210f7d7225 check that the internal pressure compute has not been manually replaced with a non-pressure compute without using fix_modify 2024-12-19 12:08:21 -05:00
095d33dafb Added examples and references to the docs 2024-12-19 18:06:54 +01:00
f06c4daee0 make format style variable tests unambiguous for rounding issues 2024-12-19 11:09:36 -05:00
aadc87279d Merge branch 'fix-doc-gpu-typo' of https://github.com/DanielYang59/lammps into collected-small-changes 2024-12-19 08:35:47 -05:00
74cf599778 work around bug in FindVTK.cmake shipped with VTK 9.1 (and possibly other versions) 2024-12-19 08:32:34 -05:00
bf10fcd2f5 fix GPU build typo 2024-12-19 21:17:01 +08:00
a92ef0750d allow multiple inputs for FSL 2024-12-18 20:51:30 -07:00
b4a6be2623 more spelling and formatting 2024-12-18 05:24:16 -05:00
089e45375f small doc corrections and formatting fixes 2024-12-18 04:54:33 -05:00
3311e71a82 Merge branch 'develop' into develop 2024-12-17 20:27:13 -08:00
7cd6c49a0d added line linking example script 2024-12-17 20:26:12 -08:00
4b1a8d1a78 uncommented output line 2024-12-17 20:06:04 -08:00
03fff14922 example name suffix removed 2024-12-17 20:02:38 -08:00
6505a9052b make format style variable tests unambiguous for rounding issues 2024-12-17 21:48:34 -05:00
6fdc67e2a8 Merge remote-tracking branch 'github/develop' into pair_d3 2024-12-17 21:22:39 -05:00
e288163ea4 Merge branch 'develop' into pair_d3 2024-12-17 21:22:05 -05:00
a47503fd8b complete previous commit 2024-12-17 21:18:10 -05:00
cac3bdd175 move two more parameter arrays to header and make them static constexpr 2024-12-17 21:09:04 -05:00
7921aeda9e convert defines and arrays on the stack with static constexpr local arrays 2024-12-17 20:56:35 -05:00
c80d95b607 sync with upstream 2024-12-17 16:32:23 -07:00
86cf903276 debugging for parallel fix surface/local 2024-12-17 16:30:21 -07:00
5869be7b1a whitespace 2024-12-17 15:50:25 -07:00
a914d7fecf Uncommenting velocity correction 2024-12-17 15:42:48 -07:00
3c026df75d formatting docs 2024-12-17 14:36:59 -07:00
2c9ad698ca doc updates 2024-12-17 14:36:41 -07:00
3d29991947 fix async IO bug 2024-12-17 14:22:45 -07:00
63e3d2f3f8 Merge branch 'granular-triangles' of github.com:lammps/lammps into granular-triangles 2024-12-17 13:52:10 -07:00
aeb2190582 Merge pull request #4404 from abkein/experimental
Marked multitype's default constructor as noexcept
2024-12-17 15:22:33 -05:00
67a8120c44 Merge pull request #4403 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-12-17 15:17:28 -05:00
5e16a21d9e lower epsilon one more time 2024-12-17 13:53:35 -05:00
1e0a3f4601 lower epsilon for macOS 2024-12-17 12:15:38 -05:00
faab36cbd0 Merge branch 'develop' into collected-small-changes 2024-12-17 10:39:55 -05:00
fe77596099 cosmetic 2024-12-17 10:39:24 -05:00
4bdf6b0e2e make consistent 2024-12-17 10:39:18 -05:00
8ee83bc926 Merge pull request #4391 from weinbe2/feature/snap-unify-codepaths
SNAP/Kokkos CPU+GPU code unification and other optimizations
2024-12-16 23:09:16 -05:00
f7b6cb120d Updating multitype model 2024-12-16 17:44:22 -07:00
352dee0d27 Cleaning up model processing 2024-12-16 17:03:24 -07:00
cf11722c7d one more modified input test script 2024-12-16 16:44:25 -07:00
6ff458759f debugging of serial fix surface/local 2024-12-16 16:30:23 -07:00
8daad30ae1 Re-enable Kokkos OpenMP and Serial code paths for SNAP 2024-12-16 11:07:47 -07:00
5ffbf3934b use safe version of Domain::minimum_image() for large image flag counts. 2024-12-15 18:20:38 -05:00
a6d53d8d13 fix incorrect extvector setting bug for using fix vector with fixes 2024-12-14 23:11:48 -05:00
861b1fb16f small doxygen updates 2024-12-14 21:40:47 -05:00
afe0d94122 small fixes for the manual 2024-12-14 17:12:51 -05:00
c9d0ebadd9 address spelling issues 2024-12-14 17:10:22 -05:00
5fa4be4597 correct references 2024-12-14 17:09:50 -05:00
4c33bf663d whitespace 2024-12-14 16:58:58 -05:00
70c5722e9f flatpak updates 2024-12-14 09:44:57 -05:00
1cb12e3753 update appdata for flatpak builds 2024-12-14 08:22:09 -05:00
6124631a65 updated readme example list order 2024-12-13 21:18:10 -08:00
1188c38e73 updated docs example page 2024-12-13 21:15:24 -08:00
0c91880192 updated compute_temp_chunk doc 2024-12-13 21:10:37 -08:00
5a7abccd28 Merge branch 'granular-triangles' of github.com:lammps/lammps into granular-triangles 2024-12-13 16:37:02 -07:00
9f58ef5cc8 finish first pass of fix surface/local refactor 2024-12-13 16:36:52 -07:00
e3b991c27a Merge branch 'develop' of github.com:lammps/lammps into feature/snap-unify-codepaths 2024-12-13 15:47:30 -07:00
244b3cdae9 Removing obsolete connection variables 2024-12-13 14:31:51 -07:00
2a63d04aff Improving contact detection 2024-12-13 14:31:51 -07:00
f557b7b0e5 Need to update define for HIP unified memory 2024-12-13 11:45:12 -08:00
4c347a719e Update docs for Kokkos v4.5.0 2024-12-13 09:48:16 -07:00
9e3f7e55ee Update build systems for Kokkos v4.5.0 2024-12-13 09:32:45 -07:00
7f68aeb6d5 Update Kokkos library in LAMMPS to v4.5.0 2024-12-13 09:23:03 -07:00
754aa1c73f python: doc and example updates 2024-12-12 23:27:07 -07:00
e45ef5adc0 unittest: add Python command_wrapper test 2024-12-12 23:27:07 -07:00
24a4ff78b6 python: update examples and docs 2024-12-12 23:27:07 -07:00
d50a62f827 example readme updated 2024-12-12 18:32:46 -08:00
5134529ee0 Merge branch 'develop' into experimental 2024-12-13 02:14:33 +03:00
4167b0a00d more refactoring on fix surface/local 2024-12-12 13:25:13 -07:00
94109e606e more work on fix surface/local 2024-12-12 09:00:19 -07:00
077a229cc8 merge develop into angle-mwlc 2024-12-12 16:04:09 +08:00
8f25a31dee adapted angle_mwlc to work with units other than lj 2024-12-12 15:38:34 +08:00
483111b637 remove references to nonexisting input 2024-12-12 00:22:51 -05:00
b9aa11b547 final connectivity for both global and local 2024-12-11 15:04:58 -07:00
3aeb64de89 rename pair style and fully integrate into build and manual 2024-12-11 15:33:39 -05:00
bc1c2378b2 more refactoring of fix surf/local for 3d 2024-12-11 12:23:22 -07:00
b4acfd1e3b updated summary, comments, and name 2024-12-10 21:47:30 -08:00
0674f43364 correct references 2024-12-10 23:49:24 -05:00
eba7dfad36 address spelling issues 2024-12-10 23:48:33 -05:00
91c0d599f6 add note about age of SPH package PDF add-on docs. 2024-12-10 23:00:30 -05:00
9da58b3ffc python: deprecated pylammps interface 2024-12-10 20:47:22 -07:00
49938456a3 Merge branch 'lammps:develop' into develop 2024-12-10 17:45:18 -08:00
af5315e173 merge with upstream 2024-12-10 15:07:09 -07:00
6ec3883b1e more refactoring of fix surface/local 2024-12-10 15:03:36 -07:00
a4429ed0ed Revising force calculation for flat surfs 2024-12-10 13:50:33 -07:00
335069f1ca implemented d3 pair style 2024-12-10 17:25:39 +01:00
5fba482c82 Merge branch 'granular-triangles' of github.com:lammps/lammps into granular-triangles 2024-12-10 08:23:16 -07:00
0f2e097886 continued refactoring of fix surface/local 2024-12-10 08:23:04 -07:00
02db7be6e2 Merge branch 'develop' into collected-small-changes 2024-12-10 09:07:57 -05:00
a78aee5731 Merge pull request #4407 from jtclemm/small-patches
Bug fix for domain class, minor edits to other classes
2024-12-10 08:30:18 -05:00
e902d19e06 Merge pull request #4366 from jtclemm/rheo
Updates for RHEO package, including new optional comm features
2024-12-10 08:23:31 -05:00
6f4466f300 Marked multitype's default constructor as noexcept, b/c it is 2024-12-10 08:19:38 -05:00
1b7bc59e51 Clarifying BPM eq dist logic 2024-12-09 11:51:12 -07:00
90f121e02c Clarifying ambiguous remap comment 2024-12-09 11:34:53 -07:00
fdfe6d54c6 Clarifying break no alternate 2024-12-09 11:14:29 -07:00
2562d3afc4 Updating bpm pour example with break no 2024-12-09 11:11:06 -07:00
4c496df934 Simplifying behavior of bpm bonds without breakage 2024-12-09 11:04:27 -07:00
bcd123c882 Removing extra x-lambda conversion 2024-12-09 10:36:05 -07:00
e21ed49695 improve error messages 2024-12-09 09:08:22 -05:00
9a634612f4 initial refactoring of fix surface/local 2024-12-07 20:27:30 -07:00
3c6f4374ee removed some id info 2024-12-06 22:37:28 -08:00
f0c176c603 vcm example script and log added 2024-12-06 21:42:23 -08:00
c6a1805c38 fix input arg typo 2024-12-06 16:33:20 -07:00
3a8d5d194e Enable smooth sliding on flat surfs 2024-12-06 16:12:35 -07:00
5f3ee3100a Marked multitype's default constructor as noexcept, b/c it is 2024-12-07 01:56:28 +03:00
828f5b9a77 avoid uninitialized data access 2024-12-06 15:31:00 -05:00
aaa8431919 add comment to sync this file with the corresponding page of the LAMMPS homepage 2024-12-06 11:40:11 -05:00
2eb3084a8c add "Original author" tag to Steve's name 2024-12-06 11:17:45 -05:00
6221a61aeb one more doc change 2024-12-06 07:53:20 -07:00
6112cc46e1 adjust doc pages for added FSG capabilities 2024-12-06 07:52:02 -07:00
19376ede6b Iterator typo in check molecule 2024-12-05 20:22:12 -07:00
7af138a224 Fixing overlap calculation 2024-12-05 15:00:55 -07:00
2279763c05 Clarifying definition of knd for hooke 2024-12-05 12:35:23 -07:00
ade5289030 Redefining stiffness in coeff rest moodel 2024-12-05 12:31:03 -07:00
dc3a100141 remove unused variables 2024-12-05 08:58:02 -05:00
8593aef74c Initial set of bug fixes in force calculation 2024-12-04 15:56:02 -07:00
0e8f0be587 fix conflict with upstream 2024-12-04 14:01:34 -07:00
f90aead385 enable VARIABLE-style motion 2024-12-04 13:59:43 -07:00
8356f093cd Fixing arg parsing error 2024-12-04 13:39:29 -07:00
e91cb95ca5 added more stats output for fix_modify options 2024-12-04 11:25:10 -07:00
d55743e5ad add molID warning and stats on 2d/3d surfs 2024-12-04 08:13:59 -07:00
b32e3c3d94 fix conflict 2024-12-03 16:59:15 -07:00
6a8bfc4236 only include corner-only connections in 3d connectivity 2024-12-03 16:57:49 -07:00
bfb5e31bef Clarifying comments 2024-12-03 16:11:10 -07:00
5c64405338 Averaging contact geometry for force calculation 2024-12-03 15:56:31 -07:00
07a8b3d22d Handling history across multiple surfs 2024-12-03 15:39:29 -07:00
1b8601fbd4 Moving force calculation in place 2024-12-03 15:14:25 -07:00
2e81dc228e Adding force calculation back in 2024-12-03 14:06:03 -07:00
5e12b52b54 whitespace 2024-12-03 13:43:46 -07:00
856eda6c57 Switching to map 2024-12-03 13:39:23 -07:00
2a8ae96eb4 Finished drafting 2d contact processing 2024-12-03 13:27:34 -07:00
daa963faa6 accurate memory usage and add TRANSROT movement option 2024-12-02 15:46:16 -07:00
9b646a5ab4 add error checks on zero-size and duplicate surfs 2024-12-02 14:09:23 -07:00
296941ede7 Missed file, whitespace 2024-12-02 10:05:12 -07:00
e78586bb7d tweak of NOTEs 2024-11-28 11:38:35 -07:00
785b7424ac debugging on example inputs w/out particles 2024-11-28 11:33:19 -07:00
a7cfd4b934 Merge branch 'develop' into rheo 2024-11-28 10:19:35 -07:00
f74b4dbe92 added I/O options to refine.py tool 2024-11-27 13:17:18 -07:00
cd16308d71 Merge pull request #4389 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-11-27 14:27:14 -05:00
6102350eed shorten 2024-11-27 12:10:56 -05:00
7c87874f5e improve expanded fix external docs 2024-11-27 01:55:11 -05:00
ef4b070e6f fix typo 2024-11-27 01:45:42 -05:00
d6db102581 add todo list to refine.py 2024-11-26 19:08:35 -07:00
573c34932c Merge branch 'granular-triangles' of github.com:lammps/lammps into granular-triangles 2024-11-26 19:07:22 -07:00
3d27bc2262 debugging of 3d refinement 2024-11-26 19:07:14 -07:00
f50e2a0323 first version of refine.py tool script 2024-11-26 16:53:20 -07:00
e9073e4e1d Missed changes 2024-11-26 16:19:19 -07:00
09cd209c62 typo 2024-11-26 15:56:03 -07:00
8aba26bd71 doc fixes 2024-11-26 15:55:08 -07:00
6b4f82dc31 Resetting variables in deform/pressure init 2024-11-26 13:04:26 -07:00
a420d04418 Unifying desc/code for tsuji and coeff restitution 2024-11-26 11:28:40 -07:00
461dd67bb4 Clarifying Tsuji damping doc, removing overloaded variable 2024-11-26 10:37:13 -07:00
1beb4b17ec Clarifying doc on arguments for coeff rest damping 2024-11-26 10:15:26 -07:00
aeb9003890 bug fixes 2024-11-25 18:22:44 -07:00
6f36dcecc6 Merge branch 'develop' into imd-v3-integration 2024-11-25 16:26:56 -07:00
88807c6ae6 ml-pace: allow linking to existing pace library 2024-11-25 16:18:50 -07:00
f7915109f9 minor bug fixes 2024-11-25 15:22:02 -07:00
c87e0735a9 Merge branch 'develop' into feature/snap-unify-codepaths 2024-11-25 09:27:38 -08:00
3f78ee72c6 get access to the applied external force from the fix 2024-11-24 22:25:38 -05:00
f4af405347 consolidate NOTEs 2024-11-23 10:41:53 -07:00
471fdf27cd Typo in bond failure subscripts 2024-11-22 14:59:51 -07:00
e4683c3134 typo in equation 2024-11-22 14:40:45 -07:00
10c429fe21 Separating background pressure from EoS definition 2024-11-22 14:37:47 -07:00
287125f198 memory cleanup 2024-11-22 14:27:26 -07:00
e7c995abcb Re-disabled SNAP Kokkos CPU path =( 2024-11-22 11:28:25 -08:00
df4b41cbff more refactoring of fix surface/global 2024-11-22 11:52:09 -07:00
ce6e0dbe68 Added templating over chemsnap for evaluate_beta_scaled 2024-11-21 14:33:30 -08:00
261abaa683 Added templating over chemsnap for ComputeYi and ComputeYiWithZlist 2024-11-21 14:17:40 -08:00
28e64fca94 Added templating over chemsnap for ComputeZi and ComputeBi 2024-11-21 14:06:10 -08:00
67470f236e Added a (default zero) extra launch bound arg to help with ComputeYi perf consistency 2024-11-21 13:48:04 -08:00
d724324189 refactoring of motion options 2024-11-21 14:18:11 -07:00
6c333837e0 Merge branch 'develop' into collected-small-changes 2024-11-21 02:57:08 -05:00
43fbdc2d93 Merge pull request #4388 from lichanghao/dump_image_bug_fix
Fixed a indexing bug in dump_image.cpp causing segmentation fault with body style particles
2024-11-21 01:18:02 -05:00
f3221ee2e1 Abstracted computation portion of compute_bi into a separate evaluate_bi 2024-11-20 11:10:13 -08:00
dde2c91a27 Refactored the beta calculation into separate linear and quadratic portions 2024-11-20 11:03:37 -08:00
78bd71760b Added a host vs device abstraction for SNAP kernel launches, greatly improves CPU launch perf 2024-11-20 10:53:33 -08:00
2d65365a67 Added additional parallelism to TagPairSNAPBeta 2024-11-20 10:42:43 -08:00
e8e2a0b012 Simplified the constuctor for SNAKokkos by passing PairSNAPKokkos in directly by reference 2024-11-20 10:36:01 -08:00
5dcadf5748 Created a simplifying abstraction to separately call host or device kernels where the code is identical 2024-11-20 10:29:02 -08:00
6e54d9326b Unify the CPU and GPU PreUi routines 2024-11-20 10:20:42 -08:00
98b67b8ea0 Unify the CPU and GPU ComputeYi and ComputeZi routines; extend ComputeYiWithZlist to the CPU 2024-11-20 10:13:11 -08:00
8a65f44237 Unify the CPU and GPU TransformUi routines 2024-11-20 09:58:50 -08:00
99c4d116b8 Flatten compute_ui_cpu and compute_duidrj_cpu into single functions 2024-11-20 09:48:20 -08:00
457e4c094b No actual changes; this code just rearranges sna_kokkos_impl to make the subsequent CPU/GPU unifications easier to follow. 2024-11-20 09:41:57 -08:00
30349d2a48 correct version header 2024-11-20 11:50:13 -05:00
7259082cbc flag development version 2024-11-20 11:17:14 -05:00
4296db4991 add link with more explanation to the illegal variable errors 2024-11-20 11:15:12 -05:00
8ba0d7bece more updates to release process 2024-11-20 10:21:00 -05:00
53b2930ef4 modified dump_image.cpp, line 1100, fixed an indexing bug causing rendering error 2024-11-19 23:50:50 -05:00
277fba1907 Removed unnecessary team parallelism from CPU routines; rearranged pair_snap_kokkos_impl to make the subsequent CPU/GPU unifications easier to follow. 2024-11-19 12:44:08 -08:00
976167e2e5 Greatly tightened up CPU ulist, dulist computation 2024-11-19 12:30:58 -08:00
cb548143ee Unified zlist and blist CPU and GPU structures; greatly simplified/fused compute_bi 2024-11-19 12:14:32 -08:00
cf6714ea33 Unified ulisttot CPU and GPU structures 2024-11-19 11:12:20 -08:00
abbcd86174 Unified ylist CPU and GPU structures 2024-11-19 11:03:01 -08:00
e6ed911be2 Merge pull request #4387 from akohlmey/next_release
Step version strings for next release
2024-11-19 14:02:02 -05:00
3c4a42ba72 Removed d_beta_pack; fully unified SNAPBeta and SNAPBetaCPU routines 2024-11-19 10:54:59 -08:00
2fc33f3fd4 Removed AoSoA from [ylist_re/ylist_im/zlist/blist] 2024-11-19 10:49:47 -08:00
120c4600cf Removed AoSoA from ulisttot_[re_/im_/]_pack 2024-11-19 10:44:30 -08:00
e95d1dec3f Removed AoSoA from a/b/da/db/sfac pack 2024-11-19 10:35:58 -08:00
c9754e5fd3 Added const to each of the snaKK routines; removed extra snaKK copies 2024-11-19 10:24:27 -08:00
e200d557ec replace static with const for compatibility with SYCL 2024-11-19 13:16:22 -05:00
58d70366c2 Added padding to non-AoSoA data structures to improve alignment 2024-11-19 10:12:47 -08:00
ce92b565b2 Made SNAP host_flag constexpr, took advantage of if constexpr to reduce compile time 2024-11-19 10:00:56 -08:00
a4d821197e Re-enable SNAP CPU codepaths to simplify verifying correctness 2024-11-19 08:56:36 -08:00
c50a8d83d1 New release date 19 November 2024 2024-11-19 02:13:54 -05:00
c926bfd156 start documenting individual steps for a LAMMPS release 2024-11-19 02:05:49 -05:00
2ac0d065a7 step version strings for next release 2024-11-19 02:05:49 -05:00
5977d5e169 Merge branch 'granular-triangles' of github.com:lammps/lammps into granular-triangles 2024-11-18 12:49:16 -07:00
6bad252cc4 remove surf-group logic from FSG 2024-11-18 12:48:56 -07:00
1fae0ed6bd Iterating through connections 2024-11-17 21:02:01 -07:00
cf05700897 Merge pull request #4382 from jtclemm/small-patches
Minor clean up to doc conventions and dev workflow files
2024-11-17 22:17:46 -05:00
48c27365ee Merge pull request #4383 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-11-17 22:15:36 -05:00
18329ac86a avoid memory leaks 2024-11-17 12:14:28 -05:00
a635f20b1b whitespace 2024-11-17 12:14:14 -05:00
07a8806fd0 fix typo 2024-11-17 12:14:07 -05:00
f7b87a21c7 apply special treatment for fix colvars/kk as suggested by @stanmoore1 2024-11-16 11:14:18 -05:00
ee10b8f51e merge with upstream first 2024-11-15 19:48:16 -07:00
c8b05e50bd setup 3d connectivity for tri edges and corner points 2024-11-15 19:46:30 -07:00
a64a5f2b4e Missing grans in gitignore 2024-11-15 17:51:43 -07:00
e6789c8336 updating git ignore, deleting extra files 2024-11-15 17:45:22 -07:00
c5cfa0ea95 Sketching 2d loop through connected contacts 2024-11-15 17:41:03 -07:00
6e4a02e898 Adding force structures 2024-11-15 17:09:19 -07:00
b3f88da939 document KOKKOS restriction of fix spring/self 2024-11-15 15:22:19 -05:00
35f1fb9d6d check equal style variable evaluation for bad values 2024-11-15 15:12:56 -05:00
ec129f167e error out in fix spring/self/kk with variable spring constant 2024-11-15 14:33:25 -05:00
bca2c4d245 add missing initializers 2024-11-15 14:26:10 -05:00
72b649ec2b whitespace 2024-11-15 14:14:53 -05:00
4dd1448dd0 support providing spring constant as equal or atom style variable 2024-11-15 14:12:19 -05:00
ae1c5651ef accept qtpie/reaxff also for reaxff/omp 2024-11-15 13:27:28 -05:00
55f53f06ba use utils::open_potential for gaussian exponent file 2024-11-15 13:27:11 -05:00
70f41341c9 add unit test for qtpie/reaxff 2024-11-15 13:26:34 -05:00
cf5c42889d avoid dereferencing reaxff object when no reaxff pair style in use 2024-11-15 13:01:23 -05:00
9a096f295f update/correct code owners list 2024-11-15 11:06:38 -05:00
38d53877c5 move citeme call(s) to places where labelmaps are used 2024-11-15 11:01:19 -05:00
6796dc34ad clang-format 2024-11-15 10:42:30 -05:00
0f70c528a1 avoid access to uninitialized per-atom data to make valgrind happy 2024-11-15 10:42:21 -05:00
74fea8ae08 must initialize copymode in base class 2024-11-15 06:24:29 -05:00
0f9f80ad45 update for fix colvars/kk 2024-11-14 15:32:07 -05:00
e3e502f095 add note that pair_coeff settings used for fix adapt must be set explicitly 2024-11-14 15:26:46 -05:00
9c290a0fac Minor edits to workflow doc 2024-11-14 08:22:13 -05:00
c06cab2696 extra space 2024-11-14 08:22:13 -05:00
d8bd1ae3b8 adding hyperlink 2024-11-14 08:22:13 -05:00
a06275d18e Pesky backticks 2024-11-14 08:22:13 -05:00
4dbb5ade76 avoid crashes with 180 degree angles 2024-11-14 08:22:07 -05:00
e192c4d583 Minor edits to workflow doc 2024-11-13 09:11:22 -07:00
8dfb63206e extra space 2024-11-13 08:56:23 -07:00
0463434ff9 adding hyperlink 2024-11-13 08:55:25 -07:00
0f2fd8a882 Pesky backticks 2024-11-13 08:51:57 -07:00
5928389c5e Merge pull request #4312 from navlalli/qtpie
Add fix qtpie/reaxff
2024-11-13 07:42:07 -05:00
ed77f400bd whitespace 2024-11-13 01:14:16 -05:00
62f2bb0643 creating list of contacts 2024-11-12 21:47:57 -07:00
acb80365fa add comment 2024-11-12 21:36:39 -07:00
c65e3a95fa add calculations for connect2d data struct 2024-11-12 21:22:39 -07:00
69526c87d8 Merge pull request #4362 from ndtrung81/regression-test-update
Improve the Kokkos regression test workflow
2024-11-12 18:06:48 -05:00
92f2a743ef Merge pull request #4375 from akohlmey/collected-small-changes
Collected small changes and updates
2024-11-12 17:55:25 -05:00
3aef5ed12f Merge pull request #4374 from ndtrung81/gpu-threebody-neigh-no
Fixed bug in the GPU package when three-body pair styles are used with pair hybrid
2024-11-12 17:31:11 -05:00
1e65ec4049 flesh out 2d connect data struct fields 2024-11-12 15:12:51 -07:00
940308ba59 run CI 2024-11-12 14:38:41 -07:00
15999f6518 initial commit 2024-11-12 14:30:10 -07:00
1b65fb5a1a avoid memory leak 2024-11-12 15:05:57 -05:00
cfadf10021 Merge pull request #4296 from alphataubio/alphataubio-kokkos-fixes
Add KOKKOS versions of fixes
2024-11-12 15:00:52 -05:00
2d2bc029a4 Merge branch 'develop' into qtpie 2024-11-12 11:37:40 -08:00
5673375d21 Add more related commands to docs 2024-11-12 12:32:37 -07:00
ea873c5c06 Merge pull request #1 from gsalkuin/name-change
Name change etc
2024-11-12 11:56:41 -05:00
fc805f470c Small change to simplify code 2024-11-12 08:42:38 -08:00
2bcd6d1f73 Name change, add example 2024-11-12 11:40:07 -05:00
92d4bec1a3 Add files via upload 2024-11-12 11:13:43 -05:00
7fdfa3d3dd Merge branch 'alphataubio-kokkos-fixes' of github.com:alphataubio/lammps-alphataubio into alphataubio-kokkos-fixes 2024-11-12 08:10:00 -08:00
3acb0243a7 Merge branch 'lammps:develop' into develop 2024-11-12 11:08:21 -05:00
cb5bad7ece Dropping obsolete keyword 2024-11-11 21:22:48 -07:00
ecfda6042d correct error message 2024-11-11 18:52:56 -05:00
33128323d8 Adding shift example to rheo doc, clarifying speed of sound exception 2024-11-11 16:31:09 -07:00
9e0047ff06 Documenting new multi-type shifting options 2024-11-11 15:50:01 -07:00
8521ff0587 Simplifying logic for shifting two types 2024-11-11 15:20:54 -07:00
8809ed067f oops 2024-11-11 15:11:02 -05:00
1b2781db9b add syncs 2024-11-11 14:57:45 -05:00
966b74e4f1 Rearrange pair surf granular compute 2024-11-11 12:00:58 -07:00
174159cc22 more cosmetic 2024-11-11 11:57:02 -07:00
0e90de7d95 Updaing rheo citeme 2024-11-11 11:52:21 -07:00
15767903b2 testing new argument description for fix rheo 2024-11-11 11:51:59 -07:00
32d6c14df0 cosmetic 2024-11-11 11:49:09 -07:00
814b6cd83c Merge branch 'granular-triangles' of github.com:lammps/lammps into granular-triangles 2024-11-11 11:43:16 -07:00
798b264f1c tweaks 2024-11-11 11:43:12 -07:00
59af94b8e3 Updating rheo citation information 2024-11-11 11:42:50 -07:00
c0edafc0cf Reorganizing optional subargs for fix rheo 2024-11-11 11:31:16 -07:00
18f19f0ef0 Moving granular model code out of overlap calculation 2024-11-11 11:17:29 -07:00
c817b3fe07 change GranSurfExtra class to SurfExtra 2024-11-11 10:04:21 -07:00
dbe9d3d07b change pair_surf_granular.cpp to use new GranSurfExtra class 2024-11-11 09:42:18 -07:00
85d3abbacf create auxiliary GranSurfExtra class 2024-11-11 09:08:02 -07:00
bd9bcb3bf7 adding missing rheo coordination flag 2024-11-10 14:27:22 -07:00
009a976ae2 Adding multitype correction to rheo vshfit 2024-11-09 21:47:38 -07:00
a1a2a54f72 update linalg for ML-QUIP 2024-11-09 04:14:11 -05:00
324e795237 do not free a NULL communicator 2024-11-08 20:59:41 -05:00
fb758d951f synchronize neb/spin with bugfixes for neb 2024-11-08 20:59:24 -05:00
a8eb5fab14 Merge branch 'alphataubio-kokkos-fixes' of github.com:alphataubio/lammps-alphataubio into alphataubio-kokkos-fixes 2024-11-08 15:04:50 -08:00
ab9a870065 Merge branch 'develop' into alphataubio-kokkos-fixes 2024-11-08 18:03:28 -05:00
aeca973f84 Merge branch 'alphataubio-kokkos-fixes' of https://github.com/alphataubio/lammps-alphataubio into alphataubio-kokkos-fixes 2024-11-08 18:01:54 -05:00
b830f7806e Update fix_colvars_kokkos.cpp 2024-11-08 18:01:50 -05:00
f84b9f350e Merge branch 'develop' of https://github.com/lammps/lammps into alphataubio-kokkos-fixes 2024-11-08 14:53:37 -08:00
339c9654de Update GNU Make for new file 2024-11-08 14:42:59 -08:00
0ad6babead Fix another (already existing) bug when a proc has no atoms 2024-11-08 08:42:47 -08:00
a445545ffb Merge pull request #4371 from evoyiatzis/patch-2
fix typo in compute_temp_partial.rst
2024-11-08 09:30:26 -07:00
8f9e14c14f Merge branch 'develop' into gpu-threebody-neigh-no 2024-11-08 09:22:46 -06:00
9d80d963ed Merge pull request #4370 from jtclemm/small-patches
Fixing potential segfaults in granular/nstencil classes and other minor clean ups
2024-11-08 06:05:49 -05:00
e84c45c6e7 Fix whitespace 2024-11-08 10:38:49 +00:00
95899b53b8 Add fix qtpie/reaxff to pair_style reaxff docs 2024-11-08 10:26:47 +00:00
1c48d201b4 Remove unused pack_flag = 5 options 2024-11-08 10:07:16 +00:00
a64770d3b4 comment out code for global surf groups for now 2024-11-07 16:16:07 -07:00
2563f636e8 Merge branch 'granular-triangles' of github.com:lammps/lammps into granular-triangles 2024-11-07 15:30:46 -07:00
9770267e1d Merge branch 'develop' into granular-triangles 2024-11-07 15:29:43 -07:00
45ea55c06a Removing debug statements 2024-11-07 14:28:57 -07:00
6765c3b126 Relaxing errors in bond bpm, reusing update special for hybrid 2024-11-07 14:27:44 -07:00
b74096b2c4 Fix bug when a proc has no atoms/neighbors (existing issue) 2024-11-07 09:35:49 -08:00
572be91b76 fix typo in compute_temp_partial.rst 2024-11-06 11:27:45 +01:00
a93a930f2f Updating developer comm doc page to include bond and optional args 2024-11-05 15:53:48 -07:00
95509c4ef0 Referencing other methods compatible with BPM package 2024-11-05 15:47:59 -07:00
a832a4a1c9 fixed a bug with three_ilist when used with pair hybrid 2024-11-05 16:38:06 -06:00
755e71e5a2 Missing space between words 2024-11-04 16:09:10 -07:00
34113226ae Updating pair tracker example 2024-11-04 13:57:54 -07:00
5ce635757f Simplifying smoothing for bpm/rotational bond style 2024-11-04 13:42:09 -07:00
778693c300 Minor clean ups to BPM bonds 2024-11-04 13:31:51 -07:00
645d02d13b sph typo 2024-11-04 13:30:37 -07:00
3b3d39a8cd Minor granular include clean up 2024-11-04 13:29:32 -07:00
3e531b9842 Adding clarifying comment 2024-11-04 13:24:27 -07:00
bf888045d6 Fixing memory seg fault w/ multi occasional nlist 2024-11-04 13:16:07 -07:00
d2f761f8ed Avoiding potential segfault with granular rolling model 2024-11-04 12:42:04 -07:00
10767b1247 Merge branch 'develop' into small-patches 2024-11-04 12:37:57 -07:00
953762458c EMPTY_MASK 2024-11-02 16:36:50 -04:00
1f1491a71c Update fix_colvars_kokkos.cpp 2024-11-02 14:52:01 -04:00
03487707ae atomics 2024-11-02 14:24:36 -04:00
ecebf18791 wrap host functions with sync/modify for kokkos 2024-11-02 13:39:23 -04:00
7eccc56607 auto variables for lambda capture 2024-11-01 19:42:16 -04:00
c1ac0cea1d More rheo pressure EOS, allow variable cs 2024-11-01 17:04:32 -06:00
f483a90d8a Simplifying RHEO compute comm calls 2024-11-01 15:04:30 -06:00
14041bb20c Missing argument 2024-10-31 15:56:45 -06:00
a15a315341 Missing variable declaration 2024-10-31 15:38:54 -06:00
df882a9552 Adding optional size arg for forward/reverse comm methods to Kokkos 2024-10-31 15:27:22 -06:00
8695351e24 Merge branch 'alphataubio-kokkos-fixes' of https://github.com/alphataubio/lammps-alphataubio into alphataubio-kokkos-fixes 2024-10-30 21:59:05 -04:00
22d08cbac0 whitespace 2024-10-30 21:58:50 -04:00
c057b36c15 Merge branch 'develop' into alphataubio-kokkos-fixes 2024-10-30 21:50:36 -04:00
9aa9e7079a cleanup 2024-10-30 21:44:27 -04:00
84e234921b fix cuda warning 2024-10-30 21:36:18 -04:00
41672f6ac9 this might work on cuda 2024-10-30 20:44:25 -04:00
5efd8ba11e run the Kokkos regression workflow after merge, not every push 2024-10-30 11:27:15 -05:00
50dd95e6e1 move d_ubuf to kokkos_type.h
https://matsci.org/t/a-few-kokkos-development-questions/56598/8 (Q11)
"More correct would be to use a union with ubuf as is done in the atom_vec styles, so that no precision is lost for converting a huge 64-bit integer to a double."
2024-10-30 11:32:24 -04:00
3fd4f9b7f3 Minor clean ups to BPM bonds 2024-10-30 08:56:07 -06:00
9e25c8610c Merge branch 'develop' into rheo 2024-10-30 08:24:54 -06:00
e1f14e1ee8 unifying comm for/rev method args 2024-10-30 08:02:35 -06:00
acebce0431 turn off verbose, reduce timeout 2024-10-29 23:07:35 -05:00
47e9a7fe79 Typo + style changes in rheo doc 2024-10-29 21:03:47 -06:00
6d634dc646 Merge pull request #4359 from jtclemm/BPM
Adding new force options to BPM package
2024-10-29 21:31:03 -04:00
0e1137aee7 add inertia() 2024-10-29 18:34:30 -04:00
08e460ece6 Update fix_cmap_kokkos.cpp 2024-10-29 14:09:48 -04:00
ae4cb00402 Update fix_cmap_kokkos.cpp 2024-10-29 14:09:11 -04:00
c17e2cd30d Update fix_cmap_kokkos.cpp 2024-10-29 13:58:13 -04:00
452ae4621d Update fix_cmap_kokkos.cpp 2024-10-29 13:29:48 -04:00
4941cf25c0 typo 2024-10-29 12:59:09 -04:00
586f2b626d Update fix_cmap_kokkos.cpp 2024-10-29 11:13:36 -04:00
a6ad1a837c Update fix_cmap_kokkos.cpp 2024-10-28 18:55:59 -04:00
97c6b063a7 Update fix_cmap_kokkos.cpp 2024-10-28 18:41:04 -04:00
7ffe6aefce Update fix_cmap_kokkos.cpp 2024-10-28 18:37:21 -04:00
e4a9b06320 Update fix_cmap_kokkos.cpp 2024-10-28 17:47:57 -04:00
c00700dec7 cuda sync 2024-10-28 15:30:14 -04:00
ef1148dfa0 remove write_data support from BPM bond styles again and consolidate names 2024-10-27 22:06:56 -04:00
b946e998b5 also split fix into 2 lists, using 6 jobs for the matrix strategy 2024-10-27 12:13:29 -05:00
dd0dfd3c7f split randomly the pair input list by batch size 2024-10-27 00:00:10 -05:00
67d1c7d17d set OMP_PROC_BIND=false and adjust timeout 2024-10-26 09:01:39 -05:00
b725c01c0d split pair list into 2 separate lists and use 5 jobs for more even time balancing 2024-10-25 23:22:25 -05:00
12f0eff7a6 make group kokkos aware 2024-10-25 20:06:13 -04:00
71bbc52feb recommit changes from @stanmoore1 2024-10-25 20:03:45 -04:00
ea7fd079ce add vcm() and angmom() 2024-10-25 19:14:20 -04:00
e91b5dce78 fix typos 2024-10-25 18:52:50 -04:00
e0c3022ec3 printf debugging 2024-10-25 14:55:51 -04:00
6d0e633edf Merge pull request #4352 from ndtrung81/regression-test-update
Add a KOKKOS workflow for GitHub actions and minor updates for the regression tester
2024-10-25 11:06:33 -04:00
a5ab8be0a2 Clarify restriction on periodic cell dimensions 2024-10-25 14:16:25 +01:00
cfb8b25c6e fix grammar 2024-10-24 13:33:42 -04:00
e1a129fbf2 Merge branch 'alphataubio-kokkos-fixes' of https://github.com/alphataubio/lammps-alphataubio into alphataubio-kokkos-fixes 2024-10-24 12:20:14 -04:00
ce830fcdbd Update fix_cmap_kokkos.cpp 2024-10-24 12:20:02 -04:00
56ac4aeedf Merge branch 'develop' into alphataubio-kokkos-fixes 2024-10-24 12:12:12 -04:00
00ff895c0d Update fix_cmap_kokkos.cpp 2024-10-24 12:11:12 -04:00
e04be85b7e Merge branch 'alphataubio-kokkos-fixes' of https://github.com/alphataubio/lammps-alphataubio into alphataubio-kokkos-fixes 2024-10-24 12:07:42 -04:00
4a64b3d9ce add d_exchange_sendlist to pack_exchange_kokkos() 2024-10-24 12:04:41 -04:00
f18850397d whitespace 2024-10-24 09:43:36 -06:00
f09a9c1c2a fix typo in cmake command 2024-10-24 10:26:18 -05:00
25eaf38cee use the kokkos-openmp preset for brevity 2024-10-24 10:18:59 -05:00
a844959a07 Combine into a single -Xcudafe flag to simplify everything 2024-10-23 23:00:17 -06:00
3041443e5f Merge pull request #4357 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-10-23 23:25:26 -04:00
73c049459b spelling 2024-10-23 21:10:34 -04:00
fdd2fc4f5d move error check to Compute::init() so they cannot be bypassed by input commands 2024-10-23 21:08:07 -04:00
b682f52d11 fix typos 2024-10-23 21:07:39 -04:00
f207a571f3 allow fix DUMMY to be added without a box 2024-10-23 21:00:33 -04:00
40e5d53345 Prevent deduplication of -Xcudafe flag 2024-10-23 15:53:56 -06:00
820fe1ee8a Fix compile issue with gcc 2024-10-23 12:18:20 -06:00
3bac6d7cde Adding bpm pair write data method, blocking unreadable vol atom property in bond 2024-10-23 11:56:07 -06:00
b810053d02 document restrictions for bonded interactions 2024-10-23 12:35:50 -04:00
915f636d50 Update GNU Make for new files 2024-10-23 10:28:42 -06:00
ab961a006e Merge remote-tracking branch 'github/develop' into collected-small-changes 2024-10-23 12:25:22 -04:00
558b1c5197 apply clang-format, fix other minor formatting issues, use error->one() 2024-10-23 12:10:28 -04:00
077c77f402 contributions from bonded interactions is broken when running in parallel
see https://matsci.org/t/missing-bond-contributions-from-compute-stress-mop/58455
for details.
2024-10-23 12:09:35 -04:00
46c365f75c Merge branch 'develop' of github.com:lammps/lammps into alphataubio-kokkos-fixes 2024-10-23 09:32:27 -06:00
d2b1e22b4a added counter for timeout tests 2024-10-22 23:31:22 -05:00
06207fd91e modify how execute() returns 2024-10-22 23:21:37 -05:00
8e81ac8c42 Merge branch 'develop' into BPM 2024-10-22 22:21:57 -04:00
bef64fd602 use consistent fix id and create bond history fix only when required 2024-10-22 22:21:28 -04:00
53b1ba6131 rename id_fix to id_fix_prop_bond for consistency, fix bug when deleting/replacing fixes 2024-10-22 21:56:19 -04:00
e2214fc4d6 Merge branch 'develop' into regression-test-update 2024-10-22 21:10:22 -04:00
e214f60d4f Merge pull request #4358 from junghans/cmake_voro_rename
cmake: voro target to upstream name
2024-10-22 21:07:28 -04:00
81f71716ba Merge branch 'develop' into BPM 2024-10-22 20:59:12 -04:00
a5599f2b75 implement write_data(), delete created internal fix in destructor, formatting 2024-10-22 20:59:00 -04:00
1ec7ba547d Merge branch 'develop' into alphataubio-kokkos-fixes 2024-10-22 14:47:19 -04:00
22a15c7cf8 cuda bugfix again 2024-10-22 14:15:02 -04:00
5bdd616bcd cuda bugfix 2024-10-22 12:42:49 -04:00
83db9b8fe6 small cleanup and modernization 2024-10-22 10:25:22 -04:00
ec5dfcd0fb remove note that was obsoleted 5 years ago 2024-10-22 09:50:30 -04:00
1678e2af28 adjusting howto text to reflect additional BPM/spring options. 2024-10-21 21:21:15 -06:00
e8c5e58ab9 Adding clarifying comments 2024-10-21 16:25:38 -06:00
c8bbfc368a Initializing dvol array in bpm/spring 2024-10-21 16:23:35 -06:00
58ff8d3212 Suppressing dump output in bpm examples 2024-10-21 15:18:17 -06:00
4779cc44ef documenting bpm anharmonic 2024-10-21 15:07:24 -06:00
baf1733b9a documenting bpm multibody 2024-10-21 15:07:06 -06:00
722133b60c typo 2024-10-21 15:06:33 -06:00
289845b187 Adding anharmonic term to bpm/spring pair 2024-10-21 15:06:21 -06:00
a302bfed5a Adding multibody term to bpm/spring 2024-10-21 15:05:55 -06:00
05ee6bed3d Adding dividers for gran CoR model 2024-10-21 15:02:52 -06:00
5c07882a18 fix warning(s) 2024-10-20 18:30:19 -04:00
760d871b7a enabled and apply clang-format 2024-10-19 11:02:53 -04:00
34ab2f862a small tweaks 2024-10-18 22:09:25 -04:00
f128abe002 improve OPLS description 2024-10-18 21:51:43 -04:00
2074b0c400 add check to allow only valid swaps between hybrid sub-styles and document it 2024-10-18 21:49:55 -04:00
73eb7de7aa cmake: voro target to upstream name 2024-10-18 09:26:23 -06:00
86e18b8a24 fix copy-n-modify issue 2024-10-16 10:23:16 -04:00
2ce934fdb9 added section on OPLS-AA taken from https://matsci.org/t/issues-with-opls-force-field-for-ethylene-glycol-simulation/58296/11 2024-10-16 10:05:26 -04:00
d5c5e164e1 Merge branch 'develop' into cmake-cpp-std-deprecation 2024-10-15 17:40:59 -04:00
74e449605a add warning to PyLammps that it will be removed soon 2024-10-15 14:48:30 -04:00
6c31dbf86f add more packages to the build 2024-10-15 13:38:02 -05:00
8503cac2ce update README to explain how to set nprocs in the config file 2024-10-14 23:44:02 -05:00
6e32470cfa distinguish the error tests vs failed tests 2024-10-14 23:27:06 -05:00
9abfe38120 Merge branch 'develop' into collected-small-changes 2024-10-14 22:54:22 -04:00
59bbc5bcc1 Merge pull request #4356 from evoyiatzis/patch-1
add extract() function to few angle and bond styles
2024-10-14 19:25:29 -04:00
a354ad8d64 add pair back to the matrix entries 2024-10-14 17:20:04 -05:00
c533ca0af1 handle the cases where num steps do not match with the reference log files 2024-10-14 16:05:21 -05:00
b9e4c6e1e7 re-enable matrix tests 2024-10-14 14:55:26 -05:00
eadb2f2eb1 fix the workflow file for not turning on quick 2024-10-14 11:23:08 -05:00
b0f2484441 fix logic bug with allowing quick_max to run without requiring quick to be True 2024-10-14 10:45:53 -05:00
3e7642bc8c fix artifact names, allow to run quick test with a given input list 2024-10-14 09:43:08 -05:00
38500c647b move cursor to end of log buffer before inserting new text 2024-10-14 09:41:45 -04:00
db3416c4b3 Apply corrections from code review by @simongravelle
Co-authored-by: Simon Gravelle <simon.gravelle@live.fr>
2024-10-14 08:19:53 -04:00
6478cd98e9 add extract() function to angle_mesocnt.cpp 2024-10-14 11:30:20 +02:00
1a6544a04c add extract() function to angle_mesocnt.h 2024-10-14 11:29:47 +02:00
74af88bafd unit test for extract() in angle-amoeba.yaml 2024-10-14 09:43:07 +02:00
0c61cb02cc add extract() function to angle_amoeba.cpp 2024-10-14 09:42:04 +02:00
292ca89cb0 add extract() function to angle_amoeba.h 2024-10-14 09:41:23 +02:00
383ae086e5 skip in.icos due to the minimize command 2024-10-13 22:54:54 -05:00
1e63f031f0 remove empirical filter to remove outliers from corrupted data 2024-10-13 22:52:40 -04:00
1c9daad657 change tutorial download URL to tutorial website 2024-10-13 21:57:17 -04:00
f7291713f5 error out when fix nve is used with additional arguments 2024-10-13 19:34:56 -04:00
8156e56617 be more paranoid about Sphinx updates breaking extensions we use 2024-10-13 19:31:40 -04:00
c15c4d23bb fix spelling/syntax issues 2024-10-13 19:30:30 -04:00
eafef460e2 silence compiler warning 2024-10-13 19:24:35 -04:00
b3b9d032fa cleanup, clarification and re-wrap of doc file sections 2024-10-13 18:56:41 -04:00
03d10e6bbc correct documentation to add "inputs local" to compute reduce commands on local data 2024-10-13 18:56:07 -04:00
4773b3e7e4 fix indentation in the config files 2024-10-13 15:48:29 -05:00
0d894c33c4 adjust the workflow files and config file 2024-10-13 11:52:10 -05:00
c735dc7d53 skip in.min.box, ensure that input lists only contain unique entries 2024-10-13 08:21:00 -05:00
3e64966800 filter out examples/fire 2024-10-12 23:53:35 -05:00
0ae0afbae9 Merge branch 'develop' into cmake-cpp-std-deprecation 2024-10-12 20:11:28 -04:00
f8a8783044 Merge branch 'develop' into alphataubio-kokkos-fixes 2024-10-12 20:09:59 -04:00
f8db5ce2ea Merge pull request #4349 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-10-12 20:07:33 -04:00
1ac351c84e unit test for extract() in angle-cross.yaml 2024-10-12 15:19:08 +02:00
7cc5f1923d add extract() function to angle_cross.cpp 2024-10-12 15:17:07 +02:00
02d74417c1 add extract() function to angle_cross.h 2024-10-12 15:16:34 +02:00
29e6ca0044 filter out input scripts for testing, remove concurrent (matrix) testing 2024-10-11 16:18:33 -05:00
b960cb213f revert to building with basic.cmake preset and manually include packages, refactor the get_kokkos_input script 2024-10-11 15:36:18 -05:00
e9ff0d3402 modify the kokkos workflow file 2024-10-11 14:42:45 -05:00
8f76fcdc54 Added a python script to get the example inputs that contain KOKKOS styles and generate the input lists for regression tests 2024-10-11 14:18:43 -05:00
f1a79e7df5 Update fix_adapt.rst 2024-10-11 19:55:28 +02:00
e3ab697dd2 unit test for extract() in angle-gaussian.yaml 2024-10-11 19:49:24 +02:00
ae652b31da unit test for extract() in bond-gaussian.yaml 2024-10-11 19:48:18 +02:00
df50691488 small correction and clarifications 2024-10-11 06:54:46 -04:00
6d30557ec2 Update partially fix_adapt.rst 2024-10-11 11:08:32 +02:00
391f55b377 unit test for extract() in bond-nonlinear.yaml 2024-10-11 11:02:55 +02:00
856fd9d977 unit test for extract() in bond-morse.yaml 2024-10-11 11:01:57 +02:00
8bc89ef8a7 unit test for extract() in bond-class2.yaml 2024-10-11 10:59:29 +02:00
c8241dcab6 unit test for extract() in angle-class2_p6.yaml 2024-10-11 10:58:32 +02:00
b619cce773 add extract() function to bond_gaussian.cpp 2024-10-11 10:54:56 +02:00
7da8434d5b add extract() function to bond_gaussian.h 2024-10-11 10:54:24 +02:00
732ef6bd44 add extract() function to angle_gaussian.cpp 2024-10-11 10:53:45 +02:00
44625312ea add extract() function to angle_gaussian.h 2024-10-11 10:53:02 +02:00
4766ddbede Update bond_nonlinear.cpp 2024-10-11 10:52:21 +02:00
b5386d714e Update extract() function to bond_morse.cpp 2024-10-11 10:51:14 +02:00
87737c1a47 add extract() function to angle_cosine_buck6d.cpp 2024-10-11 10:49:45 +02:00
81ac3bbaf6 add extract() function to angle_cosine_buck6d.h 2024-10-11 10:49:13 +02:00
1db92ad34b add extract() function to angle_class2_p6.cpp 2024-10-11 10:48:19 +02:00
852c46ba0e add extract() function to angle_class2_p6.h 2024-10-11 10:47:30 +02:00
aeeacf0442 Update extract of bond_class2.cpp 2024-10-11 10:42:01 +02:00
5c82063376 Merge branch 'electrode' of github.com:robeme/lammps into collected-small-changes 2024-10-10 17:32:28 -04:00
9adf51f18e ignore python wheel build folder 2024-10-10 17:29:33 -04:00
49a850c8aa add cmake support for make-globbed-toc 2024-10-10 17:25:05 -04:00
7693e96828 change globbed toc script from bash to python 2024-10-10 17:24:23 -04:00
9835adcbfc allow use of Sphinx version 8.x as interface with breathe seems to have been updated 2024-10-10 13:36:53 -04:00
766ba94396 use script instead of globbing to avoid entering commands in multiple toctrees 2024-10-10 13:36:48 -04:00
d684f6eb9b Merge branch 'alphataubio-kokkos-fixes' of https://github.com/alphataubio/lammps-alphataubio into alphataubio-kokkos-fixes 2024-10-10 12:23:16 -04:00
bbafad145b fixed identation 2024-10-10 12:23:09 -04:00
505d519be2 Update affiliation for ELECTRODE in package details 2024-10-10 16:18:05 +02:00
393dbdc640 add missing constants to enumerators 2024-10-10 08:00:38 -04:00
56cc9d03bd skip tests that are unstable on GPU 2024-10-10 06:11:32 -04:00
df260b58dd Merge pull request #4353 from martok/cmake-win-shared
CMake: install shared libraries on Windows with correct target
2024-10-10 05:39:28 -04:00
948ee80169 potflag and phi are not used 2024-10-10 05:35:51 -04:00
482a6632e9 consolidate kspace communication enumerators in kspace.h 2024-10-10 05:35:01 -04:00
2935c17f78 avoid segfault in msm/dielectric 2024-10-10 05:19:32 -04:00
422ced4d82 silence compiler warnings 2024-10-09 20:55:00 -04:00
58989765f0 Install shared libraries on Windows with RUNTIME DESTINATION 2024-10-10 00:52:36 +02:00
a8c9b57b62 partial revert of refactoring that broke efield and setforce 2024-10-09 18:34:17 -04:00
a5b76410e1 cleanup 2024-10-09 18:32:54 -04:00
bc2267c9c8 Update fix_efield_kokkos.cpp 2024-10-09 18:32:38 -04:00
315ac762cc Update fix_setforce_kokkos.cpp 2024-10-09 18:32:32 -04:00
badb3eae5f add tests with region sphere 2024-10-09 18:06:24 -04:00
3b60ae43b3 fix nvcc option 2024-10-09 17:44:49 -04:00
79c9d69931 Update CMakeLists.txt 2024-10-09 17:26:30 -04:00
147cf7face -diag_suppress (single dash) 2024-10-09 17:22:35 -04:00
dd11385f6f all device function in headers to avoid device relocatable code with nvcc 2024-10-09 16:45:50 -04:00
b22797b752 refactor 2024-10-09 16:13:48 -04:00
fea0271d5a Update region_block_kokkos.cpp 2024-10-09 15:36:30 -04:00
2d94187606 sub3() and dot3() 2024-10-09 15:34:31 -04:00
e48d2f9a31 Update fix_wall_region_kokkos.cpp 2024-10-09 15:26:34 -04:00
08b0e8eab9 inside_face() 2024-10-09 15:19:05 -04:00
e4a92f96e1 match_kokkos() 2024-10-09 15:15:23 -04:00
b4b49f5dec point_on_line_segment() 2024-10-09 15:11:24 -04:00
1427ca1ff4 forward_transform() and find_closest_point() 2024-10-09 15:04:07 -04:00
0007e568fc KOKKOS_FUNCTION 2024-10-09 14:46:49 -04:00
ae0627b2f1 remove warning 2024-10-09 14:43:18 -04:00
5d90879f35 cleanup 2024-10-09 14:14:23 -04:00
bb5b8a1d34 functor templated on RegBlockKokkos and RegSphereKokkos 2024-10-09 13:50:17 -04:00
e6c9353ccf add missing dependency 2024-10-09 00:30:46 -04:00
bea76778bd silence compiler warning 2024-10-08 22:45:37 -04:00
80c8ecb7e7 Update fix_recenter_kokkos.cpp 2024-10-08 19:01:36 -04:00
1af3de1fad Update fix_recenter_kokkos.cpp 2024-10-08 18:59:17 -04:00
7d9bc3ea24 oops 2024-10-08 18:21:42 -04:00
64499bfcb2 _kokkos 2024-10-08 18:20:58 -04:00
183c99acc8 Update region_sphere_kokkos.h 2024-10-08 18:18:06 -04:00
f7afc63b53 Update region_block_kokkos.h 2024-10-08 18:18:03 -04:00
0f627059fc dynamic_cast 2024-10-08 18:14:06 -04:00
d13fb58311 surface_kokkos() 2024-10-08 17:55:03 -04:00
c84ed4189d Merge branch 'collected-small-changes' of github.com:akohlmey/lammps into collected-small-changes 2024-10-08 14:47:51 -04:00
b1928596ae should include <string> in utils.h 2024-10-08 14:47:11 -04:00
63a26b1770 add the missing log file using --gen-ref 2024-10-08 12:10:48 -05:00
63649979e3 revert the file names and the upload action step 2024-10-08 10:55:40 -05:00
0e3a6a7190 turned on verbose to check tolerances and also print that info out to the run.log file 2024-10-08 10:51:12 -05:00
e5ba430f5f re-enable KokkosOpenMP test 2024-10-07 20:07:09 -04:00
f19df37de3 Merge branch 'collected-small-changes' of github.com:akohlmey/lammps into collected-small-changes 2024-10-07 19:57:43 -04:00
f02b3aaf95 reset container with .clear() 2024-10-07 19:56:04 -04:00
a53840014c Update in.wall.sphere 2024-10-07 18:17:14 -04:00
4ed7528ddc add_contact() 2024-10-07 17:57:32 -04:00
e188b7d75f remove "tags: generated" 2024-10-07 17:56:59 -04:00
9d2e892c0e Update fix_wall_region_kokkos.cpp 2024-10-07 17:46:15 -04:00
900f472ea6 test logic to run with different nprocs than the ref files if nprocs is specified 2024-10-07 16:39:26 -05:00
5a7dd950fc Update region_sphere_kokkos.cpp 2024-10-07 17:28:45 -04:00
941b3dd566 add two examples for regression testing 2024-10-07 17:15:09 -04:00
b16ddfcdd4 add d_contact 2024-10-07 17:05:33 -04:00
74ac224dd9 Create fix-timestep-wall_region_sphere.yaml 2024-10-07 17:05:08 -04:00
e44d366d92 Update region.cpp 2024-10-07 17:04:28 -04:00
4492ecaf39 Update region_sphere.cpp 2024-10-07 17:04:21 -04:00
09a115cb89 add and switch to a workflow file dedicated for OpenMP backend for KOKKOS 2024-10-07 15:04:28 -05:00
0e1ee42b89 Update region_block_kokkos.cpp 2024-10-07 15:12:10 -04:00
177b04fb56 Update fix_wall_region_kokkos.cpp 2024-10-07 15:06:01 -04:00
ff66b42022 cleanup 2024-10-07 15:04:34 -04:00
af7f5a5b5e port surface() to KOKKOS 2024-10-07 15:03:13 -04:00
7b3762881e try with 4 procs 2024-10-07 13:14:35 -05:00
076bb056aa fixed leftover typos in the workflow file and the tester 2024-10-07 12:59:48 -05:00
e6118412b1 remove dead code in fix qeq/ctip 2024-10-07 13:56:04 -04:00
6a46fb034d Tweak comments 2024-10-07 11:11:12 -06:00
31f10f9675 add a workflow file for testing KOKKOS with the OpenMP backend 2024-10-07 12:04:29 -05:00
84c1492ce6 fix issues with invalid subfolders, with total walltime reference that may be zero, with the output of progress.yaml for easy parsing to dictionaries, modify config_kokkos.yaml for testing with the OpenMP backend 2024-10-07 12:01:59 -05:00
9aaab458e8 Change another shallow copy to alias 2024-10-07 10:54:28 -06:00
c44831ff90 Fix bug when Kokkos atom map is build on host using hash 2024-10-07 10:40:58 -06:00
8a176ac488 use MKL for FFTs and on Intel GPU 2024-10-06 15:09:06 -04:00
8c76600d47 anticipate change to C++ standard 2024-10-06 15:06:05 -04:00
a0990abb73 nout does not have to be a class member 2024-10-06 07:01:35 -04:00
e4c0457617 remove dead code 2024-10-06 06:55:38 -04:00
25dfb03386 apply clang-format 2024-10-06 00:25:53 -04:00
92deb5c8dc revert change that breaks backward compatibility 2024-10-05 23:15:50 -04:00
6295fa0b54 whitespace 2024-10-05 23:07:50 -04:00
7da8748e90 add region command to list of exceptions needing the accelerator include 2024-10-05 22:49:13 -04:00
bdf1a242da Merge branch 'develop' into alphataubio-kokkos-fixes 2024-10-05 22:34:01 -04:00
719a64d9dd apply clang-format 2024-10-05 22:25:07 -04:00
6ab0b2c249 use std::vector<>.data() to access underlying pointer 2024-10-05 21:58:47 -04:00
e142ad8dfa apply clang-format 2024-10-05 21:55:24 -04:00
45440abca4 consistently use std::vector<>.data() to access the underlying data pointer 2024-10-05 20:36:23 -04:00
bcb500894c compute_scalar() bugfix 2024-10-05 18:49:39 -04:00
af03836dfa Update fix_cmap.cpp 2024-10-05 17:03:50 -04:00
a8157fc68e relax epsilon for kokkos_omp to pass 2024-10-05 16:41:02 -04:00
0bc554a694 remove FIXME 2024-10-05 16:40:32 -04:00
1f61c42745 add GroupKokkos 2024-10-05 16:40:10 -04:00
58bea0691b oops 2024-10-05 13:55:33 -04:00
da659c5168 Merge branch 'alphataubio-kokkos-fixes' of https://github.com/alphataubio/lammps-alphataubio into alphataubio-kokkos-fixes 2024-10-05 12:02:24 -04:00
2d261388c8 Update fix_wall_region.cpp 2024-10-05 12:02:00 -04:00
de8396ea55 Update fix_wall_region.h 2024-10-05 12:01:34 -04:00
84b50bfd26 Update region_sphere_kokkos.cpp 2024-10-05 11:59:50 -04:00
81f96d3ea3 Update fix_recenter_kokkos.h 2024-10-05 11:48:18 -04:00
03c3bfec3a Update fix_nve_limit_kokkos.cpp 2024-10-05 11:45:41 -04:00
95c18c5373 Update fix_cmap_kokkos.cpp 2024-10-05 11:44:57 -04:00
4da644958e IntelLLVM is not ABI compatible with generic BLAS libraries. Use linalg instead 2024-10-05 03:39:00 -04:00
c3c5370570 use std::vector.data() to access the underlying arrays 2024-10-05 03:38:25 -04:00
ca6e9abefa update a few more tests for IntelLLVM 2024-10-05 03:37:33 -04:00
e4dcdcd221 skip KokkosOpenMP tests when Kokkos includes GPU support 2024-10-05 03:05:04 -04:00
248070c4b8 use -fp-model precise for IntelLLVM to avoid miscompilation 2024-10-05 02:41:03 -04:00
cdd538e24e relax epsilon for IntelLLVM compiler 2024-10-05 02:41:03 -04:00
39f42d4c12 simplify 2024-10-05 01:56:31 -04:00
c468537030 correct access to raw vector data and use resize() instead of reserve() for better compatibility 2024-10-05 01:56:19 -04:00
01e9fb04b6 must use fabs() for floating point numbers 2024-10-05 01:55:17 -04:00
0cb64f8bf3 Merge branch 'develop' into collected-small-changes 2024-10-05 01:53:22 -04:00
a73baf81b1 update settings 2024-10-05 01:04:39 -04:00
166f0cb5ea print warning only when package selected 2024-10-05 01:04:26 -04:00
0ed18c1203 Merge branch 'develop' into cmake-cpp-std-deprecation 2024-10-04 21:41:11 -04:00
224468d946 Merge pull request #4346 from cjknight/lubricate_patch
features + bug fixes for granular simulations w/ Kokkos
2024-10-04 20:54:12 -04:00
70cbf051fe apply clang-format 2024-10-04 19:41:59 -04:00
47b918499f silence compiler warnings, remove dead code 2024-10-04 19:05:35 -04:00
7aade6e14c Merge branch 'develop' of github.com:lammps/lammps into alphataubio-kokkos-fixes 2024-10-04 16:24:43 -06:00
2c738669ff compute_temp_sphere does not modify positions 2024-10-04 16:16:02 -06:00
d29533447a silence compiler warnings, remove dead code 2024-10-04 18:09:06 -04:00
b494a486a1 cosmetic 2024-10-04 17:59:44 -04:00
5786914b67 Merge branch 'lubricate_patch' of github.com:cjknight/lammps into lubricate_patch 2024-10-04 17:35:06 -04:00
27954609b8 Disallow newton on with full neigh list 2024-10-04 15:25:38 -06:00
aec43d0f00 Merge branch 'develop' into lubricate_patch 2024-10-04 17:09:27 -04:00
8874fd4cbf Merge branch 'develop' into cmake-cpp-std-deprecation 2024-10-04 16:03:01 -04:00
0a3d213ed9 turn hard requirement for CMake 3.20 into a warning for now 2024-10-04 16:02:53 -04:00
36dd4de3bc Merge pull request #4348 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-10-04 15:57:47 -04:00
8827dec5a9 Small refactor 2024-10-04 13:04:20 -06:00
0a6d25881b update documentation according to accelerated style include check 2024-10-04 13:54:04 -04:00
25afdcc325 add check for missing or unneeded accelerated style include 2024-10-04 13:52:12 -04:00
485cddf303 Update fix_wall_region.rst 2024-10-04 13:06:32 -04:00
921d9df574 Update fix_recenter.rst 2024-10-04 13:05:48 -04:00
d27026c364 Update fix_nve_limit.rst 2024-10-04 13:05:26 -04:00
39def85b48 Update fix_cmap.rst 2024-10-04 13:04:52 -04:00
9108168ea3 doc 2024-10-04 11:35:46 -05:00
b2e8648e6c enable deprecated APIs for HDF5 2024-10-04 12:32:09 -04:00
08266b65e4 doc 2024-10-04 15:45:16 +00:00
c4b4b7b874 suppress nvcc warnings with libfmt version 11.0.2 2024-10-04 11:33:33 -04:00
f7cf859670 doc 2024-10-04 15:32:47 +00:00
130548156d Merge branch 'develop' of github.com:lammps/lammps into alphataubio-kokkos-fixes 2024-10-04 09:30:33 -06:00
2ae4062a6b Merge pull request #4343 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-10-04 03:59:49 -04:00
01468e2720 Merge branch 'collected-small-changes' of github.com:akohlmey/lammps into collected-small-changes 2024-10-04 01:41:57 -04:00
6d8529f1f7 Merge branch 'develop' into collected-small-changes 2024-10-04 01:24:30 -04:00
1263a23e9c Merge pull request #4345 from akohlmey/update-fmtlib
Update embedded copy of libfmt to version 11.0.2
2024-10-04 01:22:51 -04:00
d1a1a57bd9 Merge pull request #4339 from jtclemm/small-patches
Fixing bugs in GRANULAR and mistakes in RHEO documentation
2024-10-03 22:01:21 -04:00
13ceebe82c fix recenter test skipped for respa 2024-10-03 18:45:52 -04:00
70dad28481 Update fix_recenter.cpp 2024-10-03 18:45:12 -04:00
1799f887d2 Update test_atom_styles.cpp 2024-10-03 18:36:39 -04:00
3776ff938d Need to use vflag_either instead of vflag_global 2024-10-03 16:36:05 -06:00
59db2e0af8 Update atom_vec_template.cpp 2024-10-03 18:35:28 -04:00
86fc79d2de Update fix-timestep-wall_lj93_const.yaml 2024-10-03 18:20:09 -04:00
6f068fc067 Update fix-timestep-wall_region_harmonic.yaml 2024-10-03 18:19:53 -04:00
bf12caf37a Update fix-timestep-wall_region_lj126.yaml 2024-10-03 18:18:02 -04:00
98ad09b0c9 Tighten up check even more 2024-10-03 16:17:39 -06:00
c059961b8f Update fix-timestep-wall_region_lj1043.yaml 2024-10-03 18:17:39 -04:00
d0f6f21c39 Use wrapper and remove sync to host 2024-10-03 16:17:06 -06:00
81db0a4a80 Update fix-timestep-wall_region_morse.yaml 2024-10-03 18:16:41 -04:00
a26c81d73b Revert changes to pair lubricate base class 2024-10-03 15:59:27 -06:00
e06be9b030 propagate new c++ standard handling from main CMakeLists.txt to plugin version 2024-10-03 15:39:33 -04:00
d6562b7514 fix-whitespace 2024-10-03 19:30:09 +00:00
0e10ed24fe fix compilation issue with MSVC++ 2024-10-03 15:19:56 -04:00
f25c530c04 recover compilation with MSVC++ 2024-10-03 14:56:28 -04:00
fbc6ba4ef4 import libfmt 11.0.1 2024-10-03 14:43:19 -04:00
4bf92cc846 update kokkos install to include brownian 2024-10-03 18:35:02 +00:00
4ee07bcdaf Recreate dump file for MS-MEAM due to changes to the code. 2024-10-03 11:54:26 -06:00
2c2ce1b327 Update create_atoms.cpp 2024-10-03 13:15:13 -04:00
9ad3e59c8f Update test_atom_styles.cpp 2024-10-03 12:38:32 -04:00
5c8552f4ce Update atom_vec_template.cpp 2024-10-03 12:21:10 -04:00
a0f09a42bf remove lubricate/Simple ; not ready for primetime 2024-10-03 15:48:12 +00:00
0edf9d42b0 remove white space changes 2024-10-03 15:46:44 +00:00
5fe5fc0b10 remove old logic 2024-10-03 15:43:26 +00:00
3c5b4ebccb Delete charmm36.py 2024-10-03 11:43:08 -04:00
b7d529d945 remove white space changes 2024-10-03 15:41:43 +00:00
47e8093e07 remove white space changes 2024-10-03 15:41:10 +00:00
4b43f90bd6 revert changes requested by @akohlmey 2024-10-03 11:39:24 -04:00
8ef30fe05b remove white space changes 2024-10-03 15:39:09 +00:00
1d2ef17786 remove white space changes 2024-10-03 15:35:30 +00:00
28d02cf2ab remove _NO_RANDOM debug from brownian styles 2024-10-03 15:32:03 +00:00
131b40c806 Merge branch 'develop' into cmake-cpp-std-deprecation 2024-10-03 10:48:17 -04:00
b5fdd8f0ae Revert "update atom_style template test for added charge"
This reverts commit 3ea74b1725.
2024-10-03 10:26:24 -04:00
c4df843550 Merge branch 'develop' of https://github.com/lammps/lammps into lubricate 2024-10-03 14:13:23 +00:00
29eafa999b Update src/region_sphere.h
Co-authored-by: Axel Kohlmeyer <akohlmey@gmail.com>
2024-10-03 09:49:56 -04:00
9c06e8265f Update src/create_atoms.cpp
Co-authored-by: Axel Kohlmeyer <akohlmey@gmail.com>
2024-10-03 09:48:12 -04:00
a9dd61f62e detect C++23 standard 2024-10-03 07:38:44 -04:00
adebe773d0 bump check to C++23 and rename workflow file 2024-10-03 07:26:40 -04:00
299e0bafff revert deform refactor to only sync when needed 2024-10-03 05:38:20 +00:00
e4aedfda85 add test for C++20 compatibility 2024-10-02 21:56:15 -04:00
7e02951fc4 disable making functions in libfmt consteval with C++20 and beyond 2024-10-02 21:48:54 -04:00
0f8b825424 fix up spelling issues in CTIP 2024-10-02 19:43:43 -04:00
a3c23f2ce8 Cleaning up rheo kernels 2024-10-02 17:35:27 -06:00
a1bb42bd6e Merge remote-tracking branch 'github/develop' into collected-small-changes 2024-10-02 19:29:35 -04:00
8a7572fd5a Merge pull request #4181 from gplummer317/ctip
Charge Transfer Interatomic Potential (CTIP) pair style and qeq fix
2024-10-02 19:26:09 -04:00
cac22c216a update kk index entries 2024-10-02 14:37:03 -04:00
26aadc25ad Update fix_cmap.rst 2024-10-02 14:31:54 -04:00
26b83602be Update Commands_fix.rst 2024-10-02 13:56:21 -04:00
8a25871db5 Update region.rst 2024-10-02 13:45:59 -04:00
fff1456553 Update fix_wall_region.rst 2024-10-02 13:43:23 -04:00
89346740e1 Update fix_recenter.rst 2024-10-02 13:42:13 -04:00
a8acd9b573 Update fix_nve_limit.rst 2024-10-02 13:41:41 -04:00
75d3566a69 move brownian to KOKKOS directory 2024-10-02 15:35:33 +00:00
948faafa0e Merge branch 'develop' of https://www.github.com/lammps/lammps into lubricate 2024-10-02 15:27:39 +00:00
715a0c3d18 sync 2024-10-02 15:27:17 +00:00
e61d9f08ee regenerate fix wall/region tests 2024-10-01 13:00:59 -04:00
8332d89a4a regenerate fix recenter tests 2024-10-01 12:46:33 -04:00
384d8cf51f compute_vector() bugfix 2024-10-01 12:43:57 -04:00
e3768f9ab0 Limiting coordination calculation in RHEO 2024-10-01 10:01:12 -06:00
51e273affd punt drude too 2024-10-01 03:30:05 -04:00
e32a2fa71a punt again 2024-10-01 02:39:17 -04:00
e29b06095d remove whitespace 2024-10-01 02:36:22 -04:00
91fc94fc1e Merge branch 'alphataubio-kokkos-fixes' of https://github.com/alphataubio/lammps-alphataubio into alphataubio-kokkos-fixes 2024-10-01 02:31:56 -04:00
9330ccf6f9 punt to later 2024-10-01 02:30:01 -04:00
9daa1b715a Merge branch 'lammps:develop' into alphataubio-kokkos-fixes 2024-10-01 02:13:26 -04:00
9f33efc1b9 resolve conflict 2024-10-01 02:12:49 -04:00
53914162a7 rename log file to match expected naming scheme 2024-10-01 00:24:40 -04:00
5322b172bd Merge pull request #4331 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-10-01 00:22:11 -04:00
b12aeb79b0 Merge branch 'develop' into collected-small-changes 2024-09-30 22:10:14 -04:00
2749e091c7 update nemd example so it is reproducible 2024-09-30 22:10:00 -04:00
1dad5db38c remove ineffectual workflow changes 2024-09-30 21:46:16 -04:00
75f86a68a7 Merge pull request #4190 from alphataubio/kokkos-unit-testing
Improve Kokkos unit testing
2024-09-30 19:50:08 -04:00
c4b32f4b38 remove debugging lines, screen.* are inside the subfolders downloaded from the runs 2024-09-30 17:25:19 -05:00
4c91dcff3f list artifacts subfolders 2024-09-30 17:16:55 -05:00
29e995f137 keep debugging the artifacts downloaded 2024-09-30 17:09:28 -05:00
db4c6fbaaa restore changes from Kokkos upstream to support GFX1103 chips (Radeon 7xxM and 8xxM) with HIP 2024-09-30 17:59:40 -04:00
a5b94f0870 more debugging to list all files inside the artifacts folder 2024-09-30 16:46:34 -05:00
cb72f19595 temporarily put some debug lines in the workflow file 2024-09-30 16:25:24 -05:00
f5507c252d need to download the artifacts from cloud to the merge job 2024-09-30 16:10:09 -05:00
2fbfec0d11 use zipgrep for the merged zip artifact 2024-09-30 15:39:47 -05:00
97920f9fc3 try again with the github step summary 2024-09-30 15:15:30 -05:00
af2f9c06dc add #include "kokkos_few.h" 2024-09-30 15:51:37 -04:00
a199289e23 cuda bugfix 2024-09-30 15:47:06 -04:00
b25e370e63 some more fixes and rewording 2024-09-30 15:42:34 -04:00
a31f083bab update read_dump docs with respect to reading xyz style dump files 2024-09-30 14:54:35 -04:00
4cfc407605 Merge branch 'develop' of github.com:lammps/lammps into kokkos-unit-testing 2024-09-30 10:51:59 -06:00
ec392d5613 Remove failed attempts to create a job summary 2024-09-30 10:56:49 -04:00
3cefa5c9f1 try another approach for creating job summaries 2024-09-30 10:46:27 -04:00
d5f630db6c Fix sign used for atom-style potential
A positive sign in front of the electric potential is consistent with
E = -grad(electric potential).
2024-09-30 12:28:16 +01:00
d86de2862b Make signs consistent with efield = -grad(phi) 2024-09-30 12:10:33 +01:00
d33ecd6bbf reorder ctip style 2024-09-29 05:58:02 -06:00
622e3ed4d2 add notice after merge 2024-09-28 17:35:12 -04:00
2f53ea37e5 try printing GitHub job summary style 3 2024-09-28 13:31:56 -04:00
c16759ffc3 try printing GitHub job summary style 2 2024-09-28 13:24:41 -04:00
c1040ad9bb try printing GitHub job summary style 1 2024-09-28 13:13:43 -04:00
98834a3e27 fix cut-n-paste error 2024-09-27 20:06:27 -04:00
8b899d60fe Clarifying scoping for iterators in compute rheo/kernel 2024-09-27 15:32:54 -06:00
ba071fe55a Merge branch 'develop' into small-patches 2024-09-27 15:30:31 -06:00
c0d7b9975e avoid using std::shared_ptr. use new/delete for MPI rank 0 instead 2024-09-27 14:38:28 -04:00
65cacc7ef4 recreate log files for MS-MEAM due to changes to the code. 2024-09-27 14:29:05 -04:00
7276d5301b update unit test for change in MS-MEAM 2024-09-27 14:18:18 -04:00
51d104975a whitespace 2024-09-27 13:59:18 -04:00
0445936ac4 Added one-line change to make meam/ms correct for L12 lattice 2024-09-27 11:26:36 -06:00
7ccb7876f6 initialize *all* allocated iterms, even if we don't use them. 2024-09-27 12:40:39 -04:00
10e5f4270f Swapping srcmp to utils method
Co-authored-by: Axel Kohlmeyer <akohlmey@gmail.com>
2024-09-26 20:36:17 -06:00
13591dbdb0 Changing pour insertion note box 2024-09-26 20:02:47 -06:00
94f5f3cfa5 Fix compile issue with HIP 2024-09-26 15:25:32 -07:00
4436197081 PAdding possible note to fix pour doc 2024-09-26 16:14:57 -06:00
4035c3561e Merge branch 'develop' into collected-small-changes 2024-09-26 16:38:11 -04:00
ec2fece8db Merge pull request #4322 from stanmoore1/kk_update_4.4.0
Update Kokkos library in LAMMPS to v4.4.1
2024-09-26 16:29:31 -04:00
350551ecac Fix whitespace 2024-09-26 21:27:53 +01:00
5ee63d7afe documenting fix nonaffine/disp's incompatability with rerun 2024-09-26 13:06:32 -06:00
5d0f1aeeaf Expand documentation 2024-09-26 17:21:16 +01:00
d64be895e6 Allow for output of effective electronegativities 2024-09-26 16:42:01 +01:00
15e513958e clarification of min/max keywords in fix gcmc 2024-09-26 11:08:59 -04:00
ddaba91d12 Typo 2024-09-25 21:02:40 -06:00
c6fdd8ddb6 get rid of some non-ASCII characters 2024-09-25 22:01:42 -04:00
f30842ca11 first draft 2024-09-25 20:57:09 -04:00
e29e943ae6 apply clang-format 2024-09-25 18:48:47 -04:00
e44e462da6 remove redundant enum definition 2024-09-25 17:58:51 -04:00
725f6db5c1 skip no longer needed 2024-09-25 17:58:34 -04:00
e17e6e7a9d restore dihedral test 2024-09-25 17:58:22 -04:00
fee06d0d12 Merge branch 'develop' into kokkos-unit-testing 2024-09-25 17:52:59 -04:00
3a53b01ed9 Restricting options in fix wall/gran 2024-09-25 15:49:32 -06:00
2c2eb31362 Updating example logs affected by fix pour 2024-09-25 15:39:44 -06:00
149e92d1b9 Merge branch 'develop' into kokkos-unit-testing 2024-09-25 17:25:38 -04:00
7036930360 Patches to fix pour 2024-09-25 15:17:43 -06:00
385a0da892 update and correct description of running LAMMPS on Windows 2024-09-25 12:29:26 -04:00
17c5643d66 cosmetic 2024-09-25 11:59:30 -04:00
a420f1c42a Merge branch 'collected-small-changes' of github.com:akohlmey/lammps into collected-small-changes 2024-09-24 10:57:10 -04:00
bb0ead0ee3 fix cut-n-paste bug 2024-09-24 10:56:46 -04:00
d09ea909e5 Merge branch 'develop' of https://www.github.com/lammps/lammps into angle-mwlc 2024-09-24 10:34:32 +08:00
38e4df45ef mwlc angle documentation 2024-09-24 10:33:08 +08:00
9cd7d32a1c mwlc angle potential 2024-09-24 10:32:44 +08:00
80832ce763 Merge branch 'develop' of github.com:lammps/lammps into kk_update_4.4.0 2024-09-23 16:14:12 -06:00
7e31a4f482 Simplify view deallocation code 2024-09-23 16:14:06 -06:00
e95de835c0 Tweak build defaults 2024-09-23 15:38:29 -06:00
2e05cfeea9 Small code cleanup 2024-09-23 15:12:30 -06:00
2429c89eae Fix deadlock by always deallocating views of views in serial 2024-09-23 14:59:51 -06:00
e68851edae fix cut-n-modify issue 2024-09-23 14:54:54 -04:00
b9600c5a67 Merge remote-tracking branch 'github/develop' into collected-small-changes 2024-09-23 14:50:45 -04:00
d787ecdcb3 clarify docs for XYZ file format 2024-09-23 14:44:16 -04:00
cfe96064e8 Fixing errors in RHEO doc files 2024-09-23 12:39:16 -06:00
b95f7c2ab2 Merge pull request #4333 from evoyiatzis/patch-4
add extract() function to several angle styles
2024-09-23 14:27:47 -04:00
6f6e365682 unit test for extract() in angle-cosine_periodic.yaml 2024-09-22 20:24:26 +02:00
11aa128951 unit test for extract() in angle-fourier_simple.yaml 2024-09-22 20:23:32 +02:00
950bcba592 unit test for extract() in angle-fourier.yaml 2024-09-22 20:22:43 +02:00
8355d3796a unit test for extract() in angle-cosine_squared_restricted.yaml 2024-09-22 20:09:37 +02:00
662ea3a191 unit test for extract() in angle-quartic.yaml 2024-09-22 20:08:52 +02:00
517b4f4342 unit test for extract() in angle-dipole.yaml 2024-09-22 20:06:17 +02:00
d6d63b87d1 unit test for extract() in angle-class2.yaml 2024-09-22 20:05:32 +02:00
1287977bee unit test for extract() in angle-spica.yaml 2024-09-22 20:04:32 +02:00
cd4bada16f unit test for extract() in angle-charmm.yaml 2024-09-22 20:03:33 +02:00
25c9f5a6ff unit test for extract() in angle-mm3.yaml 2024-09-22 20:01:52 +02:00
96d99e3dd6 unit test for extract() in bond-fene_expand.yaml 2024-09-22 15:33:46 +02:00
0d6abcb86a unit test for extract() in bond-mm3.yaml 2024-09-22 15:31:01 +02:00
abb8b5ae45 reorder to avoid overflows 2024-09-22 00:11:03 -04:00
2a6fdfec02 improve error message and labelmap detection 2024-09-21 22:20:24 -04:00
12b67e0fd1 update ASPHERE/line example to follow conventions and avoid crashes. 2024-09-21 17:48:17 -04:00
061c80104a add docs to mention using a type labels for xyz files with string labels 2024-09-21 12:24:41 -04:00
d16d744550 enable and apply clang-format 2024-09-21 12:12:27 -04:00
29fce19c19 support typelabels for parsing xyz file with non-numeric types 2024-09-21 11:57:01 -04:00
8294bea7a7 Update angle section of fix_adapt.rst 2024-09-21 10:02:06 +02:00
5290779554 Merge branch 'develop' into collected-small-changes 2024-09-21 00:01:28 -04:00
3c8b846a66 Merge pull request #4330 from akohlmey/rheo-gsl-to-lapack
Convert RHEO package to use plain LAPACK instead of GSL
2024-09-21 00:00:13 -04:00
20f3b5a7db update readme 2024-09-20 21:44:52 -04:00
68548cbb0d Update angle_spica.cpp 2024-09-20 20:53:22 +02:00
d8c0691684 Update bond section of fix_adapt.rst 2024-09-20 19:55:07 +02:00
b2a2cefc02 add extract() function to bond_fene_expand.cpp 2024-09-20 19:38:58 +02:00
423b058820 add extract() function to bond_fene_expand.h 2024-09-20 19:38:22 +02:00
7f0ff96324 add extract() function to angle_class2.cpp 2024-09-20 19:37:12 +02:00
b49f3412df add extract() function to angle_class2.h 2024-09-20 19:36:35 +02:00
c5e62b4a47 add extract() function to angle_dipole.cpp 2024-09-20 19:35:46 +02:00
873030982d add extract() function to angle_dipole.h 2024-09-20 19:35:11 +02:00
3ce4c782d1 add extract() function to angle_spica.cpp 2024-09-20 19:34:16 +02:00
8e07149593 add extract() function to angle_spica.h 2024-09-20 19:33:41 +02:00
8a2564fff1 add extract() function to bond_mm3.cpp 2024-09-20 19:32:41 +02:00
4272d4a390 add extract() function to bond_mm3.h 2024-09-20 19:32:05 +02:00
83b2e88b73 add extract() function to angle_mm3.cpp 2024-09-20 19:31:20 +02:00
c65a6e8b59 add extract() function to angle_mm3.h 2024-09-20 19:30:42 +02:00
cc9f45af88 add extract() function to angle_cosine_squared_restricted.cpp 2024-09-20 19:29:34 +02:00
25f12bf800 add extract() function to angle_cosine_squared_restricted.h 2024-09-20 19:28:56 +02:00
f916a0cc63 add extract() function to angle_cosine_periodic.cpp 2024-09-20 19:27:58 +02:00
42f0940aee add extract() function to angle_cosine_periodic.h 2024-09-20 19:27:18 +02:00
7b37f1ae17 add extract() function to angle_fourier.cpp 2024-09-20 19:26:25 +02:00
bf9cb26afb add extract() function to angle_fourier.h 2024-09-20 19:25:49 +02:00
1e00249b73 add extract() function to angle_quartic.cpp 2024-09-20 19:25:04 +02:00
df533d97cb add extract() function to angle_quartic.h 2024-09-20 19:24:20 +02:00
3b73f56d79 add extract() function to angle_fourier_simple.cpp 2024-09-20 19:22:29 +02:00
9d1a0240d6 add extract() function to angle_fourier_simple.h 2024-09-20 19:21:32 +02:00
438a8c9335 add extract() function to angle_charmm.cpp 2024-09-20 19:19:47 +02:00
cc24f3d240 add extract() function to angle_charmm.h 2024-09-20 19:16:55 +02:00
958f2ae58b add tests for library interface and python 2024-09-20 03:57:12 -04:00
e35a00258e add lammps_expand() to swig interface file 2024-09-20 03:56:36 -04:00
3902215018 add lammps_expand to plugin wrapper 2024-09-20 03:56:19 -04:00
95afe40f55 add lammps_expand() to Fortran wrapper 2024-09-20 03:46:36 -04:00
3905cfd0a6 avoid memory leak 2024-09-20 00:58:40 -04:00
5e15eb6949 add lammps_expand() method and make available in python 2024-09-20 00:17:06 -04:00
a43a3a50e0 ELECTRODE is going CMake-only as well 2024-09-19 09:59:53 -04:00
11838801d6 add extract() function to angle style cosine/squared 2024-09-19 07:21:15 -04:00
6f10648d5f update unit test 2024-09-19 05:03:37 -04:00
586e6bb410 must run apt-get update before installing packages to avoid failures 2024-09-19 04:55:49 -04:00
b1eefe71c7 add extract() method to bond style harmonic/shift/cut 2024-09-19 04:53:04 -04:00
3d2a344dd5 we no longer need to install GSL for workflows with RHEO 2024-09-19 03:36:09 -04:00
d23b8aa17f try to work around macOS issue 2024-09-18 23:29:49 -04:00
4eb1b1f606 clarify docs 2024-09-18 23:14:27 -04:00
bf469b347e add missing override 2024-09-18 20:51:12 -04:00
42bcc43ece add missing line in Install.sh file 2024-09-18 20:22:17 -04:00
d909b205c7 update docs for building the RHEO package 2024-09-18 20:14:43 -04:00
1ac9f0801c update build support for using LAPACK with RHEO instead of GSL 2024-09-18 19:55:59 -04:00
b16b683cb4 replace calls to GSL with calls to LAPACK 2024-09-18 19:26:00 -04:00
9f867b5f54 add LAPACK functions for matrix inversion via Cholesky decomposition 2024-09-18 19:13:37 -04:00
4ebba64003 initial adding of options to global surfs 2024-09-18 17:01:06 -06:00
7263bb49b6 deprecate ML-POD from using GNU make build 2024-09-18 16:38:16 -04:00
3d4a73a739 deprecate COMPRESS and VTK package from GNU build 2024-09-18 16:22:34 -04:00
906ae818da add package removal warnings and GNU make deprecation warnings 2024-09-18 15:43:56 -04:00
3bed50c1c3 Add text that we favor now CMake based builds 2024-09-18 15:18:41 -04:00
ce13d22656 enable and apply clang-format, modernize access to list of fixes 2024-09-18 11:33:03 -04:00
575c1014d4 bugfix in lammps-open.py unit test 2024-09-17 22:13:07 -06:00
3effab8024 Merge branch 'lammps:develop' into develop 2024-09-17 13:47:55 -04:00
ae80dba958 Remove even more whitespace 2024-09-17 13:02:26 -04:00
bf492c108b Remove more whitespace 2024-09-17 12:29:12 -04:00
2d86e6b4f0 Remove whitespace 2024-09-17 11:12:06 -04:00
e1f36275f1 Update fix-timestep-epot_lepton.yaml 2024-09-17 10:49:44 -04:00
995ccd494e Update fix-timestep-epot_lepton_region.yaml 2024-09-17 10:46:17 -04:00
805c2ae131 Merge pull request #4326 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-09-17 08:48:46 -04:00
6503f297d4 support angle style hybrid with fix adapt 2024-09-16 21:21:20 -04:00
47bb1a8748 update unit test 2024-09-16 21:04:22 -04:00
516d988deb update fix adapt docs 2024-09-16 20:59:04 -04:00
5d40a9640d add support for bond style hybrid to fix adapt 2024-09-16 20:49:44 -04:00
11365e7b2e add extract method to bond style harmonic/shift 2024-09-16 20:48:41 -04:00
804aa4ee85 improve error message 2024-09-16 20:38:50 -04:00
80cd9ace57 remove documentation check (for now) 2024-09-16 01:07:38 -04:00
4a9b7b1ba7 fix typo 2024-09-16 00:59:43 -04:00
f8eac87724 make programming style check and doc info check a github action 2024-09-16 00:56:09 -04:00
44d86c378b relax epsilon or mark unstable based on test results on non-x86 architectures 2024-09-16 00:34:28 -04:00
0db24828a5 first draft delete_atoms/kk 2024-09-15 12:20:12 -04:00
4d55c53c10 update rst kk 2024-09-14 21:01:06 -04:00
1f28ac4f54 oops 2024-09-14 20:50:30 -04:00
0db92ea135 auto variables for lambda capture 2024-09-14 20:48:20 -04:00
0a9137272d replace ubuf with static_cast 2024-09-14 20:33:40 -04:00
0921c8e087 pack/unpack on device 2024-09-14 19:51:43 -04:00
ae7fa643fd oops 2024-09-14 18:08:57 -04:00
94eed6e10a sort on device 2024-09-14 18:02:33 -04:00
78b2b7a024 explicit warning(s) exchange_comm_device=0 2024-09-14 17:29:56 -04:00
02b6fa088d explicit warning(s) which fix sort_device=0 2024-09-14 17:22:11 -04:00
f133b8a4a0 cleanup 2024-09-14 17:14:57 -04:00
813fd880cd tagged operators 2024-09-14 17:09:21 -04:00
63483b3fc2 KOKKOS_CLASS_LAMBDA 2024-09-14 16:09:56 -04:00
8dfc6207c2 fix warnings 2024-09-14 16:04:15 -04:00
2556788ed2 thanks @crtrott 2024-09-14 15:02:55 -04:00
8c4e67c10b add concurrency group feature to unit test workflows, too. 2024-09-14 06:07:07 -04:00
79fbd46bd9 try out concurrency group feature on quick regression as suggested by @junghans 2024-09-14 06:04:35 -04:00
1587473ab5 fix comparison for missing arguments when using wildcards 2024-09-14 05:11:51 -04:00
bdca275f10 correct indexing when filling lmp_firstneigh array 2024-09-14 02:25:03 -04:00
fe8611bfc8 sync author info with LAMMPS home page 2024-09-13 22:55:05 -04:00
0729c04dc1 document that GNU make build support is no longer required for new contributions 2024-09-13 22:38:20 -04:00
861be216a1 parallel_scan 2024-09-13 14:38:12 -04:00
5075c7cfa1 Update CMake 2024-09-13 12:16:58 -06:00
487f7ade68 Update Kokkos library in LAMMPS to v4.4.1 2024-09-13 12:14:49 -06:00
96c776c51f Add log files for qtpie/reaxff examples 2024-09-13 18:08:14 +01:00
3f232caf9b Fix whitespace 2024-09-13 17:13:59 +01:00
af6efcc514 Add fix qtpie/reaxff documentation 2024-09-13 16:43:13 +01:00
bd07f1e8e0 Change qeq to qtpie 2024-09-13 15:56:16 +01:00
8ec010f8ca Remove unused header file 2024-09-13 15:54:12 +01:00
d56f43b4e6 Remove unnecessary tests 2024-09-13 15:50:44 +01:00
62f82a7fe1 Remove additional fix name 2024-09-13 15:46:27 +01:00
3079d51eaf enforce that Pair::map is always initialized 2024-09-13 05:34:40 -04:00
97627bd77a fix indexing error 2024-09-13 05:34:15 -04:00
92bd9fc161 fix linking a URL and fix spelling 2024-09-13 02:20:26 -04:00
1adaab80aa make certain values for LAMMPS variables are initialized 2024-09-13 00:11:13 -04:00
f93281d868 Implement CMake upgrade and C++ standard deprecation as we did with C++11 2024-09-12 23:49:48 -04:00
2995cb76ae Merge pull request #4324 from rbberger/cmake_optional_docenv
Make CMake Doc build docenv optional
2024-09-12 17:57:45 -04:00
9339da075b Merge pull request #4299 from evoyiatzis/patch-3
Allow the definition of point in region plane using variables
2024-09-12 17:52:30 -04:00
36d73e8976 Merge branch 'kk_update_4.4.0' of https://github.com/stanmoore1/lammps into kk_update_4.4.0 2024-09-12 17:34:28 -04:00
5699e3c8cf add overridable settings 2024-09-12 17:34:12 -04:00
72024e90c9 Only check dynamic rank 2024-09-12 14:18:31 -06:00
d67d237386 Update author contributions 2024-09-12 19:41:12 +01:00
7b19228299 Make realloc_kokkos function safer, suggested in discussion with @weinbe2 2024-09-12 11:30:11 -06:00
0abcec1b22 Merge branch 'kk_update_4.4.0' of github.com:stanmoore1/lammps into kk_update_4.4.0 2024-09-12 10:50:45 -06:00
dc15e4ae81 Enforce options in CMake 2024-09-12 10:50:19 -06:00
18f1d32f8e Apply suggestions from code review
Co-authored-by: Axel Kohlmeyer <akohlmey@gmail.com>
2024-09-12 09:00:55 -06:00
58272bca00 move and update ctip example 2024-09-12 00:17:21 -04:00
5a12c762f3 Merge branch 'develop' into ctip 2024-09-11 23:36:16 -04:00
0ebd4f5ddb Make CMake Doc build docenv optional 2024-09-11 21:33:07 -06:00
9525dae7b9 Merge branch 'develop' into kk_update_4.4.0 2024-09-11 13:35:32 -04:00
fcbc37d5a4 Merge pull request #4321 from akohlmey/collected-small-fixes
Collected small changes and fixes
2024-09-11 13:07:02 -04:00
64db592a84 Update Kokkos version in CMake 2024-09-11 09:45:21 -06:00
cfcd7ddfbc Add KOKKOS_ENABLE_ATOMICS_BYPASS 2024-09-11 09:31:54 -06:00
a44955dd2e Update Kokkos library in LAMMPS to v4.4.0 2024-09-11 09:20:36 -06:00
e8184e63a5 create dummy output files to prevent test job failures 2024-09-11 09:15:05 -04:00
c3a62833c7 update 2024-09-11 06:54:06 -04:00
9f2bc30ba6 rename source files to be consistent with naming conventions 2024-09-11 06:46:51 -04:00
6b2a47d9c6 fix typo 2024-09-11 06:34:15 -04:00
4b7045d9ba Merge remote-tracking branch 'github/develop' into collected-small-fixes 2024-09-11 00:31:46 -04:00
16b19c71c1 Merge pull request #4207 from stanmoore1/kk_reaxff_overflow
Fix integer overflow for large QEq systems with KOKKOS package
2024-09-11 00:31:01 -04:00
0f4aedaf39 Merge pull request #4318 from weinbe2/bugfix/reaxff-bond-int-overflow
Fixes to ReaxFF/Kokkos integer overflow issues for bond tables + cleanup of unused compute
2024-09-11 00:30:25 -04:00
3308915a7b Merge remote-tracking branch 'github/develop' into collected-small-fixes 2024-09-11 00:11:43 -04:00
fde43d5079 Merge pull request #4143 from hagertnl/hagerty_issue4140_kokkos_collective
Implement kspace_modify collective yes in KOKKOS package
2024-09-11 00:07:10 -04:00
b74ef238c9 Merge branch 'develop' into collected-small-fixes 2024-09-10 23:32:37 -04:00
4a11b96635 update with upstream 2024-09-10 23:31:37 -04:00
94e3351e4f Merge pull request #4308 from lammps/quick-regression
Add a quick and full regression test as GitHub Actions
2024-09-10 23:28:49 -04:00
d76e10d2ca remove some more VLAs 2024-09-10 22:12:22 -04:00
ac5d2d560d remove redundant code 2024-09-10 21:49:21 -04:00
88ceae303f documentation integration and version tags 2024-09-10 21:41:20 -04:00
55fc12a5d1 add force style test 2024-09-10 21:31:27 -04:00
89f314fec2 Pair::single() is not supported 2024-09-10 21:31:14 -04:00
6b2dc5d3e8 make consistent 2024-09-10 21:23:20 -04:00
0ac23fddd3 avoid variable length arrays 2024-09-10 21:22:56 -04:00
a15c51a8c4 make reading of QEq parameters compatible with all QEq styles 2024-09-10 21:16:12 -04:00
2b1bef39e4 bring back changes from develop that were wiped out 2024-09-10 21:15:37 -04:00
6488fd2a48 reorganize example, potentials, logfiles 2024-09-10 21:14:52 -04:00
2b03a1ce17 move VLA arrays to header and initialize them only once 2024-09-10 20:31:58 -04:00
ddaba8a2c4 must not free memory that was obtained by extract() 2024-09-10 20:31:17 -04:00
1de74b46cd modernize 2024-09-10 20:30:49 -04:00
12abaf83cc Changes from @sjplimp 2024-09-10 16:25:06 -06:00
b39386afe5 count all the runs with error and failed num checks as failed 2024-09-10 17:00:57 -05:00
cbbea47718 fix the incorrect keys 2024-09-10 16:22:35 -05:00
8e2dacd0e3 put some cosmetic stuffs 2024-09-10 15:51:04 -05:00
847ce1e363 enable generating new reference log files if desirable 2024-09-10 15:39:52 -05:00
8e99835100 Merge pull request #4319 from ndtrung81/gpu_max_num_blocks
Enable large numbers of atoms per proc with the GPU package
2024-09-10 12:35:22 -04:00
6f2c4aaf0b Remove unused code 2024-09-10 16:40:19 +01:00
25f33e8721 Add water examples featuring fix qtpie/reaxff 2024-09-10 16:20:51 +01:00
b16bb27184 revert to using the max number of blocks on device for each pass, as the number of blocks (32767 or 65535) already saturates the number of SMs anyway 2024-09-10 09:47:07 -05:00
c63c88f8b6 reduced the max number of blocks for each transpose 2024-09-10 08:58:42 -05:00
5e8ecf9cb4 Rename variables and function for min exponent 2024-09-10 14:45:16 +01:00
7006e19d59 Update fix_cmap_kokkos.cpp 2024-09-10 07:57:51 -04:00
f398add7d5 fixed the value of shift being the number of rows processed in each chunk (g2y_m * b2y) 2024-09-10 00:36:13 -05:00
23bdc5ddc2 Allowed number of blocks greater than 65,535 for k_transpose 2024-09-10 00:18:50 -05:00
a6b9c17010 update reference.yaml 2024-09-09 22:30:09 -04:00
50d0eace23 more consistent conversions 2024-09-09 21:47:30 -04:00
29bd3fc11b apply clang-format 2024-09-09 21:12:03 -04:00
68e134773c move pair style and fix whitespace 2024-09-09 20:58:01 -04:00
a4a8f99471 forgot to update the --analyze step to 8 runners 2024-09-09 20:50:16 -04:00
48689d1925 Merge branch 'develop' into ctip 2024-09-09 20:46:09 -04:00
c3162b4488 increase timeout for full regression to 180 seconds. use 8 runners. 2024-09-09 20:29:23 -04:00
f875b1e110 Tweak error message to use correct style 2024-09-09 17:51:19 -06:00
f7553779ff Merge branch 'develop' of github.com:lammps/lammps into kk_reaxff_overflow 2024-09-09 15:55:02 -06:00
2be54aa454 Cleaned up the spurious calculations in Cdbo, Cdbopi, Cdbopi2 and removed the overallocations 2024-09-09 12:56:59 -07:00
8b9e2544f0 Verified that some unused data gets written to extra space in Cdbo, Cdbopi, Cdbopi2 via moving them to 3-d Views 2024-09-09 12:56:57 -07:00
fced73ffd7 Converted d_bo_list and d_hb_list to 2-d Views, removed integer overflow checks 2024-09-09 12:18:10 -07:00
8e56f37d3d Removed the variables bo_first_i, hb_first_i from build_bo/hb_list, replacing them with the strided offset calculation 2024-09-09 12:14:44 -07:00
c05390209e Removed d_bo_first, d_hb_first, replacing it with the strided offsets to the bonds for atom i 2024-09-09 12:10:13 -07:00
274112834b remove double quotes 2024-09-08 17:11:02 -05:00
4d04d8492d report the number of abs and rel diff checks failed 2024-09-08 17:09:05 -05:00
9cfd809b6e feeble attempt 2024-09-08 17:03:40 -04:00
3dcfb3f755 replace error->all() with kokkos::abort() 2024-09-08 16:54:44 -04:00
29e0ec3809 revert to original cmap plus minimal changes for kk 2024-09-08 16:46:16 -04:00
7724502e90 Merge branch 'alphataubio-kokkos-fixes' of https://github.com/alphataubio/lammps-alphataubio into alphataubio-kokkos-fixes 2024-09-08 16:40:42 -04:00
b67b38ab68 kokkos parallel_for 2024-09-08 16:36:39 -04:00
4e8e84a1e4 Merge branch 'lammps:develop' into alphataubio-kokkos-fixes 2024-09-08 13:48:43 -04:00
bce51ea2c9 Update fix_nve_limit_kokkos.cpp 2024-09-08 12:53:49 -04:00
77bf224b3f report if a run is timeout to progress.yaml 2024-09-08 00:24:33 -05:00
397ca4bd25 correct the file names in examples phonon that are actually not LAMMPS input 2024-09-07 09:10:25 -05:00
6b68656a74 fix a typo 2024-09-07 09:06:22 -05:00
57353566d6 one more fix (it is getting late...) 2024-09-07 00:35:57 -04:00
fa5a3446c0 add forgotten file 2024-09-07 00:28:59 -04:00
5aea0a061f provide updated reference and update command line 2024-09-07 00:22:56 -04:00
e5c870fcd2 switch full regression back to serial execution 2024-09-06 23:15:32 -04:00
c853b8d81a switch quick run back to serial 2024-09-06 23:14:09 -04:00
b6e78c1f20 another attempt to avoid oversubscription error 2024-09-06 21:46:18 -04:00
6cd710444d add dedicated config for quick regression test. allow oversubscription. 2024-09-06 21:34:10 -04:00
6e0c44a25c temporarily run the full test with the pull request 2024-09-06 21:18:58 -04:00
afc9f72887 whitespace 2024-09-06 21:18:31 -04:00
6214182fd0 remove unused imports, reformat 2024-09-06 21:06:01 -04:00
93b4e91801 update docs and add ref 2024-09-06 20:51:56 -04:00
0b92bf2c0c oops 2024-09-06 19:40:21 -04:00
d19f5e0e8e bugfix 2024-09-06 19:30:15 -04:00
bca271a286 mention regression tester in Build_development 2024-09-06 17:34:35 -05:00
b09e88a179 Merge pull request #4314 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-09-06 16:24:31 -04:00
8fcdb5c271 silence compiler warnings 2024-09-06 14:58:42 -04:00
42a7294bc1 silence compiler warnings 2024-09-06 14:00:27 -04:00
d20ce26bd8 Merge pull request #4313 from cjknight/aurora_updates
Intel GPU updates: kspace & cmake
2024-09-06 13:51:43 -04:00
932f10e3b6 update README for syntax and added arguments in run_tests.py 2024-09-06 12:46:42 -05:00
1683205fed cleanup 2024-09-06 13:42:33 -04:00
b4e01aaa45 fix warnings 2024-09-06 13:42:16 -04:00
2a2ea89524 fix warnings 2024-09-06 13:40:47 -04:00
e65fb63a97 match base class in kokkos 2024-09-06 13:39:18 -04:00
eedcbc6b5f Revert "match base class in kokkos"
This reverts commit 36494af3c7.
2024-09-06 13:36:34 -04:00
36494af3c7 match base class in kokkos 2024-09-06 13:36:13 -04:00
638bba5319 fix warnings 2024-09-06 13:27:08 -04:00
1335774593 Update fix_recenter_kokkos.cpp 2024-09-06 13:24:13 -04:00
8eeba71f5f cleanup 2024-09-06 13:19:47 -04:00
b468e1cb9a kokkos atan2 2024-09-06 13:04:31 -04:00
74e61c05b9 fix warnings 2024-09-06 12:42:49 -04:00
78342e5b6f fix typo 2024-09-06 12:28:46 -04:00
6b83ef8d33 auto var lambda capture 2024-09-06 12:21:29 -04:00
e25979386a Update fix_nve_limit_kokkos.cpp 2024-09-06 12:18:33 -04:00
bbc3dc2958 auto atomKK variables for lambda capture 2024-09-06 11:56:19 -04:00
842896040d Merge branch 'develop' into aurora_updates, resolve merge conflicts 2024-09-06 11:20:29 -04:00
0c788f831e Merge pull request #4294 from rbberger/add_kspace_nvpl_support
Add Kspace NVPL FFT support
2024-09-06 11:04:51 -04:00
b2cc2582e1 switch to config.yaml in actual runs in quick and full tests 2024-09-06 09:33:23 -05:00
de8dc82801 report walltime normalized by the reference walltime for completed runs in the progress.yaml file 2024-09-06 09:19:00 -05:00
e1d6bb91a8 get reference walltime from running bench/in.lj, guess the default config file if not specified from the command line args 2024-09-06 09:06:45 -05:00
bafe7c91fa switch to using config.yaml with 4 procs for testing 2024-09-06 08:29:55 -05:00
f179f2a80d update a few reference data files for current LAMMPS 2024-09-06 07:32:19 -04:00
513fc95f81 update msi2lmp manpage 2024-09-06 07:30:50 -04:00
93de00f649 move kspace style definition after reading the data file to comply with needs of recent LAMMPS versions 2024-09-06 07:25:52 -04:00
683643c248 sort lists of bonds, angles, dihedrals and impropers by atom IDs before comparing 2024-09-06 07:25:01 -04:00
4554c0367b use memcpy() instead of strncpy() to avoid issues with adding a terminal zero and array boundaries 2024-09-06 07:24:07 -04:00
3e2f929f31 must call Error::all() from all MPI ranks. 2024-09-05 23:22:04 -04:00
360fdabc19 small clarification 2024-09-05 23:05:25 -04:00
d67e0e6a41 consolidate spelling 2024-09-05 21:47:35 -04:00
03631aab00 whitespace and spelling fixes 2024-09-05 21:46:32 -04:00
95cb7d7dd8 Merge branch 'develop' into quick-regression 2024-09-05 17:23:52 -04:00
3357889d57 install MPI 2024-09-05 17:21:42 -04:00
5881a60f50 Revert change to fix shake that is no longer needed 2024-09-05 14:42:51 -06:00
688cff71e6 print out more info for failed tests if verbose is True, indent output 2024-09-05 11:22:00 -05:00
dfd0772aff list the failed tests (including crashed, with error, or numerical checks) into a separate file 2024-09-05 10:38:32 -05:00
e22ff76132 fix cuda warnings 2024-09-05 08:32:21 -04:00
33080199e7 fix cuda warnings 2024-09-05 08:29:08 -04:00
3312ef9793 KOKKOS_INLINE_FUNCTION powint() to replace MathSpecial::powint 2024-09-05 08:25:13 -04:00
04ff7b4736 add missing import 2024-09-05 04:18:23 -04:00
79dc5ee130 Merge branch 'python-lint' into collected-small-changes 2024-09-05 04:04:52 -04:00
274f86b142 Merge branch 'develop' into python-lint 2024-09-05 04:03:06 -04:00
e3ced6d26f docs 2024-09-04 23:44:44 -05:00
29cd430da6 no longer need the warnings module since the deprecated functions were removed 2024-09-04 23:09:10 -04:00
7e6eb96422 Merge branch 'alphataubio-kokkos-fixes' of https://github.com/alphataubio/lammps-alphataubio into alphataubio-kokkos-fixes 2024-09-04 22:38:24 -04:00
9932c4e38b add 3d float views to ArrayTypes<LMPHostType> 2024-09-04 22:38:19 -04:00
ee602a7daa Merge branch 'lammps:develop' into alphataubio-kokkos-fixes 2024-09-04 21:05:58 -04:00
4ed5dfe88d reported the total wall time of each run in the progress.yaml file 2024-09-04 15:32:20 -05:00
ab10f2d723 Update fix_efield.cpp 2024-09-04 16:12:23 -04:00
49d2a4026d Update fix_efield.h 2024-09-04 16:11:17 -04:00
18514f404f docs: mentiond build options for NVPL FFT 2024-09-04 12:00:31 -06:00
37e6f3ef21 kspace: add NVPL FFT support 2024-09-04 12:00:31 -06:00
9e8a1f4734 Remove comment 2024-09-04 11:15:59 -06:00
26af8878c9 More general fix 2024-09-04 11:13:35 -06:00
7a1dd6e82e Merge branch 'develop' of github.com:lammps/lammps into aurora_updates 2024-09-04 11:08:12 -06:00
7d93460717 add commented example for implementing a command style 2024-09-04 08:23:29 -04:00
311cac0348 Add document describing how to implement a new command style 2024-09-04 05:47:59 -04:00
ec98481d01 move check for libcurl to EXTRA-COMMAND.cmake package CMake module 2024-09-04 04:22:49 -04:00
597c53756e update plumed library to version 2.9.2 2024-09-03 22:33:39 -04:00
e240619b94 update pace plugin loader to include the two additional styles added 2024-09-03 22:30:32 -04:00
7b025e1a1f Merge branch 'develop' into qtpie 2024-09-03 17:31:16 -04:00
4aefb894bb remove comments 2024-09-03 15:56:16 -05:00
9243959ca4 Merge pull request #4304 from akohlmey/collected-small-changes
Add lammps_extract_atom_size() call to library interface and equivalent to python and fortran modules
2024-09-03 16:43:37 -04:00
42b6c0f62c enable cmake support 2024-09-03 20:10:29 +00:00
2f7a7d1edb forgot shake header 2024-09-03 20:07:53 +00:00
3a5e764730 Fix whitespace 2024-09-03 17:50:14 +01:00
49dcb679f6 Change names of orbital exponents 2024-09-03 12:22:10 +01:00
731847b4dc report proper style name in error messages 2024-09-02 21:21:14 -04:00
5fab9e665f Update with changes made to fix_qeq_reaxff.cpp 2024-09-02 16:59:07 +01:00
ba2217a4b4 Improve exceptions in reading of gauss file 2024-09-02 16:12:23 +01:00
dff91accb0 Correct calculation of cut off distance 2024-09-02 16:12:23 +01:00
f3e5e4b4c1 Rename misleading variable name 2024-09-02 16:12:23 +01:00
79cc70c9da Rename variable for sum of local and ghost atoms 2024-09-02 16:12:23 +01:00
62b14aa702 Remove unused include 2024-09-02 16:12:23 +01:00
c2e4816717 Update contributing authors 2024-09-02 16:12:23 +01:00
6dd45ccfdb Add fix_qtpie_reaxff 2024-09-02 16:12:23 +01:00
eb6e5b438a Remove virtual keyword 2024-09-02 16:12:23 +01:00
149d9b310d Remove dual as a possible keyword argument 2024-09-02 16:12:23 +01:00
5021c8c971 Replace qeq with qtpie 2024-09-02 16:12:23 +01:00
27e911cd10 Remove chi_field 2024-09-02 16:12:23 +01:00
6d47e41741 Update calculation of chi_eff
chi_eff can now be calculated when atom or equal style variables are
used for the electric field, under the restriction that the electric
field is applied to all atoms.
2024-09-02 16:12:23 +01:00
8c8882927c Rename variables in calc_chi_eff() 2024-09-02 16:12:23 +01:00
bfb1c64b64 Add functionality for calculating chi_eff 2024-09-02 16:12:23 +01:00
be43a2bdeb Allow for reading of Gaussian exponents from file 2024-09-02 16:12:23 +01:00
d9151d745a Create fix qtpie/reaxff 2024-09-02 16:12:23 +01:00
7c80b00f23 small corrections in the DIFFRACTION package, mostly cosmetic 2024-09-02 06:26:27 -04:00
27d5ad1714 convert string to int 2024-09-01 08:49:13 -04:00
a9573551a7 run 100 quick test inputs at the most 2024-09-01 08:43:16 -04:00
14dc326160 fix typo 2024-09-01 08:36:50 -04:00
6aa6ed86be Curb number of (randomly) selected tests for quick regression run 2024-09-01 08:33:12 -04:00
da98d30cf7 update README 2024-09-01 08:31:52 -04:00
1b5413189d Add more details to documentation of GitHub CLI "gh" 2024-09-01 08:15:58 -04:00
a143e0a183 small corrections 2024-09-01 08:15:26 -04:00
f6f7122041 Merge branch 'doc-modified' into collected-small-changes 2024-09-01 08:09:45 -04:00
93d11c376d Fix small typo and errors, unifiy example inputs 2024-09-01 15:48:34 +08:00
aa901b205d only run quick regression if there are actual input files to process 2024-09-01 00:59:15 -04:00
d3d9094ad0 update settings when the actions will be triggered automatically 2024-09-01 00:44:23 -04:00
3ea0612795 small cleanups 2024-09-01 00:39:27 -04:00
af747ac6c0 restore old code structure so we can test subsets again 2024-09-01 00:17:25 -04:00
0f1b7b5bd6 simplify even more 2024-09-01 00:09:19 -04:00
f39e795bca revert changes to create_box 2024-08-31 23:19:16 -04:00
591d20b00d Merge branch 'develop' into quick-regression 2024-08-31 23:16:27 -04:00
6fb50cbdc1 integrate quick regression support into regression tester 2024-08-31 23:16:02 -04:00
62bfd7dc74 Move Linux unit test workflow to PR #4304 2024-08-31 16:05:55 -04:00
2e58e4c428 Simplify some more. don't install undetected MPI. 2024-08-31 15:57:34 -04:00
debda72170 print ccache statistics after compilation again 2024-08-31 15:51:52 -04:00
8023074650 build release version 2024-08-31 15:30:40 -04:00
0b7ba6f8c1 let ninja decide how many processes to launch 2024-08-31 15:23:55 -04:00
b372aa0bdc try to skip using Fortran 2024-08-31 15:18:27 -04:00
06bee65a1a use windows style pathnames 2024-08-31 15:10:11 -04:00
34bd2c4f2a use our own fork 2024-08-31 14:58:53 -04:00
b890aee7de update alternate action from GitHub marketplace 2024-08-31 14:55:01 -04:00
11172b1c62 use different structure 2024-08-31 14:42:50 -04:00
73fdd66f03 correct syntax issue 2024-08-31 14:40:31 -04:00
d85380476d alternate approach for using ninja with MSVC++ 2024-08-31 14:38:12 -04:00
6e612f68c2 remove misplaced comma 2024-08-31 14:09:47 -04:00
6d55da7207 bring back multi-config 2024-08-31 14:00:51 -04:00
6c40e8dc79 revert back to MSBuild and report launcher, if active 2024-08-31 13:57:54 -04:00
2998d88edb prefer MSVC++ over MinGW 2024-08-31 13:48:10 -04:00
72acea291a switch to ninja-build and single configuration setup 2024-08-31 13:42:55 -04:00
0d7305672b use chocolatey instead of winget 2024-08-31 12:48:09 -04:00
55a549a2fb try speed up windows compilation with ccache 2024-08-31 12:43:50 -04:00
56ae7e465e Merge branch 'develop' of https://github.com/lammps/lammps into aurora_updates 2024-08-31 11:33:51 -05:00
7492ab7541 sync forces on step 0 2024-08-31 11:18:43 -05:00
78597a9c39 add fortran module tests for extracting atom properties with array dimensions 2024-08-31 12:16:27 -04:00
6f114eddea Fix typo in CMakeLists.txt 2024-08-31 11:14:50 -04:00
84fa26ee2c update test checking tool 2024-08-31 11:13:53 -04:00
2c05378815 expand python module unit tests for extract_atom() 2024-08-31 07:04:59 -04:00
7d176cb66e fix logic bug 2024-08-31 07:04:53 -04:00
70a62d5ebf make certain that the mass and mass_setflag arrays are fully initialized (to zero) 2024-08-31 06:20:44 -04:00
6ebdb0b982 some more tweaks to the workflows 2024-08-31 04:53:09 -04:00
e5f8a4bec5 must install mpi for compiling with mpi 2024-08-31 04:47:03 -04:00
fb2c060d63 add unit test run on GitHub with -DLAMMPS_BIGBIG 2024-08-31 04:40:25 -04:00
abc621ddbd Add GitHub workflow to check for variable length arrays 2024-08-31 04:33:31 -04:00
a764930998 consolidate replicated enum to base class header and inside the class definition 2024-08-31 02:00:30 -04:00
d908010ead Merge branch 'develop' into patch-3 2024-08-31 01:54:29 -04:00
b2ce4051aa Consistent spacing after full stops. 2024-08-31 01:53:54 -04:00
59fdfaf884 consistent indentation 2024-08-31 01:50:58 -04:00
70b8b987ca add noreturn attribute to templated version of error->one and error->all 2024-08-31 00:57:59 -04:00
35c36bb16e step version number for LAMMPS-GUI 2024-08-31 00:55:22 -04:00
dab9d4bc59 Merge branch 'develop' into hagerty_issue4140_kokkos_collective 2024-08-31 00:08:30 -04:00
cdd2640101 remove double delete[] 2024-08-30 23:22:29 -04:00
0cdf8f2658 swap rows/cols for less confusion 2024-08-30 23:16:37 -04:00
b426556632 replace bogus allocation 2024-08-30 22:51:31 -04:00
3e7123e21e make compatible with comm_modify vel yes 2024-08-30 22:51:08 -04:00
9d9e591b54 first try at implementing lammps_extract_atom_size() 2024-08-30 22:50:42 -04:00
1fe905d8a2 update types 2024-08-30 15:15:18 -05:00
9a11570836 cleanup 2024-08-30 19:08:35 +00:00
d9e6dff93b cleanup 2024-08-30 14:05:36 -05:00
d95d65bb69 Major updates 2024-08-30 13:47:25 -04:00
e921af8efa fix bug where custom property dimension was not reported 2024-08-30 10:40:58 -04:00
f3f69da328 expand tests on properties including custom properties 2024-08-30 10:29:41 -04:00
742e6d4ff4 Update doc/src/fix_epot_lepton.rst
Co-authored-by: Shern Tee <shernren@gmail.com>
2024-08-30 09:38:20 -04:00
6b1aec981e exceptions are always enabled now 2024-08-29 22:33:40 -04:00
02f16251d4 flag development version 2024-08-29 22:09:11 -04:00
05e836f50e Merge pull request #4297 from akohlmey/next_release
Update version strings for release
2024-08-29 20:26:41 -04:00
317fb8d537 Merge pull request #4301 from stanmoore1/reaxff_overflow_errors
Gracefully error out if integer overflow in ReaxFF or QEq
2024-08-29 20:19:29 -04:00
4aca808da6 Casts need to be bigint 2024-08-29 17:40:38 -06:00
7a9f0cd60d Fix potential overflow in Kokkos neighbor counting 2024-08-29 14:40:50 -06:00
2d8e473807 Merge branch 'develop' of github.com:lammps/lammps into kk_reaxff_overflow 2024-08-29 14:37:16 -06:00
6fd022695a Tweak error message 2024-08-29 14:23:49 -06:00
571076a5a7 Gracefully error out if integer overflow in ReaxFF or QEq 2024-08-29 14:18:08 -06:00
0c753d92ba single & double support ; fix plan bug 2024-08-29 18:21:26 +00:00
f0513bad4c cleanup 2024-08-29 18:20:41 +00:00
af560356fe Merge branch 'develop' of https://github.com/lammps/lammps into aurora_updates 2024-08-29 12:50:17 -05:00
ba51b59add first pass on MKL FFT for Intel GPUs; rhodo benchmark results are close to CPU... 2024-08-29 12:28:54 -05:00
2581b1abfe update change log info for flatpak 2024-08-28 22:13:04 -04:00
a2138b79d6 Merge branch 'develop' into next_release 2024-08-28 22:12:31 -04:00
d48ca258fa Merge pull request #4209 from akohlmey/plumed-plugin
Add support to build the PLUMED package as a plugin
2024-08-28 19:10:46 -04:00
2d3cd2a0b9 fix typo in the per-job artifact names 2024-08-28 17:22:13 -05:00
a1a3e4e5b7 name the artifacts with their matrix idx 2024-08-28 16:45:00 -05:00
04bd62a677 add another job with the action merge 2024-08-28 16:13:10 -05:00
796a0f18d3 upload per-job artifacts, try action merge in a separate job 2024-08-28 16:07:13 -05:00
5306f5ff18 provide path to the artifacts 2024-08-28 15:35:25 -05:00
aa088da59b pack test output into separate artifacts 2024-08-28 14:43:27 -05:00
af5f437aeb update list of dependencies 2024-08-28 15:30:44 -04:00
acfed12684 avoid recursion. there is only one executable. 2024-08-28 15:12:46 -04:00
4e40b4ba63 upload the artifacts of the full regression test workflow 2024-08-28 14:11:23 -05:00
c60e69ea1e have a single job definition with matrix strategy, the build and env do not persist between jobs 2024-08-28 14:06:40 -05:00
4e8c1f3284 Merge branch 'develop' into plumed-plugin 2024-08-28 14:28:05 -04:00
f5ffb28a1f use the log file with 1 proc in serial runs, removed examples/bpm/impact/brokenDump 2024-08-28 12:57:58 -05:00
e3119155e1 Update doc/src/region.rst
Co-authored-by: Axel Kohlmeyer <akohlmey@gmail.com>
2024-08-28 18:20:18 +02:00
0ad64045f5 Merge pull request #4298 from akohlmey/collected-small-fixes
Collected small fixes for LAMMPS and LAMMPS-GUI for the stable release
2024-08-28 11:54:27 -04:00
f2102b76f2 cosmetic 2024-08-28 11:09:47 -04:00
709ab8fbe9 Update region.rst 2024-08-28 11:04:47 +02:00
40cd70465c Code for variable point definition in region_plane.cpp 2024-08-28 10:57:02 +02:00
5c11c5ead8 include variable definitions in region_plane.h 2024-08-28 10:48:12 +02:00
78310bddcf update docs for LAMMPS-GUI plugin changes and document flatpak build 2024-08-27 21:43:00 -04:00
932eaf864a must register variant for QList<QString> before using QSettings 2024-08-27 21:19:09 -04:00
99e5b06279 make plugin path canonical 2024-08-27 17:18:11 -04:00
98b4771ed6 sanity check 2024-08-27 17:18:01 -04:00
c01585e8b2 revise plugin loading logic 2024-08-27 17:02:17 -04:00
49d664583a correct define 2024-08-27 17:00:42 -04:00
4060de6a9c make handling of plugin path and recent files more consistent 2024-08-27 14:27:39 -04:00
83aab0f425 add option to set plugin path from the command line 2024-08-27 10:40:24 -04:00
d8b9679b87 fix cut-n-paste issue 2024-08-27 10:10:29 -04:00
5fbdf155e5 remove unused variables 2024-08-27 08:57:42 -04:00
2ebe1f019f avoid uninitialized data access in case there are no atoms owned by a process 2024-08-26 21:14:44 -04:00
a59ac7ec86 Reduced the timeout for quick reg tests 2024-08-26 17:43:36 -05:00
6e791034f9 Merge pull request #4295 from akohlmey/collected-small-fixes
Updates for LAMMPS-GUI
2024-08-26 14:03:41 -04:00
ac90dca5a1 whitespace 2024-08-26 11:38:26 -04:00
4e590507f0 Merge remote-tracking branch 'github/develop' into collected-small-fixes 2024-08-26 11:37:56 -04:00
121195d19d Merge pull request #4290 from lammps/doc-page-ke-tensors
Amend doc page explanations of vector outputs from the various compute temp commands
2024-08-26 11:18:19 -04:00
d9a2fd9f36 kokkos: move #endif to correct location 2024-08-26 10:54:14 -04:00
dc66929e65 Merge pull request #4293 from jrgissing/bond_react_fixes_summ24
Bond/react: fixes and error checking
2024-08-26 10:45:32 -04:00
d1f141c962 Merge branch 'develop' into plumed-plugin 2024-08-26 04:17:04 -04:00
99153f20be refactor how reactions are skipped
better treatment of allowing all possible reactions when using 'overlap' keyword of 'create_atoms' feature
2024-08-25 21:55:19 -04:00
1148f5f5c8 cast into PosixPath to str before writing to file 2024-08-25 16:41:26 -05:00
9f20e5b7f7 put a timeout for a run, specified in the config file 2024-08-25 16:19:52 -05:00
04400e10a8 Updated the regression tester run_tests.py to handle list of input scripts 2024-08-25 16:02:16 -05:00
fa373eb685 update pending version tags with planned release date 2024-08-25 16:39:13 -04:00
c68981c7fc build LAMMPS-GUI flatpack from release branch of the official repo 2024-08-25 16:37:49 -04:00
b8b103df28 update version strings 2024-08-25 16:37:25 -04:00
9e5e1af125 update TODO list for LAMMPS-GUI 2024-08-25 16:25:42 -04:00
d59d31b445 remove accidental commit 2024-08-25 16:14:36 -04:00
cfcbad9e38 back to 5 sigma 2024-08-25 16:07:22 -04:00
586e5db757 completely hide inactive atom size field instead of only disabling them 2024-08-25 15:49:42 -04:00
a1a72f741a update docs with recent paper 2024-08-25 14:54:51 -04:00
e94d32e7d3 clean up tiny_nylon example 2024-08-25 14:19:17 -04:00
6514dbb4b6 refactor how to insert atoms 2024-08-25 13:42:51 -04:00
86975151b2 step LAMMPS-GUI version 2024-08-25 07:27:37 -04:00
e3773cad83 workaround for Qt 5.12 which is lacking some color constants 2024-08-25 02:50:47 -04:00
765212eae2 LAMMPS-GUI doc update 2024-08-25 01:18:29 -04:00
97c5bcc00c update 2024-08-25 00:55:56 -04:00
180593e53c add missing picture 2024-08-25 00:51:43 -04:00
67bba08b3d add unit tests for extracting lattice spacings 2024-08-25 00:41:58 -04:00
6c13e8d053 tweak docs for better formatting 2024-08-25 00:41:26 -04:00
ac91b4fbb3 add field to set atom size if not determined otherwise. seed by lattice spacing 2024-08-25 00:21:07 -04:00
3c2fba1112 add support for extracting the current lattice spacing to library interface 2024-08-25 00:17:17 -04:00
4507101ec3 show dark mode screenshot 2024-08-24 22:51:50 -04:00
e19556263c provide syntax highlighting color schemes for light and dark themes 2024-08-24 19:28:11 -04:00
baf1511f23 add light/dark mode detection 2024-08-24 19:21:03 -04:00
52e1f5addd initial global move changes 2024-08-24 16:31:47 -06:00
217546ed3b tweak LAMMPS-GUI howto typesetting 2024-08-24 15:11:43 -04:00
2a84aa8063 document find and replace dialog 2024-08-24 14:39:33 -04:00
be029a9122 tweak layout of keyboard shortcut table 2024-08-24 14:39:19 -04:00
35d8a3d68e Document 'Find and Replace' dialog 2024-08-24 14:32:01 -04:00
d98a3d61da reduce outlier margin from 5 sigma to 4 sigma 2024-08-24 11:58:26 -04:00
1b3652583b implement text search and replace functionality 2024-08-24 11:58:14 -04:00
37c312bf8a added pair coeffs 2024-08-24 05:28:38 -04:00
72873b0dca line number area attempts to be dark mode compatible 2024-08-24 02:56:47 -04:00
ec0cdb8bdc tweak background color settings 2024-08-24 02:11:18 -04:00
149ae74631 debug matrix strategy 2024-08-23 17:06:11 -05:00
afb1e499af debugging the issue with the runs, list index out of range for run 7 2024-08-23 16:28:51 -05:00
d09e9d46fa specify the config file when analyzing the examples folder 2024-08-23 16:00:15 -05:00
5a9b742086 experiment with the matrix feature at the job level 2024-08-23 15:52:41 -05:00
9e172665f2 enable full regression tests 2024-08-23 15:45:13 -05:00
380447c6ba updated regression test config files 2024-08-23 14:44:08 -05:00
b69a9847f7 add a config file for running regression tests in serial (no mpirun), modify run_tests.py to handle this case 2024-08-23 14:40:07 -05:00
e1b324a3e9 upload artifacts 2024-08-23 14:18:40 -05:00
0d00578978 move download artifacts to a separate step 2024-08-23 14:03:25 -05:00
b1d40014a6 allow to download artifact from the regression test 2024-08-23 14:00:13 -05:00
c0770715dd Merge pull request #4292 from akohlmey/collected-small-fixes
Collected small fixes and changes
2024-08-23 14:49:40 -04:00
ebe3bd2f7e activate the env before running the python scripts 2024-08-23 11:59:16 -05:00
7475e5a5ef run the regression tester tool with the list of suggested inputs 2024-08-23 11:49:20 -05:00
bc701c20f7 cleaning clipboard has no effect 2024-08-23 03:30:56 -04:00
2beda14b23 clear clipboard before exiting 2024-08-23 03:26:46 -04:00
a20997b7cd regularize application startup. use Qt's command line parser support 2024-08-23 03:16:48 -04:00
1b339b84e1 forgot to store chart update preference 2024-08-23 02:24:18 -04:00
4f3004fc40 we use PNG version of logo 2024-08-23 00:22:14 -04:00
d8329b30e1 force initialization 2024-08-23 00:09:41 -04:00
f6d0d91e2b make certain local virial storage is initialized 2024-08-23 00:02:59 -04:00
b28f18106c try to make coverity happy 2024-08-22 23:55:59 -04:00
51a78a8a7f make else branches only for fixes 2024-08-22 23:55:42 -04:00
b300ef29ee simplify; make certain nmax is always initialized 2024-08-22 23:39:29 -04:00
40cae6e79a first draft charmm_c36_jul24.gz to LAMMPS data converter 2024-08-22 21:06:04 -04:00
42dec6fe6e modernize and remove dead code 2024-08-22 21:03:29 -04:00
01bbd60568 avoid INTEL package compilation failure with upcoming Intel compiler releases 2024-08-22 17:41:47 -04:00
abbfa9470e remove debug print() statement 2024-08-22 17:07:12 -04:00
bda862a3a2 actually honor the branch argument 2024-08-22 16:50:03 -04:00
dc4e4988a9 do not fetch specific commit hash 2024-08-22 16:37:35 -04:00
a204f8e69f refer to branch with origin/develop 2024-08-22 16:30:02 -04:00
613e053373 check out whole history 2024-08-22 16:23:57 -04:00
1c5c3b41a9 more debugging 2024-08-22 16:20:27 -04:00
50cd510e79 no merge commit so we get differences 2024-08-22 16:16:26 -04:00
f1f7eb01c8 tweak settings in action 2024-08-22 16:15:06 -04:00
f3df42ec02 include debug info 2024-08-22 16:07:26 -04:00
27ff1fa5d4 pass string instead of compiled regexp 2024-08-22 15:57:28 -04:00
db9a618a7b more fault tolerance 2024-08-22 15:51:15 -04:00
66d6804d23 apply clang-format to some pair style headers 2024-08-22 15:43:55 -04:00
022d1d7959 get-quick-list.py script is feature complete 2024-08-22 15:41:31 -04:00
1916d0be06 add incomplete draft of quick input file lister 2024-08-22 11:41:56 -04:00
61fd2ba25c apply clang-format to have some files with changes 2024-08-22 11:40:26 -04:00
10dce38a76 small tweaks 2024-08-22 11:40:01 -04:00
664c6f908a must use different ccache keys to avoid conflicts between concurrent jobs 2024-08-22 11:02:43 -04:00
8c6351b6b9 remove unneeded stuff from quick regression test 2024-08-22 10:43:30 -04:00
8adc90b71f add Linux unit test with -DLAMMPS_BIGBIG 2024-08-22 10:41:54 -04:00
d5c245cb3b add workflow for full regression testing 2024-08-22 10:40:19 -04:00
9d80c22a0b install a few extra packages 2024-08-22 09:43:43 -04:00
5562d66931 need sudo for software installation 2024-08-22 08:43:07 -04:00
b540f572a3 prototype workflow for a quick regression test 2024-08-22 08:40:24 -04:00
1494d12b88 step LAMMPS-GUI version number. update TODO list 2024-08-22 08:31:35 -04:00
5c48a120dd add versionadded entry for smooth plots 2024-08-22 01:54:05 -04:00
5f58650d2c update LAMMPS-GUI documentation for recent changes 2024-08-22 01:23:34 -04:00
f24b7c02ed add label for plots selection 2024-08-22 01:23:09 -04:00
4a291f8bed spelling 2024-08-22 01:04:05 -04:00
4d6b998a75 flang may be called flang-new 2024-08-22 00:00:27 -04:00
446b9ed7b3 make compatible with -DLAMMPS_BIGBIG 2024-08-21 22:32:29 -04:00
9cd83a9513 remove dead code 2024-08-21 22:29:54 -04:00
4a115d66e0 update region doc for sphere/kk 2024-08-21 20:54:08 -04:00
79fd385239 whitespace 2024-08-21 20:22:01 -04:00
97f8a62f59 Merge remote-tracking branch 'github/develop' into collected-small-fixes 2024-08-21 20:21:43 -04:00
827bc6361b fix spelling and formatting issues 2024-08-21 20:18:28 -04:00
d07e1b918e update email and fix typo 2024-08-21 20:07:43 -04:00
9e314b6a06 Merge pull request #4291 from lammps/extend-verlet-split
Add error checks to verlet/split for unsupported KSpace methods
2024-08-21 20:07:42 -04:00
623e1d68e5 oops 2024-08-21 20:07:14 -04:00
5ea26e6cc1 added RegSphereKokkos to bugfix dynamic_cast in FixWallRegionKokkos 2024-08-21 20:07:04 -04:00
0ca7bd9aaa Merge branch 'develop' into collected-small-fixes 2024-08-21 18:04:38 -04:00
f36e09720a Merge pull request #4287 from akohlmey/collected-small-fixes
Collected small fixes and updates for LAMMPS and LAMMPS-GUI
2024-08-21 17:51:58 -04:00
c8b485a2df improve error message 2024-08-21 17:48:01 -04:00
9b46cd9a3a add error checks to verlet/split 2024-08-21 15:23:27 -06:00
b4eb027851 Merge pull request #4289 from lammps/grid-debug
Fix 2 bugs with distributed grids
2024-08-21 17:21:35 -04:00
466927b0df update code owners list 2024-08-21 16:45:28 -04:00
92abea3372 Merge pull request #4273 from jtclemm/small-patches
Few small patches to BPM, RHEO, and GRANULAR packages
2024-08-21 16:33:28 -04:00
3ea74b1725 update atom_style template test for added charge 2024-08-21 16:20:17 -04:00
c968787c41 fix molecule add for MESH and remove 'not compatible' error message 2024-08-21 16:19:09 -04:00
e142e4fe23 Merge pull request #4228 from ndtrung81/regression-tests
Adding support for doing regression tests
2024-08-21 16:07:42 -04:00
d1fb321eae Merge branch 'develop' into small-patches 2024-08-21 16:04:40 -04:00
aca36d1e6a apply clang-format 2024-08-21 15:17:28 -04:00
7eb105adbe tweak 2024-08-21 13:09:00 -06:00
32a6db151f clarify compute pressure doc page as well 2024-08-21 13:07:51 -06:00
7de2073e8e better explanations of vector outputs for compute temp commands 2024-08-21 12:46:45 -06:00
a541873b41 2 bug fixes 2024-08-21 10:28:24 -06:00
26a0501e67 use large logo version with rounded corners and drop shadow 2024-08-21 12:07:37 -04:00
47b5b2dfa3 throw error when trying to use neigh_modify exclude with dynamic groups 2024-08-21 10:34:20 -04:00
cdbec96e07 enable and apply clang-format 2024-08-21 09:00:11 -04:00
e3333bc19d tweak no-git version output 2024-08-21 00:01:04 -04:00
2746ec609f remove unused argument 2024-08-20 23:55:35 -04:00
b65c92e2bb fix syntax error 2024-08-20 23:40:02 -04:00
64e7e7234e work around unavailable git info for PDF title 2024-08-20 23:32:18 -04:00
355b62a788 Merge remote-tracking branch 'github/develop' into collected-small-fixes 2024-08-20 22:38:12 -04:00
adc5adf799 Merge pull request #4256 from rbberger/docs_authors
docs: expand author list
2024-08-20 22:37:53 -04:00
6db454a5e2 tweak title page some more 2024-08-20 22:37:25 -04:00
77f19f1dc9 small tweak to license text 2024-08-20 21:12:14 -04:00
28cd3bdb73 reorder and group author list and improve formatting in PDF file 2024-08-20 21:11:37 -04:00
4e947a9003 debugging 2024-08-20 17:28:36 -06:00
3aadd8bd84 fix typo in comment 2024-08-20 19:12:27 -04:00
cac0c56687 add charge to atom style template 2024-08-20 19:12:09 -04:00
0a77c2fe35 Merge branch 'develop' into docs_authors 2024-08-20 18:12:48 -04:00
72a7634dec use custom title page 2024-08-20 16:31:32 -04:00
047d1010a0 Merge branch 'develop' into plumed-plugin 2024-08-20 11:09:18 -04:00
5665f29e03 move to proper place 2024-08-20 09:31:57 -04:00
19d6227220 plug memory leaks in testers 2024-08-20 09:19:58 -04:00
d75fe348f1 bugfix for compute_scalar() to work, test PASSED 2024-08-20 05:40:02 -04:00
2b485a3f62 be more paranoid about cleaning up 2024-08-20 04:10:15 -04:00
80ea7ac120 plug another memory leak 2024-08-20 01:26:48 -04:00
02752ddf6a don't leak memory when throwing an exception 2024-08-20 01:15:53 -04:00
8cfd856296 plug small memory leak 2024-08-20 00:50:24 -04:00
1809115c64 avoid uninitialized access to next_thermo and next_restart from reset_dt() 2024-08-20 00:12:29 -04:00
085dec4d3c Use drop down list to select raw or smooth plot or both. Fix plot color. 2024-08-20 00:02:17 -04:00
5f5e2d9a64 added fix nve/limit/kk 2024-08-19 20:58:41 -04:00
2f6ac590b0 spelling and cosmetic stuff 2024-08-19 17:59:13 -04:00
3ebdc04aac Merge branch 'develop' into regression-tests 2024-08-19 17:50:43 -04:00
7fadaf08b2 Made the tool name and the subfolder consistent 2024-08-19 15:53:13 -05:00
71d102402f Added a paragraph to describe the regression-tests tool in Tools.rst 2024-08-19 15:44:23 -05:00
4c6beb548e white on black title. Make page 1 show up in PDF sidebar 2024-08-19 16:26:38 -04:00
7b62f82428 Merge branch 'doc_fixes' into merge-richard 2024-08-19 15:58:42 -04:00
c299c94ebc Merge pull request #4262 from jrgissing/type-labels-for-pair_style_commands
Type label support for pair_style commands
2024-08-19 15:02:23 -04:00
921f4f678d Merge pull request #4275 from akohlmey/collected-small-fixes
Collected fixes and changes for LAMMPS and LAMMPS-GUI
2024-08-19 14:07:24 -04:00
1bd6ba2b19 remove redundant navigation 2024-08-19 13:28:01 -04:00
a46c427de7 spelling 2024-08-19 08:45:56 -04:00
2cda355a92 restore to original for windows 2024-08-19 04:45:32 -04:00
26096d3399 tweak table widths for smoother display as PDF 2024-08-19 04:43:57 -04:00
03df6b276f restore table column tweaks for @rbberger 2024-08-19 01:36:08 -04:00
75663ab14b windows hack 2024-08-19 01:21:00 -04:00
c341344873 revert back to old layout. looks better with HTML. 2024-08-19 01:10:01 -04:00
4c15ac99a3 expand_type_int verify->bool 2024-08-18 23:05:52 -06:00
1afa56e0da expand_type_int: optional flag to check types
verifying type could probably be default, except for historical reasons
would involve removing redundant checks after calling routine
2024-08-18 22:39:01 -06:00
ca937372f4 fix typo 2024-08-19 00:34:52 -04:00
67e0af8a1b find LAMMPS python module for force style tests 2024-08-19 00:31:24 -04:00
d39354d569 docs: proposal for pdf title page customization 2024-08-18 22:31:06 -06:00
5902d81eca Revert "use memory create/destroy for allocating MPI objects which prefer 16 byte alignment"
This reverts commit 827d4709ac.
2024-08-19 00:16:50 -04:00
3edcc9ac00 silence compiler warnings 2024-08-19 00:04:50 -04:00
88583a862e cosmetic 2024-08-18 23:15:07 -04:00
827d4709ac use memory create/destroy for allocating MPI objects which prefer 16 byte alignment 2024-08-18 23:14:53 -04:00
a8447b419d fix bug causing memory corruption and clean up lmp_f2c.h header 2024-08-18 21:34:15 -04:00
67dccdc52f make "invisible" first page of manual show up in table of contents 2024-08-18 18:56:45 -04:00
a8a66211c0 add some more advertisement for LAMMPS-GUI 2024-08-18 18:55:59 -04:00
80ff92d172 modernize, improve error output 2024-08-18 18:49:16 -04:00
3f9d244281 spelling 2024-08-18 17:36:11 -04:00
0735e976ff Merge branch 'doc_fixes' of github.com:jmgoff/lammps_compute_PACE into collected-small-fixes 2024-08-18 17:32:06 -04:00
a5695829a9 refer to icc as Intel Classic Compiler 2024-08-18 17:28:54 -04:00
90a595f519 "back end" keeps the spellchecker happier and is just as well. 2024-08-18 17:28:34 -04:00
b3a7d4dc95 revert white on black PDF title page 2024-08-18 17:28:03 -04:00
4b01401815 more consistent fix average notation 2024-08-18 15:04:58 -06:00
cac32085a7 Merge branch 'doc_fixes' of https://github.com/rbberger/lammps into collected-small-fixes 2024-08-18 16:45:48 -04:00
2b879324f0 minor doc fix 2024-08-18 14:00:58 -06:00
84c102fe36 docs: proposal for pdf title page customization 2024-08-18 13:20:40 -06:00
216be2e96f docs: complete howto review 2024-08-18 13:20:00 -06:00
e5876b3b36 convert to c++ style declarations 2024-08-18 14:55:46 -04:00
0e1863d9bb correct forward declaration 2024-08-18 14:55:24 -04:00
80fefbb3f8 Various small cleanups to RHEO package flagged by compiler warnings
The individual changes are:
- remove of unused function parameters
- replace non-standard variable length arrays on the stack with static ones
- disable citation removed from the manual
- replace #defined constants with enum or static constexpr
- enable and apply clang-format
2024-08-18 13:01:31 -04:00
5a85702752 don't print multi-line messages multiple times 2024-08-18 11:38:24 -04:00
ffc04aaf7c silence compiler warnings 2024-08-18 11:02:01 -04:00
b7cf79a7b9 docs: start with howto section 2024-08-18 07:59:29 -06:00
0b54a0b1e3 docs: add :lammps: role
This allows to write :lammps:`command` for inline highlighting of LAMMPS
code.
2024-08-18 07:42:46 -06:00
05857315d8 docs: fixup Packages_list.rst table 2024-08-18 07:41:06 -06:00
271ae19fe7 must use overload wrapper on Qt5 2024-08-18 06:03:41 -04:00
9dddc7945d add missing file 2024-08-18 05:51:31 -04:00
98a7e045bb add smoothed plot to chart windows 2024-08-18 00:53:10 -04:00
e4b9da147a reintroduce facility to skip over outlier data due to corrupted data 2024-08-17 21:28:56 -04:00
87abcc6f0f mass replace 2 -> two, and 3 -> three where it can be safely detecte 2024-08-17 08:15:58 -04:00
435c8fdd32 Merge branch 'Edits/corrections-to-doc-pages-949---1220' of https://github.com/jrgissing/lammps into collected-small-fixes 2024-08-17 07:59:11 -04:00
9f6dbf6609 doc pages 949-1220 2024-08-17 00:28:57 -04:00
dd6c933269 remove normalization 2024-08-17 00:15:08 -04:00
3758d575d7 Update fix_balance.rst 2024-08-16 23:44:17 -04:00
8973d9a9ba avoid outlier data in plots from corrupted data when polling thermo data 2024-08-16 23:25:41 -04:00
a3990ad73f update chart window less frequently than updating data. interval set in preferences 2024-08-16 23:01:47 -04:00
6f7a48fa7a fix off-by-on bug preventing the "reset zoom" button for charts to work as expected 2024-08-16 23:00:41 -04:00
d443e7dc8c cannot reference undocumented fix 2024-08-16 17:36:37 -04:00
12016be69a update log file 2024-08-16 17:36:19 -04:00
85d79e2aa5 fix typo 2024-08-16 16:56:22 -04:00
9d3c60b334 make sphinx happy 2024-08-16 16:38:02 -04:00
b6b2cc0667 Merge branch 'doc-updates' of https://github.com/jtclemm/lammps into collected-small-fixes 2024-08-16 16:34:30 -04:00
a2fa7d68d7 update docs to make wall fix restrictions more explicit 2024-08-16 16:29:45 -04:00
5111170d8f modernize access to fixes and flag incompatible wall fixes 2024-08-16 16:10:36 -04:00
9c2c8045cb docs: update speed section 2024-08-16 14:09:32 -06:00
15127ad2e2 Last batch of edits 2024-08-16 14:03:40 -06:00
2db37c9a35 fix issues with compute smd/vol and related docs 2024-08-16 14:58:47 -04:00
1fca4d94d0 docs: update Packages_details.rst 2024-08-16 12:54:57 -06:00
a625955143 docs: update commands section 2024-08-16 12:54:53 -06:00
4aaf7d7098 fix LATBOLTZ example 2024-08-16 14:51:29 -04:00
e4a654c7cd fix typo 2024-08-16 12:49:09 -04:00
635f6000eb improve error messages, especiall for compile time selected options 2024-08-16 12:49:04 -04:00
04fdfdadc6 tweak layout of commands lists 2024-08-16 00:46:44 -04:00
661e2e74fb make table widths explicit and tweak them to improve readability in PDF 2024-08-16 00:25:25 -04:00
8f366268bb whitespace 2024-08-15 22:55:07 -04:00
5a96d537de final set of bibliography updates 2024-08-15 22:52:42 -04:00
732be489a3 another error check 2024-08-15 19:48:17 -04:00
dca156eacc Edits to devleoper doc files 2 2024-08-15 17:12:39 -06:00
c68ea4fe1e better place for error check 2024-08-15 19:09:16 -04:00
27bf4d7974 bond/react: change where to reset mol IDs
needs to happen after topology changes communicated
2024-08-15 18:15:30 -04:00
a0b125f905 use automatic numbering 2024-08-15 16:46:06 -04:00
6b226f1ff2 display commands summary category list only with HTML 2024-08-15 16:45:53 -04:00
db603a380e Merge branch 'doc-pdf' of https://github.com/ndtrung81/lammps into collected-small-fixes 2024-08-15 13:37:11 -04:00
875ba17dd8 Edits/corrections to doc pages 2315-2589 2024-08-15 09:38:58 -05:00
68b808d3b5 precompute random numbers to avoid memory corruption with multi-threading 2024-08-15 00:25:28 -04:00
97026569a7 more bibliography updates 2024-08-14 23:45:59 -04:00
b97717eb46 update false-positives 2024-08-14 22:47:28 -04:00
298fb4eb3f Merge branch 'doc-pdf-GClavier' of https://github.com/Bibobu/lammps into collected-small-fixes 2024-08-14 22:30:19 -04:00
a796554096 use explicit column widths and tweak them for good display in PDF. HTML is unaffected 2024-08-14 22:29:19 -04:00
bc492afe1c tweak size of tables 2024-08-14 21:34:17 -04:00
6f8b352459 doc page additions 2024-08-14 17:02:23 -06:00
e9f5ff4ea9 distribute additional LaTeX files for better looking manual 2024-08-14 17:54:46 -04:00
efc53d6439 docs: update run section 2024-08-14 15:29:21 -06:00
817f92d1fe docs: completed review of build section 2024-08-14 15:25:53 -06:00
26f9a84c4f doc: more build section updates 2024-08-14 14:15:48 -06:00
9ab9212612 Changed docstring of lammps_create_atoms to avoid weird formatting in
Manual.pdf
2024-08-14 21:57:56 +02:00
29ee719129 Formatting typo 2024-08-14 21:20:07 +02:00
cb03f45528 Some typos 2024-08-14 21:16:54 +02:00
9d5710ad53 some more documentation updates for bibliography 2024-08-14 14:57:53 -04:00
892d2dda96 Added mention of the MatSci forum in the Errors_common introduction
section after the section about mailing the devs.
2024-08-14 20:49:49 +02:00
a91e534eab Changed Germain Clavier's mail adress. 2024-08-14 19:57:48 +02:00
e52c739814 There are actually 3 scripts in the amber2lmp folder. Is the 99 format
version necessary?
2024-08-14 19:35:47 +02:00
30208f7173 Added a tinker section to Tools.rst. 2024-08-14 19:32:56 +02:00
c683489110 Added a valgrind section to Tools.rst. 2024-08-14 19:25:22 +02:00
10f32e0548 make index single-column 2024-08-14 13:12:44 -04:00
60fe24acb4 Edits to developer doc files 2024-08-14 10:41:52 -06:00
ffeb74c05f Adding py links to python scatter 2024-08-14 10:41:08 -06:00
f36f3ca26b make index single column 2024-08-14 12:18:26 -04:00
9b97e37f72 strip off common namespace components from index entries 2024-08-14 12:18:17 -04:00
9144f7abcf populate dump style index by moving commands off of commands_list.rst 2024-08-14 11:06:35 -04:00
6a91f2ec67 bibliography cleanup 2024-08-14 10:32:46 -04:00
9e6715504b fix typo and reformat 2024-08-14 06:59:57 -04:00
e0dad96e53 a couple more doc tweaks 2024-08-14 06:44:44 -04:00
7ecdea20eb fix issue with pair style srp that broke regression test 2024-08-14 05:16:45 -04:00
e1a0cc29be docs: update build section 2024-08-14 00:42:36 -06:00
cf0bc0e6bb docs: update install section 2024-08-14 00:03:10 -06:00
a7df221b14 correct indentation to comply with sphinx requirements 2024-08-14 01:46:18 -04:00
511b642a60 use math environments to typeset math expressions. make consistent. 2024-08-14 01:44:17 -04:00
308ecaef1c more doc reformatting 2024-08-14 01:34:42 -04:00
3c0397f8b9 Edits to modify doc files 2024-08-13 20:17:26 -06:00
5a55ca39bc convert lists with global values from fixes to use automatic numbering 2024-08-13 20:59:57 -04:00
4d1632b9f7 small doc fixes 2024-08-13 20:47:46 -04:00
35cf16b109 Update pair_srp.cpp 2024-08-13 18:49:53 -04:00
726311f8d2 Update pair_e3b.cpp 2024-08-13 18:48:35 -04:00
3321477c7f misc doc fixes to python section 2024-08-13 16:30:33 -06:00
70384d4344 syntax highlighting updates for added command 2024-08-13 17:57:11 -04:00
56d0d7c1c2 Updating log file 2024-08-13 15:28:06 -06:00
09af3e0fac initialize pointers in constructor. removed commented out code 2024-08-13 17:07:28 -04:00
fcaaca8304 step LAMMPS-GUI version to 1.6.8 2024-08-13 16:46:46 -04:00
8dd655dd1c Merge branch 'develop' into type-labels-for-pair_style_commands 2024-08-13 16:19:44 -04:00
5da737fd11 must not set tip4p atom and bond types when restarting from a restart file 2024-08-13 16:07:20 -04:00
a69356a02f Processed the ERROR line in the output, increased max_np to 4 when no reference log file exists 2024-08-13 15:01:29 -05:00
aa0b6c47c2 Merge pull request #4263 from akohlmey/collected-small-fixes
Collected small fixes and updates for LAMMPS and LAMMPS-GUI
2024-08-13 15:22:54 -04:00
0f792b0434 cast return value to void to indicate that we want to ignore the result 2024-08-13 12:36:43 -04:00
700a22b7cd Cleaned up and added check for "Total wall time" in the output 2024-08-13 11:03:35 -05:00
b479cf6c68 use old fashioned way to signal we want to ignore the return value 2024-08-13 11:38:22 -04:00
dd148557b5 enforce initialization 2024-08-13 11:34:11 -04:00
b459f33f5e avoid off-by-on overflow 2024-08-13 11:34:11 -04:00
6dad7f7396 forgot to flag development version. 2024-08-13 11:09:14 -04:00
063e6bcdc8 small tweaks 2024-08-13 11:06:04 -04:00
0d968374b8 small cleanup 2024-08-13 06:39:47 -04:00
164419bc1f cosmetic 2024-08-13 03:48:35 -04:00
bd2e1098ce avoid tiny memory leak 2024-08-13 03:44:30 -04:00
bb2c8d8da0 propagate font choices 2024-08-13 03:42:41 -04:00
206302a8e1 more consistent font selections by avoiding QApplication 2024-08-13 03:21:32 -04:00
8111697882 relax epsilong to accommodate MSVC++ 2024-08-13 01:08:57 -04:00
a5fe6543a7 check for errors of the geturl command and abort with message 2024-08-13 00:15:35 -04:00
17ea8d6381 update comment 2024-08-12 23:52:41 -04:00
4ee6910d98 add tests for 2NN MEAM potentials 2024-08-12 23:48:06 -04:00
1af5519379 update -restart2info and info docs 2024-08-12 22:57:21 -04:00
5bcfed5fce symlink potentials 2024-08-12 22:02:57 -04:00
a4bff8988b add missing potentials via symlinks 2024-08-12 21:55:13 -04:00
633ff19ab9 fix up some EFF inputs and create conventional log files 2024-08-12 21:51:59 -04:00
2115ac8971 use compliant box creation for 2d 2024-08-12 21:25:42 -04:00
8a77949db2 cleanly demo/test using restart files without leaving binary files behind 2024-08-12 21:19:46 -04:00
a1adf5d2d1 avoid mismatched new/deletep[] and malloc()/free() 2024-08-12 21:04:12 -04:00
24436e3463 fix typo 2024-08-12 11:11:32 -04:00
bbd72a8960 Switched the order of the checks for ERROR in the output to be first 2024-08-12 09:59:58 -05:00
462e9756ce fix box dimensions to comply with stricter requirement for 2d geometries 2024-08-12 10:54:00 -04:00
fe98a875bb must check more thoroughly 2024-08-12 10:26:56 -04:00
f98568c350 add completer for extra/* arguments to read_data 2024-08-12 00:57:50 -04:00
d759d8acf7 must have network access for the flatpak app 2024-08-11 23:40:17 -04:00
243b593426 add permission to desktop 2024-08-11 23:23:58 -04:00
accbd69c03 use more reliable conversion to const char * 2024-08-11 23:15:21 -04:00
9ab07ecba6 don't return temporaries 2024-08-11 22:55:37 -04:00
9080d6bfed add wizard for tutorial 2 2024-08-11 22:55:27 -04:00
23139db860 must use different conversion to const char* to avoid garbage output 2024-08-11 19:19:56 -04:00
c6e90eed9c update appdata for LAMMPS-GUI 2024-08-11 14:08:43 -04:00
231c3910ba fix up icon 2024-08-11 12:25:20 -04:00
c7f6d75856 add an "info" page to the wizard explaining the content of tutorial 1 2024-08-11 12:17:29 -04:00
cccb43bb9b turn off CA verification as it fails on Windows 2024-08-11 12:17:06 -04:00
9163c40b7d put the tutorial folders into the user's "Desktop" folder instead of home or application folder. 2024-08-11 12:16:46 -04:00
a92192d16b automatically include release version in binary package name 2024-08-11 09:58:21 -04:00
ccd77da836 integrate new tutorial logo 2024-08-11 09:31:09 -04:00
fedeeaef24 rework wizard for tutorial 1 to load manifest 2024-08-11 00:18:11 -04:00
6b0f529c0b Added more detailed output 2024-08-10 17:52:10 -05:00
a94fa9cd43 Merge branch 'develop' into collected-small-fixes 2024-08-10 11:54:50 -04:00
4b756e0b1c Merge pull request #4270 from lammps/fix-store-global-bug-fix
Fix a bug when restarting with stored data in fix STORE/GLOBAL for global vectors or arrays
2024-08-10 11:29:06 -04:00
22f25f0c00 whitespace 2024-08-10 10:13:36 -04:00
1617870fc3 Extracted the compiler name from log file names (g++, or intel) 2024-08-09 23:43:28 -05:00
f5b1ec668e enforce using the same style wizard dialogs on all platforms 2024-08-09 22:41:24 -04:00
423cf977fa wizard for tutorial 1 is almost complete 2024-08-09 18:30:24 -04:00
658cadceea add helper to purge directories recursively 2024-08-09 18:29:38 -04:00
f4fa78cf03 Fixed issues with detecting the basename of input (e.g. in.min.box) and the log file 2024-08-09 17:17:37 -05:00
b5929be883 Merge conflicts 2024-08-09 15:38:19 -06:00
8f8ff6f636 updating fix add/heat in example 2024-08-09 15:36:27 -06:00
a7c6b0ee42 Fixing errors in add heat 2024-08-09 15:36:27 -06:00
07ac930733 Typo 2024-08-09 15:36:27 -06:00
7ce2919092 removed debug info 2024-08-09 14:10:15 -06:00
a294a970e3 ensure restart with global data resets the vector/array sizes 2024-08-09 14:01:41 -06:00
d4b6bce4af grow a bit again 2024-08-09 12:22:18 -04:00
76fbece9ee clarification 2024-08-09 09:27:02 -04:00
90aaaea75a cleanup 2024-08-09 03:05:23 -04:00
28dc58a389 add 2NN MEAM potential files for High-Entropy Alloys 2024-08-08 21:56:58 -04:00
800335fe2f whitespace 2024-08-08 21:47:47 -04:00
9ce75ac45a remove menu entry to open web tutorial 2024-08-08 21:40:39 -04:00
2edc8dc1ac do not copy internal "noinit" keyword to clipboard 2024-08-08 21:40:20 -04:00
751d7f0197 improve error handling and reporting for MEAM user parameter file 2024-08-08 21:27:44 -04:00
54dc7776f2 small grammar tweak 2024-08-08 21:27:06 -04:00
444e85d46c convert e3b and srp 2024-08-08 18:57:53 -04:00
c12974f006 convert rest of tip4p 2024-08-08 18:13:19 -04:00
7f2267041e make smaller 2024-08-08 15:30:28 -04:00
23fb11736a rewrite 2024-08-08 15:30:20 -04:00
bd0574c11d Merge remote-tracking branch 'github/develop' into collected-small-fixes 2024-08-08 13:43:25 -04:00
62665dd079 Merge pull request #4266 from akohlmey/geturl-command
New geturl command to download files for LAMMPS inputs on demand
2024-08-08 13:42:21 -04:00
4ad7740676 fix up cut-n-paste error 2024-08-08 11:41:54 -04:00
dbf9c75509 some more atom info in "info system" 2024-08-08 11:22:02 -04:00
eac7c6a8ed rephrase 2024-08-08 11:12:30 -04:00
6f3056511b follow common convention for manual pages documenting multiple styles 2024-08-08 05:00:01 -04:00
45e90ac2f8 must not access thermo class, if not yet created 2024-08-08 04:37:59 -04:00
4f0e99793f refactor tip4p/long 2024-08-08 00:23:33 -04:00
1b29dc4920 refactor lj/long/tip4p/long 2024-08-08 00:19:12 -04:00
6203738dcb proposed solution
bit of trickery to allow type labels to be used before they are defined
2024-08-08 00:05:20 -04:00
b9e7c9534b switch branch 2024-08-07 22:47:25 -04:00
da26b69d8d partial implementation of wizards to start tutorials 2024-08-07 22:44:10 -04:00
03bc0768cd try to free resources allocated by inspecting restart files 2024-08-07 17:30:55 -04:00
6bc0cae2d4 fix up fix colvars docs 2024-08-07 16:07:58 -04:00
6544861bd3 document large restart file warning 2024-08-07 16:01:02 -04:00
323ecdd891 add confirmation dialog with warning when trying to inspect a large restart 2024-08-07 15:57:42 -04:00
7f8bcbd93a document "verbose" keyword to "geturl" 2024-08-07 14:01:23 -04:00
69294ef343 add "verbose" option for debugging which will divert libcurl logging to the screen 2024-08-07 13:08:35 -04:00
af68051981 switch libcur to verbose output 2024-08-07 12:41:32 -04:00
c8ba358f67 more debugging github runner for macos 2024-08-07 12:20:35 -04:00
cdab8d09ad need to update LAMMPS help message, too 2024-08-07 12:12:45 -04:00
a8bb296a17 switch to verbose mode to debug GitHub runner. 2024-08-07 11:15:13 -04:00
c47a32206b add versionadded tags 2024-08-07 10:47:58 -04:00
f197ce3165 expose new introspection to library interfaces for consistency 2024-08-07 10:37:20 -04:00
937c17f3b8 add tests for geturl command 2024-08-07 10:27:48 -04:00
85f322e4f2 add introspection support for -DLAMMPS_CURL 2024-08-07 10:27:19 -04:00
fe9c9cc77d fix highlighting bug and add geturl 2024-08-07 09:38:10 -04:00
dcb3871e58 doc integration of gerurl 2024-08-07 09:37:49 -04:00
3fa48dfa34 build system integration of geturl 2024-08-07 09:37:33 -04:00
b645a0c4b1 new command geturl 2024-08-07 09:37:09 -04:00
ce4e01fb78 author information only in cpp, kokkos version needs protected instead of private variables 2024-08-07 00:12:11 -04:00
c4510ba1ed type label support for pair_write 2024-08-06 23:51:49 -04:00
3833309725 type labels for pair_srp bond type 2024-08-06 23:37:14 -04:00
e605c1a62e type label for pair e3b oxygen 2024-08-06 23:27:34 -04:00
288f0a672d type labels for hbond pair styles K value 2024-08-06 23:13:44 -04:00
de7fdf99a3 type label for pair_coeff atm K value 2024-08-06 22:54:16 -04:00
530d6b5869 Merge remote-tracking branch 'github/develop' into collected-small-fixes 2024-08-06 18:39:36 -04:00
b25cb2adff Merge pull request #4261 from Colvars/colvars-update
Colvars update
2024-08-06 18:01:35 -04:00
b7bb8083ed implement -restart2info command line flag and document it 2024-08-06 17:14:46 -04:00
40b2b08f23 avoid uninitialized access and get a "clean" core dump if the wrong pointer is used. 2024-08-06 16:08:41 -04:00
4818aec25b cosmetic 2024-08-06 15:50:50 -04:00
2344b7bcc3 enable and apply clang-format 2024-08-06 15:34:16 -04:00
ce3b3b2950 remove dead code 2024-08-06 15:30:57 -04:00
8194a9fd2f do not confuse static code analysis 2024-08-06 15:22:29 -04:00
5509cd4a19 remove include/using/enum's no longer needed 2024-08-06 11:32:18 -04:00
3c524871f7 Revert "remove include/using/enum's no longer needed"
This reverts commit 83ce042a86.
2024-08-06 11:26:02 -04:00
83ce042a86 remove include/using/enum's no longer needed 2024-08-06 11:25:47 -04:00
19b7d3eac6 mention LAMMPS-GUI as visualizer option and tool to general dump image commands 2024-08-06 11:16:20 -04:00
0fe1f2c2be Merge branch 'develop' into plumed-plugin 2024-08-06 10:58:15 -04:00
8118d8e829 Merge pull request #2 from akohlmey/colvars-update 2024-08-06 15:05:06 +02:00
5f86046a92 document "Inspect Restart" feature 2024-08-06 06:36:54 -04:00
69ac247088 generate data file from restart with "pair ij" flag 2024-08-06 06:18:20 -04:00
543ceaaf89 when using "write_data" with "noinit" and "pair ij" generate missing pair coeffs by calling Pair::init_one() 2024-08-06 06:17:44 -04:00
056e3c0853 comply with @akohlmey's request
- revert my DBL_EPSILON change to EXPECT_FP_LE_WITH_EPS macro

- round the reference data for global_vector() to zeros for 2 unit tests to pass
2024-08-06 02:12:52 -04:00
1166531594 add 4 units tests for fix wall/region/kk 2024-08-06 01:24:21 -04:00
83ab240921 remove whitespaces 2024-08-06 01:21:02 -04:00
a98e9edd30 cleanup 2024-08-06 01:10:45 -04:00
494660700a reduce default size of image viewer 2024-08-06 00:59:23 -04:00
7d6ef008e0 uncomment after debugging done 2024-08-06 00:58:49 -04:00
fa4c1d6190 oops 2024-08-06 00:51:11 -04:00
cac6b5dc02 bugfix for gpu and simplify by replacing functor with operator() 2024-08-06 00:43:07 -04:00
f21dec8b06 Fixed issues with empty output, thus no Step nor Loop 2024-08-05 23:40:05 -05:00
f956fb1059 Update pair_coul.rst 2024-08-06 00:29:00 -04:00
5d5303b59e wrong link 2024-08-06 00:21:25 -04:00
bba2ec9adf type labels for MOLECULE tip4p styles 2024-08-06 00:08:11 -04:00
2627d90adf docs for FEP tip4p type labels 2024-08-06 00:04:16 -04:00
1753343727 copy/paste error 2024-08-06 00:01:35 -04:00
ca0e155b9d type labels for FEP tip4p styles 2024-08-05 23:56:47 -04:00
0b87199e4a docs for tip4p type labels update
lj/cut and lj/long
2024-08-05 23:50:09 -04:00
6492ef1320 type labels for other KSPACE pair_styles 2024-08-05 23:32:45 -04:00
ea3fb32805 comm info is more distracting than useful 2024-08-05 23:11:38 -04:00
654fd05f0e Merge branch 'develop' into collected-small-fixes 2024-08-05 22:43:50 -04:00
46c5ff624c follow the LAMMPS programming style more closely 2024-08-05 22:32:55 -04:00
445020359b simplify using LAMMPS_NS::utils functions 2024-08-05 22:13:20 -04:00
e5957ccc19 recreate example logs with new colvars version 2024-08-05 22:12:30 -04:00
f73a7bca5f "Not necessary, the variable is the same." 2024-08-05 22:10:05 -04:00
88a32e6916 refactor domain and fix_deform for KOKKOS 2024-08-05 22:01:40 -04:00
04eb6c421d remove class member "me" and apply clang-format 2024-08-05 21:47:12 -04:00
a42d632aed Merge branch 'develop' into colvars-update 2024-08-05 21:38:57 -04:00
843e678a78 Merge pull request #4255 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-08-05 20:53:15 -04:00
ae39fc5b21 fix logic bug 2024-08-05 20:24:38 -04:00
0216692698 add restart file inspector showing system info, data file, and snapshot image 2024-08-05 20:04:44 -04:00
3f79b7e493 Update pair_lj_cut_tip4p_long.cpp 2024-08-05 19:52:03 -04:00
7561e05218 output timestep info as part of the system info 2024-08-05 19:39:57 -04:00
89debb2141 add a hidden "noinit" flag to write_dump that works the same as for write_data 2024-08-05 19:31:21 -04:00
d9e0847c3b update read_restart docs about timestep info 2024-08-05 19:27:36 -04:00
9fa2ffa659 Merge pull request #4259 from jrgissing/add_some_more_type_label_support,again
Type label support for dump image, movie
2024-08-05 19:22:55 -04:00
133dee9ac1 Update Colvars library to version 2024-06-04 2024-08-06 01:07:43 +02:00
278accd9ea Update FixColvars to expand usage of fix_modify commands
See https://github.com/Colvars/colvars/pull/418

Also moving inthash code to a separate file to simplify future refactoring
2024-08-06 01:05:51 +02:00
72a0992054 Propagate OpenMP flags to Colvars library 2024-08-06 00:57:12 +02:00
e599663b2b Update dump_image.rst 2024-08-05 18:11:53 -04:00
c6eb1fb9dd Allowed to skip subfolders from input lists by commenting them out 2024-08-05 16:28:23 -05:00
54a5d5e605 improve flatpak building so it sets up the required repo automatically as well 2024-08-05 14:23:54 -04:00
b094113e7a update TODO list 2024-08-05 08:58:31 -04:00
4b50356aa8 step LAMMPS-GUI version number 2024-08-05 08:55:34 -04:00
52416afd95 remove comment 2024-08-05 08:55:20 -04:00
f6ea649585 add fix wall/region/kk 2024-08-05 06:30:01 -04:00
ab558fb174 remove whitespace 2024-08-04 23:39:57 -04:00
ea6905a4b7 bugfix for NPH target temperature ptemp 2024-08-04 23:33:19 -04:00
093490afad Update fix-timestep-nph_sphere.yaml 2024-08-04 23:21:29 -04:00
b83521b22e regenerated unit tests with run_torque 2024-08-04 23:15:33 -04:00
90cdb023dd added dipole support to kokkos version, plus 2 unit tests 2024-08-04 22:57:05 -04:00
af203f7fc7 added run_torque and EXPECT_TORQUES 2024-08-04 22:40:36 -04:00
f20aa6271c also support bcolor, bdiam
(type label support)
2024-08-04 19:35:02 -04:00
a0f4da37e9 docs for type label support 2024-08-04 19:09:18 -04:00
6ecaa7c7ba type label support for acolor, adiam
for dump_image, movie
2024-08-04 19:02:30 -04:00
6e1c2bde4d add missing icon file 2024-08-04 18:49:38 -04:00
66621a99fd update docs for LAMMPS-GUI to include recent additions 2024-08-04 18:48:35 -04:00
fd8a5d3e88 make default choice of image shininess selectable in preferences 2024-08-04 18:25:46 -04:00
fbc505c7c6 add shininess toggle button to image viewer, move buttons to second line on top 2024-08-04 17:51:34 -04:00
d1804fc776 Merge branch 'alphataubio-kokkos-bio' of https://github.com/alphataubio/lammps-alphataubio into alphataubio-kokkos-bio 2024-08-04 17:38:21 -04:00
c2e192e734 call the plumber to fix some leaks 2024-08-04 17:33:11 -04:00
0ebb56e5e8 remove commented out code 2024-08-04 17:14:20 -04:00
6671e3b410 Fixed valgrind tests with 1 proc and typo in the config file 2024-08-04 15:26:54 -05:00
d470919a44 implement auto-save on run and quit 2024-08-04 11:27:03 -04:00
1d1b448e18 update Linux installation docs to describe flatpak installation 2024-08-04 06:34:07 -04:00
298329dc74 bugfix dilate option, test now passes 2024-08-04 03:29:34 -04:00
0e9a419593 updated find_fix to get_fix_by_id for kokkos_omp test 2024-08-04 01:53:08 -04:00
84afef94f6 added "fix_modify test virial yes" and regenerated yaml files 2024-08-04 01:52:15 -04:00
c8c9e34e2d significant rewrite, all 3 tests pass 2024-08-04 01:51:26 -04:00
755fdc5986 fix false negative floating point test 2024-08-04 00:07:01 -04:00
e1275baa99 update LAMMPS-GUI TODO list 2024-08-03 23:09:12 -04:00
081169b239 automatically switch between showing stable, release, latests doc pages 2024-08-03 14:35:37 -04:00
14b552372d update help index table 2024-08-03 13:38:33 -04:00
92b33b3c07 export git and LAMMPS version strings through library interface 2024-08-03 13:33:21 -04:00
7c9703b416 update LAMMPS-GUI docs for changing the default of "Reformat on 'Enter'" 2024-08-03 09:16:34 -04:00
950237105d remove redundant entry 2024-08-03 08:58:38 -04:00
c6e03d2aa4 disable re-indent on return by default 2024-08-03 08:28:16 -04:00
4dfc15151a cap the maximum number of threads used by default at 16 2024-08-03 08:26:54 -04:00
62a2486d95 virial bugfix 2024-08-02 23:59:03 -04:00
70abf60d73 Merge branch 'develop' into plumed-plugin 2024-08-02 23:13:37 -04:00
c60c42cede correct order of initializater list 2024-08-02 23:11:56 -04:00
1096da2d01 plug memory leaks 2024-08-02 18:17:14 -04:00
0367f3ed07 avoid memory leaks from extracting scalar data from fixes 2024-08-02 18:17:01 -04:00
b41b2c9bfc must destroy before allocate to avoid leaking 2024-08-02 17:44:38 -04:00
d3919be102 don't leak file handle 2024-08-02 17:41:13 -04:00
a905c9fd32 make sure virial array is initialized in the constructor to avoid uninitialized access 2024-08-02 17:18:09 -04:00
0abc4f3464 initialize class data 2024-08-02 17:17:42 -04:00
859cbc90ef plug memory leaks 2024-08-02 17:17:23 -04:00
d03ca368b5 add a couple more suppressions 2024-08-02 16:03:12 -04:00
423ca92d39 use try/catch to delete dump on dump_modify error and then rethrow exception 2024-08-02 15:59:25 -04:00
332157fa9b fix typo 2024-08-02 15:40:40 -04:00
75061d4b9d docs: expand author list 2024-08-02 12:54:03 -06:00
b0bc154ab8 must provide branch name when building flatpak bundle 2024-08-02 12:29:15 -04:00
51e7e91c6d Use (short) LAMMPS version string as default branch for flatpak 2024-08-02 12:10:36 -04:00
2ef1e9936f partial bugfix (kokkos_omp test passes, fix_modify test virial yes still crashes) 2024-08-02 11:59:57 -04:00
b5460061be more details about running CLI utils in the flatpak bundle 2024-08-02 11:50:15 -04:00
1f7ef3e790 add target for creating a flatpak bundle to CMake 2024-08-02 11:46:31 -04:00
e73e522e40 update docs for installing LAMMPS-GUI 2024-08-02 10:19:42 -04:00
36a691e42e more small tweaks 2024-08-02 04:31:15 -04:00
d903026bd2 small updates and corrections 2024-08-02 04:16:05 -04:00
38611afeba add support for building LAMMPS-GUI as flatpak 2024-08-02 03:15:55 -04:00
9e1bf78201 enforce initialization 2024-08-01 22:12:18 -04:00
6b9e9ae5d8 remove commented out code 2024-08-01 21:48:16 -04:00
24fc761396 remove nodiscard warning 2024-08-01 19:55:54 -04:00
f62d1b5d55 complete rewrite of kokkos version
- array of structs set[i] from base class, converted to view- Host, converted to execution_space
- atom->nlocal converted to atomKK->nlocal- domain converted to domainKK- class now templated for DeviceType- SCALE not implemented in kokkos version
... actually by the time i was done it was a complete rewrite of the kokkos version
2024-08-01 18:55:16 -04:00
742bb3aae2 silence warnings 2024-08-01 18:46:48 -04:00
7a3ba6027b add option to skip death tests for use with valgrind checking of unit tests 2024-08-01 17:38:12 -04:00
99a2bd799e Merge branch 'develop' into kokkos-unit-testing 2024-08-01 16:23:35 -04:00
d0b023e6b5 Merge branch 'lammps:develop' into alphataubio-kokkos-bio 2024-08-01 16:18:15 -04:00
db230cd89e step LAMMPS-GUI patch level 2024-08-01 10:17:16 -04:00
a775cf4136 avoid error in image creation when sigma is zero 2024-08-01 10:02:42 -04:00
a41d20e412 make sure a dump with ID WRITE_DUMP does not exist (e.g. as a leftover from a previous crash) 2024-08-01 09:41:38 -04:00
252c8483c3 make LAMMPS python module compatible with mpi4py 4.x.x 2024-08-01 03:45:45 -04:00
4bec1788a6 make operator and inline functions const, plus remove printf debugging 2024-08-01 01:31:11 -04:00
fbf1451a2f add more crossterms to cmap unit test 2024-08-01 01:28:57 -04:00
18b3f6b4d4 Merge pull request #4250 from akohlmey/collected-small-fixes
Collected small changes and fixes
2024-07-31 18:21:23 -04:00
ff2639a196 Merge pull request #4252 from k-harris27/fix-empty-label
Fix reading empty type label string in restart
2024-07-31 17:37:32 -04:00
3da8e9a9a5 add cmap unit test 2024-07-31 12:59:24 -04:00
4f89b0b783 first draft fix cmap/kk 2024-07-31 12:58:14 -04:00
8bc38709a4 raise minimum required version of clang-format and extend search to newer versions 2024-07-31 09:10:43 -04:00
9c9fac49d7 Fix reading empty type label string in restart 2024-07-31 13:39:41 +01:00
5dff36aa43 apply clang-format 2024-07-31 06:49:55 -04:00
c540252d8b sphinx 7.4.x is the last series of versions compatible with current breathe 2024-07-30 22:31:20 -04:00
7e3d613c80 set to zero on underflow to avoid std::stod() throwing an out-of-range exception 2024-07-30 22:24:59 -04:00
cc1e0ac9c5 replace atoi() with std::stoi() 2024-07-30 21:50:44 -04:00
d68bc9f628 replace remaining calls to atof() with std::stod() 2024-07-30 21:02:55 -04:00
cb00839357 Merge branch 'develop' into plumed-plugin 2024-07-30 20:30:21 -04:00
a54e67bf1c Merge pull request #4242 from akohlmey/collected-small-fixes
Collected small fixes and updates for LAMMPS and LAMMPS-GUI
2024-07-30 20:04:19 -04:00
3c6adde66b replace atoi()/atof() with std::stoX() 2024-07-30 16:25:39 -04:00
7b2c7e0df8 new code owner 2024-07-30 16:17:24 -04:00
5016a0848f make compatible with per-type and per-atom masses 2024-07-30 16:16:05 -04:00
1254d579f7 reduce compiler warnings, remove dead code, follow LAMMPS conventions more closely 2024-07-30 16:13:06 -04:00
701280a648 lower GSL version requirement for compatibility with more (Linux) systems 2024-07-30 15:20:48 -04:00
b6834f33c0 modernize, more selective argument checking, better error messages 2024-07-30 14:21:56 -04:00
7decc33327 Fixed mpiexec valgrind command line, enforced a single proc run 2024-07-30 12:05:47 -05:00
75b09ed143 discuss in more detail MPI support in PyLammps. Some small improvements in MPI support
MPI related changes are:
 - Raise exception in PyLammps.eval() if called from MPI rank
 - Print (some) informational and warning messages only from MPI rank 0
2024-07-30 11:27:31 -04:00
a5a0620dca When KOKKOS has been compiled with GPU support the GPU *must* be used 2024-07-30 10:35:15 -04:00
bd2e071ef0 clarify that hybrid styles also do not write coeff data to data files 2024-07-30 08:59:51 -04:00
208216ba3d Merge branch 'kokkos-amd-gfx1103-support' into collected-small-fixes 2024-07-30 08:46:22 -04:00
cb6e71b72f fix typo 2024-07-30 08:46:01 -04:00
1c40cd1c22 avoid segfault 2024-07-30 08:45:01 -04:00
0ea45d89d9 clarify that all hybrid styles do not write Coeff sections 2024-07-30 05:45:24 -04:00
4a972c4311 fix recenter/kk works with coords, init, null plus 3 tests 2024-07-30 04:28:40 -04:00
620af2599b use std::stoX() functions 2024-07-30 03:57:23 -04:00
92cbbaab6a no longer used 2024-07-30 03:54:47 -04:00
a75862088a replace atof() with std::stod() 2024-07-30 03:43:26 -04:00
f0e9d0c96d update comment 2024-07-30 03:39:03 -04:00
5082d15844 use std::stoXX() functions and check for incomplete conversions and exceptions 2024-07-30 03:38:53 -04:00
53ae731e09 first draft fix recenter/kk and unit test 2024-07-30 03:30:38 -04:00
bbe1ba4499 Merge branch 'lammps:develop' into alphataubio-kokkos-bio 2024-07-30 02:09:44 -04:00
d2b12372f1 not used anymore 2024-07-30 01:31:56 -04:00
9aadb16c06 not used anymore 2024-07-30 01:31:38 -04:00
1035dcf735 get rid of ATOBIGINT 2024-07-30 01:18:22 -04:00
95513838da fix typo 2024-07-30 00:54:12 -04:00
361b8c25c4 use c++11 function to convert strings to numbers 2024-07-30 00:34:12 -04:00
d5e57ac02d reimplement using C++11 2024-07-30 00:33:44 -04:00
60d118a41a update to current list of compression tools 2024-07-29 20:13:27 -04:00
1d5aa19e4f document on-the-fly decompression for file viewer 2024-07-29 20:13:09 -04:00
f3c1697b10 support reading compressed files, same as LAMMPS itself. 2024-07-29 20:01:06 -04:00
9af53e3af8 portability 2024-07-29 20:00:30 -04:00
afcf00c399 update 2024-07-29 19:59:36 -04:00
6eb3679468 add commented out commands for visualization with LAMMPS-GUI 2024-07-29 19:59:22 -04:00
e1f17cec7d update list of supported devices 2024-07-29 17:11:51 -04:00
41254b26c7 backward compatibility not needed 2024-07-29 17:01:34 -04:00
2f2412bd95 correctly use versionchanged command 2024-07-29 15:24:05 -04:00
6bb89f6a14 Merge branch 'develop' into collected-small-fixes 2024-07-29 15:17:55 -04:00
04f7aaca26 Merge pull request #4243 from jtclemm/sph-update
Cleaning up and fixing bug in SPH package
2024-07-29 15:16:48 -04:00
a00b396159 re-enabled unit test 2024-07-29 15:12:16 -04:00
dc7768105a Merge remote-tracking branch 'github/fix_issues' into collected-small-fixes 2024-07-29 15:10:39 -04:00
36bec29736 Revert "temporarily remove non-compiling KOKKOS sources"
This reverts commit 4a2901bd5e.
2024-07-29 15:08:52 -04:00
490f3e6890 fix compilation 2024-07-29 15:07:51 -04:00
ddf6dd50cf Merge pull request #4224 from lab-cosmo/bugfix/parallel-ipi
Bugfix/parallel ipi
2024-07-29 15:06:49 -04:00
9c937113fd use strtoll() and strtod() instead of atoi(), atol(), atoll() and atof() 2024-07-29 14:45:43 -04:00
0b4dad1335 Made progress status as a whole string 2024-07-29 12:12:23 -05:00
e870217507 Handled cases to skip when resuming from last progress 2024-07-29 11:45:22 -05:00
d84b12ea63 define EPSILON consistently as static constexp 2024-07-29 11:57:46 -04:00
eeaa1eadeb add test for value tokenizer to check limits 2024-07-29 11:57:09 -04:00
abb19890f9 Fix another compiler warning 2024-07-29 11:46:22 -04:00
b773c12284 Tweak comment 2024-07-29 11:46:11 -04:00
d81bf66fe1 Fix issues with new KOKKOS hybrid topo styles 2024-07-29 09:29:40 -06:00
a4ad184d37 Fix Makefile build for UF3 with KOKKOS 2024-07-29 09:29:11 -06:00
2ff43fc8bd Fix compile issue 2024-07-29 09:27:28 -06:00
204fc79211 Remove unused var 2024-07-29 09:27:09 -06:00
3155b6f361 Avoided rewriting progress with completed runs, improved parsing log.lammps to yaml 2024-07-29 09:41:13 -05:00
20a1fc6a78 apply clang-format 2024-07-29 01:25:12 -04:00
8a13db457a small fix 2024-07-29 01:22:03 -04:00
7c4b1bdc4a update include files according to include-what-you-use testing 2024-07-29 01:18:08 -04:00
4d8e03e2ae document recenter option 2024-07-29 00:16:31 -04:00
15c2c59d0c add button to recenter the image on the currently selected group's COM 2024-07-29 00:06:53 -04:00
aa3c287999 add wrapper to extract value of equal style and compatible variables 2024-07-29 00:05:53 -04:00
7d69535d78 step LAMMPS-GUI version number to 1.6.5 2024-07-29 00:04:54 -04:00
84edc5ac81 correct documentation 2024-07-29 00:04:31 -04:00
08d47d389d remove include obsoleted in Qt6 2024-07-28 22:16:44 -04:00
e6a708d253 add support for AMD Phoenix APUs with HIP 2024-07-28 20:49:17 -04:00
4a2901bd5e temporarily remove non-compiling KOKKOS sources 2024-07-28 20:46:44 -04:00
d101fecf4d Fixed bugs with num_runs undefined 2024-07-28 16:47:56 -05:00
4f46b07d35 make more similar to pair style sw/kk 2024-07-28 16:22:46 -04:00
b9b62822ee add missing "override" property 2024-07-28 16:00:57 -04:00
b42ccf3a0f don't check for omp.h if the compiler identifies as Clang since the CMake check seems broken 2024-07-28 12:42:05 -04:00
26aba2c314 silence compiler warnings 2024-07-28 11:49:27 -04:00
5501f608f5 fix out of bound memory access bug detected by hipcc 2024-07-28 11:25:15 -04:00
ffdf499cb1 fix typo 2024-07-28 11:24:46 -04:00
3654f822f3 Merge remote-tracking branch 'github/develop' into collected-small-fixes 2024-07-28 03:31:08 -04:00
122e9176e7 Merge pull request #4240 from akohlmey/more-typelabel-support
Add some more typelabel support
2024-07-28 03:30:36 -04:00
45795acdbf import bugfix for dihedral style charmmfsw from PR #4190. Test passes. 2024-07-28 03:28:59 -04:00
8751d07375 fix bug in dihedral_charmmfsw_kokkos and update tests 2024-07-27 23:38:03 -04:00
517fadd167 skip kokkos_omp tests for now since they are failing 2024-07-27 21:11:21 -04:00
83297a1071 extend force style testers for bonded interactions to check KOKKOS/OpenMP
selectively imported from PR #4190 by @alphataubio
2024-07-27 21:06:52 -04:00
a5d0efcd5b make test environment consistent across all force tests 2024-07-27 20:42:42 -04:00
aa32273aa1 Allowed to skip input scripts whose name matches patterns, handled cases where runs completed but log.lammps has irregular format (multi, in.tmd) 2024-07-27 17:10:23 -05:00
a3775f785a add some installation info 2024-07-27 08:55:02 -04:00
6eb6d972e9 more doc tweaks 2024-07-27 04:38:20 -04:00
16fabe83ae Merge branch 'develop' into kokkos-unit-testing 2024-07-27 03:27:35 -04:00
ab0da442a4 Handled cases where log files have different thermo ouput columns than the reference log file (in.hyper.local) in subsequent runs 2024-07-26 23:51:23 -05:00
8b0aaa814e small tweak to refer to LAMMPS-GUI more consistently 2024-07-27 00:19:21 -04:00
06563b8255 Merge remote-tracking branch 'github/develop' into collected-small-fixes 2024-07-26 22:48:26 -04:00
7396426963 Merge pull request #4183 from alphataubio/spica-kk
Add Kokkos version of spica pair and angle styles
2024-07-26 22:45:47 -04:00
91f462e70b Add #include
Add #include that prevents Windows compile
minor touch-ups
2024-07-26 21:13:08 -04:00
08fdad12e8 fix typo and rewrap 2024-07-26 19:47:10 -04:00
a972a282a7 Adding remap v restriction to doc files 2024-07-26 17:43:04 -06:00
2a99b9957d simplify and shorten charmmfsw example. add reference logs. 2024-07-26 19:34:23 -04:00
e7d338573f Merge branch 'develop' into spica-kk 2024-07-26 19:10:46 -04:00
cabde6549e add backward compatibility with inputs created before the rename of SDK to SPICA 2024-07-26 19:08:59 -04:00
ca25071353 include generic accelerated style blurb 2024-07-26 18:33:07 -04:00
06767886de Merge branch 'develop' into collected-small-fixes 2024-07-26 18:32:49 -04:00
1014cd1e0e Merge pull request #4211 from megmcca/kk_hybrid_topo_a-d-i
Port hybrid angle, dihedral, improper topology styles to Kokkos
2024-07-26 18:31:19 -04:00
343d600410 make docs consistent with rest of manual and rephrase fix shake changes 2024-07-26 17:23:46 -04:00
50bf022946 Improved error messages in the log files 2024-07-26 15:19:01 -05:00
e0857ad558 Handled more cases with ERROR in log.lammps 2024-07-26 14:11:43 -05:00
e28de32a77 update docs, kk accel style 2024-07-26 13:06:17 -06:00
e317c18e1e whitespace 2024-07-26 12:57:22 -06:00
ce42418efc Merge branch 'lammps:develop' into kk_hybrid_topo_a-d-i 2024-07-26 12:56:27 -06:00
90d98d9a92 Added a config file for valgrind tests 2024-07-26 12:26:37 -05:00
5bcf124431 Converted the return results from iterate() into a dict, processed memory leaks if valgrind is used 2024-07-26 12:23:58 -05:00
59ef492982 Handled a few cases with mismatched columns in thermo output 2024-07-26 09:51:19 -05:00
a2f461c688 fix cut-n-paste doc issue 2024-07-26 10:35:07 -04:00
c0c69af709 update LAMMPS-GUI howto docs 2024-07-26 10:19:15 -04:00
7bae7ea2f7 add export to YAML to chart viewer 2024-07-26 10:04:39 -04:00
c8818a16c5 Add menu entries to open LAMMPS tutorial website 2024-07-25 22:14:06 -04:00
df4ae41283 update docs for added typelabel support 2024-07-25 21:25:14 -04:00
c343287f2c add conditional typelabel support 2024-07-25 21:15:16 -04:00
1a034af7d5 fix logic bug 2024-07-25 21:14:38 -04:00
68a6bc0693 Adding missing header file 2024-07-25 18:15:34 -06:00
3deffb0dfd typo 2024-07-25 18:10:27 -06:00
d43e87bce1 Missing word 2024-07-25 17:54:52 -06:00
49b377fc3d Adding errors to unpatched uses of vest with vremap 2024-07-25 17:51:48 -06:00
6abbbdba6c Patching vremap in SPH 2024-07-25 17:10:23 -06:00
e02ad1a3b2 Cleaning up SPH package, minor bug fixes 2024-07-25 17:02:22 -06:00
282183dc57 Update fix_epot_lepton.cpp
Add flags for .getVariableReference()
Add initialization in constructor
2024-07-25 17:52:24 -04:00
1a344853e0 Added more info on the number of input scripts per subfolder 2024-07-25 16:49:53 -05:00
1e41dfaeb9 Adding movie references to BPM/RHEO 2024-07-25 15:18:45 -06:00
26503c948a improve detection of triclinic box trajectory files 2024-07-25 16:59:41 -04:00
ff27bb8865 add missing space 2024-07-25 16:59:13 -04:00
0c5b9175d6 Fixed an issue with num_ref_runs not specified before use 2024-07-25 13:26:47 -05:00
590c7dcf8f Merge branch 'lammps:develop' into spica-kk 2024-07-25 13:54:44 -04:00
f84b18170f Reported different outcomes for the test runs, priotized running the input first, then processing the output, mem leaks and finally numerical checks 2024-07-25 12:19:00 -05:00
13fabe445e add check to detect whether there are overlaps between type labels and fix shake keywords 2024-07-25 09:07:23 -04:00
a278a6f951 restore original fix shake code 2024-07-25 09:02:47 -04:00
870306dd04 use preferred comparison method 2024-07-25 08:49:03 -04:00
e844ce3ddf re-align ReaxFF OpenMP version of ValidateLists with serial version 2024-07-25 08:48:43 -04:00
c25f9032ad add unit test inputs for fix epot/lepton 2024-07-25 05:24:40 -04:00
5d418e90a5 version is still TBD 2024-07-25 05:16:24 -04:00
4af280c9f0 small fixups 2024-07-25 05:14:46 -04:00
2251ac9127 apply clang-format 2024-07-25 05:12:11 -04:00
339911eeed whitespace 2024-07-25 05:11:14 -04:00
efdaf57058 Merge remote-tracking branch 'github/develop' into gsalkuin_develop 2024-07-25 05:10:21 -04:00
f2b778aa5e add new fix to .gitignore 2024-07-25 05:09:59 -04:00
eb5f45dfe7 Fixed bugs with progress file close 2024-07-24 23:50:18 -05:00
f254af2bab Updated logger and output format 2024-07-24 23:11:54 -05:00
c75b9a929c Fix typo 2024-07-24 20:35:12 -04:00
fa2db39c55 Edit docs 2024-07-24 19:43:18 -04:00
8ef96f6ff8 Add new fix 2024-07-24 19:05:44 -04:00
90291a9b3a Merge pull request #4237 from Yi-FanLi/pimd_langevin_lj
fix pimd/langevin: improve usage of lj reduced units
2024-07-24 18:58:12 -04:00
1c42a06f1b use enums instead of numbers. 2024-07-24 15:59:55 -04:00
7db2cd5979 Removing aunintended file 2024-07-24 12:19:08 -06:00
8b860515ab Flipping set group in gransurf examples 2024-07-24 12:15:59 -06:00
93bab0cfcc simplify parser for fix shake/rattle options and add typelabel support 2024-07-24 10:40:59 -04:00
20fb6a4279 add typelabel support to neigh_modify exclude type 2024-07-24 10:21:20 -04:00
732786d178 use preferred comparison method 2024-07-24 08:57:47 -04:00
fbd37bd5e9 Merge pull request #4235 from akohlmey/collected-small-fixes
LAMMPS GUI improvements
2024-07-24 00:04:24 -04:00
61c0001286 Merge pull request #4239 from lammps/occasional-neighbor-bug-fix
Bug fix for determining when an occasional neighbor list needs rebuilding
2024-07-23 22:37:51 -04:00
992b279b3a Merge branch 'develop' into pimd_langevin_lj 2024-07-23 21:34:30 -04:00
eaf875187c Fix bug in GPU/CPU overlap 2024-07-23 19:47:26 -04:00
ce0e513d8c Remove unused function 2024-07-23 17:42:23 -06:00
8bba2d12ec Fix bug in GPU/CPU overlap 2024-07-23 17:41:48 -06:00
c1c8525f4b fix typo in comment 2024-07-23 19:03:43 -04:00
91931f0ea2 Merge remote-tracking branch 'github/develop' into collected-small-fixes
# Conflicts:
#	doc/src/Tools.rst
2024-07-23 17:04:36 -04:00
afbcbc2dd6 Merge pull request #4238 from akohlmey/remove-lammps-shell
Remove lammps-shell tool as it has been superseded by LAMMPS-GUI
2024-07-23 14:58:40 -04:00
1bde65c1f3 Updated README with example uses, added progress file option 2024-07-23 10:01:29 -05:00
dbc1582c86 Reformated the screen output 2024-07-23 09:37:01 -05:00
b3c2083ff1 Split the input list before quitting for dry run 2024-07-23 08:53:42 -05:00
0210341489 whitespace 2024-07-23 05:09:33 -04:00
b459d0c9b9 apply clang-format 2024-07-22 23:58:10 -04:00
ed3ab86ba7 typo 2024-07-22 18:57:53 -04:00
d0528f7f02 Removing more obsolete args from nlist build_one() 2024-07-22 16:45:51 -06:00
4a783b74be Split the subfolders into num_workers and write out the separate text files 2024-07-22 16:53:12 -05:00
572c511830 sanity check that occasionsal list is assigned to an NPair class 2024-07-22 14:37:13 -06:00
c6b7143863 whitespace around comment 2024-07-22 14:12:52 -06:00
445251d569 simplify logic for checking whether occasional neight list needs to be rebuilt 2024-07-22 14:11:04 -06:00
244db720b9 the list of subfolders can be loaded from a text file 2024-07-22 14:58:50 -05:00
ad0ed5acf0 Fixing index->tag in pair methods 2024-07-22 12:24:51 -06:00
1cd3f859e7 Adding onesided flag to history 2024-07-22 12:24:51 -06:00
b551a8197f remove extra iteration 2024-07-22 10:57:49 -06:00
409e795027 remove extra iteration 2024-07-22 10:45:31 -06:00
9fd21fa065 Remove lammps-shell tool as it has been superseded by LAMMPS-GUI 2024-07-22 06:43:10 -04:00
70ee5495a2 mention dump_modify binary for VTK style dumps 2024-07-22 06:14:31 -04:00
1f14f36708 step patch level version 2024-07-21 19:11:01 -04:00
c05b184cca update documentation for file viewer feature 2024-07-21 19:10:15 -04:00
51b58b4249 Cleaned up and added comments 2024-07-21 18:06:34 -05:00
7aaa5edf29 Updated progress tracking to skip completed tests 2024-07-21 17:56:10 -05:00
7dc0ace48f file viewer can be called from File menu or context menu in editor if word under cursor is a file 2024-07-21 18:37:06 -04:00
97ffabda0e add (text) file viewer class 2024-07-21 18:36:20 -04:00
36665683d4 Updated progress tracking 2024-07-21 16:57:08 -05:00
ca859c1d17 Added progress to track the tests processed 2024-07-21 16:22:11 -05:00
47c6f1633c Reverted the changes to examples/melt/in.melt, no need to add #REG 2024-07-21 10:34:23 -05:00
3ddb202853 Removed the unnecessary thermo yaml file under examples/melt 2024-07-21 10:32:44 -05:00
695f25521d Cleaned up and fixed issues with in_place = False (using the provided in.lj for debugging) 2024-07-21 10:21:14 -05:00
f23835932c Updated README and cleaned up 2024-07-21 10:06:37 -05:00
e8f09bfb02 Rearranged the functions for processing #REG markers, maybe phased out later as not needed 2024-07-21 09:11:38 -05:00
9109b4d89e Removed input scripts, data files and ref thermo files that were previously used for debugging, keeping only in.lj 2024-07-21 09:01:03 -05:00
051ed89851 Reverted the unintentional changes to examples/bpm/impact/brokenDump 2024-07-21 08:58:34 -05:00
c689cea7d8 initialize in constructor rather than header 2024-07-20 23:48:39 -04:00
afe393706c repair death test 2024-07-20 23:32:19 -04:00
9413bb825f match lj/spica/coul/long as close as possible to lj/cut/coul/long 2024-07-20 23:25:46 -04:00
49ead6be10 update doc 2024-07-20 22:46:06 -04:00
ce0fd7dcb7 initialize lj parameters to 1 2024-07-20 22:34:27 -04:00
9676b0cb06 Merge branch 'upstream' into regression-tests 2024-07-20 16:46:49 -05:00
063d5d2fcd keep entries in roughly alphabetical order 2024-07-20 03:35:04 -04:00
382b738092 remove error docs from headers to comply with coding standards 2024-07-20 03:20:37 -04:00
ef3fbf08b7 whitespace 2024-07-20 03:20:13 -04:00
39efd3bb2d Merge branch 'develop' into small-patches 2024-07-19 13:58:52 -06:00
3d4074d574 Accessor for history, ensure saved bonds processed in update/special/bonds 2024-07-19 13:58:16 -06:00
953f7110f6 fix typos 2024-07-19 12:24:10 -06:00
dd3875d9b2 doc page for fix surface/global 2024-07-19 11:50:39 -06:00
884b9dd9bd add PALS env var 2024-07-19 15:34:02 +00:00
bae822fea7 update Makefiles 2024-07-19 15:23:49 +00:00
cf4654d9cf spelling 2024-07-18 19:07:59 -04:00
697a3a67b3 more doc pages 2024-07-18 17:05:21 -06:00
3017630c01 Merge remote-tracking branch 'github/develop' into collected-small-fixes 2024-07-18 18:40:22 -04:00
1ed6e153b6 Merge pull request #4214 from jtclemm/rheo
New multiphase fluids package
2024-07-18 18:38:51 -04:00
38fe7d8d2b more doc pages 2024-07-18 13:35:38 -06:00
1c99d7f813 bugfix for extracting 2d-data with lammps_pair_extract() 2024-07-18 13:37:04 -04:00
517681eb1e avoid passing uninitialized data 2024-07-18 13:23:20 -04:00
3b022e86db add extract_pair_dimension and extract_pair for fortran module 2024-07-18 07:39:15 -04:00
bb005e1858 k_cut_ljsq and k_cut_coulsq 2024-07-18 04:24:40 -04:00
23f37e6f63 minor fixes 2024-07-18 03:53:44 -04:00
992987eb6a fix formatting to make diff easier 2024-07-18 00:27:35 -04:00
85beac7107 compatibility with Qt-5.12 and Ubuntu 20.04LTS 2024-07-18 00:16:12 -04:00
78aacfb52e whitespace 2024-07-18 00:11:36 -04:00
93d40f494f revise documentation for changes in version 1.6 2024-07-18 00:06:51 -04:00
11c77b6136 drop icon since we now have the File menu entry and keyboard shortcut 2024-07-18 00:06:23 -04:00
1d1bf669f6 apply clang-format 2024-07-17 23:18:03 -04:00
7c804f7843 add feature to image viewer that copies the dump image command line to the clipboard 2024-07-17 23:16:49 -04:00
c3272297fc use LAMMPS-GUI consistenly (instead of LAMMPS GUI) 2024-07-17 23:01:15 -04:00
2e2dc2abe5 document new features 2024-07-17 19:14:22 -04:00
955db30b32 use LAMMPS-GUI consistently 2024-07-17 19:14:04 -04:00
f877a6f4ce more consistency changes 2024-07-17 19:13:10 -04:00
470b106d99 small tweaks for more consistency 2024-07-17 15:11:17 -04:00
1e75695558 Updating LAMMPS GUI documentation for version 1.6 2024-07-17 14:08:35 -04:00
de95eb907a Clarifying comment on breakage in bond hybrid 2024-07-17 11:53:01 -06:00
cab9219587 first doc page additions 2024-07-17 10:09:05 -06:00
6f63b7ce1c change molecule file format to use enhanced Molecule class 2024-07-17 08:17:56 -06:00
2aa9077403 merge with current master 2024-07-17 08:12:16 -06:00
5afde3f0f5 export to YAML functionality is only available if there is YAML format data 2024-07-17 04:14:51 -04:00
99ec87dddc Update pair_lj_spica_coul_long.cpp 2024-07-17 01:16:37 -04:00
d277a12e43 add missing icon file 2024-07-16 23:44:46 -04:00
2a1447ff03 extract YAML format thermo data from output window text 2024-07-16 23:38:18 -04:00
1b9302299a implement delete-all-images function with pushbutton in slideshow viewer 2024-07-16 22:54:38 -04:00
ccfdb4aee4 https://matsci.org/t/a-few-kokkos-development-questions/56598 2024-07-16 19:45:47 -04:00
dc84078156 spelling 2024-07-16 19:15:31 -04:00
5b29871198 update docs for new library function 2024-07-16 19:08:01 -04:00
8d4a80729a don't overwrite string type argument variables with their encoded version 2024-07-16 19:01:06 -04:00
4daba292d7 add unit tests for library interface function lammps_extract_pair() and python equivalent 2024-07-16 18:30:45 -04:00
83fda0a19d Updating geom methods in pair surf/granular 2024-07-16 14:40:57 -06:00
afa44e931b Fixed log file name issues, ignored log files that don't give thermo ouput as normally expected 2024-07-16 14:46:13 -05:00
b4c9bace70 Merge branch 'granular-triangles' of github.com:lammps/lammps into granular-triangles 2024-07-16 13:35:35 -06:00
fd336b3925 3d local connectivity with Rvous method, debugging 2024-07-16 13:35:24 -06:00
a5299b48d9 update view size 2024-07-16 12:33:49 -06:00
9730bb4f10 step LAMMPS GUI version to 1.6.0 2024-07-16 14:25:41 -04:00
44edc61a00 Fixed issues with log file names with overlapping patterns (e.g. log.10Jan22.abcfire.* and log.10Jan22.neb.sivac.abcfire.*) 2024-07-16 13:16:23 -05:00
c18c911ea7 Adding surf/granular pairstyle 2024-07-16 12:09:44 -06:00
d274989843 update indices 2024-07-16 11:11:31 -06:00
c781d11146 rework connectivity2d_local method for rvous comm 2024-07-16 07:33:18 -06:00
74780e74ef update TODO list with new ideas motivated by tutorial paper 2024-07-16 07:30:14 -04:00
615c1bb623 more compact and consistent window titles 2024-07-16 05:13:04 -04:00
90dee57aae try using LJ sigma for particle radius in VDW mode 2024-07-16 01:40:18 -04:00
3b853adaac add lammps_extract_pair_dimension and lammps_extract_pair to library interface 2024-07-16 01:38:21 -04:00
a9a896c677 Small doc changes, renaming status variable 2024-07-15 17:19:51 -06:00
1b5c42e1b7 add shortcut button for save buffer 2024-07-15 18:48:18 -04:00
207d1e20b9 warn about problematic compiler versions and C++ standard combinations 2024-07-15 18:23:59 -04:00
d7792956d6 bugfix for unittest/fortran/wrap_configuration.cpp 2024-07-15 17:47:22 -04:00
0f13f632e2 Merge pull request #4227 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-07-15 16:22:58 -04:00
6f8bedd01c sync minimum sphinx version with requirements file 2024-07-15 14:14:13 -04:00
7cfc34e45d the source_suffix option is supposed to be a map 2024-07-15 14:08:19 -04:00
046f57625a Merge branch 'develop' into collected-small-changes 2024-07-15 13:10:35 -04:00
0b08ee898c Merge pull request #4218 from robeme/electrode
Bugfixes and improvements for ELECTRODE package
2024-07-15 13:10:09 -04:00
bb15fa53cb Merge pull request #4230 from jrgissing/chunk_related_fixes
docs + minor msd/chunk refactor
2024-07-15 13:08:02 -04:00
b0238b1bf2 Merge pull request #4232 from rbberger/remove_sprintf_from_core
core files: replace sprintf with snprintf
2024-07-15 12:17:55 -04:00
1fe1aa0683 lower default update interval to 10ms 2024-07-15 10:28:22 -04:00
1d6959efe6 only print fix reaxff/bonds output during setup the first time 2024-07-15 06:58:05 -04:00
acd7bd111d remove dead code 2024-07-15 06:51:58 -04:00
6fedb6a1b8 fix compilation issue with latest QUIP/libAtoms code 2024-07-15 06:48:21 -04:00
970f518939 avoid out of range access 2024-07-15 06:25:03 -04:00
fb9a36c2f4 do not update the chart window when LAMMPS is not in a minimization or run 2024-07-13 19:12:46 -04:00
58513320d3 core files: replace sprintf with snprintf 2024-07-13 15:33:56 -06:00
6644a75519 tweak for connection reference 2024-07-13 14:29:15 -06:00
0305b08e82 ensure initialization of cindex and cleanup of vector data from TCP 2024-07-13 14:17:38 -06:00
f83b82f04f Handled more cases 2024-07-12 23:59:17 -05:00
1912083935 add warning about overflowing image flags and how to prevent that 2024-07-12 23:43:14 -04:00
a0fb12c265 disentangle the fix deform and fix deform/pressure pages somewhere for easier reading 2024-07-12 23:42:42 -04:00
cdcffeb3f5 debugging of local surfs and STL reader, added examples 2024-07-12 15:49:38 -06:00
64bf2f838b add support for STL files to fix surface/global 2024-07-12 08:29:33 -06:00
197db837e1 small changes 2024-07-11 20:19:31 -06:00
10a08a7d07 finish merge with GHub version 2024-07-11 19:38:00 -06:00
cb1c6a07ed merge with GH repo 2024-07-11 19:29:47 -06:00
06511a6e77 couple more doc tweaks 2024-07-11 19:17:09 -04:00
196ddd391d add STL file support, reworking local connectivity 2024-07-11 17:06:42 -06:00
0e6ff7d70a only call post_force() if it was selected as callback. 2024-07-11 15:02:38 -04:00
47af1775c2 update test since we have now one invocation also during setup 2024-07-11 15:02:03 -04:00
b889df7535 Adding temperature variable 2024-07-11 11:53:43 -06:00
a55092dc26 rewrap docs 2024-07-11 13:39:44 -04:00
c1c1d32136 The post_force callback should also be called during "setup" 2024-07-11 13:32:56 -04:00
9e917412c9 fix typo and rewrap lines 2024-07-11 12:39:42 -04:00
e51e0c1fb7 re-order entries 2024-07-11 11:37:42 -04:00
e0a0c94c6e Prepared for multiprocessing, maybe using separate input lists for different run_tests.py is sufficient 2024-07-11 00:04:26 -05:00
53b3bd69c0 Typo 2024-07-10 16:25:31 -06:00
6fe6a0b8f2 Converting surface global to use GranularModel 2024-07-10 16:24:38 -06:00
0812e77d27 clean whitespace 2024-07-10 16:13:24 -06:00
04490971e4 fix issues with neighbor lists and tri angmom 2024-07-10 16:09:13 -06:00
b9e263b1d1 re-add empty row between special and regular pair styles 2024-07-10 16:17:33 -04:00
00f214f323 Added the --dry-run option to print statistics for the LAMMPS build and examples folder only 2024-07-10 11:35:23 -05:00
8f6cf085e8 syncing table in build_packages/extra 2024-07-09 15:06:18 -06:00
d875c5bb0f Updated README 2024-07-09 09:02:44 -05:00
d6364f99b1 add STLReader class and 2 STL files in examples/gransurf 2024-07-09 07:46:08 -06:00
17b2282a1e Merge branch 'upstream' into regression-tests 2024-07-09 08:24:46 -05:00
a72cffd198 Changed indentation 2024-07-09 08:22:37 -05:00
dc86c3b3a1 add REQ_ONESIDED flag to neighbor requests 2024-07-09 01:31:09 -06:00
170c12d5df Handled error runs where log.lammps is not created (e.g. using more MPI procs than the number of physical CPUs) 2024-07-08 17:19:57 -05:00
0b3de48ef0 Added the config file for kokkos testing and enabled logging for the output of the failed runs 2024-07-08 16:32:45 -05:00
c7d729e3d6 Allowed to skip a list of input scripts as specified in the config file 2024-07-08 15:52:49 -05:00
d0e5640a75 add cvflag check, update mem usage 2024-07-08 05:05:36 -06:00
7673a904d1 update variable for consistency w/ non-kokkos 2024-07-08 05:05:06 -06:00
4bc97dc812 fix topo labels 2024-07-08 05:01:23 -06:00
aaf25602e3 add Q_MASK to datamask_read 2024-07-07 17:11:18 -04:00
b1a4f08dd2 Update in.charmmfsw 2024-07-07 16:56:00 -04:00
c77d2d952d Update pair_lj_charmmfsw_coul_long_kokkos.cpp 2024-07-07 16:55:39 -04:00
06e8f8eab2 cleanup 2024-07-07 15:57:37 -04:00
9c37e0f0df add charmmfsw example for kokkos gpu testing 2024-07-07 15:32:12 -04:00
2cb3cb3323 merging charmmfsw properly into spica (1st try) 2024-07-07 11:04:11 -04:00
bac8885739 minor changes 2024-07-07 06:19:42 -04:00
2459b7e975 oops 2024-07-07 05:58:27 -04:00
68231e9ba4 minor formatting changes 2024-07-07 05:49:03 -04:00
62ac8d0ab3 fixes 2024-07-07 02:59:43 -04:00
1a30fe5349 reset_atoms: one more grammar tweak 2024-07-06 18:03:43 -04:00
08cf19955d minor corrections to 'reset_atoms' docs 2024-07-06 17:57:18 -04:00
b1db2ddb3f store 'nchunk for msd' on first pass
because nchunk can be modified elsewhere
2024-07-06 15:57:18 -04:00
b7942ead3f chunk docs typo 2024-07-06 15:49:46 -04:00
54901eb8a4 remove pointless check 2024-07-06 09:55:41 -04:00
f34b6dacaf improve fix indent documentation 2024-07-06 09:55:22 -04:00
c3f76dcc81 cleanup 2024-07-06 01:12:23 -04:00
fdf9ffee73 use auto for type 2024-07-06 00:52:27 -04:00
9c8f7854ad avoid out-of-bounds string character access during completion 2024-07-06 00:50:15 -04:00
fecf38e116 move d_type = atomKK->k_type.view<DeviceType>() to compute() 2024-07-06 00:20:45 -04:00
87060b2d3e display selected C++ standard as part of the CMake summary output 2024-07-05 21:37:04 -04:00
f05c87cd43 use proper const qualifier 2024-07-05 21:31:52 -04:00
96f2e32591 fix typo 2024-07-05 20:15:30 -04:00
61e391b449 correct check for invalid header keywords 2024-07-05 19:28:04 -04:00
b89bc47626 more thorough checks for molecule file header keywords 2024-07-05 19:10:48 -04:00
a3bacfca65 more unit tests for tokenizer functions constains() and matches() 2024-07-05 18:55:55 -04:00
6fd962e132 spelling 2024-07-05 16:44:08 -04:00
880aa40d1b add missing header 2024-07-05 16:23:02 -04:00
2fc664d5da added kokkos views 2024-07-05 16:21:43 -04:00
dacc55b889 Prevent overflow in neighbor output 2024-07-05 16:20:28 -04:00
f0a11dbefd also promote ndatum in MyPoolChunk class 2024-07-05 16:16:04 -04:00
caa1b4a891 promote ndatum to bigint to avoid overflows 2024-07-05 16:12:08 -04:00
8fcde04097 add a "matches()" method to the Tokenizer and ValueTokenizer classes using utils::strmatch() 2024-07-05 15:45:49 -04:00
e03f0ac54e not using line normal 2024-07-05 11:07:40 -06:00
88a1720ece debugging 2024-07-05 11:01:47 -06:00
0604b8911c simply global indexing into surf connectivity 2024-07-05 10:29:03 -06:00
1e238362a7 change NULL to nullptr 2024-07-05 10:05:58 -06:00
b3ae1ecee6 merge with upstream changes 2024-07-05 10:01:10 -06:00
33d9454216 examples files for fix surface/local 2024-07-05 09:55:07 -06:00
4746fe74ed Allowed to specify tolerances for individual input scripts, overriding the global values 2024-07-05 09:37:06 -05:00
810698dc07 Skip neighbor folding at first call
There may be issues due to the fact that the NL is initialized
with the LAMMPS data file, that does not have to be the same
as the starting config in i-PI
2024-07-05 09:07:30 +02:00
dbded994f8 debugging 2024-07-04 21:14:04 -06:00
83fd64b362 changes to allowed global surf topology 2024-07-04 16:57:35 -06:00
eeaecb3ed3 macOS app bundle requires -D BUILD_TOOLS=yes 2024-07-04 15:13:06 -04:00
0d54f99fc0 Fixed a nasty bug when running the ipi interface with many MPI workers
Looks like the migrate() call should happen before trajectory folding
2024-07-04 17:34:18 +02:00
c0dfccdd64 add a few more flags to clang-tidy 2024-07-04 11:18:08 -04:00
da2bd44b73 modernize and reformat with clang-tidy and clang-format 2024-07-04 11:17:54 -04:00
cefe76919c make more use of auto and thus avoid having to specify the same type twice 2024-07-04 11:12:40 -04:00
10e3595b57 separately catch exceptions thrown by new 2024-07-03 22:20:06 -04:00
a4d69878fa update list of available sanitizers for Fedora 40 and GCC 14 2024-07-03 22:02:35 -04:00
f94b078936 use pkg-config instead of pkgconf consistently, since the latter comes with compatibility to the former 2024-07-03 21:21:35 -04:00
0fb7493658 spelling fixes 2024-07-03 19:17:11 -04:00
b6d11b5902 document GSL dependency and provide build instructions for RHEO package 2024-07-03 19:07:19 -04:00
96d58bb03e automatically set include/libs flags for GSL, if pkg-config is available 2024-07-03 18:32:42 -04:00
feba9640af not needed anymore 2024-07-03 18:22:27 -04:00
e1232af867 Missing flag and changing dependencies 2024-07-03 16:12:17 -06:00
9b52888e53 Adding RHEO dependency to cmake 2024-07-03 15:53:38 -06:00
ece17cf56f Adding rheo make support 2024-07-03 15:30:33 -06:00
17d736c0f9 Merge branch 'develop' into electrode 2024-07-03 15:17:43 -04:00
01502f70a4 print warnings only on MPI rank 0 2024-07-03 15:16:08 -04:00
33490fc402 align with other similar tests in LAMMPS 2024-07-03 15:09:25 -04:00
5d4481c82d cache 2nd version 2024-07-03 12:57:46 -06:00
b603fc663b update expected error message in death test for molecule files 2024-07-03 10:42:07 -04:00
289e2622c2 whitespace 2024-07-03 10:40:10 -04:00
bc8381ff78 Merge branch 'develop' into granular-triangles 2024-07-03 10:34:21 -04:00
1f02178263 make exclusion more specific 2024-07-03 09:32:37 -04:00
66552d80da Merge branch 'develop' into rheo 2024-07-03 03:42:44 -04:00
0a6fd5b097 get rid of some evil tabs 2024-07-03 03:41:57 -04:00
3385198b51 fix typo 2024-07-03 00:51:32 -04:00
993a7cce54 Merge pull request #4215 from lammps/atom-map-bug
Ensure atom map is reset by fix pour and fix deposit
2024-07-03 00:38:33 -04:00
7d5d8d4f49 adding more files 2024-07-02 16:41:41 -06:00
7739c7ad90 Add files via upload 2024-07-02 14:50:12 -07:00
2b84cd0524 Add files via upload 2024-07-02 14:47:48 -07:00
44ff2698c5 Delete examples/log.ctip 2024-07-02 14:47:12 -07:00
b6a007b769 Delete examples/in.ctip 2024-07-02 14:47:01 -07:00
a170ecc202 Delete examples/data.ctip 2024-07-02 14:46:49 -07:00
567d492121 Delete examples/NiO.eam.fs 2024-07-02 14:46:35 -07:00
ba675c0806 Delete examples/NiO.ctip 2024-07-02 14:46:20 -07:00
b98b82fb09 Create in.ctip 2024-07-02 14:45:34 -07:00
6dd47fbbb0 Add files via upload 2024-07-02 14:40:26 -07:00
5bd4b92826 Merge branch 'lammps:develop' into ctip 2024-07-02 14:39:24 -07:00
4b8f961098 Updating headers 2024-07-02 14:00:37 -06:00
9513c0edac small cleanup 2024-07-02 13:28:46 -06:00
9d529c6995 Merge branch 'hagerty_issue4140_kokkos_collective' of github.com:hagertnl/lammps-fork into hagerty_issue4140_kokkos_collective 2024-07-02 15:10:58 -04:00
d630fc67ab Updated remap kokkos to remove unused recv_proc and recv_bufloc buffers 2024-07-02 15:10:44 -04:00
ad4573e4f6 add fourth term 2024-07-02 11:08:05 -06:00
a26038e1ad remove some debugging comments 2024-07-02 07:18:25 -06:00
56a9192cf3 Merge pull request #4212 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-07-02 00:46:14 -04:00
edebab9a5c clarify possible map styles on atom_modify doc page 2024-07-01 14:57:26 -06:00
9cc0b7d793 tweak commnets 2024-07-01 14:43:06 -06:00
489e80151a adjust comments in source files 2024-07-01 14:41:31 -06:00
abcc9ed08d Merge branch 'develop' of github.com:lammps/lammps into hagerty_issue4140_kokkos_collective 2024-07-01 12:33:17 -06:00
f633b03602 ensure atom map is reset by fix pour and fix deposit 2024-07-01 09:33:20 -06:00
8ec5d83540 fix issue with maps in fix pour and fix deposit 2024-07-01 09:30:44 -06:00
aa75fe2584 debugging and add global examples 2024-07-01 08:14:04 -06:00
b8360631e1 Fix typos and add TF definitions to fix_electrode.rst 2024-07-01 10:35:54 +02:00
49c84dbe1e Bugfix virial with fix electrode 2024-07-01 10:05:28 +02:00
dc07a75011 whitespace 2024-06-30 18:36:18 -04:00
d75e66dc71 add unit tests for lammps_extract_variable() 2024-06-30 18:32:37 -04:00
f8a7fc787c correct documentation and simplify extracting vector length 2024-06-29 21:32:37 -04:00
44b861bf92 tweak screen output 2024-06-29 16:29:31 -06:00
f0cd399836 add fix surface/global files 2024-06-29 15:15:06 -06:00
6ad0145709 new special variable function is_timeout() 2024-06-29 04:02:33 -04:00
246698d3c2 Timer::_timeout should be double and it should be allowed to have fractions. 2024-06-29 03:43:26 -04:00
d5c90eebfd Flipping doc reference name 2024-06-28 17:27:13 -06:00
1326592f23 Proofing RHEO package 2024-06-28 17:07:23 -06:00
8397738978 add explanation about integrating new styles into packages 2024-06-28 18:32:58 -04:00
a8c7ebf47d must use the "roots" communicator only on world->me == 0
Thanks to @joshuakempfert. See issue #4210
2024-06-28 14:17:20 -04:00
6a8e7b4d70 update variables, templates, kk types 2024-06-27 22:56:12 -06:00
d7da58752b update commands, zero functors 2024-06-27 22:54:00 -06:00
62d564f81a add hybrid kk for angle, dihedral, improper styles 2024-06-27 22:49:03 -06:00
4fd14f4e1c update install actions 2024-06-27 22:44:25 -06:00
9fef3b68e0 update deallocate, suffix flags 2024-06-27 22:36:15 -06:00
0de8192a9b add kokkosable variable 2024-06-27 22:31:59 -06:00
185141bd7d use faster compression 2024-06-27 23:24:20 -04:00
2ad8119282 do not try to install plumed patches 2024-06-27 21:24:12 -04:00
1f7fb7b6f5 correct path (again) 2024-06-27 20:57:35 -04:00
42724fda74 note the ability to build ML-PACE and PLUMED as plugins 2024-06-27 20:56:20 -04:00
e75e63c218 also package the plumed.exe executable with the plugin 2024-06-27 20:08:15 -04:00
5014e408c0 use correct path to (downloaded) plumed source tree 2024-06-27 20:07:52 -04:00
3c0eaf6870 Moving stress calculation to rheo/prop/atom 2024-06-27 16:57:53 -06:00
2c2007ff55 silence warnings 2024-06-27 18:52:58 -04:00
0e706d4dcc add support for building the PLUMED package as plugin 2024-06-27 18:14:56 -04:00
cdb4a331a6 remove INTEL package from cross-compiler config.
It doesn't do much goos since we're not using an Intel compiler
and we are running out of capacity for auto-exported symbols
for the LAMMPS shared library (limited to 65k).
2024-06-27 06:27:58 -04:00
a74500f416 Merge pull request #4205 from akohlmey/next-release
Update version tags for next feature release
2024-06-26 23:26:04 -04:00
d47b9c6571 cosmetic 2024-06-26 21:49:02 -04:00
e72a786a44 fix typo 2024-06-26 19:58:09 -04:00
9d94345f09 Merge branch 'develop' into next-release 2024-06-26 19:50:27 -04:00
7b70ad928f Merge pull request #4203 from akohlmey/collected-small-changes
Collected small changes and bugfixes
2024-06-26 19:46:21 -04:00
09c121ebbc Prevent overflow in neighbor output 2024-06-26 14:56:28 -06:00
7da7e69ccb Fix integer overflow for large ReaxFF systems with KOKKOS package 2024-06-26 15:14:55 -04:00
14086cc9ad add warning about memory consumption 2024-06-26 10:50:38 -04:00
25985abfc0 add version tag 2024-06-26 09:50:52 -04:00
b1d1213dfd reformate, make small corrections, align with other doc files and use sphinx-design to make html more compact 2024-06-26 07:30:50 -04:00
252f48b2c1 Mention bonded force field primer from typelabel paper in bioFF howto 2024-06-26 07:27:11 -04:00
44b66cb56b various documentation fixups, dedup references, wrap paragraphs, adjust underlines, add missing index 2024-06-26 07:26:03 -04:00
8173142950 Merge branch 'develop' into collected-small-changes 2024-06-26 06:16:21 -04:00
4bb71195aa Allow NULL for eta in fix electrode 2024-06-26 12:08:45 +02:00
9ac821b3cb protect against 32-bit integer overflow 2024-06-26 05:07:53 -04:00
acc28e01c3 Merge pull request #4050 from akohlmey/bioff-doc-updates
Bio force field documentation updates
2024-06-26 04:27:33 -04:00
da2dc9a154 handle case of no LAMMPS instance or no simulation box 2024-06-26 01:30:14 -04:00
89193c8a66 expand scope of files to ignore that are created by cmake/ctest 2024-06-25 22:32:51 -04:00
ee85249ad6 update codeowners 2024-06-25 20:26:06 -04:00
8d280a73ac small programming style updates 2024-06-25 20:21:51 -04:00
baaa9dbedd move initializers for structs from header file to implementation, add constructors 2024-06-25 20:18:37 -04:00
e5250a76ac apply clang-format 2024-06-25 20:07:34 -04:00
e3fb1f24bd Merge branch 'develop' into collected-small-changes 2024-06-25 19:41:45 -04:00
0b0ec155ca whitespace 2024-06-25 19:40:07 -04:00
03695ac9b1 remove temporary files 2024-06-25 19:39:48 -04:00
3323e45372 Merge pull request #4168 from cesmix-mit/kokkospod
New features for the ML-POD package
2024-06-25 19:35:08 -04:00
b69e7e03fd small fix 2024-06-25 19:07:59 -04:00
116ac85a34 use consistent method to silence compiler warnings about unused parameters 2024-06-25 19:07:50 -04:00
b62a05a147 fix up garbled references to other doc pages 2024-06-25 19:06:23 -04:00
8e4ffdc84e update docs for fully integrating utils::bounds_typlabel() function 2024-06-25 18:23:07 -04:00
5cbe85ecf1 remove redundant error argument (accessible through lmp) 2024-06-25 18:19:41 -04:00
fcba5ee3c9 silence compiler warnings and apply clang-format 2024-06-25 15:01:17 -04:00
fd2eab9924 Remove commented out code 2024-06-25 14:53:05 -04:00
94742c043c Merge branch 'kokkospod' of https://github.com/cesmix-mit/lammps into kokkospod 2024-06-25 14:43:02 -04:00
1892ee35d4 remove printf or replace it with utils:logmsg 2024-06-25 14:42:57 -04:00
3453f13c2d correct capitalization 2024-06-25 13:33:29 -04:00
125da5723b whitespace 2024-06-25 13:31:33 -04:00
e6e89ec54a Merge branch 'develop' into collected-small-changes 2024-06-25 13:31:15 -04:00
b84c09d30e update version tags for next feature release 2024-06-25 13:30:38 -04:00
8fa0064dc2 Merge pull request #4204 from lammps/dpd-coul-slater-doc-page
Minor edits to new pair dpd/coul/slater/long doc page
2024-06-25 13:21:04 -04:00
e830dd9761 Merge pull request #14 from akohlmey/kokkospod
Update kokkospod branch to upstream and minor cleanups and corrections
2024-06-25 00:01:25 -04:00
6ef8472481 Merge commit 'refs/pull/4168/head' of github.com:lammps/lammps into kokkospod 2024-06-24 23:52:39 -04:00
6b659a6e56 Remove commented out code and turn off timing 2024-06-24 22:48:34 -04:00
ebbb2673f1 Merge branch 'kokkospod' of https://github.com/cesmix-mit/lammps into kokkospod 2024-06-24 22:34:52 -04:00
e195f1759f Remove unused parameters, change command name, and update documentation and examples.. 2024-06-24 22:32:35 -04:00
eb7c6e47ae Merge pull request #15 from stanmoore1/kokkospod
Small changes for https://github.com/lammps/lammps/pull/4168
2024-06-24 21:26:59 -04:00
a2fcec6aaa fix typos, spelling, incorrect markup, and correct and add more details for speedup note 2024-06-24 20:01:41 -04:00
667c673855 Update docs 2024-06-24 17:55:28 -06:00
a88a22c36e Small cleanup 2024-06-24 17:52:58 -06:00
d5e5630cc5 Comment out unused var 2024-06-24 17:42:17 -06:00
63f61a41dc Update .gitignore for POD 2024-06-24 17:41:21 -06:00
b9a850d93f Add logic for GNU Make 2024-06-24 17:40:47 -06:00
bf6e0d59c9 fix bug in general triclinic dump refactor reported by @stanmoore1 2024-06-24 19:18:49 -04:00
da095a1d79 minor edits to new pair dpd/coul/slater/long doc page 2024-06-24 16:36:38 -06:00
bf4aab68d3 update sdk -> spica 2024-06-24 17:45:53 -04:00
5442446460 remove commented out code 2024-06-24 17:44:07 -04:00
43bace6748 Fix typo 2024-06-24 15:16:37 -06:00
b0718a0983 Merge conflicts 2024-06-24 14:16:40 -06:00
b219bb8de8 Merge conflicts 2024-06-24 14:09:33 -06:00
21a42c1304 Small cleanup 2024-06-24 14:08:47 -06:00
9a41f6aedf spelling updates 2024-06-23 04:21:01 -04:00
01a85639f9 Merge branch 'develop' into kokkospod 2024-06-23 03:56:39 -04:00
0d1759d4a4 small programming style updates 2024-06-23 03:56:23 -04:00
e17dc38087 use utils::numeric to convert text to numbers 2024-06-23 03:56:10 -04:00
21685136be add braces to group commands according to indentation 2024-06-23 03:55:50 -04:00
79cc64766b initialize all pointers to null, reorder to match definition 2024-06-23 03:55:10 -04:00
3c81badc5c avoid namespace pollutions from defines in eapot.h 2024-06-23 03:40:04 -04:00
487a9ae73e return to alphabetical order 2024-06-23 03:09:54 -04:00
0e28eb0348 Make sure CMAKE_INSTALL_FULL_LIBDIR is defined when using it 2024-06-22 23:28:05 -04:00
5207b93fd8 small update for consistency 2024-06-22 20:33:44 -04:00
7e7f3c08f4 make check more specific but accelerator compatible 2024-06-22 20:29:26 -04:00
e6042c7db2 Merge branch 'develop' into spica-kk 2024-06-22 20:27:00 -04:00
1349d7632e flag KOKKOS support for added styles in commands lists 2024-06-22 20:26:45 -04:00
fb529bb9e8 trigger calling Fix::reset_dt() which may cause segfaults with respa 2024-06-22 20:04:40 -04:00
9dc85dec54 apply clang-format 2024-06-22 20:04:09 -04:00
5693c8ac33 modernize fix instance lookup 2024-06-22 20:03:14 -04:00
b8cbd1bfc3 use proper technical term 2024-06-22 14:26:24 -04:00
090ed81e77 avoid segfault in fix shake/rattle when timestep is changed before run 2024-06-22 14:20:23 -04:00
f1c5b4b68d avoid access to uninitialized step_respa pointer in Nose-Hoover fixes 2024-06-22 04:16:46 -04:00
353121c942 update compute descriptors 2024-06-21 22:08:20 -04:00
cfcd2b2068 Merge pull request #4202 from lammps/dump-triclinic-bug-fix
Dump triclinic bug fix
2024-06-21 14:29:31 -04:00
cf2dede47f whitespace 2024-06-21 12:20:59 -04:00
13f0e37a57 Merge pull request #4201 from lammps/amoeba-doc-page
Fix errors in fix amoeba/pitorsion doc page
2024-06-21 12:17:26 -04:00
eba1599f9c typo comment change 2024-06-21 09:35:10 -06:00
de684a15b6 typo code change 2024-06-21 09:33:12 -06:00
fc539b46ea change all function ptrs and 2 example dump files 2024-06-21 09:23:04 -06:00
7dae9c05ba changes for triclinic function ptr init 2024-06-21 08:59:09 -06:00
d0da16070b one more change 2024-06-21 08:00:50 -06:00
6b42545044 fix errors in fix amoeba/pitorsion doc page 2024-06-21 07:51:49 -06:00
241a8dda63 Merge pull request #4200 from akohlmey/collected-small-changes
Collected small fixes for development version
2024-06-21 09:42:57 -04:00
fe13768fa4 remove unused class member 2024-06-21 01:16:50 -04:00
c7f386ce9f fix missing arguments and cut-n-paste error reported by coverity scan 2024-06-21 01:13:36 -04:00
a6d51b7cc8 follow LAMMPS programming style more closely 2024-06-21 01:04:55 -04:00
41d24f5d57 apply clang-format 2024-06-21 01:02:02 -04:00
663aa8aa80 fix missing pairs within same bin 2024-06-20 22:33:11 -05:00
6d1fb9eb62 fix typo 2024-06-20 20:31:24 -04:00
fc98f626b4 Merge branch 'develop' into collected-small-changes 2024-06-20 20:13:22 -04:00
7e8f956e05 remove accidental commit 2024-06-20 20:09:28 -04:00
8ce284f125 Merge pull request #4145 from jrgissing/improve_type_label_support
Improve type label support
2024-06-20 16:30:22 -04:00
dfabe5d333 Merge remote-tracking branch 'github/develop' into collected-small-changes 2024-06-20 16:25:43 -04:00
65f2767d9d Merge pull request #4169 from ohenrich/cg-dna
CG-DNA: Real units and potential reader
2024-06-20 16:25:16 -04:00
734fdf4a46 rename CG-DNA potential files 2024-06-20 14:33:26 -04:00
00d7aa935f follow LAMMPS programming style more closely, silence compiler warnings 2024-06-20 09:39:21 -04:00
001ac67b3b apply clang-format 2024-06-20 09:23:32 -04:00
c8dc135b8f update according to "include-what-you-use" principles 2024-06-20 09:22:32 -04:00
2dc7de417a Merge branch 'develop' into improve_type_label_support 2024-06-20 08:56:02 -04:00
9c8c04a7b4 Merge branch 'develop' into cg-dna 2024-06-20 02:44:29 -04:00
8d69bd77ef don't throw an error when reading QEq parameters from file 2024-06-19 18:28:04 -04:00
f9a95f7256 fix virial accumulate for gran/hooke/history/kokkos 2024-06-19 16:55:18 -05:00
71c5e04121 Merge pull request #4179 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-06-19 17:39:57 -04:00
cb0af02748 Merge pull request #4193 from akohlmey/extra-command-package
Create new EXTRA-COMMAND package
2024-06-19 15:06:20 -04:00
ddec24308c small docs and spelling corrections and updates 2024-06-19 15:04:14 -04:00
778d11c79e Merge remote-tracking branch 'github/develop' into collected-small-changes 2024-06-19 14:46:04 -04:00
80556214e4 remove unused class member 2024-06-19 13:57:10 -04:00
629a9cbe3d Merge pull request #4188 from Eddy-Barraud/dpd_charged
add pair styles dpd/coul/slater/long and dpd/coul/slater/long/gpu
2024-06-19 13:50:46 -04:00
c4f5605518 Merge pull request #4197 from rbberger/library_interface_update
library: add comm->procgrid to extract_global
2024-06-19 12:04:07 -04:00
9b419b669d Merge pull request #4192 from gtribello/fix-plumed-cmake
Update to Plumed interface
2024-06-19 12:03:43 -04:00
ef902b03f9 Merge branch 'develop' into collected-small-changes 2024-06-19 12:02:56 -04:00
4e0bf6137d Merge pull request #4110 from uf3/ml-uf3
Implementation of pair_style uf3 and uf3/kk
2024-06-19 11:43:32 -04:00
45508baee5 major refactor for restart, data file handling. removal of dead code. 2024-06-19 11:09:56 -04:00
6ada6b7bf2 update example for dpd/coul/slater/long 2024-06-19 11:00:21 -04:00
0aff26705c correct force style input 2024-06-19 10:40:19 -04:00
37572225f4 Merge pull request #4191 from akohlmey/pair-hybrid-molecule
Add new pair style hybrid/molecular
2024-06-19 00:49:37 -04:00
83a024b26b add force style test 2024-06-18 21:41:34 -04:00
71b38521c5 reformat and remove duplicate NP_MULTI_OLD flags 2024-06-18 21:21:20 -04:00
2a132dfe8f add tests for PyLammps to check new exports 2024-06-18 21:13:33 -04:00
19a8313578 switch proc_grid to procgrid with backward compatibility for PyLammps 2024-06-18 21:13:14 -04:00
b9f8a5b811 Merge pull request #4184 from stanmoore1/pair_soft_kk
Add Kokkos version of `pair_style` soft
2024-06-18 20:52:34 -04:00
d54f38ff62 whitespace 2024-06-18 20:46:32 -04:00
740b206e7f Tightened up the definitions of deltamu's and conc's 2024-06-18 11:04:47 -06:00
43cc8696dd mention that verlet/split is not available for TIP4P 2024-06-18 08:46:18 -04:00
41227e0e93 apply param per type check only on atom types in fix group 2024-06-18 08:35:18 -04:00
3d1f933e21 port QEq parameter check from fix qeq/reaxff to fix qeq/shielded 2024-06-18 07:05:29 -04:00
5e72dc0d6b error out when extracting non-existent QEq paramters from ReaxFF, e.g. when using pair style hybrid 2024-06-18 06:59:12 -04:00
88ccaeddc1 always return initialized data when extracting per-type info 2024-06-18 06:58:26 -04:00
ab800b4e26 skip over groups with whitepsace in their name so we don't create illegal index files 2024-06-17 17:23:05 -04:00
c867bb3e28 enable and apply clang-format 2024-06-17 17:00:00 -04:00
9856ef7d81 better error handling when processing index files with illegal group names 2024-06-17 16:57:22 -04:00
318b43f358 update group2ndx/ndx2group docs 2024-06-17 15:02:43 -04:00
f4005e350a update fix plumed API version check and add reminder comments to build files 2024-06-17 07:11:56 -04:00
4be1b41aef class n func rename 2024-06-17 10:03:06 +02:00
d8c88c70ea Merge pull request #4189 from evoyiatzis/patch-2
Update fep.py
2024-06-16 01:27:42 -04:00
7704227bfb Merge pull request #4195 from jtclemm/small-patches
Various small patches for GRANULAR and BPM packages
2024-06-16 01:26:01 -04:00
59fb8a6835 avoid segfault trying to delete non-copied style 2024-06-15 14:08:14 -04:00
d2ea3b1ac5 add some tests for new features 2024-06-15 08:28:52 -04:00
ee0dd80cbe fix another typo 2024-06-15 06:17:13 -04:00
9b52f66a5a fix typos 2024-06-15 05:55:45 -04:00
cb3aa07287 update PyLammps to use added properties directly instead of parsing them. 2024-06-14 20:21:19 -04:00
1ce94e47d8 also make "comm->ghost_velocity" accessible 2024-06-14 20:20:53 -04:00
77b610a2bd also make comm->style, comm->layout, and comm->mode accessible through the library interface 2024-06-14 20:04:21 -04:00
241d36b14e skip kokkos_omp test for dihedral_style_charmmfsw
pair_style lj/charmmfsw/coul/charmmfsh is not available in kokkos so the kokkos unit test for dihedral_style charmmfsw fails.
2024-06-14 14:48:57 -04:00
1c4b2d460b remove respa from kokkos_omp tests 2024-06-14 14:47:56 -04:00
514039ed62 library: add comm->procgrid to extract_global 2024-06-14 08:10:24 -06:00
a4ac48addf add example file and author contrib 2024-06-14 10:13:48 +02:00
11ef510a93 Merge branch 'lammps:develop' into improve_type_label_support 2024-06-13 19:26:42 -04:00
03251e823f add terminal newline 2024-06-13 15:20:12 -04:00
360d59fc88 Create dihedral-charmmfsw-kokkos.yaml 2024-06-13 12:32:09 -04:00
424fb7ce06 Revert "Update dihedral-charmmfsw.yaml"
This reverts commit 1eb8afcba4.
2024-06-13 12:28:49 -04:00
af9d97ea07 Revert "added dihedral charmfsw kokkos test"
This reverts commit 95af3cdab2.
2024-06-13 12:27:56 -04:00
95af3cdab2 added dihedral charmfsw kokkos test 2024-06-13 12:27:08 -04:00
f915c144fd Revert "added dihedral charmfsw kokkos test"
This reverts commit 55b1b5d008.
2024-06-13 12:17:41 -04:00
55b1b5d008 added dihedral charmfsw kokkos test 2024-06-13 12:16:49 -04:00
fb23df7bf7 example input file 2024-06-13 17:35:45 +02:00
37f3233040 Check the atom style has an atom map 2024-06-13 17:14:13 +02:00
575853b27a correct headers' author 2024-06-13 17:11:54 +02:00
80e96d8c9b Bugfix electrode piston example 2024-06-13 17:00:01 +02:00
8eec17d409 add missing file for CMake build 2024-06-13 09:26:23 -04:00
e95598a716 doc fixes 2024-06-13 09:17:09 -04:00
397dc9a7f6 build system and maintenance updates 2024-06-13 09:13:55 -04:00
4b0adcc66a avoid segfaults when updating charts in simulations with fast thermo output 2024-06-13 08:34:25 -04:00
3865dda5a2 integrate new doc file into manual 2024-06-13 08:33:40 -04:00
1b040d7108 white space fix 2024-06-13 13:49:18 +02:00
8bbbe2dd6b Update pair_dpd_coul_slater_long.rst 2024-06-13 11:43:57 +02:00
35cbc84329 Update lal_dpd_coul_slater_long.cpp 2024-06-13 10:25:56 +02:00
2aacc017cb Changes to CMake to hopefully match Sachith's suggestions 2024-06-12 17:29:30 -06:00
ce7ba21b8b clarify potentially misleading comment 2024-06-12 17:02:25 -04:00
67d86b559e Clarifying BPM logic and removing spelling errors in doc 2024-06-12 14:44:13 -06:00
53db2af179 Adding ndata accessor to bond history 2024-06-12 12:27:34 -06:00
610172b9dc Merge branch 'lammps:develop' into cg-dna 2024-06-12 17:38:20 +01:00
2434ad6574 doc page 2024-06-12 17:29:16 +02:00
99263ed7d7 init_atomic with new pair name 2024-06-12 15:41:38 +02:00
2470d621c8 wrong header name... 2024-06-12 15:31:28 +02:00
3686a7fcf3 wrong cl / cubin header file names 2024-06-12 15:25:28 +02:00
84ed769ca3 changing the fix name and file names for coherence 2024-06-12 15:12:55 +02:00
7f1fbca66f update lal_base_dpd for optional charged 2024-06-12 14:30:54 +02:00
1a310f5729 Limit CoeffRest gran damping to non-cohesive, prevent potential nans 2024-06-11 17:03:15 -06:00
5ff853ce67 Merge branch 'develop' into small-patches 2024-06-11 16:56:28 -06:00
c190318649 Small doc page clarifications 2024-06-11 16:53:10 -06:00
7bb0da5255 Increased checks for broken bonds in bond BPM 2024-06-11 16:11:24 -06:00
2d9aad67d0 Consistent newton checks compute nbond/atom 2024-06-11 15:24:34 -06:00
e0228d1f15 Bond history compatability delete atoms 2024-06-11 13:16:34 -06:00
09bea938c5 fix copy-n-paste error 2024-06-10 14:26:32 -04:00
d61c94c0f3 move group2ndx and ndx2group to new EXTRA-COMMAND package. update docs. 2024-06-10 14:14:36 -04:00
567ba1f437 improve R value for SI units 2024-06-10 19:37:35 +02:00
77c04d3827 cosmetic changes 2024-06-10 09:15:14 -04:00
12b26eb0a5 Merge branch 'lammps:develop' into fix-plumed-cmake 2024-06-10 13:17:02 +01:00
fa8f73689e add /omp aliases to hybrid pair styles for consistency and added tests
without the aliases, the introspection check lead to skipping suitable tests
2024-06-10 07:33:17 -04:00
2a7f0fb863 update intel pair list support for molskip flag 2024-06-10 07:16:24 -04:00
5f85112102 fix hybrid sub-style detection for OPENMP package 2024-06-10 07:16:02 -04:00
1ec24db123 remove redundant and problem causing NP_INTRA flag 2024-06-10 06:46:22 -04:00
e0c2009525 update conditions, comments, better eflag handle 2024-06-10 11:33:58 +02:00
325350dce4 small tweaks 2024-06-09 12:03:40 -04:00
f442cb4f65 add unit tests for pair style hybrid/molecular 2024-06-09 11:44:35 -04:00
1f0cd8be2a fix neighbor list request bug 2024-06-09 11:40:34 -04:00
5fb1776fa1 add implementation of pair style hybrid/molecular 2024-06-09 10:31:37 -04:00
117786aa7b support molskip for r-RESPA neighbor lists 2024-06-09 10:31:16 -04:00
3f901f2d8e reset manybody_flag if threebody terms are turned on or off in sw pair style 2024-06-09 07:03:31 -04:00
91b9308d4f initial version of pair style hybrid/molecular 2024-06-09 07:02:18 -04:00
69a31b7da7 dependent python packages have caught up with changes in sphinx 7.3.7 2024-06-09 04:12:51 -04:00
5be5a53801 correct documentation for added bond hybrid/kk 2024-06-09 04:10:52 -04:00
43ce6b018a update Plumed support for version 2.8.4 and 2.9.1 2024-06-09 01:30:35 -04:00
ca8eb4fb68 update angle spica test 2024-06-08 21:57:24 -04:00
42b4ff4cc5 revert to develop test_angle_style, kokkos_omp test is in kokkos-unit-testing branch 2024-06-08 21:31:31 -04:00
bdf243e36a more kokkos tests 2024-06-07 19:41:58 -04:00
1eb8afcba4 Update dihedral-charmmfsw.yaml 2024-06-07 16:25:52 -04:00
0f4065f6cd Update test_improper_style.cpp 2024-06-07 15:41:14 -04:00
c4b1704bd3 added kokkos_omp tests 2024-06-07 11:13:41 -04:00
85c345cf2d duplicate calc of r 2024-06-07 16:51:32 +02:00
3defe567df Merge branch 'develop' of github.com:lammps/lammps into hagerty_issue4140_kokkos_collective 2024-06-07 07:28:58 -06:00
f5b2eb3a80 Update lal_dpd_charged.cu 2024-06-07 15:16:54 +02:00
aadeb1149d double host write, wrong dpd cond 2024-06-07 15:14:05 +02:00
575047c278 Update fep.py 2024-06-07 14:40:21 +02:00
afc8c752fd wrong kernel params 2024-06-07 11:31:33 +02:00
14f0a14c82 Merge branch 'dpd_charged' of https://github.com/Eddy-Barraud/lammps-custom into dpd_charged 2024-06-07 09:05:13 +02:00
001063250e allocate extra_fields 2024-06-07 09:05:11 +02:00
203194c7fb Merge branch 'lammps:develop' into spica-kk 2024-06-06 14:13:32 -04:00
91c718c467 Update Install.sh 2024-06-06 12:47:11 -04:00
fd373957cc Merge branch 'lammps:develop' into dpd_charged 2024-06-06 18:37:40 +02:00
7cb73ca1a1 maybe wrong scale 2024-06-06 11:23:38 +02:00
0da8be7525 Update lal_dpd_charged.cu 2024-06-06 11:20:21 +02:00
ce9f99e9c1 store_answersq for ecoul 2024-06-06 11:19:06 +02:00
5c9ac8e569 Update pair_dpd_charged_gpu.cpp 2024-06-06 11:14:28 +02:00
71d8fe564f wrong init var and still force... 2024-06-06 10:55:26 +02:00
06f1b1bffa wrong names, old var del 2024-06-06 10:50:30 +02:00
7d2764da27 only dpd coef update 2024-06-06 10:42:09 +02:00
be298634b7 readdress force sp_cl 2024-06-06 10:40:13 +02:00
69309cab0c header fix missing var 2024-06-06 10:36:31 +02:00
0e9fef01e7 class fix and header 2024-06-06 10:32:45 +02:00
2da4f23743 debug 2024-06-06 10:23:32 +02:00
c1db6a50ec move eflag 2024-06-06 10:10:36 +02:00
8eefc0d305 debug scale_in ; n_stride 2024-06-06 09:58:11 +02:00
aaf5200316 Merge branch 'develop' into collected-small-changes 2024-06-06 02:17:50 -04:00
1fa67290c3 updated pair style and angle style /kk in docs 2024-06-05 19:56:29 -04:00
a256021588 added 2 kokkos styles to legacy make system 2024-06-05 19:56:09 -04:00
44e13d97c6 removed more whitespace 2024-06-05 19:55:38 -04:00
f2db99193e removed whitespaces 2024-06-05 19:31:12 -04:00
235c1179b1 implemented evtally13 2024-06-05 19:13:57 -04:00
43d94985fa angle-spica.yaml using in.spica and data.spica
in.spica and data.spica based on  in.fourmol and data.fourmol with pair style lj_spica instead of pair style zero
2024-06-05 19:13:16 -04:00
eb7f947a0c cuda forces + init var 2024-06-05 17:49:27 +02:00
7ef9a93a75 Merge pull request #4167 from stanmoore1/kk_hybrid_topo
Port hybrid bond topology styles to Kokkos
2024-06-05 09:44:54 -06:00
c1c3f21b36 Need to update index as well 2024-06-05 09:05:13 -06:00
777577b05e Update docs 2024-06-05 09:00:01 -06:00
0cf67a09ff Merge branch 'develop' into collected-small-changes 2024-06-05 10:56:35 -04:00
ecdc1bc336 Update docs 2024-06-05 08:29:33 -06:00
c6f32b8cb3 Merge pull request #4185 from lab-cosmo/ipi-example
Updated i-pi example
2024-06-05 08:14:42 -06:00
9ea57acf54 pack4 cutoffs 2024-06-05 11:40:24 +02:00
7990da4ee8 Update angle_spica.cpp 2024-06-04 23:00:17 -04:00
860c190712 fixes 2024-06-04 22:56:09 -04:00
e7581af0f5 fixes 2024-06-04 22:43:53 -04:00
a093ddf3fd fixes 2024-06-04 22:20:27 -04:00
d1978dd136 support writing data files with PairIJ sections for all generic testers 2024-06-04 21:57:18 -04:00
261f0e0bb4 Update test_angle_style.cpp 2024-06-04 21:29:44 -04:00
42a3c754ec fixes 2024-06-04 21:26:58 -04:00
4f128fae81 fixes 2024-06-04 20:58:42 -04:00
e2a819e399 fixes 2024-06-04 20:53:41 -04:00
6bbd3be1a9 fixes 2024-06-04 20:45:47 -04:00
657befa959 second version angle_spica_kokkos and added kokkos_omp test to test_angle_style 2024-06-04 20:24:33 -04:00
8a94faee58 Updated i-pi example 2024-06-04 23:48:17 +02:00
de988b271b Merge branch 'develop' into collected-small-changes 2024-06-04 17:16:16 -04:00
d512326f06 Fix uninitialized variable 2024-06-04 15:06:34 -06:00
984d39366e Add Kokkos version of pair_style soft 2024-06-04 13:57:51 -06:00
f5253eb926 Merge pull request #4174 from akohlmey/atom-map-library-interface
Add support for extracting a few more properties and the Atom::map() function to the library interface
2024-06-04 13:23:31 -06:00
c1a71b3488 Merge pull request #4176 from akohlmey/remove-i-pi
Remove i-PI distribution from tools folder
2024-06-04 13:12:42 -06:00
b187001f38 atom charge and dpd/slater cutoff passing 2024-06-04 19:13:56 +02:00
e42c2b7bb5 more fixes 2024-06-03 19:21:15 -04:00
cd04de58dc pair_lj_spica_coul_long fixes, now passes unit test 2024-06-03 19:07:58 -04:00
b1570fc855 first draft angle_spica_kokkos based on angle_harmonic_kokkos 2024-06-03 18:56:39 -04:00
fc0b155de9 Dam example, generalizing non-quintic kernels 2024-06-03 15:04:24 -06:00
1792679bb8 first draft of pair style lj/spica/coul/long/kk 2024-06-03 14:28:31 -04:00
8573152988 Update src/QEQ/fix_qeq_ctip.cpp
Co-authored-by: Axel Kohlmeyer <akohlmey@gmail.com>
2024-06-03 11:11:40 -07:00
118fa8e209 must reset "eval_in_progress[]" flags to avoid bogus circular dependency errors 2024-06-03 07:47:59 -04:00
34a037ccfb workaround for xdg-open and incompatible shared libs 2024-06-02 09:41:58 -04:00
7258b2972a small LAMMPS-gui build documentation updates 2024-06-02 04:39:08 -04:00
e2e17b1326 CTIP pair style and qeq fix implemented 2024-05-31 13:29:49 -07:00
7df21a0e79 remove unused variables 2024-05-31 12:11:20 -04:00
c69e905cd6 Merge branch 'dpd_charged' of https://github.com/Eddy-Barraud/lammps-custom into dpd_charged 2024-05-31 17:07:25 +02:00
9b14a880dc charge pointer and corrections 2024-05-31 17:07:22 +02:00
154280899d Merge branch 'lammps:develop' into dpd_charged 2024-05-31 15:24:08 +02:00
fcdcf65995 creation + working CPU
new pair style dpd/charged which is the combination of dpd and coul/slater/long
Working on CPU, GPU in progress
2024-05-31 15:12:37 +02:00
1d7fa4f1a8 register build number for Windows 11 24H2 2024-05-30 19:41:28 -04:00
b5f8d4b46c fix memory leak for fix_dynamic(a.k.a. neigh/history) 2024-05-30 14:34:15 -05:00
61b8619f07 let dump_modify types numeric revert labels 2024-05-30 11:34:41 -04:00
788428ebf9 more corrections 2024-05-29 09:00:54 -04:00
10d09aca74 apply corrections to i-PI package on PyPi 2024-05-29 08:51:53 -04:00
1a83fefc70 add false positive 2024-05-29 08:38:54 -04:00
1697f2a465 Merge branch 'develop' into remove-i-pi 2024-05-29 08:36:01 -04:00
bdbfa7f6e2 track pair_brownian changes in COLLOID 2024-05-29 03:29:37 +00:00
8abaf20ae6 Merge branch 'develop' of https://github.com/lammps/lammps into lubricate 2024-05-29 03:18:36 +00:00
13d42b7955 update sphere_flag to radius_flag 2024-05-28 22:11:52 -05:00
1cf1f0daab update false positives 2024-05-28 20:04:12 -04:00
e6a3462018 replace non-ASCII character 2024-05-28 19:59:42 -04:00
2d7515218c improve wording 2024-05-28 19:55:59 -04:00
e8ee0d9e71 Merge pull request #4171 from akohlmey/sort-vector
Add special variable functions sort() and rsort() for sorting vectors by value
2024-05-28 16:22:08 -06:00
05ba777c0a Merge branch 'develop' into remove-i-pi
# Conflicts:
#	doc/src/fix_ipi.rst
2024-05-28 18:03:03 -04:00
dedcfa157c Merge pull request #4157 from lab-cosmo/bugfix/ipi-neigh
Performance improvements for fix_ipi
2024-05-28 15:06:15 -06:00
b7f86f6e34 Removed more whitespace 2024-05-28 11:31:42 +01:00
017d69f0e1 Removed whitespace 2024-05-28 11:19:32 +01:00
09a57c01da Corrected email address 2024-05-28 11:02:57 +01:00
33351704a5 Invisible mais penible 2024-05-28 08:40:19 +02:00
bd5c600608 dump custom, 'typelabel' attribute
writing strings to dump files previously was not implemented in general way.
did not refactor to make more general.
NOTE: added value to middle of enum
2024-05-27 23:58:58 -04:00
2afbf229ff mention the i-PI removal 2024-05-27 19:00:38 -04:00
8f4cf55ada update docs for i-PI removal 2024-05-27 18:58:18 -04:00
475cddfa36 remore i-PI distribution from tools folder 2024-05-27 18:49:40 -04:00
aa8cd7a4b9 Updated the documentation for i-PI 2024-05-28 00:07:07 +02:00
5685c5c74b Fixed list of supported version of plumed 2024-05-26 19:17:00 +01:00
ed675cb306 Added setting of extscalar in fix_plumed 2024-05-26 19:13:28 +01:00
345d559a37 Merge branch 'master' into fix-plumed-cmake 2024-05-26 11:51:35 +01:00
c2ce733d5d whitespace 2024-05-25 07:11:02 -04:00
75a325751e implement support for lammps_map_atom() to plugin loader, Fortran module, swig 2024-05-25 07:01:28 -04:00
8ea31bb5c8 add some unit tests for python wrapper of lammps_map_atom() 2024-05-25 05:59:25 -04:00
3bc367e0b0 implement suggestions made by @rbberger 2024-05-25 05:00:08 -04:00
694faf3235 register lammps_map_atom() with the documentation 2024-05-25 00:31:01 -04:00
fdbaf6feff spelling fix and update false positives 2024-05-25 00:22:38 -04:00
9f0816c3ba add support for lammps_map_atom() in python module 2024-05-24 23:50:11 -04:00
0ec86181f2 add support for 'sametag' array 2024-05-24 23:49:25 -04:00
3701d330c4 add unit test for new library function and settings 2024-05-24 23:03:53 -04:00
e53cc86622 support extracting few more global properties and add interface to Atom::map() 2024-05-24 19:54:26 -04:00
dad0d2651b Merge pull request #4172 from stanmoore1/deallocate_topo
Fix issue with virtual inheritance in Kokkos deallocate_topo function
2024-05-23 15:56:51 -06:00
29e64748c0 Fix issue with virtual inheritance in Kokkos deallocate_topo function 2024-05-23 12:18:18 -06:00
f8d5a898bf Merge pull request #4166 from jrgissing/minor-doc-updates
Minor doc updates
2024-05-23 12:17:00 -06:00
371ec2036f support trailing brackets for sort() and rsort() 2024-05-23 01:24:41 -04:00
e18395cf6e add versionadded marker 2024-05-23 00:16:47 -04:00
4b81337b6a add documentation for new special variable functions 2024-05-23 00:09:54 -04:00
c95389d58c add unit tests for sort() and rsort() special function 2024-05-22 23:57:13 -04:00
2fbfa623cd fix fdotr and update the force-styles unittest 2024-05-22 23:56:16 -04:00
272ce64272 add special function for sorting vectors 2024-05-22 23:46:36 -04:00
5ffff255ea simplify with STL classes 2024-05-22 23:46:13 -04:00
c1538c2f78 move varstyle array definition to Variable class so it can be used in a more general way 2024-05-22 23:42:56 -04:00
86abf4f680 Fix input file bug and update examples 2024-05-22 21:25:31 -04:00
fafecd0584 Merge branch 'cg-dna' of https://github.com/ohenrich/lammps into cg-dna 2024-05-22 16:01:46 +01:00
c8a4951cdf Merge branch 'lammps:develop' into cg-dna 2024-05-22 16:01:16 +01:00
ad81558fe0 Included values in real units 2024-05-22 16:00:58 +01:00
938d117890 Updated tests to contain full stdout 2024-05-22 15:53:09 +01:00
749e259294 Moved test script 2024-05-22 14:15:48 +01:00
8f61bc57d2 move xhold checks caller-side
this also allows it to fall-back on do-nothing rather than crash
2024-05-22 10:02:52 +02:00
c2e4ad220f Update Ta example 2024-05-22 00:37:47 -04:00
f64193dfa4 fix whitespace 2024-05-21 23:42:52 -04:00
1d38550763 replace malloc with memory->create 2024-05-21 23:39:49 -04:00
b010d9cd8c Initialize sum to zero 2024-05-21 22:52:11 -04:00
5d6db7e434 allocate memory for work 2024-05-21 22:39:27 -04:00
ac561095b1 Change int* to tagint* 2024-05-21 21:51:26 -04:00
d42b8ebb6c make use of new dump_modify in examples 2024-05-21 19:40:28 -04:00
3b091c0bd4 type label support for dump xyz 2024-05-21 19:35:04 -04:00
8314254245 Merge branch 'lammps:develop' into kokkospod 2024-05-21 10:12:37 -04:00
4104e73bcd Delete InP training data 2024-05-21 09:45:29 -04:00
44ef81e900 documentation and examples 2024-05-21 09:39:36 -04:00
a8687b5372 Merge pull request #4164 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-05-20 14:46:30 -06:00
ea3bd6043f whitespace 2024-05-20 14:36:01 -06:00
c55901f8ce Port hybrid topology (bond/angle/dihedral/improper) styles to Kokkos 2024-05-20 14:28:31 -06:00
30704d095d support that cmdargs is used multiple times and may be bytearrays directly 2024-05-20 16:00:19 -04:00
58653e0a87 Merge branch 'lammps:develop' into cg-dna 2024-05-20 15:10:52 +01:00
00cb38e823 real unit and potential file examples (#16) 2024-05-20 15:08:06 +01:00
658dcef145 fix bug with newton_bond off 2024-05-20 06:21:23 -04:00
0577e1ff77 install runtime dlls for LAMMPS library only with -DBUILD_SHARED_LIBS=yes 2024-05-20 06:08:43 -04:00
669819405b Merge branch 'develop' into collected-small-changes 2024-05-20 02:55:52 -04:00
8d25c510c1 Draft examples, patches, clarify interface reconstruct in RHEO 2024-05-19 11:22:52 -06:00
77239a75dc Merge pull request #4162 from stanmoore1/kk_update_4.3.1
Update Kokkos library in LAMMPS to v4.3.1
2024-05-18 09:11:50 -06:00
83d5edb032 Merge branch 'kokkospod' of https://github.com/cesmix-mit/lammps into kokkospod 2024-05-18 08:17:51 -04:00
b5fe3d5b06 update kokkospod 2024-05-18 08:17:48 -04:00
b434c4d119 Merge branch 'lammps:develop' into kokkospod 2024-05-17 17:07:09 -04:00
feae228329 New force calculation 2024-05-17 17:05:50 -04:00
51f009c273 incorrect pair-coul package listings 2024-05-16 15:21:45 -04:00
f2d236eca1 improper styles moved to EXTRA-MOLECULE 2024-05-16 15:08:02 -04:00
9c5d9686f5 deform/pressure is in EXTRA-FIX 2024-05-16 15:03:03 -04:00
febf7c38d3 add reaxff/species delete citation 2024-05-16 14:49:33 -04:00
410cda27e0 keyword was changed at some point 2024-05-16 14:38:04 -04:00
6aec49619f remove redundant initializers from headers 2024-05-16 09:42:00 -04:00
c99e582658 Need to manually enable rocthrust in Makefile build 2024-05-15 16:33:49 -07:00
83cfa0bfdd Set rlogarg to intermediate value, force capped at 35 LJU 2024-05-15 22:50:37 +01:00
5f6f6ba0d6 Reset rlogarg to original value 2024-05-15 22:19:31 +01:00
b31071e18f Removed exit status bug 2024-05-15 22:03:56 +01:00
852becb32a Update Makefile comment 2024-05-15 14:44:50 -06:00
3805a01448 Update CMake 2024-05-15 14:42:01 -06:00
8fbb959ab3 Add support for MI300A with unified memory 2024-05-15 14:40:41 -06:00
5d98c073a4 Capped force debugging completed 2024-05-15 21:25:08 +01:00
a495aff480 Update Kokkos library in LAMMPS to v4.3.1 2024-05-15 14:14:08 -06:00
16b2ed5cc9 initialize pointers to null in constructor 2024-05-15 13:49:54 -04:00
69b8a8c7b3 remove dead code 2024-05-15 13:49:07 -04:00
c0daa9550a Reformatting 2024-05-15 16:47:44 +01:00
17e0e785ab Corrected typo 2024-05-15 16:45:52 +01:00
a7fe12cd7b Reformatting 2024-05-15 16:07:59 +01:00
0e9c3fb768 Updated test script 2024-05-15 15:26:58 +01:00
59ce8c966c Corrected energy for capped force potential 2024-05-15 15:24:36 +01:00
343f8afbf6 Many minor tweaks, adding self/mass + oxide noshift 2024-05-14 14:47:11 -06:00
008a8fcb11 Merge pull request #4159 from evoyiatzis/patch-1
Make compute stress/mop and stress/mop/profile compatible with 2D systems
2024-05-14 13:05:41 -06:00
991f4ed4fb Merge pull request #7 from akohlmey/ml-uf3
Update example with new syntax
2024-05-14 11:09:10 -04:00
83a4ff06bd fix segfault 2024-05-14 08:14:38 -04:00
c8821606fb Merge branch 'develop' into patch-1 2024-05-14 07:25:34 -04:00
b5ecea502a Changed folding logic to use minimum_image rather than pbc 2024-05-14 08:51:40 +02:00
1f52d1769d update ML-UF3 example 2024-05-13 20:29:20 -04:00
17c099488a remove unused variables 2024-05-13 20:20:03 -04:00
4302d65811 fix spelling 2024-05-13 20:19:50 -04:00
49f20229ad Merge branch 'develop' into ml-uf3 2024-05-13 20:16:24 -04:00
2dc5931829 Fix whitespace 2024-05-13 22:34:21 +02:00
bc38b55941 Removed iostream import
Leftover from debugging output
2024-05-13 22:33:48 +02:00
7b728cd434 No need to go through the whole list if one atom has moved enough to trigger re-compute of the NL 2024-05-13 22:33:48 +02:00
ad90c9836f Just some additional comments, and removed debug output 2024-05-13 22:33:48 +02:00
fe19a7efb5 disable Nagle's algorithm for internet socket 2024-05-13 22:33:48 +02:00
bb471b1c86 Minimally-invasive implementation of the ipi-side modification 2024-05-13 22:33:48 +02:00
b3fc34f240 Try a (dirty) fix to the i-pi neighbor list update problem 2024-05-13 22:33:48 +02:00
c9049c090d Cleaned up memory deallocation logic, improved comments on remap_kokkos.h for collective fields 2024-05-13 15:47:25 -04:00
f05a551ffe Update compute_stress_mop.cpp 2024-05-13 21:32:17 +02:00
ada53dc879 Merge pull request #4161 from lammps/doc-write-data
Incomplete info on write_data command syntax
2024-05-13 13:26:15 -06:00
47c86cdf65 Update compute_stress_mop.rst 2024-05-13 21:26:01 +02:00
86103fa89b revert changes for triclinic boxes in compute_stress_mop.cpp 2024-05-13 21:23:50 +02:00
ed507dc676 revert changes in compute_stress_mop.h 2024-05-13 21:20:32 +02:00
9e755cd0af Merge branch 'lammps:develop' into ml-uf3 2024-05-13 15:10:58 -04:00
4330530237 Merge pull request #4068 from dhairyaiitb/develop
Coefficient of restitution based damping in granular models
2024-05-13 12:43:19 -06:00
0a389bf673 Merge branch 'develop' of github.com:lammps/lammps into patch-1 2024-05-13 12:24:02 -06:00
74f29ba2f3 update example 2024-05-13 14:07:24 -04:00
4e7bddaa0b remove unused variables 2024-05-13 13:55:09 -04:00
af540bec8b Merge pull request #4142 from jrgissing/count/types-return_integer_for_lj_units
flag output for compute count/type as intensive vs extensive
2024-05-13 11:48:35 -06:00
d0f8d9eeb1 Merge branch 'develop' into dhairyaiitb/develop 2024-05-13 13:47:21 -04:00
67b6c36941 Merge pull request #4150 from Bibobu/cg_stuck_bug
Avoiding forcezero infinite loop with zero energy.
2024-05-13 11:46:16 -06:00
d4d4c48574 spelling fixes 2024-05-13 13:43:50 -04:00
84f06aa7a8 Merge branch 'develop' into doc-write-data 2024-05-13 13:38:21 -04:00
f747bb975f Merge pull request #3824 from jrgissing/fix_reaxff/species-fixes
Fix reaxff/species fixes
2024-05-13 11:25:40 -06:00
00d8c6623d Merge pull request #3810 from jrgissing/create_atoms-overlap_w_mol
Create atoms: overlap keyword for atomic molecule
2024-05-13 11:08:34 -06:00
fd1aa7356d Merge pull request #3118 from jrgissing/replicate_periodic_box
Replicate periodic box
2024-05-13 11:06:47 -06:00
cd82af6885 Merge pull request #4148 from jtclemm/small-patches
Small patches for various commands
2024-05-13 11:01:11 -06:00
20a2df0b41 Merge pull request #4152 from nnn911/modify_triclinic
Fix Inconsistent syntax for dump_modify triclinic/general
2024-05-13 11:00:52 -06:00
eb0640fbb5 Merge pull request #4146 from akohlmey/collected-small-changes
Collected small changes
2024-05-13 11:00:18 -06:00
b65e41e509 Update version to development 2024-05-13 10:45:34 -06:00
85a2f4bbfa Merge branch 'lammps:develop' into improve_type_label_support 2024-05-12 23:15:34 -04:00
def7c40ece add citeme 2024-05-12 18:40:48 -04:00
d1fe92c658 charge/regulation: direct type label support 2024-05-12 17:32:03 -04:00
fc32826cd7 more uses of bounds_typelabel 2024-05-12 16:44:24 -04:00
f007be620a compute_rdf: direct type label support
type label that is the same as the keyword ('cutoff') will break things. if syntax is otherwise 'correct', then will throw a syntax error. perhaps could run through typelabels to check first?
2024-05-12 16:11:36 -04:00
c324afeaf1 fix/adapt/fep: use bounds_typelabel 2024-05-12 15:50:41 -04:00
44b99b6b76 bounds() wrapper for type labels 2024-05-12 14:30:55 -04:00
61b9469fd1 Revert "example with augmented utils::bounds"
This reverts commit 25d4b3484d.
2024-05-12 02:00:48 -04:00
25d4b3484d example with augmented utils::bounds
option to check for type label
2024-05-12 01:00:09 -04:00
bd52e31128 Added optimization to collective to local copy to self 2024-05-11 20:58:47 -04:00
2492c57c8e typos 2024-05-11 20:14:18 -04:00
5d35392cca finish adapt docs 2024-05-11 19:49:19 -04:00
ff05d45c74 adapt/fep: direct type label support 2024-05-11 19:37:42 -04:00
4d1e4814b7 fix adapt: direct type label support
make utils::bound type aware?
i.e., Atom:BOND argument instead of atom->nbondtypes
2024-05-11 19:13:29 -04:00
c5c7e6fb74 bond/break: direct type label support 2024-05-11 16:40:40 -04:00
8fc1a8ec7f start off with simpler labelmap example 2024-05-11 16:34:17 -04:00
d121d5a503 bond/create: direct type label support 2024-05-11 16:30:21 -04:00
aa9628facf fix_widom: direct type label support 2024-05-11 15:29:43 -04:00
9d7e449767 fix_gcmc: direct type label support
apparently changed text in doc description is just reflowing
2024-05-11 15:20:53 -04:00
c19db76eae delete_bonds: direct type label support 2024-05-11 14:05:48 -04:00
74b3d15c3b improve fix_modify error messages 2024-05-10 08:21:56 -04:00
46b4c09083 simplify xmol comm 2024-05-10 00:15:21 -04:00
e5d6875287 Update Howto_rheo.rst
Typos and wording.
2024-05-09 11:52:16 -04:00
ac0513b5c4 whitespace in compute_stress_mop.rst 2024-05-09 15:25:57 +02:00
9aefa047cb Update compute_stress_mop.rst 2024-05-09 15:17:30 +02:00
e2984c9724 Delete pos1 variable from compute_stress_mop.h 2024-05-09 15:13:26 +02:00
7b007d82a0 Make compute stress/mop compatible with triclinic boxes 2024-05-09 15:12:28 +02:00
a2616630b5 update OpenCL ICD loader source to latest release 2024-05-09 07:18:50 -04:00
b4f18700dc Update fix_reaxff_species.h 2024-05-09 00:06:10 -04:00
8e6a232dff Update fix_reaxff_species.rst 2024-05-08 23:31:36 -04:00
ada61d96fe Update fix_reaxff_species.rst 2024-05-08 19:46:07 -04:00
05438d2357 Update create_atoms.rst 2024-05-08 18:50:02 -04:00
887ffa57d5 Merge branch 'develop' into create_atoms-overlap_w_mol 2024-05-08 18:44:23 -04:00
33525de598 fix incomplete header info on command syntax 2024-05-08 16:39:25 -06:00
3028b6f34c clean up of docs and code 2024-05-06 19:16:06 -06:00
1c11de8a64 comment tweak 2024-05-06 16:47:38 -06:00
a4449fb6ff modified doc page, added examples 2024-05-06 16:44:45 -06:00
3d4bb44911 Minor rearrangements to CoR, fix bug in granular single 2024-05-06 16:39:29 -06:00
daedaaccdc add missing false positive 2024-05-05 12:50:30 -04:00
46a441451d Update compute_stress_mop.rst 2024-05-04 20:11:08 +02:00
e42aff54f9 Make compute stress/mop/profile compatible with 2D systems
Issue an error if the stress is requested in the Z direction for 2D systems
The normalizing 'area' is the length of the opposite cartesian direction
2024-05-04 20:07:08 +02:00
541680c798 Make compute stress/mop compatible with 2D systems
Issue an error if the stress should be computed in the Z direction in 2D systems
The normalizing 'area' in 2D systems is the length of the simulation box in the other cartesian direction
2024-05-04 20:02:05 +02:00
2f488cc594 Merge pull request #6 from monk-04/ml-uf3
Bug Fixes- uniform knot spacing, memory leaks, array initialization
2024-05-03 20:02:01 -04:00
fe24ddebcd Removed trailing whitespace 2024-05-03 18:31:12 -04:00
1cfbc04586 Initialize setflag, n2b_coeff_array_size, n2b_knots_array_size, n3b_coeff_array_size, n3b_knots_array_size arrays to 0; fixed memory leaks; removed some dead code 2024-05-03 18:28:33 -04:00
da7459c805 Adding heat options, prevent asynchronous mpi bond creation/deletion 2024-05-03 15:13:45 -06:00
a7f4fc1815 Fixed bug with uniform knot spacing 2024-05-03 12:58:59 -04:00
99b3233564 Added names of new source code files 2024-05-03 16:20:57 +01:00
775a73b67c cgDNA 'real' units and potential file reading for non-modifiable potential parameters (#15)
* oxDNA potential file reading and real units

This allows for pair and bond coefficients to be read from an appropriately formatted potential file, and also allows for the use of 'real' units within oxDNA1. The correct backend coefficients for pair and bonded interactions are set when the atom vector is initialised through the "ConstantsOxdna" class, based on the units specified within the input file.

* Extract seqav/seqdep and temp from potential files

Also includes miscellaneous string consistency changes and removes unnecessary parameter from reader.next_line instances.

* oxDNA2 potential file reading and real units

This extends previous changes to oxDNA2 specific potentials, being FENE, excluded volume, coaxial stacking and Debye-Hückel. Units now default to LJ values rather than 0.

* oxDNA potential files

* LJ <-> real units conversion tool

Converts standard oxDNA data and input file to real units, with inverse flag available for real -> LJ.

* oxRNA2 potential file reading and real units

For RNA, d_cs_x is treated as d_cs within ConstantsOxdna in order to reduce code duplication and complexity.

* Reparameterise real units

* Generalise PotentialFileReader logs

* Extract stk xi and kappa from potential files

This allows users to edit these values from the input script, as is documented, rather than them being within the potential files.

* Real unit and potential file documentation

This adds examples for real unit parameters and specific potential file documentation for each bond and pair style.
2024-05-03 15:00:29 +01:00
ca675b557f Minor edits for python2/3 support, improved comments 2024-05-03 11:23:42 +01:00
759ce70af7 Merge branch 'lammps:develop' into ml-uf3 2024-05-02 19:31:21 -04:00
94ab3c2a01 Merge pull request #5 from monk-04/ml-uf3
Remove std::vector completely
2024-05-02 19:29:57 -04:00
4a8ed1bc78 Removed dead code, fixed trailing whitespace 2024-05-02 19:28:58 -04:00
ab8e4b7676 Fixed trailing whitespace 2024-05-02 19:28:27 -04:00
3340dd5f54 Removed unused variables and reordered the code 2024-05-02 19:03:25 -04:00
5f2cae0e08 Commented out the uniform knot spacing logic as for more than 1 processors was getting some weird errors.
Deleted commented (dead) code.
Updated the memory_usage function.
Reordered some functions to refelect the calling order
2024-05-02 19:01:26 -04:00
f02c65e12e Removed uf3_pair_bspline and uf3_triplet_bspline 2024-05-02 18:59:49 -04:00
49181bfe8d constants was changed from std::vector to fixed length array 2024-05-02 18:58:26 -04:00
e55d77470b Removed trailing whitespace 2024-05-02 15:23:48 -04:00
9915f86f63 Removed UFBS2b and UFBS3b std::vector objects.
These objects held the bspline basis set object (uf3_pair_bspline and uf3_triplet_bspline) for 2- and 3-body interaction at UFBS2b[itype][jtype] and UFBS3b[itype][jtype][ktype].
These std:vectors were removed. New arrays (cached_constants_2b, cached_constants_2b_deri, cached_constants_3b, cached_constants_3b_deri) were added that holds the cached coefficients of the bspline basis set. The UF3Impl PIMPLE was also removed as it is not longer needed. The memory_usage function needs to updated
2024-05-02 14:35:45 -04:00
dbca2b087d Made 'constants' variable public 2024-05-02 14:27:11 -04:00
39f039719d QEq requires charges 2024-05-02 11:53:41 -04:00
4889f1b9fd remove print statements 2024-05-01 15:55:35 +00:00
8cee2604eb remove debug output 2024-05-01 15:55:35 +00:00
7261c833df clean up & fix virial 2024-05-01 15:55:35 +00:00
8002f985da enable half neighlist + kk support; correct except for neighbor list difference... 2024-05-01 15:55:35 +00:00
26f52f7552 enable base classes to support Kokkos style 2024-05-01 15:55:35 +00:00
ed18f3014a fix virial when both global and per-atom requested 2024-05-01 15:55:35 +00:00
83c9d47f5e correct forces + virial 2024-05-01 15:55:35 +00:00
9749c0658a need to update velocities on host for non-kokkos computes 2024-05-01 15:55:34 +00:00
1be59745fb correct forces and per-atom virials, but thermo still off 2024-05-01 15:55:34 +00:00
8d3c7cca94 add PairBrownianKokkos::init_one() 2024-05-01 15:55:34 +00:00
e9f7b62f04 fix FULL (as much as it can since not conservative) 2024-05-01 15:55:34 +00:00
8ddceeb7af fix instantiation of compute; now correct pressure on step zero and support for FULL 2024-05-01 15:55:34 +00:00
a4b3eea189 brownian/kk almost correct on cpu 2024-05-01 15:55:34 +00:00
a4892da145 Merge branch 'upstream' into regression-tests 2024-05-01 11:18:51 +05:45
149ffbb2b6 Clarify error message 2024-04-30 09:20:19 +02:00
e9d22ec7f9 Clarify error message 2024-04-30 09:19:03 +02:00
4886678619 Updating masks, cleaning up special bond handling 2024-04-29 16:14:53 -06:00
b1e1b05e0b Match dump_modify syntax for atom and custom dump styles 2024-04-29 13:51:26 +02:00
e34aa0d02b meam/c is no longer an alias for meam 2024-04-28 08:43:24 -04:00
e881bb307c downgrade macOS to version 13 2024-04-27 02:50:28 -04:00
bfd5e6bbc5 make pip install packages in virtual environment 2024-04-27 02:50:28 -04:00
8c3dab03b7 downgrade macOS to version 13 2024-04-27 02:49:52 -04:00
3f9d96d38d make pip install packages in virtual environment 2024-04-27 02:49:52 -04:00
a394fcb5f3 downgrade macOS to version 13 2024-04-27 02:48:40 -04:00
74b49b48cb make pip install packages in virtual environment 2024-04-27 02:48:40 -04:00
69e9483bf7 downgrade macOS to version 13 2024-04-27 02:47:36 -04:00
1f9c33e65d make pip install packages in virtual environment 2024-04-27 02:47:24 -04:00
3906eb8148 Merge branch 'lammps:develop' into cg-dna 2024-04-26 14:49:49 +01:00
99ff5b2779 Changed alpha_init initialization to avoid infinite loop with 0 starting
value.
2024-04-26 14:46:30 +02:00
da7de9c75c Merge branch 'develop' of github.com:lammps/lammps into develop 2024-04-26 09:31:21 +02:00
0f3a8d6af8 Adding warning for singular matrix 2024-04-25 14:10:21 -06:00
71f82e70ef Refactored kspace+kokkos collective remap. Need to go back and tidy up memory allocations 2024-04-25 13:16:03 -04:00
7ad74ffbd8 Removing unused files 2024-04-24 13:10:44 -06:00
21cae39d14 Documentation for fix add/heat 2024-04-24 13:04:51 -06:00
4220be380c Finishing oxidation, adding hybrid compatability for BPM 2024-04-24 11:48:44 -06:00
1a431b02ae Split collective and non-collective into conditionals. Multi-node test passing. Beginning optimization of collective 2024-04-24 09:23:29 -04:00
cfc811a1b3 downgrade macOS to version 13 2024-04-24 03:50:48 -04:00
a85b0603a2 downgrade macOS to version 13 2024-04-24 02:45:36 -04:00
4437891c30 catch command errors 2024-04-24 02:26:27 -04:00
83643ded91 flag development 2024-04-24 02:25:52 -04:00
fc20b8c546 make pip install packages in virtual environment 2024-04-24 02:24:47 -04:00
b993dadcdc try virtual environment instead of user installation 2024-04-24 01:58:54 -04:00
8073cec0e4 make pip install packages in user area 2024-04-24 01:55:13 -04:00
b2aed19c88 Update doc/src/compute_count_type.rst
Co-authored-by: Axel Kohlmeyer <akohlmey@gmail.com>
2024-04-23 23:32:27 -04:00
6de19ec109 Tweaking doc text 2024-04-23 21:02:02 -06:00
3dbfe26b6d Extra D2min options/checks for undercoord particles 2024-04-23 20:58:20 -06:00
80a0c5899e Fix coeff parsing classic gran model 2024-04-23 20:47:01 -06:00
f6eeaaef6f Update compute_count_type.rst 2024-04-23 19:45:14 -04:00
65e8a5c981 Relocated send & recv initializations to occur together, since they are independent 2024-04-23 14:59:42 -04:00
f9e349a2bc Fix load balancing issue with 2D FFTs 2024-04-23 13:42:46 -04:00
6e45a71de3 restore numerical types example
(duplicated with type labels)
2024-04-23 10:16:46 -04:00
b227663b3b restore numerical examples
(duplicated in type label versions)
2024-04-23 10:13:50 -04:00
f815ded1b8 add a few more intensive vs. externsive settings 2024-04-22 22:04:42 -04:00
400070d038 catch command errors 2024-04-22 21:28:56 -04:00
f66ae5c285 output verbose info 2024-04-22 21:23:42 -04:00
dc04a2ec5a for vectors we have to check for either extvector or extlist 2024-04-22 21:22:24 -04:00
44bfcff550 Fixing variable pmean in deform/press 2024-04-22 19:08:29 -06:00
3ce628cf07 fix extscalar bugs in fix shake and fix sprint/rg 2024-04-22 20:30:28 -04:00
a88e8757e3 guard against not setting extscalar, extvector, or extarray when required 2024-04-22 19:55:52 -04:00
25a9bf1ff6 Merge branch 'develop' into jake_replicate 2024-04-22 16:10:42 -06:00
21eeb231ae remove bogus example 2024-04-22 15:27:53 -04:00
d896f307ba Update fix_hyper_local.rst 2024-04-22 14:00:38 -04:00
628531dadb Merge pull request #4144 from Bibobu/ave_histo_vector_bug
Fix for fix_ave_histo bug with vector style variables
2024-04-22 09:42:24 -06:00
5c5dd1efb4 Updated kspace kokkos to use input file for collective setting 2024-04-22 10:26:34 -04:00
f43fec417d Updated collective flag keyword in KOKKOS PPPM to use setting from input file 2024-04-22 10:23:14 -04:00
3ab6997a5b fix broken link 2024-04-22 07:28:53 -04:00
761cfdaabf switch markdown formatting to restructured text 2024-04-22 07:26:02 -04:00
44ec209796 direct type label for group 2024-04-22 00:29:23 -04:00
e15f7a1e96 clarify that sgcmc output is intensive 2024-04-21 23:38:15 -04:00
a50192a7d1 mol/swap also flags output as intensive value! 2024-04-21 23:29:27 -04:00
26c8a3a639 fix gcmc and widom also report 'intensively' 2024-04-21 23:25:33 -04:00
6bd57cd90a fix atom/swap reports value as intensive 2024-04-21 23:20:20 -04:00
48600cd153 Merge branch 'develop' of github.com:lammps/lammps into develop 2024-04-20 17:45:06 +02:00
0af4fe2702 Enable collective comm for PPPMKokkos 2024-04-20 09:39:41 -06:00
baaea8271b Merge branch 'develop' of github.com:lammps/lammps into ave_histo_vector_bug 2024-04-20 17:38:38 +02:00
38c7d7aa1c Added a vectorstyle variable check for fix_ave_histo.cpp 2024-04-20 17:31:34 +02:00
14dc82a2bf Adding periodicity check 2024-04-19 15:40:27 -06:00
97d8ecbac1 Improvements & bug fixes to fix def/press 2024-04-19 15:14:42 -06:00
52ab29798a Merge branch 'lammps:develop' into cg-dna 2024-04-19 22:07:32 +01:00
3116250da9 Initial port of kspace_modify collective yes to KOKKOS package 2024-04-19 16:00:58 -04:00
cf6522eebb type label support for atom/swap 2024-04-18 14:32:23 -04:00
267e75133a generalize passthrough args 2024-04-18 14:30:27 -04:00
1815a00fd0 cleanup 2024-04-18 14:12:23 -04:00
eec037ac5e make use of refactored expand_type elsewhere 2024-04-18 13:41:51 -04:00
931417da0a always return integers for counts
previously, atom, bond, angles, dihedral and improper counts were normalized by natoms when using LJ units
2024-04-18 11:00:02 -04:00
c5ecef82c1 Updating BPM reference information 2024-04-18 08:49:18 -06:00
38874c5aaa make more consistent 2024-04-18 00:27:38 -04:00
d16d3ee02b replace wildcard imports with explicit ones 2024-04-18 00:21:53 -04:00
ebd77afd58 initialize in the constructor for the class that defines variable 2024-04-18 00:09:07 -04:00
b3e03d5188 refactor expand_types to return int 2024-04-17 18:56:28 -04:00
42a4e63061 Merge branch 'lammps:develop' into ml-uf3 2024-04-17 16:45:33 -04:00
3310180a9f Fixed trailing whitespaces 2024-04-17 16:45:05 -04:00
6836bca5f8 Merge pull request #4139 from akohlmey/eam-warning-bugfix
Later than last minute bugfix in EAM density warning for OPENMP package
2024-04-17 15:43:23 -04:00
1b88adf73e move communication for eam/omp warning outside the threaded region. undo for INTEL 2024-04-17 14:37:51 -04:00
e84540c626 fix/mol/swap: direct type label support 2024-04-17 14:35:00 -04:00
8ceb6f096b Merge pull request #4 from monk-04/ml-uf3
Updates to pair_uf3- Reading potential from single file, arrays from memory class, MPI to communicate the arrays
2024-04-17 10:51:59 -04:00
18ae98201b Updated the documentation about UF3 LAMMPS potential file 2024-04-17 10:51:21 -04:00
cf0dc2ac21 Merge pull request #4138 from akohlmey/next_release
Update version tags and strings for the next feature release
2024-04-17 10:37:35 -04:00
6683976ce0 use explicit imports instead of wildcards 2024-04-17 04:45:16 -04:00
09680a3857 use MPI_SUM instead of MPI_MAX to work around OpenMPI bug on macOS with Apple CPU 2024-04-17 01:03:39 -04:00
db9e8aa43c last minute fix for https://matsci.org/t/errors-encountered-in-the-pyrolysis-of-organic-polymers-under-reaxff-force-field/54818 2024-04-17 00:57:07 -04:00
d45a00031b update a couple more pending version strings 2024-04-17 00:41:45 -04:00
e80954a288 Merge branch 'develop' into next_release 2024-04-17 00:38:48 -04:00
3a555c81b6 Merge pull request #4134 from akohlmey/collected-small-changes
Collected small changes and bugfixes
2024-04-17 00:35:57 -04:00
a1826b1364 fix_deposit: direct type label support 2024-04-17 00:16:00 -04:00
101a937870 rephrase warning about EAM deansity exceeding tabulated embedding term 2024-04-16 23:02:29 -04:00
7f269c461e Merge branch 'collected-small-changes' of github.com:akohlmey/lammps into collected-small-changes 2024-04-16 22:49:26 -04:00
94a95b56e6 Merge remote-tracking branch 'github/develop' into collected-small-changes 2024-04-16 22:42:48 -04:00
329d546eea Merge pull request #4078 from jmgoff/pace-mliap
Update ML-IAP for ACE support
2024-04-16 22:42:17 -04:00
27266e72c4 Merge pull request #3984 from lammps/general-triclinic
Add suppport for general triclinic simulation boxes and systems
2024-04-16 21:04:59 -04:00
98eb345615 small tweak 2024-04-16 20:07:30 -04:00
95e4364400 breathe is currently not compatible with sphinx 7.3 2024-04-16 19:59:30 -04:00
e590e27faa create_atoms: direct type label support 2024-04-16 19:56:37 -04:00
fe57f880f0 breathe is currently not compatible with sphinx 7.3 2024-04-16 19:53:49 -04:00
124516097c breathe is currently not compatible with sphinx 7.3 2024-04-16 19:53:00 -04:00
9aceecdfa4 breathe is currently not compatible with sphinx 7.3 2024-04-16 19:51:01 -04:00
88f2ca643b update version tags for feature release 2024-04-16 19:47:12 -04:00
89d98786ec small doc formatting and spelling fixes 2024-04-16 19:33:14 -04:00
c855e44d0e small doc fixes 2024-04-16 19:26:51 -04:00
49b5361088 Update labelmap.rst 2024-04-16 00:24:25 -04:00
a810f1eca8 Update Howto_type_labels.rst 2024-04-16 00:20:18 -04:00
28620a6631 propagate changes to other EAM implementations 2024-04-15 21:04:57 -04:00
8dd1d12a73 apply clang-format and whitespace cleanup 2024-04-15 21:04:22 -04:00
16e5fce31e adjust error messaging for rho[i] > rhomax in EAM 2024-04-15 17:24:47 -06:00
1924a06466 Merge branch 'develop' into collected-small-changes
# Conflicts:
#	python/lammps/pylammps.py
2024-04-15 17:21:38 -04:00
4c1be999fa Removed reference to std::vector knots and coefficients; commented out getter functions 2024-04-15 15:31:42 -04:00
d468ee8f7d Updated the code as we are no longer using std::vector for knots and coefficients 2024-04-15 15:22:22 -04:00
de8b1b49a6 Merge pull request #4135 from yuhldr/develop
pylammps small changes and bugfixes
2024-04-15 14:13:20 -04:00
d34a9bd33e Merge pull request #4113 from evoyiatzis/restricted-angle
Restricted squared cosine angle and dihedral potentials
2024-04-15 13:13:11 -04:00
b2fded3933 restore missing line 2024-04-15 11:24:54 -04:00
f6c8bd1178 Updated pair_coeff in unittest to read only one potential file; added Nb.uf3 unified potential file 2024-04-15 10:51:39 -04:00
cf729fc358 Added new constructor functions in uf3_pair_bspline and uf3_triplet_bspline to construct std::vectors of knots and coefficients rom memory block 2024-04-15 10:38:00 -04:00
fcf8500887 Added uf3_read_unified_pot_file() to read single potential file on rank 0 and communicate() to broadcast the data to other ranks
Added one_ceoff
2024-04-15 10:37:21 -04:00
3a94e4df2d print single warning when some rho[i] exceeded rhomax of the current EAM potential 2024-04-15 02:50:16 -04:00
a9b9f7f2c7 correct fix ttm/mod example input 2024-04-15 01:45:05 -04:00
e4a7b193aa whitespace 2024-04-14 21:11:03 -04:00
yuh
f6992c0d34 doc: 3 py:meth:PyLammps.append_cmd_history()
Co-authored-by: Axel Kohlmeyer <akohlmey@gmail.com>
2024-04-15 09:00:24 +08:00
yuh
bad5fcc9c4 doc: 2 py:meth:PyLammps.append_cmd_history()
Co-authored-by: Axel Kohlmeyer <akohlmey@gmail.com>
2024-04-15 09:00:05 +08:00
yuh
90c8c3c551 doc: py:meth:PyLammps.append_cmd_history()
Co-authored-by: Axel Kohlmeyer <akohlmey@gmail.com>
2024-04-15 08:59:02 +08:00
962219a446 make PyLammps mass property compatible with per-atom masses. 2024-04-14 18:27:17 -04:00
18d45d1ff0 pylammps: fix get atom.mass by atom.type 2024-04-14 18:17:36 -04:00
cc721816df pylammps: append_cmd_history 2024-04-14 17:17:36 +08:00
db1598fb08 pylammps: fix get atom.mass by atom.type 2024-04-14 17:02:23 +08:00
01b1d047a2 Merge branch 'lammps:develop' into ml-uf3 2024-04-13 18:56:07 -04:00
1346be4168 Merge pull request #4126 from lammps/global-vector-access
Relax error check on accessing fixes that produce variable size vectors/arrays
2024-04-13 16:58:50 -04:00
5af3626cf7 adjust test coeffs to be numerically stable 2024-04-13 11:43:30 -04:00
b5c5b8ea8d remove dead code and related comment 2024-04-13 11:43:00 -04:00
23ce978702 cosmetic 2024-04-13 11:07:46 -04:00
17d04ce41a Merge remote-tracking branch 'github/develop' into restricted-angle 2024-04-13 02:45:53 -04:00
95779b3504 add versionadded tags 2024-04-13 02:39:54 -04:00
a40b97d417 Merge remote-tracking branch 'github/develop' into collected-small-changes 2024-04-13 01:45:29 -04:00
5fbd21e324 Merge pull request #4127 from stanmoore1/kk_sort_by_key
Improve Kokkos sorting
2024-04-13 01:44:50 -04:00
7f68620fa9 add example with more compact initialization for scatter 2024-04-12 23:46:35 -04:00
4bd983ce6a make warnings in scatter/gather into errors 2024-04-12 23:11:56 -04:00
441a521d8b initialize all class pointers to null 2024-04-11 23:52:34 -04:00
f557dfdebb mention typelabel paper 2024-04-11 23:36:11 -04:00
9f2cc1e38b Add two-level sort to simplify algorithm 2024-04-10 17:24:08 -06:00
9ca47a36d2 Merge pull request #4129 from akohlmey/pedone-potentials
Add pair style for analytic form of Pedone potential non-Coulomb
2024-04-10 18:51:19 -04:00
b36f49c34c adjust epsilon for arm64 platform 2024-04-10 18:05:21 -04:00
9d3e9c6146 whitespace 2024-04-10 18:03:01 -04:00
dbb23b6006 Merge branch 'develop' into pedone-potentials 2024-04-10 18:02:31 -04:00
c3be4fa399 Merge pull request #4130 from akohlmey/update-file-variable-parsing
Modernize parsing of files for file and atomfile variables
2024-04-10 17:54:29 -04:00
3bfe8b88f6 Merge branch 'general-triclinic' of github.com:lammps/lammps into general-triclinic 2024-04-10 12:56:52 -06:00
120b861f80 correct typos and remove duplicate text 2024-04-10 12:56:43 -06:00
03fc889df9 Merge branch 'rheo' of github.com:jtclemm/lammps into rheo 2024-04-10 12:18:02 -06:00
7a80a74791 Merge branch 'develop' into jake_replicate 2024-04-10 11:32:43 -06:00
1135d6be64 Noting artificial/visc exception in doc 2024-04-10 10:44:41 -06:00
e180527f08 fix typo 2024-04-10 12:35:09 -04:00
5383bd2613 More doc files, misc clean ups 2024-04-10 09:47:55 -06:00
7ca4bf05cf change radthresh initialization 2024-04-10 09:52:58 -04:00
83cd20dfeb Merge branch 'develop' into general-triclinic 2024-04-10 08:42:25 -04:00
06d579eb51 improve atomfile variable docs 2024-04-10 06:29:10 -04:00
9f88867b37 update parsing of file and atomfile variable files
this allows to handle comments and empty lines everywhere for atomfile
and file variables and in a consistent manner since it used utils functions.
also error messages are improved and more specific.
2024-04-10 03:08:08 -04:00
e979e8dc01 spelling add false positives 2024-04-09 22:36:49 -04:00
b4fa1b07e9 add version tag 2024-04-09 22:21:34 -04:00
01917cd117 add example for Ca-O with Pedone 2024-04-09 22:08:30 -04:00
7ac84e18dd remove references to non-existing pedone/coul/long, complete description 2024-04-09 21:35:45 -04:00
41591826fb update 2 doc pages for DIELECTRIC package 2024-04-09 09:25:21 -06:00
aeec608be6 partial docs also for future pedone/coul/long implementation 2024-04-09 09:13:23 -04:00
a2ee2d57be add OPENMP version and apply clang-format 2024-04-09 07:55:26 -04:00
67faeb0130 correct sign for repulsive term 2024-04-09 07:45:44 -04:00
0021042dab add test 2024-04-09 00:57:26 -04:00
41f518ede7 repulsive is r^12 not r^6 2024-04-09 00:57:15 -04:00
21512df264 update doc for dump_modify triclinic/general keyword 2024-04-08 17:59:44 -06:00
81ce8ecdd0 tweak README 2024-04-08 17:30:18 -06:00
e6f4c49b70 add simple general triclinic example files 2024-04-08 17:29:23 -06:00
f1c2a22e2d more tweaks 2024-04-08 16:25:17 -06:00
74a0d22ec2 first stab at non-coulomb pedone potential 2024-04-08 17:48:50 -04:00
e40a1527d3 one more doc page 2024-04-08 10:53:14 -06:00
877d6e7f86 remove whitespace 2024-04-08 10:49:53 -06:00
d1b571c8ed spell check 2024-04-08 10:48:38 -06:00
c2b91ccc8a better documention and error checking for 2d general triclinic 2024-04-08 10:43:20 -06:00
069919ddcd Merge pull request #4125 from taylor-a-barnes/mdi
Fix bug in MDI time integration logic
2024-04-05 18:59:23 -04:00
1a019889f2 more doc page and thermo edge vector modifications 2024-04-05 16:22:54 -06:00
0f5221a485 Improve Kokkos sorting 2024-04-05 15:55:13 -06:00
4a36053bbb Merge branch 'develop' into general-triclinic 2024-04-05 15:50:55 -06:00
7122a85c0b remove some debug info 2024-04-05 15:43:54 -06:00
af88cec22d relax error check on fixes that produce variable size vectors/arrays 2024-04-05 15:12:46 -06:00
7e8be88fa8 Merge pull request #4124 from stanmoore1/kk_update_4.3.0
Update Kokkos library in LAMMPS to v4.3.0
2024-04-05 16:45:14 -04:00
d615d8053b support for general tri edge vectors in thermo output 2024-04-05 14:31:53 -06:00
6a8354f80c Fix bug in MDI time integration logic 2024-04-05 19:10:43 +00:00
f0c1ebec2f Merge pull request #4123 from akohlmey/rigid-image-fix
Address minimum image issue when restarting fix rigid/small
2024-04-05 15:00:30 -04:00
5b47038b14 Set default trimflag to zero 2024-04-05 17:52:44 +01:00
905ceb98f1 merge in current develop 2024-04-05 09:36:29 -06:00
0344b6af70 updated the associated example file 2024-04-05 10:14:07 -05:00
1b71576b6f Update CMake and docs 2024-04-05 09:09:44 -06:00
84b6c6a088 Added prefactors and errors for incorrect combinations. 2024-04-05 09:58:33 -05:00
f382eac5c2 Update Kokkos library in LAMMPS to v4.3.0 2024-04-05 08:20:57 -06:00
dc1bc8a8cf Merge branch 'lammps:develop' into cg-dna 2024-04-05 11:40:16 +01:00
2927471892 Merge pull request #4121 from lammps/test-rigid
Fix issue with nearly linear 2d rigid bodies
2024-04-05 00:50:04 -04:00
f5a595dadb Merge branch 'develop' into test-rigid 2024-04-04 23:52:06 -04:00
4401179688 Merge pull request #4122 from lammps/variable-length-vectors-arrays
More consistent checking on lengths of variable-length vectors and arrays
2024-04-04 21:52:34 -04:00
a51174f6c3 update unit test reference data for rigid fixes 2024-04-04 21:30:42 -04:00
72d7ba85ad call alternate minimum image code from @stanmoore1 from fix rigid/small 2024-04-04 20:49:20 -04:00
ec7b76454a fix spelling error 2024-04-04 14:37:03 -06:00
c45f2666ad clean-up whitespace 2024-04-04 14:21:55 -06:00
66d042a0ee make checks for exceeding length of variable-length vectors more consistent 2024-04-04 14:11:13 -06:00
2c26586b1a clean up 2024-04-04 13:50:43 -06:00
6a2bcc7258 merge in current develop 2024-04-04 13:30:14 -06:00
99e82f9f07 Merge pull request #4120 from maitane-muba/develop
Explicit symmetrization of cutoff in pair_ylz
2024-04-04 15:16:47 -04:00
03711c13da clean up 2024-04-04 13:11:59 -06:00
65cdc76c99 final changes for 2d rigid bodies with jacobi 2024-04-04 13:07:35 -06:00
506bf886ee merge in develop branch 2024-04-04 12:56:12 -06:00
58d6f9ba2e Removing hrate from fix deform/pressure restart 2024-04-04 11:29:28 -06:00
8254d20b44 Removing unnecessary comm calls fix heat/flow 2024-04-04 11:29:02 -06:00
c63c1856ec Fix compilation error, edit artificial visc toggle 2024-04-04 11:21:42 -06:00
f637299ac5 Added symmetrization of cutoff in init_one() and fixed a print 2024-04-04 18:18:10 +02:00
ceec24d50b Adding hybrid support to BPM, more doc pages 2024-04-04 09:42:10 -06:00
972d412186 flag false positives 2024-04-03 20:53:44 -04:00
ef3d255a4b Merge branch 'develop' into pace-mliap 2024-04-03 20:49:29 -04:00
3db1e5f0f6 mliap kk snap unittest back on only disable mliap kk for ACE 2024-04-03 16:58:16 -06:00
1529a61901 Merge pull request #4111 from akohlmey/collected-small-fixes
Collected small fixes
2024-04-03 16:56:25 -04:00
4c9924984d modify access to fixes 2024-04-03 15:58:24 -04:00
ecd8fe71a1 cosmetic 2024-04-03 15:05:09 -04:00
39d12e48d6 must always return nfaces=0 for less than 3 vertices 2024-04-03 15:04:39 -04:00
4329c4c37f changes to rigid and rigid/small 2024-04-03 11:11:52 -06:00
d06b86916a more debugging 2024-04-03 11:11:16 -06:00
c0abefeacb update links in manual to jacobi3() docs 2024-04-02 23:53:25 -04:00
78a3a7b9c2 add optional argument to enable overriding sort order or eigenvalues/vectors 2024-04-02 23:28:14 -04:00
21745538a7 Revert "change ordering of eigenvalues in jacobi3() function. update tests."
This reverts commit c4eadd3a59.
2024-04-02 23:02:04 -04:00
c502dd4033 Fixed trailing whitespace 2024-04-02 13:20:29 -04:00
0809d8b722 Updated documentation about METADATA in the uf3 lammps pot files 2024-04-02 13:17:13 -04:00
887ce4948a Removed old pot files 2024-04-02 13:16:38 -04:00
1ef7b8132c Updated A_A.uf3 to Nb_Nb.uf3 and A_A_A.uf3 to Nb_Nb_Nb.uf3 2024-04-02 13:16:00 -04:00
3734252ed8 Replaced the A_A.uf3 and A_A_A.uf3 with uf3 lammps pot files for Nb 2024-04-02 13:15:05 -04:00
7281f9327b Added code to check if 'UNITS:' metadata is present in the pot file or not 2024-04-02 13:14:28 -04:00
d3bc4c7eb8 Removed commented out code 2024-04-02 11:18:01 -04:00
ed0cff92de Merge remote-tracking branch 'github/develop' into general-triclinic 2024-04-02 09:41:21 -04:00
dfc68fb338 Merge remote-tracking branch 'github/develop' into collected-small-fixes 2024-04-02 09:40:25 -04:00
05562ad5e9 testing 2d rigid changes 2024-04-01 21:35:35 -06:00
72772c136f Merge branch 'lammps:develop' into ml-uf3 2024-04-01 18:34:50 -04:00
801ceea90a Pimplifying the code Attempt-1 2024-04-01 18:33:02 -04:00
42dcc76a70 Merge pull request #2 from akohlmey/ml-uf3
More updates to PR 4110
2024-04-01 12:03:42 -04:00
08db64c27f More updates for oxidation, more doc pages 2024-03-31 21:40:34 -06:00
2ddd940a3e minor cosmetic changes 2024-03-31 20:31:25 -04:00
4eaf257e52 small cleanups 2024-03-31 19:49:01 -04:00
051c818596 enable and apply clang-format 2024-03-31 19:39:21 -04:00
3da6a7bdb0 eliminate compatibility typedefs 2024-03-31 19:29:09 -04:00
0296ca75fb remove tabs 2024-03-31 18:20:11 -04:00
ff91728587 reduce XDR compatibility code to only those routines that are used by dump xtc 2024-03-31 18:09:40 -04:00
0cdbcc801e switch to BSD 3-clause licensed XDR version, use c++11 portability, cleanups 2024-03-31 17:42:41 -04:00
ae6247d3be remove xdr_compat.h include and pimplify XDR struct, silence compiler warnings 2024-03-31 17:41:35 -04:00
f6bdc05c24 alternate fix to PR #4116 2024-03-30 19:19:47 -04:00
a017a775bd Merge pull request #4108 from MightyHelper/develop
Allow compute spin for groups other than `all`
2024-03-30 09:12:43 -04:00
dcc7916210 reorder header 2024-03-29 21:32:08 -04:00
d73aec6c21 add OpenMP version of angle style cosine/squared/restricted 2024-03-29 21:31:40 -04:00
428e22666d add unit test inputs for new styles 2024-03-29 21:15:25 -04:00
66a1e0103f gitignore 2024-03-29 21:00:59 -04:00
b712e46497 doc fixes 2024-03-29 21:00:51 -04:00
7ea0dc3996 Adding more oxidation features + doc pages 2024-03-29 19:00:14 -06:00
f48677c5e9 Merge branch 'develop' into restricted-angle 2024-03-29 20:39:23 -04:00
b79bccec6c Merge pull request #4098 from GenieTim/patch-1
Fix variables compatibility with chunk arrays
2024-03-29 20:34:03 -04:00
30f330718a more consistent error checks on variable length global vecs and arrays 2024-03-29 16:53:18 -06:00
7137290682 Follow requested changes to patch 2024-03-29 21:52:57 +01:00
c684fa0920 Merge branch 'lammps:develop' into patch-1 2024-03-29 21:48:43 +01:00
9c85e5a99b fix bug in option arg parsing of fix ave/correlate, also update doc page for fix ave/correlate/long 2024-03-29 14:27:43 -06:00
b8fc8e5e63 Update dihedral_style.rst 2024-03-29 11:18:11 +01:00
a9deb029e3 Add files via upload 2024-03-29 11:15:36 +01:00
42af73655c Add files via upload 2024-03-29 11:05:29 +01:00
996f5b9d52 fix ttm doc formatting fixes 2024-03-29 02:50:30 -04:00
a6230ba147 replace pow(x,2) and pow(x,3) with square() and cube() 2024-03-28 23:53:06 -04:00
1fff0a33fc drop log messages 2024-03-28 23:38:03 -04:00
c5262873b0 initialize all class pointers to null, delete all allocated storage 2024-03-28 23:36:57 -04:00
584137f104 remove num_of_elements class variable, just use local copy of atom->ntypes 2024-03-28 23:36:13 -04:00
6bdf981942 don't use pow() function for simple square 2024-03-28 23:08:51 -04:00
2219e764ce call utils::logmesg() only on rank 0, use c++ string comparisons, remove debug comments 2024-03-28 22:26:50 -04:00
3aae2d0c4b apply clang-format 2024-03-28 22:09:22 -04:00
379e212135 add system error message with failure to open potential 2024-03-28 22:05:27 -04:00
7c3ac31507 remove dead code 2024-03-28 21:50:40 -04:00
34f88843fa update example logs 2024-03-28 21:50:30 -04:00
a26c281a63 Merge pull request #1 from akohlmey/ml-uf3
Updates for ml-uf3 pull request
2024-03-28 19:23:08 -04:00
ecb5704f25 some formatting and logic cleanup. 2024-03-28 17:32:26 -04:00
a6e5c8b981 update more files and docs for .uf3 potential file extension
also remove redundant files
2024-03-28 17:32:07 -04:00
392c3b6d65 manybody and single flag need to be changed from the default when 2-body/3-body is selected 2024-03-28 17:02:07 -04:00
eb89c7a392 examples folder was moved 2024-03-28 17:01:37 -04:00
a13d53dd65 disable references to cuFFT (which is not yet used) 2024-03-28 16:14:44 -04:00
010a4c076b Prototyping oxidation 2024-03-28 11:31:21 -06:00
2a8a7f6365 Update angle_style.rst
Include link to rst file of the restricted angle potential
2024-03-28 15:47:37 +01:00
720705b7d2 Add files via upload 2024-03-28 15:44:15 +01:00
0893a2d0a0 Add files via upload 2024-03-28 15:43:01 +01:00
f8d8ed0946 use correct character class escapes 2024-03-27 17:52:13 -04:00
3c8ba3d376 Update codeowners so changes to domain can be ported to KOKKOS package 2024-03-27 13:14:52 -06:00
edcbd2e761 Fix bug in Kokkos when shrink-wrapping with no atoms 2024-03-27 13:04:23 -06:00
fca23dac72 some style cleanup and simplified pair_style and pair_coeff input 2024-03-27 07:29:31 -04:00
713b308a99 update ML-UF3 examples 2024-03-27 07:25:36 -04:00
fda433a7ee reformat and fix spelling and related issues 2024-03-27 06:53:03 -04:00
7323364d1d move examples 2024-03-27 06:35:19 -04:00
0d7c41b1c3 update code owners list 2024-03-27 06:30:20 -04:00
f9a0ec83b4 update .gitignore 2024-03-27 06:28:35 -04:00
7e09353e7c add ML-UF3 to compatible CMake preset files 2024-03-27 06:28:23 -04:00
e5ea8c2670 silence compiler warnings 2024-03-27 06:04:56 -04:00
cd154abe73 add "Incorrect format in ... section of data file" to Error_details and url 2024-03-26 23:56:38 -04:00
b01efd96a5 add missing link and expand docs for Unknown identifier in data file error 2024-03-26 23:27:44 -04:00
dc0b0d8be8 Added example potential files for W 2024-03-26 13:18:26 -04:00
ff39a03e83 Removed trailing whitespaces 2024-03-26 13:14:32 -04:00
3a34b3eeaf Added uf3 examples to the examples directory 2024-03-26 12:35:30 -04:00
4e95db1bb7 Added uf3 details to Commands_pair, Packages_details and Packages_list 2024-03-26 12:34:29 -04:00
c4eadd3a59 change ordering of eigenvalues in jacobi3() function. update tests. 2024-03-26 01:52:07 -04:00
45fbe73f2b Simplify output of windows version. If unknown build number just output "Windows Build #####" 2024-03-25 22:48:01 -04:00
b2809996b8 fixed trailing whitespaces 2024-03-25 17:45:06 -04:00
06c4fc6590 Removed LAMMPS errordocs 2024-03-25 17:23:47 -04:00
de43263e28 Fixed lammps developer email-id and contributing authors section. Removed some old comments 2024-03-25 17:18:11 -04:00
d55f750dc6 Fixed typos in the UF3 equation 2024-03-25 15:17:43 -04:00
f3391199e7 correct formatting of tables 2024-03-25 14:26:39 -04:00
5c536c8290 Added ml-uf3 unittest 2024-03-25 12:11:05 -04:00
a720d0dc67 Added ml-uf3 potential files 2024-03-25 12:10:31 -04:00
923e251540 Added documentation for ml-uf3 2024-03-25 12:10:01 -04:00
9a23ddf88a Added ml-uf3 to cmake and make files 2024-03-25 12:08:51 -04:00
53c6959e52 Added src files for uf3/kk 2024-03-25 12:08:07 -04:00
6dded43b2c Added ml-uf3 src files 2024-03-25 12:07:18 -04:00
857298b639 fix typo 2024-03-23 03:38:38 -04:00
3be5008aa8 must skip KOKKOS tests for any ML-IAP inputs using snap descriptors 2024-03-22 23:54:18 -04:00
000c8f510d apply clang-format 2024-03-22 23:38:02 -04:00
7bd7396b6a correct and complete conventional build package logic 2024-03-22 23:29:42 -04:00
e4035dd9d5 correct CMake script logic 2024-03-22 23:19:38 -04:00
7d94880ecd silence compiler warnings and apply clang-format 2024-03-22 22:57:44 -04:00
f2cd41bb1c cleanup 2024-03-22 16:57:39 -06:00
20cfebd6f8 Merge branch 'pace-mliap' of github.com:jmgoff/lammps_compute_PACE into pace-mliap 2024-03-22 16:51:59 -06:00
414d9608f8 fixed whitespace in docs 2024-03-22 16:51:27 -06:00
cb1e18256e Merge branch 'lammps:develop' into pace-mliap 2024-03-22 16:35:31 -06:00
176414b8e7 kokkos error and standard make 2024-03-22 16:33:49 -06:00
0b5722adc0 Allow compute spin for groups other than all 2024-03-22 18:44:12 -03:00
810ae3cc45 Merge pull request #4107 from Yi-FanLi/method_pimd
fix pimd/langevin: improve support for method==pimd
2024-03-22 02:45:57 -04:00
b22205493a Merge pull request #6 from akohlmey/method_pimd
Apply clang-format to your branch
2024-03-21 22:53:15 -04:00
cdab18f31f Merge pull request #4103 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-03-21 19:43:30 -04:00
73eb12a204 apply clang-format 2024-03-21 12:17:06 -04:00
b7def392fb correct p_cv computation for method=PIMD 2024-03-21 11:55:13 -04:00
36358d5b14 Merge branch 'lammps:develop' into pace-mliap 2024-03-21 09:32:33 -06:00
8e3aa79a9e correct remove_com_motion for method=PIMD 2024-03-21 11:32:30 -04:00
5f6d3ad154 allow t_vir and t_cv computation for method=PIMD 2024-03-21 10:58:25 -04:00
a8d07744c0 split compute_cvir into 2 functions 2024-03-21 10:55:48 -04:00
417598498c fix compute pod 2024-03-20 20:01:22 -04:00
0f31a825a5 fix compute 2024-03-20 16:08:13 -04:00
2eb1ce98d9 add compute_t_prim for method=PIMD 2024-03-20 14:06:44 -04:00
b5d769bbbf Revert "Began CGDNA Howto"
This reverts commit c4b96704b27743c4e6b01166ea6d7e7a16480692.
2024-03-20 16:23:17 +00:00
bc436dad3a Added example directory 2024-03-20 16:23:17 +00:00
a3e4788221 Minor edits 2024-03-20 16:23:17 +00:00
add5fc07fd Changed user permissions 2024-03-20 16:23:17 +00:00
eee23b45c9 Began CGDNA Howto 2024-03-20 16:23:17 +00:00
c5fc65433a Updated and added utility scripts 2024-03-20 16:23:17 +00:00
e8606a51da Changed permissions to non-executable 2024-03-20 16:23:17 +00:00
7fa0e7b730 Added script for 2-particle visualisation 2024-03-20 16:23:17 +00:00
d123cd5440 fix typo 2024-03-20 04:57:03 -04:00
2dd9560439 add notes to python versions of lammps_extract_fix() that for global data one can only retrieve scalars 2024-03-19 22:39:05 -04:00
b021543140 fix zero neighbor in compute classes 2024-03-19 19:25:29 -04:00
a37b7754a7 fix a bug due to zero neighbor 2024-03-19 19:17:08 -04:00
d0e2a846b2 cosmetic 2024-03-19 12:04:06 -04:00
f8da51828a fix memory leaks in lammps_gather*concat() functions of the library interface 2024-03-19 12:03:56 -04:00
ee58003800 update electron radius velocities and radii in EFF NH fixes analog to fix nve/eff 2024-03-18 23:37:00 -04:00
a824828ea0 Merge branch 'develop' into collected-small-changes 2024-03-18 22:00:33 -04:00
b620c52b58 Merge pull request #4105 from ndtrung81/gpu-sph-bugfix
Fixed bugs with sph gpu pair styles
2024-03-18 21:59:33 -04:00
e7075163f1 update coding style 2024-03-18 21:51:31 -04:00
8f589ed536 simplify using modern API 2024-03-18 21:51:19 -04:00
6a28e8d5f6 Fixed bugs with sph gpu pair styles 2024-03-18 13:27:21 -05:00
0714c6fb67 Merge pull request #4102 from stanmoore1/teamsize_fix
Fix Kokkos "team size too large" issue
2024-03-18 12:34:45 -04:00
8d4a384f34 Improve cuFFT detection in CMake, similar to HIP 2024-03-18 09:28:53 -06:00
03bbc562ad improve error messages for invalid hybrid sub-styles 2024-03-18 10:46:43 -04:00
41ee1efa13 fix bug in f2c string conversion detected by bound checking 2024-03-18 10:27:38 -04:00
1bdcf7e42e Merge branch 'develop' into general-triclinic 2024-03-17 15:56:38 -04:00
505f7b3cb4 add 'append' keyword for appending to output file 2024-03-17 15:34:32 -04:00
d97c7fffac spelling 2024-03-17 15:13:13 -04:00
1bbe87d9d2 add 'append' keyword for appending to output file 2024-03-17 15:13:04 -04:00
7e163d451e uodate 2024-03-17 10:49:59 -04:00
866c059d2d improve error messages 2024-03-17 01:17:11 -04:00
fce15bf66f add support for appending to files to fix ave/time 2024-03-17 01:17:01 -04:00
2fe23b98f5 modernize and enable clang-format 2024-03-17 00:04:06 -04:00
1211af65a1 Fix Kokkos teamsize too large issue 2024-03-15 12:54:33 -06:00
207a14f351 Merge pull request #4101 from jtclemm/small-patches
Small patches to multi neighbor and fix deform/pressure
2024-03-15 01:39:04 -04:00
252e7070e3 Merge pull request #4099 from akohlmey/collected-small-fixes
Collected small fixes and changes
2024-03-14 19:57:51 -04:00
aa7e2da33d Misc small patches 2024-03-13 15:04:19 -06:00
af5c8bcd22 Merge branch 'develop' into pace-mliap
# Conflicts:
#	src/ML-IAP/compute_mliap.cpp
2024-03-12 09:05:46 -04:00
d0d4cf9ad0 add DOIs for recent stable releases 2024-03-11 22:40:21 -04:00
c3c61a368d Bugfix: both pair hybrid and hybrid/overlay cannot fuse force zeroing 2024-03-11 15:20:42 -06:00
b23c586236 mliap ace docs and example logs 2024-03-11 13:34:29 -06:00
5b16cf9773 use std::move() to avoid extra copy of temporaries 2024-03-10 16:19:22 -04:00
1b7bc36505 Fix variables compatibility with chunk arrays
When using variables with chunk computes that produce arrays (such as `compute chunk/atom`) the compute will not have set `size_array_rows` to the appropriate value before it has ever been called and will therefore incorrectly have thrown the error "Variable formula compute array is zero length".
2024-03-10 12:56:33 +01:00
01d412bdbf Merge branch 'develop' into general-triclinic 2024-03-08 21:32:01 -05:00
e7d77b6244 enable and apply clang-format, revert to some older code constructs where equivalent 2024-03-08 12:23:02 -05:00
bd0eb1ec84 silence compiler warning, cosmetic 2024-03-08 12:13:43 -05:00
94e9fe5df3 flag error with explanation when removed keyword "reax/c" is used instead of a file not found 2024-03-08 12:13:42 -05:00
8819275824 Merge pull request #3989 from evoyiatzis/patch-8
Addition of conical geometry in fix indent
2024-03-08 12:10:52 -05:00
01628dfc61 removing whitespaces in fix_indent.h 2024-03-08 15:46:27 +01:00
ebe57ce9eb removing whitespaces - fix_indent.cpp 2024-03-08 15:45:46 +01:00
ba5c1a4ac3 minor modifications in fix_indent.rst 2024-03-08 15:35:48 +01:00
bd99c2d661 Merge pull request #4097 from wmbrownIntel/numa_tune
Changes for processors grid numa style
2024-03-07 14:19:12 -05:00
4cab391f2a Merge pull request #4096 from stanmoore1/kk_update_4.2.1
Update Kokkos library in LAMMPS to v4.2.1
2024-03-07 13:42:24 -05:00
8ab2544f5b Add option to specify # of numa domains for processors grid numa style, simplify numa mapping with more agressive optimization to reduce comm between numa domains. 2024-03-07 07:07:16 -08:00
6dcfcc1a83 Update CMake 2024-03-06 17:57:10 -07:00
6cc9a4c7b7 Update Kokkos library in LAMMPS to v4.2.1 2024-03-06 14:58:06 -07:00
9d9dbc1fa8 Merge pull request #4094 from akohlmey/collected-small-fixes
Collected small changes and fixes
2024-03-06 15:03:17 -05:00
c984d5c94a improved revision of write_dump output frequency setting for 64-bit timesteps 2024-03-06 11:13:50 -05:00
ea52699893 collapse the two /report styles into a single "report" style 2024-03-05 19:02:11 -05:00
20d95cd17f whitespace 2024-03-05 18:30:07 -05:00
c6f90b2ae3 Merge branch 'develop' into collected-small-fixes 2024-03-05 18:27:20 -05:00
7e8b243891 make use of ..versionadded/..versionchanged consistent with the rest of LAMMPS 2024-03-05 18:26:41 -05:00
0dc6e156c1 add balance styles shift/report and rcb/report for reporting imbalances only 2024-03-05 18:24:38 -05:00
e0c0b2fe7e fix cmake syntax error 2024-03-05 15:28:21 -05:00
1909233c69 Merge pull request #4095 from robeme/electrode
Update for the ELECTRODE package
2024-03-05 10:25:39 -05:00
ad55bb4b8f Mention CMake in electrode README 2024-03-05 09:58:27 +01:00
1949953c0c Clarifying more variables, enabling offset option with integration style 2024-03-04 23:38:55 -05:00
a4a171a55e Clarifying ambiguous variables 2024-03-04 23:38:47 -05:00
5177b50fda Updating multi+narg errors for fix nonaffine 2024-03-04 23:38:40 -05:00
c7b622699d regenerate test reference data 2024-03-04 09:46:34 -05:00
393fd164db small conding style updates 2024-03-04 09:46:14 -05:00
0a32cd6c7f avoid redundant constant definition 2024-03-04 09:45:54 -05:00
3f91ee142b Merge branch 'develop' into electrode 2024-03-04 09:31:07 -05:00
6a1f1f7dbc add missing symlink 2024-03-04 09:25:07 -05:00
8e6ce1d0b9 Remove nonneut examples 2024-03-04 08:52:05 +01:00
6e91123910 try a different workaround for "fix not computed at compatible time" with write_dump 2024-03-03 23:58:33 -05:00
3c8bb5a1be programming style update 2024-03-03 18:39:28 -05:00
e19ad38c14 fix missing thread initialization exposed by LAMMPS-GUI 2024-03-03 18:36:15 -05:00
d33519e882 correct and clarify 2024-03-03 16:47:44 -05:00
9628ad6caf recover compilation 2024-03-03 12:59:17 -05:00
60e5124ac2 compute composition/atom doesn't seem to be compatible with multi neighbor lists 2024-03-03 12:51:48 -05:00
372260ec77 error out in compute ave/sphere/atom and efield/wolf/atom with multi-cutoff neighborlists 2024-03-03 12:46:20 -05:00
2809428fe2 make computes rdf and adf error out multi cutoff neighbor lists if needed 2024-03-03 12:27:39 -05:00
a776d8425f initialize pointers to null 2024-03-03 11:28:49 -05:00
4a993483fc remove dead code 2024-03-03 11:25:01 -05:00
e51e2733cb add note for porting code containing the removed Atoms::count_words() functions 2024-03-03 07:47:14 -05:00
ccdf55151d modernize 2024-03-02 15:59:37 -05:00
45e8ee1c08 disallow using custom cutoff with multi cutoff neighbor lists 2024-03-02 15:53:21 -05:00
133ec34bf5 update 2024-03-01 19:01:48 -05:00
00b0c439ed improve error messages 2024-03-01 18:54:43 -05:00
2c9dfa3ea7 update MS-MEAM examples 2024-03-01 18:54:35 -05:00
93942f2013 Added override for ialloy default with MS-MEAM
# Conflicts:
#	doc/src/pair_meam.rst
2024-03-01 18:32:16 -05:00
554f53decb Merge pull request #4092 from stanmoore1/comm_tiled
Add better Kokkos support for comm_style tiled
2024-03-01 08:58:39 -05:00
7064e1e2b6 make searches for drude fix more specific to avoid false positives 2024-03-01 07:33:48 -05:00
6f03b22b43 Merge branch 'develop' into comm_tiled 2024-03-01 03:03:47 -05:00
b0ca503173 Merge pull request #4090 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-03-01 03:01:49 -05:00
259bcfba1f remove one more unused class member 2024-02-29 22:45:32 -05:00
b15956c13c remove unused class members 2024-02-29 22:26:40 -05:00
f5b1813f14 silence compiler warnings 2024-02-29 18:38:31 -05:00
efcee365c1 Fix issue 2024-02-29 14:06:21 -07:00
4f0d30b8d6 Fix data transfer issue 2024-02-29 11:01:18 -07:00
2130ffaa11 Fix compiler warning 2024-02-28 16:02:52 -07:00
a261a6c34c whitespace fixes 2024-02-28 17:45:41 -05:00
1bba2c9e06 third and final round of include-what-you-use updates 2024-02-28 17:40:17 -05:00
0d37dddc9e restore correct formatting to meam_force.cpp and port changes to KOKKOS 2024-02-28 17:19:52 -05:00
37c0795691 Fixed additional errors with multicomponent systems, making msmeamflag independent of ialloy 2024-02-28 17:02:09 -05:00
81a684f572 assign ownership for compute reaxff/atom and reaxff/atom/kk 2024-02-28 15:59:31 -05:00
0ce25755cd second round of include-what-you-use updates 2024-02-28 15:37:13 -05:00
1359c52f30 include-what-you-use updates 2024-02-27 23:42:24 -05:00
5967865af9 remove unused class member 2024-02-27 22:42:13 -05:00
9a0ce2d5c7 Merge branch 'collected-small-changes' of github.com:akohlmey/lammps into collected-small-changes 2024-02-27 20:57:03 -05:00
73e42481f7 modernize and consolidate ML compute styles 2024-02-27 20:55:52 -05:00
eb9b1e163d modernize and coding style/formatting improvements 2024-02-27 20:55:28 -05:00
4dbfa5483b Fix memory leak 2024-02-27 14:50:20 -07:00
7593f0df22 Merge branch 'develop' of github.com:lammps/lammps into comm_tiled 2024-02-27 14:15:58 -07:00
86b7560740 Init pointers, etc. 2024-02-27 14:13:27 -07:00
6972758783 whitespace 2024-02-27 09:38:22 -07:00
369aae91d3 Remove unnecessary destroys 2024-02-27 09:31:53 -07:00
f1ed2f20a1 Add back in legacy functions needed for mliap 2024-02-27 09:31:39 -07:00
e1a3ed6602 modernize and coding style/formatting improvements 2024-02-27 10:38:39 -05:00
1baa6cc166 remove dead code from fix bocs 2024-02-27 10:29:35 -05:00
0096c06def Merge branch 'develop' into collected-small-changes 2024-02-26 20:02:29 -05:00
4d89741d8c Merge pull request #4091 from jtclemm/BPM
Small fixes to GRANULAR/BPM packages
2024-02-26 20:01:57 -05:00
53219b299b Unused var 2024-02-26 17:16:28 -07:00
14066e018f Fix indexing issue 2024-02-26 17:15:04 -07:00
07731d8112 Whitespace 2024-02-26 16:34:49 -07:00
214ea5209e Missed changes 2024-02-26 16:34:42 -07:00
5ad4545273 fix where initialization of options is done 2024-02-26 16:07:14 -07:00
363db81be1 tweak a comment 2024-02-26 16:05:19 -07:00
4e77556610 minor changes to source and doc files 2024-02-26 15:59:03 -07:00
82762937a8 Add better Kokkos support for comm_style tiled 2024-02-26 15:37:22 -07:00
bd9f6993e3 whitespace 2024-02-26 17:14:44 -05:00
3d55fc4ec2 Merge branch 'develop' into collected-small-changes 2024-02-26 17:14:18 -05:00
e9deaa83d1 Merge pull request #4088 from sakibmatin/debug
Fix for force calculation and memory bug (atom name definition) in mliap.
2024-02-26 16:46:36 -05:00
719b7a96f1 silence compiler warnings 2024-02-26 16:45:01 -05:00
73ae3200d0 incorporating feedback 2024-02-26 12:09:19 -07:00
35db949e77 Merge pull request #4069 from vladgl/fix_wall_flow
New fix implementing flow boundary conditions
2024-02-26 12:46:20 -05:00
8501c3de6c Merge pull request #4087 from akohlmey/add-rebomos-pair-style
Add rebomos pair style with examples and unit test
2024-02-26 11:38:10 -05:00
f532a513da only import used constant 2024-02-26 07:58:53 -05:00
2bc5a04214 fix conversion bug when input is in radians 2024-02-26 07:54:25 -05:00
5aae41a08c remove obsolete comment 2024-02-26 06:50:36 -05:00
b22ce0f4be use platform neutral CMake property to export symbols 2024-02-25 21:58:35 -05:00
725156753a remove superfluous warning 2024-02-25 21:51:34 -05:00
86ea5271d6 portability 2024-02-25 21:19:13 -05:00
b8c8b4d19b use -rdynamic for re-exporting symbols when using plugins 2024-02-25 21:11:31 -05:00
e7b0c8b3c5 synchronize LAMMPS C++ interface CMake modules 2024-02-24 17:29:25 -05:00
aaba736967 Fixed error in forces that only affects non-zero t1m MS-MEAM models 2024-02-24 17:03:06 -05:00
98b3d19c40 link with static liblammps.a when available to avoid dynamic linker error when loading plugins 2024-02-24 17:01:53 -05:00
01d9f78e69 correct citation 2024-02-24 14:34:40 -05:00
c869783e72 warn about building LAMMPS with shared lib support for plugins 2024-02-24 09:21:20 -05:00
d39158ca08 modernize 2024-02-24 03:38:48 -05:00
9c7ec8bb6c must update docs for code changes 2024-02-23 21:55:09 -05:00
6c3c724f9c Merge pull request #4086 from akohlmey/collected-small-fixes
Collected small fixes and updates
2024-02-23 21:51:49 -05:00
04bccd0a9f whitespace 2024-02-23 19:08:46 -05:00
b7153eebee simplify and check for triclinic again, since somebody may have used change_box 2024-02-23 19:04:14 -05:00
66701ef1e2 complete rebomos docs 2024-02-23 17:29:31 -05:00
c401dc31d6 bump maxelt to 8 (for folks simulating high-entropy alloys) and make it uppercase 2024-02-23 17:05:20 -05:00
dda2bc7ac7 Mirroring changes in doc 2024-02-23 14:50:28 -07:00
a3f2c5b884 no longer need to boost neighbor one in rebomos unit test 2024-02-23 16:48:03 -05:00
6ea1bcf9d9 Clarifying trace notation in fabric 2024-02-23 14:45:21 -07:00
74abb18e69 improve error messages for pair style airebo and variants 2024-02-23 16:44:15 -05:00
dd4cd240df Moving temp/heat keywords out of dump to compute prop/atom 2024-02-23 14:31:40 -07:00
f9ecdb5b54 Updated documentation 2024-02-23 15:21:56 -06:00
5de6853684 fix typo 2024-02-23 16:05:30 -05:00
c36650fc88 auto-assign @jtclemm when fix deform/pressure is edited 2024-02-23 15:55:44 -05:00
3e089496b3 modernize and address issues flagged by static code analysis 2024-02-23 15:52:54 -05:00
fef2150bfb Fixing rare precision error in Tsuji damping 2024-02-23 13:29:18 -07:00
b3de75da97 Cleaning up math, fixing tension bug, patching bond creation 2024-02-23 13:26:28 -07:00
7d5931def3 Added example folders tested 2024-02-23 08:16:55 -06:00
f864963ab9 removed old comments. 2024-02-22 22:03:29 -07:00
b016eaa1cf cosmetic 2024-02-22 15:20:51 -05:00
49886caaf1 add OPENMP package version of pair style rebomos 2024-02-22 15:17:46 -05:00
3e512834c7 cosmetic 2024-02-22 14:09:50 -05:00
22d0b202c4 update example logs for change in cutoff setting 2024-02-22 13:37:59 -05:00
36fa601fe0 cutoff calculation inherited from but only required for AIREBO. up to 2x speedup 2024-02-22 13:33:04 -05:00
bed84841ad update comment header to point to the LAMMPS developers email address 2024-02-22 09:57:42 -05:00
3a82e76607 small corrections 2024-02-22 09:15:18 -05:00
d6d9a91126 add rebomos potential with examples and unit test 2024-02-22 09:13:21 -05:00
325a7d99d6 error out when cuFFT is not found 2024-02-22 07:47:37 -05:00
3ff2b1b43b silence compiler warnings 2024-02-22 05:07:08 -05:00
00615d94ad Merge branch 'develop' into collected-small-fixes 2024-02-22 04:56:43 -05:00
71e0d506e7 spelling 2024-02-22 04:56:27 -05:00
f15acfffaf Merge branch 'develop' into fix_wall_flow 2024-02-22 04:51:43 -05:00
5cadcbfd68 silence compiler warnings 2024-02-22 04:51:35 -05:00
6af4dac2e5 Error::all() must be called by all MPI ranks 2024-02-22 04:41:16 -05:00
86d306b502 avoid excessive copies 2024-02-22 04:40:55 -05:00
a466d74f31 document requirement of per-type masses 2024-02-22 04:34:22 -05:00
f1a5dd0479 Change warnings to errors 2024-02-22 12:28:23 +03:00
6ac24c297a Add check for varying box size 2024-02-22 11:50:05 +03:00
e51a65696d Merge pull request #4017 from jtclemm/stress_deform
Expanding deformation controls
2024-02-21 21:04:50 -05:00
14348a599c monte carlo insertions and pair style dsmc require per-type masses 2024-02-21 20:59:48 -05:00
71385add8b integrate into documentation system. correct links/references. 2024-02-21 17:50:55 -05:00
b9685e79ea Merge branch 'develop' into stress_deform 2024-02-21 17:35:39 -05:00
06b69f2d40 whitespace 2024-02-21 17:35:28 -05:00
835b65b644 Merge branch 'develop' into general-triclinic 2024-02-21 14:53:32 -07:00
11675587df tweak to underlining 2024-02-21 14:28:53 -07:00
cd4c97f8d8 doc adjust and code comments 2024-02-21 14:18:26 -07:00
0f34c1ec6e Add check for triclinic and periodic boundary 2024-02-21 21:16:21 +03:00
e20ea968b9 Add some clarifications to the doc 2024-02-21 20:49:19 +03:00
81609d04e3 Merge pull request #4080 from rbberger/compute_reaxff_atom_overflow_fix
Fix buffer overflow in compute reaxff/atom
2024-02-21 10:51:37 -05:00
e143bbb4dd use a more "CMake" way to link to cuFFT with check in CMake config run 2024-02-21 10:49:31 -05:00
16b631858f fix typo 2024-02-21 10:02:01 -05:00
4c0952dc70 Doc file updates, reverting h_rate initialization 2024-02-20 21:02:55 -07:00
e64f82a2bd Merge branch 'develop' into collected-small-fixes 2024-02-20 20:45:15 -05:00
08498637aa Merge pull request #4079 from stanmoore1/atom_map_host
Add Kokkos package option to build atom map in serial on CPU
2024-02-20 20:35:34 -05:00
ad9a107530 Merge pull request #4084 from S-Lykles/create_atoms_template_fix
Create atoms template check
2024-02-20 20:20:40 -05:00
9cf4f688d9 improve some explanations for KOKKOS package usage. 2024-02-20 11:38:32 -05:00
d38b3ffd82 remove dead code 2024-02-20 05:14:58 -05:00
00c263cd7b Merge pull request #4085 from lammps/varbug
Fix a bug with removing variables when a vector variable is defined
2024-02-20 05:00:45 -05:00
62968ebcd4 improve readability 2024-02-19 23:17:37 -05:00
46cacf089e whitespace 2024-02-19 21:41:29 -05:00
7a5fa7ca54 not a bug but change variable evaluate local ivar to jvar to avoid code confusion 2024-02-19 17:34:43 -07:00
d70a98561f fix bug in removing a variable 2024-02-19 17:33:51 -07:00
c115cdb18d Move check to be with other checks 2024-02-20 00:55:15 +01:00
aafe28da4d change wording 2024-02-19 23:41:12 +01:00
6b6afe3034 change error to be similar to fix pour and fix deposit 2024-02-19 23:28:22 +01:00
0fed131e52 Update docs of create_atoms 2024-02-19 22:39:28 +01:00
1f0194a218 Add template compatibility check to create_atoms mol 2024-02-19 22:39:08 +01:00
afc82b5fd6 include versionadded tag for new keyword 2024-02-19 13:52:35 -05:00
ec0535172c whitespace 2024-02-19 12:54:59 -05:00
e299e4967d Merge pull request #4074 from bathmatt/bounds-mliap
fixed bounds of loops in ML-IAP
2024-02-19 12:45:30 -05:00
fb1e6610ed edits of doc page for clarity 2024-02-19 10:36:15 -07:00
49ece2af25 Merge pull request #4082 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-02-19 12:12:42 -05:00
1edec590bb Logs for eta mix example 2024-02-19 15:01:51 +01:00
81c6e5c51b add examples using the inputs keyword 2024-02-17 12:14:09 -05:00
7a836c7e69 Update docs 2024-02-16 13:15:40 -07:00
e5bb507d3d add clarifications 2024-02-16 14:31:35 -05:00
f38f2ef4f2 Fix bug 2024-02-16 12:02:06 -07:00
703ea412cb Need to clear atom map in exchange 2024-02-16 10:32:05 -07:00
1ad608c7cf Merge pull request #1 from bathmatt/bounds-mliap
Bounds mliap
2024-02-16 10:15:20 -07:00
e03534196a Remove duplicated code 2024-02-15 17:15:18 -07:00
8c242e7ee8 Fix some issues 2024-02-15 16:45:10 -07:00
90ebca63f3 Fix buffer overflow in compute reaxff/atom 2024-02-15 14:27:52 -07:00
a452ddc667 Tweaks 2024-02-15 13:01:43 -07:00
804ad0aec2 Merge remote-tracking branch 'matt-github-lammps/bounds-mliap' into bounds-mliap 2024-02-15 18:08:32 +01:00
2625d946e3 Fixed typo 2024-02-15 18:06:45 +01:00
e94d89ee3c added mliap_enable_ace to opt in/out of ace functionality in mliap 2024-02-14 17:02:07 -07:00
072b0374e7 do not check for cmath with Intel compilers but assume it is there 2024-02-14 18:55:19 -05:00
ae39eb6569 include missing source file when compiling INTEL package 2024-02-14 18:54:59 -05:00
6ebc32fa29 Update docs 2024-02-14 16:50:52 -07:00
52aefdd117 Add Kokkos package option to build atom map in serial on CPU 2024-02-14 16:42:45 -07:00
f19d9a9f4e ACE mliap examples 2024-02-14 16:18:56 -07:00
414fdeb3ee cleanup and whitespace 2024-02-14 15:42:04 -07:00
e5fbd15b9d ACE mliap examples and virial support 2024-02-14 15:06:01 -07:00
57321b308f OpenMP library is not (yet) properly detected for CrayClang. Work around it. 2024-02-14 13:40:57 -05:00
0591e4a6d4 flag as development branch 2024-02-14 12:36:34 -05:00
4f07f74f52 clean up redundant variables 2024-02-13 19:00:19 -05:00
0951e28a08 Merge branch 'develop' into replicate_periodic_box 2024-02-13 18:52:43 -05:00
254a849a29 Merge pull request #4077 from akohlmey/fix_ewald_const_issue
Fix compilation issue for some pair styles using ewald_const.h
2024-02-13 18:51:38 -05:00
be237f88f6 update kokkospod 2024-02-13 18:49:11 -05:00
443c40b98d Merge branch 'lammps:develop' into create_atoms-overlap_w_mol 2024-02-13 18:47:15 -05:00
382a449f58 Merge branch 'lammps:develop' into fix_reaxff/species-fixes 2024-02-13 18:46:04 -05:00
4188e12522 whitespace 2024-02-13 10:27:57 -07:00
5b645b631b add detection for CrayClang to the OpenMP compatibility check 2024-02-13 11:09:25 -05:00
0273fb4ad4 flag as update 1 version 2024-02-13 08:22:05 -05:00
a48da5b1e4 move ewald_const.h to src and apply it to a few more files 2024-02-13 08:02:32 -05:00
3454e1fce5 update pod 2024-02-13 00:45:08 -05:00
9c7b169003 Renamed the log files under examples/bpm 2024-02-12 19:43:05 -06:00
c6a8f1fe58 Merge pull request #4073 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-02-12 14:14:04 -05:00
adea2fc7f3 fixed bounds 2024-02-12 11:49:43 +01:00
8f848d9a81 update to use modernized APIs without directly accessing internal data of Modify 2024-02-09 15:36:15 -05:00
17ea598613 update API access to fixes and computes. improve error messages. 2024-02-09 15:30:57 -05:00
5aca8099e6 avoid installing libraries and headers for downloaded add-on libraries 2024-02-09 13:38:12 -05:00
1421d53b8c fix bug with assigning molecule IDs in parallel 2024-02-09 11:04:07 -05:00
524470f9fc document restriction for molecule sets. improve warning message. 2024-02-09 11:03:44 -05:00
245f8c2fad silence compiler warnings 2024-02-09 10:43:38 -05:00
69a999e565 remove dead code 2024-02-09 08:19:58 -05:00
a2ae9dce64 apply clang-tidy fixes 2024-02-09 06:29:08 -05:00
f8885cb266 implement clang-tidy fixes 2024-02-09 06:22:10 -05:00
c7831b29c0 Fix formatting issues 2024-02-09 13:28:35 +03:00
9c6e88f575 use plumed version 2.8.3 by default 2024-02-09 05:09:47 -05:00
be742253e2 Fix bug with the masses of the atoms 2024-02-09 13:05:45 +03:00
6aad6177b0 Remove accessing internal data of the Modify class 2024-02-09 12:31:19 +03:00
cba3c91b51 Remove lambda 2024-02-09 12:29:10 +03:00
5839b67d27 Simplify the code and remove redundant include 2024-02-09 12:26:40 +03:00
801c62dbde updated library for better Windows portability 2024-02-09 04:14:14 -05:00
022cedeff0 Remove debug output 2024-02-09 12:08:36 +03:00
953e01d2c4 Linux to Windows cross-compilation is only supported by CMake 2024-02-09 03:44:01 -05:00
11580aea57 update OpenCL loader library to latest upstream version 2024-02-09 03:39:44 -05:00
3358fe36d1 Fixing bugs in child arg parsing 2024-02-08 21:27:58 -07:00
dd6df6edb2 Merge branch 'develop' into fix_wall_flow 2024-02-08 17:52:16 -05:00
c967a5e6cc flag development version 2024-02-08 12:47:52 -05:00
e7f0f9be5a Added another example of a config file 2024-02-08 11:37:49 -06:00
a1f38b9a75 Captured output of the test run, reported if the run failed (e.g. missing packages) 2024-02-08 11:29:26 -06:00
f141543659 Looped over all the runs in an input script, made more descriptive output 2024-02-08 11:12:54 -06:00
ae666de3f7 small optimization and portability to Solaris/OpenIndiana 2024-02-07 22:57:12 -05:00
77ec384620 include kk suffix 2024-02-07 19:58:05 -05:00
843fe4f9e8 remove dead code 2024-02-07 19:57:51 -05:00
b5a1c1abba Merge pull request #4071 from akohlmey/next_release
Update version tags and strings for the next feature release
2024-02-07 18:49:29 -05:00
c81d3ecb06 Merge pull request #4072 from stanmoore1/fft_issue
Fix issue from #4007
2024-02-07 17:32:49 -05:00
420498edbc Remove duplicated code; MIN/MAX defined in pointers.h 2024-02-07 14:51:05 -07:00
244c72afd9 Counted the total num checks per test 2024-02-07 15:42:15 -06:00
051167a14c Supported JUnit XML output 2024-02-07 15:20:55 -06:00
93fcf3cc75 move fix to EXTRA-FIX package, update docs, add reference logs to example 2024-02-07 15:07:11 -05:00
700011f19f Merge branch 'develop' into fft_issue 2024-02-07 14:49:32 -05:00
9f8d7d2956 replace random_external_state.h include from fix_shardlow.h with type declaration 2024-02-07 14:49:05 -05:00
72e3dc50ac Merge pull request #4070 from akohlmey/silence-warnings
Silence some compiler warnings and remove dead code
2024-02-07 14:22:48 -05:00
35fe562bdf Fix issue from #4007 2024-02-07 11:47:44 -07:00
194b45b729 Example file 2024-02-07 09:52:02 -06:00
26cff47386 Removed whitespace 2024-02-07 09:45:29 -06:00
e33590b2fc Whitespace 2024-02-07 16:03:32 +03:00
df7662162e Add example 2024-02-07 13:55:27 +03:00
5bab14d31e Sync unpack_exchange_kokkos with develop 2024-02-07 13:55:27 +03:00
a3a054cc15 Another spell fix 2024-02-07 13:55:27 +03:00
0f5436de99 Fix spelling 2024-02-07 13:55:27 +03:00
4ad5a9d3eb Fix doc 2024-02-07 13:55:27 +03:00
90105fd58a Add wall_flow documentation 2024-02-07 13:55:27 +03:00
c53847ad88 Update citation 2024-02-07 13:55:27 +03:00
381330c3c2 Fix typo 2024-02-07 13:55:27 +03:00
249f3b0af4 Add units command 2024-02-07 13:55:27 +03:00
d7f7306b7d Fix character 2024-02-07 13:55:27 +03:00
19e45187f8 Add cite string 2024-02-07 13:55:27 +03:00
70cc1039fd Some cleaning 2024-02-07 13:55:27 +03:00
b775085189 Add licensing info 2024-02-07 13:55:27 +03:00
ec29117409 Add new fix wall/flow 2024-02-07 13:55:27 +03:00
1eeb7ab19e update version tags for feature release 2024-02-07 05:03:20 -05:00
ff5aa34f5a remove some dead code 2024-02-07 04:39:42 -05:00
6ecc348a66 final changes so MGPT compiles without warnings with and without timings enabled 2024-02-07 04:22:09 -05:00
9921338ee1 update log files for MGPT package 2024-02-07 03:57:12 -05:00
7886327243 reduce warnings in MGPT package 2024-02-06 20:45:49 -05:00
031cef558e silence unused parameter warnings in the gpu lib tree 2024-02-06 20:18:43 -05:00
fc1132b083 fix bug that by chance has no unwanted side effects 2024-02-06 19:37:15 -05:00
49dcefa83b add missing override keywords 2024-02-06 19:36:35 -05:00
dbdcfc5c97 Merge branch 'develop' into general-triclinic
# Conflicts:
#	src/atom.cpp
2024-02-06 19:21:50 -05:00
febb3671d8 removed whitespace 2024-02-06 18:03:17 -06:00
b9ec85427d Merge pull request #4007 from hagertnl/issue3775_fft_kokkos
KSPACE: decouple KOKKOS and non-KOKKOS FFT
2024-02-06 19:01:15 -05:00
c1024c811f Fix name issue 2024-02-06 14:05:04 -07:00
2f4dbdceb6 Remove redundant checks 2024-02-06 13:28:33 -07:00
19a5de1be6 silence compiler warning 2024-02-06 15:11:31 -05:00
5adbc09b71 Move warning to avoid multiple instances 2024-02-06 12:33:01 -07:00
d3784154bf Merge pull request #4041 from akohlmey/test-fix-numdiff
Add fix numdiff based tests for bonded interactions
2024-02-06 14:15:28 -05:00
4b0c1f2605 Merge branch 'develop' of github.com:lammps/lammps into issue3775_fft_kokkos 2024-02-06 12:09:55 -07:00
beaab56826 Move define checks 2024-02-06 12:08:00 -07:00
46b39d2ca4 Add warning 2024-02-06 12:07:48 -07:00
98876e0e2f Merge pull request #4067 from akohlmey/remove_unused_const
Remove unused constants
2024-02-06 13:38:24 -05:00
431788db49 Need bifactor duplicated code 2024-02-06 11:31:16 -07:00
34cd8ad3bc Small cleanup 2024-02-06 11:01:42 -07:00
7fdc09608b add notes about using static constexpr to programming style guide 2024-02-06 12:16:57 -05:00
e95d52780c fix grammar error 2024-02-06 11:47:58 -05:00
0bb6be5dd9 provide a more detailed description of the bundled tests 2024-02-06 11:37:41 -05:00
5773e35892 recover compilation of MPI stubs on older systems that don't default to C++11 2024-02-06 09:36:35 -05:00
def362ffa4 a few final updates 2024-02-06 05:45:58 -05:00
d2def08778 a few more define to constexpr translations 2024-02-06 05:38:14 -05:00
2059b85e22 avoid uninitialized data access 2024-02-06 05:13:32 -05:00
f6ce3ae45e some more constant cleanups 2024-02-06 05:13:12 -05:00
eb9412f507 even more constant cleanup 2024-02-06 00:57:46 -05:00
2760480630 more constant cleanups 2024-02-06 00:28:58 -05:00
187a35d7b2 convert a few more defines to static constexpr 2024-02-05 23:57:41 -05:00
d1f1cf4012 silence compiler warnings 2024-02-05 23:22:07 -05:00
ad855ad7ea remove unused constants 2024-02-05 20:26:23 -05:00
de39bcc1fd update documentation 2024-02-05 17:37:53 -05:00
11b2538cdb print fft info also with -help flag, using single function to create string 2024-02-05 17:32:45 -05:00
5137e86972 en models incorporated 2024-02-05 16:30:44 -06:00
efbc0e0579 whitespace 2024-02-05 17:22:53 -05:00
3c184aac84 add fft support to info command 2024-02-05 16:45:01 -05:00
960b22763d Merge branch 'develop' into issue3775_fft_kokkos 2024-02-05 16:05:59 -05:00
8d673bdfcf Merge pull request #4063 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-02-05 11:00:17 -05:00
094d099699 update author credits 2024-02-05 10:11:01 -05:00
63f33aa3a4 first 2024-02-04 16:29:19 -06:00
e5abfda823 cosmetic 2024-02-03 17:47:00 -05:00
1afb9e9dcb Revamping arg parsing in child class, updates to doc pages 2024-02-02 17:10:35 -07:00
ac8f02ec5a correct comment 2024-02-02 12:17:58 -05:00
82f106c12a ensure that the "timeremain" thermo keyword never reports a negative remaining time 2024-02-02 11:53:40 -05:00
33e57e50e8 cosmetic 2024-02-01 20:15:15 -05:00
2c9e652772 fix uninitialized data bug when using a child class 2024-02-01 20:15:04 -05:00
ace87d2bb8 Only printed out all the quantities being checked with verbose on 2024-02-01 17:21:30 -06:00
621a4e406f Handled exception with the yaml load 2024-02-01 15:22:46 -06:00
8a9dfe8d11 silence compiler warning 2024-02-01 12:30:43 -05:00
ccd50a8958 add workaround for Cray's Clang based compiler to compile fmtlib 2024-02-01 12:12:03 -05:00
d490d24bba update CMake script code to automatically chose heFFTe backed based on FFT choice 2024-02-01 12:10:53 -05:00
06521d9d0d Merge pull request #4062 from rbberger/update_hip_detection
Remove HIP_PATH requirement from CMake build
2024-02-01 08:34:15 -05:00
adc79272c9 update log files for current code 2024-02-01 00:12:04 -05:00
17f869bf5e fix issues with reading and writing data files for systems without atom IDs 2024-01-31 20:20:35 -05:00
5599d1843a update syntax 2024-01-31 19:56:36 -05:00
677c8258e2 fix cmake issues: always build static heFFTe libs, fixup git hash, cmake output 2024-01-31 16:19:55 -05:00
911227a981 Cleaned up and expanded the set of examples being tested 2024-01-31 14:47:11 -06:00
b1688d4287 Merge branch 'upstream' into regression-tests 2024-01-31 13:48:49 -06:00
829708bd71 Allowed to specify example folders from arguments 2024-01-31 13:46:34 -06:00
e9dc5bafff Improved failed test info 2024-01-31 13:06:04 -06:00
de7c459b2f consolidate FFT settings in headers 2024-01-31 13:28:41 -05:00
e319555f64 merge lmpfftsettings_kokkos.h into lmpfftsettings.h 2024-01-31 12:54:03 -05:00
23ed9a0980 Merge branch 'develop' into issue3775_fft_kokkos 2024-01-31 12:39:02 -05:00
cfe6afe665 Used the absolute path for the lammps binary, no need for symbolic links 2024-01-31 11:03:23 -06:00
5b6c0c6b56 Check eta property for fix electrode uses ghost on 2024-01-31 15:42:10 +01:00
35215606e8 Merge remote-tracking branch 'lammps/develop' into merge-develop 2024-01-31 14:41:36 +01:00
e649c0e070 consistent error messages for parent and child class 2024-01-30 20:04:07 -05:00
bff789aac9 silence compiler warnings and update format 2024-01-30 20:03:26 -05:00
840577114e force enumerators to be consistent by moving them to base class declaration 2024-01-30 19:38:58 -05:00
9d46408fa4 delete unused variables 2024-01-30 19:23:40 -05:00
103dc9ef66 fix missing "else" bug 2024-01-30 19:21:48 -05:00
cbf56bd7f8 Merge branch 'develop' into stress_deform 2024-01-30 18:56:19 -05:00
91d292fb7c Tested with more example subfolders 2024-01-30 17:08:24 -06:00
a835c5f3d9 Restoring some error message locations, minor edits 2024-01-30 15:50:40 -07:00
7f152de062 Rewiring arg parsing and data ownership 2024-01-30 15:29:02 -07:00
293e930cb0 Expanded the tests for more subfolders, need to check if there is an existing log file with matching nprocs 2024-01-30 14:01:43 -06:00
c0fc4c8908 Cleaned up and tested with micelle and melt under examples 2024-01-30 13:07:57 -06:00
1cecfb9df1 Merge branch 'develop' into test-fix-numdiff 2024-01-30 04:30:48 -05:00
c0b16acb7e Merge branch 'develop' into collected-small-changes 2024-01-30 00:23:01 -05:00
52de76d97b Merge pull request #4015 from srtee/develop
add border information to Atom::add_custom and Atom::find_custom
2024-01-29 22:46:05 -05:00
6927934243 make estimated accuracy output more readable 2024-01-29 21:12:41 -05:00
7905e5d146 Merge branch 'develop' into general-triclinic
# Conflicts:
#	src/atom.cpp
2024-01-29 21:05:21 -05:00
153e30227e Added function to extract output from an existing log file into a yaml data structure, working on in place testing 2024-01-29 18:07:21 -06:00
c43b10f952 Merge branch 'develop' into srtee_develop 2024-01-29 17:37:54 -05:00
ba4174f474 Added tolerances to the config file 2024-01-29 15:25:52 -06:00
87fd1c63df whitespace 2024-01-29 15:52:04 -05:00
ef1857d50d programming style updates 2024-01-29 15:48:30 -05:00
a83a5165ee simplify 2024-01-28 11:30:11 -05:00
75c20aa5a5 Merge branch 'develop' into test-fix-numdiff 2024-01-26 23:21:44 -05:00
84f86c2c15 improve error message 2024-01-26 23:18:15 -05:00
a2b7a49c90 Remove HIP_PATH requirement from CMake build
It is not recommended to set the HIP_PATH environment variable anymore as it
may break hipcc in some cases.

We only used it for adding the necessary CMAKE_PREFIX_PATH, which after the
folder structure reorganization in 5.x was pointing to the same location
anyway.

Closes issue #3986
2024-01-26 15:19:41 -07:00
5c43b56699 silence compiler warning 2024-01-26 16:47:22 -05:00
2ea200dc01 add ghost check to redID in pair_amoeba.cpp 2024-01-27 07:26:47 +10:00
0a1362654b make compiling QUIP library more reliable
- replace any -std=f* flags when using GNU fortran with -std=gnu
- cancel parallel make and require serial compile to avoid race condition accessing modules
- increase maximum allowed size for arrays on the stack 100 times
2024-01-26 16:23:14 -05:00
14bf502abe correct headings 2024-01-26 15:51:17 -05:00
28de91a2cc avoid uninitialized pointers 2024-01-26 15:51:16 -05:00
7d53f8d1c5 Merge pull request #4054 from akohlmey/consolidate-sphere-omega-flag
Remove sphere_flag and replace with radius_flag and omega_flag as needed
2024-01-26 15:50:32 -05:00
40782fec09 fix spelling issues 2024-01-26 14:55:09 -05:00
6bfe0ca573 remove accidentally included file 2024-01-26 14:46:55 -05:00
e84adc630b adjustements to atom_style doc page 2024-01-26 10:11:35 -07:00
4082ca077e Merge branch 'develop' into consolidate-sphere-omega-flag
# Conflicts:
#	src/compute_temp_sphere.cpp
2024-01-25 17:57:53 -05:00
3941baeda1 Merge pull request #4051 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-01-25 17:55:13 -05:00
d7e8530503 Merge pull request #4058 from akohlmey/internal_variable_interface
Add function to library interfaces to set internal style variable values
2024-01-25 16:15:56 -05:00
1016e28f98 avoid redundant checks and accessing uninitialized data 2024-01-25 14:02:03 -05:00
9813abe428 whitespace 2024-01-25 12:49:01 -05:00
4134c82117 say more explicitly what the added function calls do 2024-01-25 12:47:06 -05:00
9cae812c51 Merge branch 'develop' into general-triclinic 2024-01-25 09:04:46 -05:00
2a95c09d77 Merge branch 'develop' into patch-8 2024-01-25 09:04:29 -05:00
9d68b0ecc5 Merge branch 'develop' into issue3775_fft_kokkos 2024-01-25 09:03:52 -05:00
104af8bba4 simplify 2024-01-25 04:25:48 -05:00
6442e05988 even more define to static constexpr conversions 2024-01-25 02:17:28 -05:00
7cb907da58 remove unused variables 2024-01-24 21:19:25 -05:00
d2170cedec rename functions to avoid overloading polymorph functions 2024-01-24 21:15:02 -05:00
a6261d75b9 some more define to static constexpr conversions 2024-01-24 21:14:19 -05:00
ebd493ea77 update atom_style command documentation 2024-01-24 16:11:29 -05:00
77e7a71ded Fixed typo in NEB documentation (energy units --> dimensionless) 2024-01-24 14:52:42 -05:00
4a13fe68e0 add tests for new library APIs 2024-01-24 04:47:59 -05:00
7b210dd97e add documentation for new library APIs to set variables and changes to the old API 2024-01-24 04:14:03 -05:00
c7a3571974 add library interface to Variable::internal_set() 2024-01-24 03:59:29 -05:00
7023723e05 remove accidentally added files 2024-01-23 21:23:36 -05:00
f7fdad8bc5 update external MDI library to version 1.4.26 2024-01-23 21:21:04 -05:00
70ea1dd352 Refreshing no shift flag for solid particles 2024-01-23 14:58:31 -07:00
dd7e95cd12 Merge branch 'rheo' of github.com:jtclemm/lammps into rheo 2024-01-23 14:04:28 -07:00
574ccc64eb Fixing bugs for solid particles 2024-01-23 14:04:10 -07:00
7c7f07e28d Misc patches and missed changes 2024-01-22 22:13:29 -07:00
6dc676247f Merge branch 'stress_deform' of github.com:jtclemm/lammps into stress_deform 2024-01-22 21:25:46 -07:00
87b2662ee9 Moving pressure options to subclass 2024-01-22 21:21:20 -07:00
039ad4f4ae change Atom_KOKKOS::add_custom to match Atom, and tidy headers in atom.h 2024-01-22 15:11:52 +10:00
de35784c93 update cache action to v4 2024-01-21 21:16:33 -05:00
1f863cd4a3 simplify since constexpr should conver to FFT_SCALAR at compile time 2024-01-21 15:59:09 -05:00
12422ff510 replace defines with static constexpr declarations 2024-01-21 15:53:35 -05:00
a473d6f347 refactor dump code to no longer need access to internal Modify class data 2024-01-21 14:42:57 -05:00
fd0507bded fix refactoring bug 2024-01-21 14:22:41 -05:00
6339dfad09 replace references to fix ave/spatial with correct equivalents 2024-01-21 12:24:38 -05:00
722452657c avoid direct access to internal data of Modify class instance 2024-01-21 12:19:28 -05:00
35124fdef3 simplify and avoid direct access to the list of fixes in Modify 2024-01-21 11:50:29 -05:00
5b80899fa4 simplify and avoid direct access to the list of computes in Modify 2024-01-21 11:50:17 -05:00
5ece2139e8 remove tabs and trailing whitespace 2024-01-21 10:02:41 -05:00
aedc061c45 change skip inflag check logic to avoid error opening non-existant file 2024-01-21 09:42:24 -05:00
795d6e4420 silence some more compiler warnings in CUDA code 2024-01-21 09:36:10 -05:00
2760452c68 suppress warnings about reading from stdin for flags that do not process an input 2024-01-21 09:26:42 -05:00
b8ba3da4e2 silence a few more compiler warnings 2024-01-21 00:35:36 -05:00
80ef8656e8 remove some more dead code to silence compiler warnings 2024-01-20 23:11:20 -05:00
35a6bf0cac silence compiler warning 2024-01-20 22:59:23 -05:00
930a717f5e silence CMake warning about FindCUDA.cmake being obsolete 2024-01-20 22:59:13 -05:00
88e384037f make sure both NEB class constructors are consistently initialized 2024-01-20 14:49:57 -05:00
5a67c4d704 add check for another kind of broken references in ReST files 2024-01-20 10:53:41 -05:00
52e76502f4 formatting update, correct references 2024-01-20 10:53:04 -05:00
d6d8a2cd8a correctly determine when to create "rootworld" communicator 2024-01-20 10:52:20 -05:00
80861fe1ff New syntax in doc files 2024-01-19 21:24:27 -07:00
0d1234e63a modernize by replacing Modify::find_compute() with Modify::get_compute_by_id() 2024-01-19 15:16:23 -05:00
ae2c17d3ad remove unused code 2024-01-19 15:01:53 -05:00
300b75fbff remove references to sphere_flag 2024-01-19 15:01:19 -05:00
0efff49bdf capitalize constants 2024-01-19 13:00:41 -05:00
39d21473a0 various coding style updates 2024-01-19 13:00:29 -05:00
e0967af6e8 move fix wall style enumerator to header and import from there for consistency 2024-01-19 12:58:48 -05:00
0d8f549e33 remove sphere_flag and replace with radius_flag and omega_flag as needed 2024-01-19 12:50:31 -05:00
3b4b7eb919 there is no support for dipoles in fix npt/cauchy 2024-01-19 09:48:27 -05:00
f73cb28ed4 modernize and apply clang-format 2024-01-19 05:54:54 -05:00
e28f93dca4 programming style updates 2024-01-19 00:03:13 -05:00
4015d1bb39 initialize static string buffers to empty strings 2024-01-19 00:02:50 -05:00
3ae4779c7f convert defines into static constexpr 2024-01-18 23:59:33 -05:00
48e83b2298 remove unused parameter and silence compiler warnings 2024-01-18 22:55:02 -05:00
991663feff Avoid (harmless) errors when shutting down the GPU. 2024-01-18 22:42:32 -05:00
3b4291c750 remove undesired example 2024-01-18 18:15:42 -05:00
fcc85fb223 Revert "revert more general doc changes. those are moved to a separate branch for further edits."
This reverts commit fb9ae23516.
2024-01-18 18:14:41 -05:00
54794a45de Merge pull request #4030 from alphataubio/alphataubio-charmmfsw-kk
Kokkos charmmfsw pair and dihedral styles
2024-01-18 18:10:12 -05:00
4b561d5f8e fix typo 2024-01-18 17:06:58 -05:00
affb879037 Merge branch 'develop' into rheo 2024-01-18 14:52:15 -07:00
fb9ae23516 revert more general doc changes. those are moved to a separate branch for further edits. 2024-01-18 16:46:47 -05:00
01973ddf23 Merge branch 'develop' into alphataubio-charmmfsw-kk 2024-01-18 16:37:27 -05:00
af60285a3f Merge pull request #4048 from akohlmey/lepton_updates
Update LEPTON styles for more flexibility
2024-01-18 16:34:38 -05:00
8cf2705d68 Merge branch 'develop' into general-triclinic 2024-01-18 15:01:09 -05:00
0ad1d29c4d Merge pull request #4047 from stanmoore1/kk_fix_exchange_bug
Fix bug in some Kokkos fixes' unpack exchange on device
2024-01-18 14:58:09 -05:00
fe1b568241 Merge pull request #4046 from akohlmey/molecule-dipole
Add support for Dipoles section to molecule files
2024-01-18 14:57:01 -05:00
14abc184f8 Merge pull request #4040 from alphataubio/cgdna
[CG-DNA examples/util] fixed indentations and ported python 2 code to python 3
2024-01-18 14:55:41 -05:00
bf9b8606ef Merge pull request #3905 from jrgissing/bond_react_fixes_aug23
Assorted bond/react fixes
2024-01-18 14:41:01 -05:00
3b3ab4207b Merge pull request #4042 from akohlmey/fmtlib-10.2.1
Update embedded fmtlib code to version 10.2.1
2024-01-18 14:33:28 -05:00
425421c1ca fix typo, cut-n-paste error, and add clarification 2024-01-18 14:32:40 -05:00
7453697316 Merge branch 'lammps:develop' into pace-mliap 2024-01-18 09:18:05 -07:00
90a79d9a4b change unit test to include expressions with constant force or potential 2024-01-18 11:06:52 -05:00
73194764e9 add optional keywords "auto_offset" and "no_offset" to bond/angle style lepton 2024-01-18 11:05:52 -05:00
f3c5002634 Merge branch 'lammps:develop' into bond_react_fixes_aug23 2024-01-18 10:00:00 -05:00
57db9be64f add support for Lepton expressions with constant force or constant potential 2024-01-18 09:46:23 -05:00
5304c43fef add test for exceptions and evaluation of compiled expressions 2024-01-18 04:32:20 -05:00
2d8f622c6a Merge pull request #4039 from akohlmey/collected-small-changes
Collected small changes and fixes
2024-01-17 19:28:48 -05:00
189b08b4a5 Fix bug in some Kokkos fixes' unpack exchange on device 2024-01-17 14:47:59 -07:00
9c4597b5e9 more GPU package cleanup from Trung 2024-01-17 16:12:36 -05:00
6e2df52c8f remove dead code and align better with LAMMPS programming style 2024-01-17 16:09:16 -05:00
16d4811592 move fix bond/history back to src folder 2024-01-17 15:48:03 -05:00
d5da47cf33 Revert "adjust a few more fix styles for fix bond/history being optional"
This reverts commit 497c48bd80.
2024-01-17 15:47:11 -05:00
b47ad7acf4 Revert "make delete_bonds command code compatible with BPM package not being installed"
This reverts commit 715b030bd6.
2024-01-17 15:46:03 -05:00
f78f596d9d document using enumerator constants in Atom and AtomVec classes 2024-01-17 14:58:09 -05:00
ff0d18114e silence compiler warnings 2024-01-17 13:25:46 -05:00
d30483fa67 fix MPI issue with PairAmoeba::print_settings() 2024-01-17 12:31:58 -05:00
6f6a08c251 add ghost checking for custom peratom quantities amgroup and pval 2024-01-17 15:54:47 +10:00
f23ba8fbad make certain temporary test files are deleted 2024-01-16 17:54:08 -05:00
f5cbef8b12 fix typo 2024-01-16 15:57:42 -05:00
8a53542dd1 updated examples 2024-01-16 11:59:25 -07:00
deb8416630 update tests for echoing the title line of molecule files 2024-01-16 13:53:07 -05:00
68f770dee9 ACE mliap initial commit 2024-01-16 11:31:53 -07:00
b6d27dfb96 add versionadded tag 2024-01-16 13:06:00 -05:00
103d8cadb9 add unit tests for dipoles in molecule files 2024-01-16 13:05:49 -05:00
9312ce0beb store and print title line of molecule 2024-01-16 12:20:02 -05:00
f6f7392595 make more user friendly 2024-01-16 12:04:13 -05:00
87297902a3 Add support for "Dipoles" section in molecule file 2024-01-16 12:04:00 -05:00
99e38ba55a fix whitespace 2024-01-16 23:44:00 +10:00
90b682834f Merge branch 'develop' of https://github.com/lammps/lammps into develop 2024-01-16 23:36:24 +10:00
b95706ca64 make separate find_custom_ghost() and use four separate ghost info arrays 2024-01-16 23:35:40 +10:00
89fd9ec531 improve ghost keyword comments in fix_property_atom.cpp 2024-01-16 23:04:59 +10:00
e3f81a2513 correct typo 2024-01-16 04:11:56 -05:00
e82ba61183 loop over all neighbor lists for created bonds same as for broken bonds 2024-01-16 04:02:38 -05:00
67f06097ee Updating utils functions for pair rheo/react 2024-01-15 22:04:26 -07:00
a34ddd7ccd Merge branch 'rheo' of github.com:jtclemm/lammps into rheo 2024-01-15 17:26:42 -07:00
56764f0244 Merge branch 'develop' into rheo 2024-01-15 17:26:23 -07:00
6f0fab8b08 bugfix for pair style coul/slater/long/gpu from Trung 2024-01-15 12:29:05 -05:00
74656f4e04 silence compiler warnings 2024-01-15 12:27:05 -05:00
4d830f1450 Merge branch 'develop' into collected-small-changes 2024-01-15 09:23:35 -05:00
8076d89422 Merge pull request #4037 from akohlmey/bigint_dof_computation
Make computation of PPPM grid counts and DOFs removed by fixes compatible with large systems
2024-01-15 09:22:43 -05:00
921ddffda2 small code simplification for the cylinder indenter 2024-01-14 17:18:33 +01:00
07876b5d1a this limitation no longer applies 2024-01-14 07:53:33 -05:00
b6b2c029b6 improve description of testing 2024-01-14 07:33:31 -05:00
9587e92a3c increase numdiff fudge factor so that individual epsilons need to be changed less 2024-01-13 10:33:13 -05:00
3c40f9fda2 remove obsolete machine makefiles 2024-01-13 10:23:58 -05:00
3668c0fc1b Merge branch 'develop' into fmtlib-10.2.1 2024-01-13 05:06:52 -05:00
a3682e1bd5 retain compatibility with python 2.x 2024-01-13 04:56:16 -05:00
497c48bd80 adjust a few more fix styles for fix bond/history being optional 2024-01-13 04:50:28 -05:00
f93032b903 skip failing numdiff tests for now 2024-01-13 04:26:08 -05:00
0d64aa375d tweak epsilon to pass numdiff tests 2024-01-13 04:05:34 -05:00
2ac37aa91a Merge branch 'rheo' of github.com:jtclemm/lammps into rheo 2024-01-12 17:00:37 -07:00
a0cf5191c2 Adding nonzero starting rhos 2024-01-12 17:00:12 -07:00
c340accb0a skip numdiff tests for linear tables (for now?) 2024-01-12 19:00:07 -05:00
e51a44862c add fix numdiff test to check consistency between energy and force for bonded interactions 2024-01-12 18:59:43 -05:00
a6b0c349d8 update unit test data for corrected angle style cosine/periodic 2024-01-12 18:45:10 -05:00
39579d21c8 correct factor 2 force error for m=1 in angle style cosine/periodic 2024-01-12 18:45:10 -05:00
2b04d23504 update unit test data for corrected angle style cosine/periodic 2024-01-12 18:43:19 -05:00
7a7492b757 cosmetic 2024-01-12 18:42:16 -05:00
6329d491dc correct factor 2 force error for m=1 in angle style cosine/periodic 2024-01-12 18:40:30 -05:00
f9eadacf6d correct factor 2 force error for m=1 in angle style cosine/periodic 2024-01-12 18:37:45 -05:00
5b05112aab fixed indentations and ported python 2 code to python 3 2024-01-12 18:19:50 -05:00
715b030bd6 make delete_bonds command code compatible with BPM package not being installed 2024-01-12 16:26:43 -05:00
a131b90962 make delete_bonds command code compatible with BPM package not being installed 2024-01-12 16:19:11 -05:00
faef34a8d4 Merge branch 'develop' into rheo 2024-01-12 13:26:38 -07:00
01a3656eaf correct factor 2 force error for m=1 in angle style cosine/periodic 2024-01-12 15:25:42 -05:00
72ba7f6535 whitespace/clang-format 2024-01-12 15:25:42 -05:00
7c744f170e improve error message 2024-01-12 15:25:41 -05:00
02d2509e68 Merge branch 'develop' into bigint_dof_computation 2024-01-12 15:25:09 -05:00
df5461c27e Merge pull request #4021 from jtclemm/BPM
Bug fixes for BPM package
2024-01-12 15:24:24 -05:00
92481b546e Merge pull request #4036 from akohlmey/collected-kokkos-changes
Collected small KOKKOS changes
2024-01-12 15:12:56 -05:00
dd7ce5fbaa remove one more source of 32-bit integer overflow 2024-01-12 14:57:26 -05:00
b041ac7454 backport bugfix for Kokkos with SYCL from upstream 2024-01-12 13:30:16 -05:00
073a72d933 fixing merge conflicts 2024-01-12 11:12:02 -07:00
5ef8e8cf9a remove variables that are set but not used 2024-01-11 18:53:14 -05:00
d4bd385f5e remove unused function parameters and corresponding variables 2024-01-11 18:52:47 -05:00
b5aa04c36a remove unused variable 2024-01-11 18:52:23 -05:00
4cb82408c3 Merge branch 'develop' into fmtlib-10.2.1 2024-01-11 18:04:41 -05:00
18d140a96e Small tweak 2024-01-11 15:51:50 -07:00
22d50b32e7 Fix more warnings and remove deprecated Kokkos code 2024-01-11 15:40:45 -07:00
b5dbc4ebf6 Add missing dependency 2024-01-11 09:29:54 -07:00
4bda4621bb check whether total number of replica is too large for 32-bit int 2024-01-11 11:12:27 -05:00
22c7f0f150 redid plots to not be misleading with y axis not at 0 2024-01-11 10:57:00 -05:00
4d74c62325 silence some more warnings 2024-01-10 20:17:17 -05:00
62cf534de0 whitespace 2024-01-10 20:07:01 -05:00
c088681bf0 more large system shake stats fixes 2024-01-10 20:04:47 -05:00
ad7b5e38ab Merge branch 'develop' into replicate_periodic_box 2024-01-10 20:01:42 -05:00
60f1233b07 Merge branch 'lammps:develop' into create_atoms-overlap_w_mol 2024-01-10 19:55:18 -05:00
768163865e avoid 32-bit integer overflow for PPPM grid 2024-01-10 19:54:29 -05:00
63332eb1b2 Merge branch 'lammps:develop' into fix_reaxff/species-fixes 2024-01-10 19:52:55 -05:00
0b0b35856c remove unnecessary newton_bond considerations
related issue: fix bond/react may need modifications to work as expected when certain special_bond settings are used or when specials are defined explicitly in molecule templates and do not include all neighbors
2024-01-10 19:49:15 -05:00
f6649762e2 Moving files to BPM dir, skipping copy lists 2024-01-10 16:58:29 -07:00
c60217123a Merge branch 'lammps:develop' into bond_react_fixes_aug23 2024-01-10 18:45:29 -05:00
4bc77bc4ab Fix potential integer overflow in PPPM 2024-01-10 16:23:58 -07:00
0cfb6a058c make SHAKE stats output 64-bit compatible 2024-01-10 16:42:21 -05:00
8b89c330e6 make removed DOF computation large system compatible 2024-01-10 15:32:02 -05:00
93b7c6e380 Fix warnings 2024-01-10 12:21:22 -07:00
db45c23d69 silence compiler warnings 2024-01-10 11:52:09 -05:00
bd0c4f3979 remove dead code and silence compiler warning 2024-01-10 11:52:08 -05:00
2252706931 Merge branch 'develop' of github.com:lammps/lammps into develop 2024-01-09 10:59:51 +01:00
7ca2dcac62 Merge pull request #4034 from jorge-ramirez-upm/correct-fix-ave-correlate-long
Small correction to fix/ave/correlate/long to show the right output after a restart
2024-01-08 17:01:22 -05:00
c60d439fb7 Switched to using argparse 2024-01-08 15:00:24 -06:00
e280a2660f removed files generated bycharmmgui but not needed by example 2024-01-08 15:22:57 -05:00
cc957c6713 Fix another bug 2024-01-08 10:56:32 -07:00
7b4334695d Fix another bug from #4003 2024-01-08 10:29:48 -07:00
547024a0b1 Fix bug from #4003 2024-01-08 09:52:05 -07:00
1b6dc1fe8c Small correction to fix/ave/correlate/long to show the right output after a restart 2024-01-07 18:38:47 +01:00
2643a94f79 minor math formatting changes after phone readability testing, and added note box to use tip3 with charmm 2024-01-06 19:49:43 -05:00
9a97906fe5 fixed Trailing whitespaces in rst 2024-01-06 17:29:37 -05:00
0d431f74d2 fixed latex missing $ error and added little bit of negative spaces 2024-01-06 17:22:28 -05:00
b784d4aadd added 1HVN example into new examples/charmm directory
checked in as a separate commit, if maintainer doesnt approve, then easy to revert atomically.

if maintainer approves, then ill add mentions to examples/README and Examples.rst, and anywhere else needed
2024-01-06 09:04:15 -05:00
8f0c8592a9 updated charmm docs as requested by @akohlmey
- gathered all  tutorial like discussion, equations, and plot for old charmm and new charmmfsw into howto

- added equations and another plot for charmmfsw

- charmmgui 1HVN and 2CV5 examples
2024-01-06 09:01:22 -05:00
bd27903e8c Remove debug comments, small tweaks 2024-01-05 16:32:46 -07:00
404b579396 integrate into manual and add cross-references for CHARMM styles 2024-01-05 18:17:36 -05:00
aa5a4f5f64 Merge branch 'alphataubio-charmmfsw-kk' of https://github.com/alphataubio/lammps-alphataubio into alphataubio-charmmfsw-kk 2024-01-05 17:25:00 -05:00
c7521c44ef Revert "updated pair_charmm.rst"
This reverts commit f113ec84be.
2024-01-05 17:23:57 -05:00
cc3eb56c13 Fix FIXME 2024-01-05 13:12:35 -07:00
8e3b5bf327 Fixed memory bug in ML-IAP unified with atom name definitions
Added explict memory allocation for type string in ML-IAP unified. Corrected bug where atom types were not properly alligned with the potential.
2024-01-05 13:05:27 -07:00
ac2c852121 integration into documentation 2024-01-05 13:45:40 -05:00
fc2d78fc0a Update Makefiles 2024-01-05 09:25:32 -07:00
10c0922588 Add author attribution 2024-01-05 09:24:34 -07:00
f113ec84be updated pair_charmm.rst 2024-01-05 11:17:26 -05:00
ec84580d41 fix whitespace styling 2024-01-05 05:11:33 -05:00
624bab71c6 Merge branch 'lammps:develop' into alphataubio-charmmfsw-kk 2024-01-05 04:41:31 -05:00
43642a6040 Kokkos 4 checks for compatible compilers so this is no longer needed. 2024-01-05 02:51:41 -05:00
45e0d5be0e Merge branch 'fmtlib-10.2.1' of github.com:akohlmey/lammps into fmtlib-10.2.1 2024-01-05 02:50:58 -05:00
0e148174ae update fmtlib to version 10.2.1 2024-01-05 02:49:57 -05:00
8ae9151b30 must include fmt/ranges.h for fmt::join() 2024-01-05 02:49:56 -05:00
1e9eb933be Merge pull request #4031 from stanmoore1/kk_pace_opt
Optimize Kokkos PACE pair style for GPUs
2024-01-05 02:48:45 -05:00
01482e7a2e update fmtlib to version 10.2.1 2024-01-04 22:46:40 -05:00
f9aafff992 must include fmt/ranges.h for fmt::join() 2024-01-04 22:45:53 -05:00
8090af5649 Merge branch 'develop' into issue3775_fft_kokkos 2024-01-04 21:11:54 -05:00
c6d1cbef5a Merge branch 'develop' into general-triclinic 2024-01-04 21:10:50 -05:00
094128dd4d Merge branch 'develop' into patch-8 2024-01-04 21:10:19 -05:00
9d95c51b0b Merge branch 'develop' into kk_pace_opt
# Conflicts:
#	src/ML-PACE/compute_pace.cpp
2024-01-04 21:08:50 -05:00
0e2a065f6b Merge pull request #4003 from stanmoore1/kk_half_thread
Thread over neighbors in addition to atoms when using a half neighlist
2024-01-04 21:04:31 -05:00
3076f1c5f8 Merge pull request #4018 from akohlmey/collected-small-fixes
Collected small fixes and updates
2024-01-04 17:47:23 -05:00
4b4e796c19 Revert " // FIXME:"
This reverts commit de1f6eefd7.

my first idea to reset back force->qqr2e = force->qqr2e_charmm_real didnt work because class destructor gets called first THEN superclass destructor gets called
2024-01-04 16:09:04 -05:00
e26a762f88 improve compatibility of oneapi.cmake preset 2024-01-04 11:21:38 -05:00
ac9afb26dd aesthetic optimization for xscale, yscale and zscale 2024-01-04 17:38:14 +02:00
c065d4bac6 // FIXME: destructor from this class resets
//
    // force->qqr2e = force->qqr2e_lammps_real
    //
    // at end of timestep 0 causing ~E-6 errors for steps 1,2,...
    // everywhere in pair_lj_charmmfsw_coul_long_kokkos when
    // running kokkos with openmp (and probably with GPUs also).
    //
    // WORKAROUND: for now until guidance from lammps devs is to
    // comment out this line here (commit to be reversed later).

    //force->qqr2e = force->qqr2e_lammps_real;
2024-01-04 00:50:06 -05:00
de1f6eefd7 // FIXME:
// superclass destructor from KSPACE/pair_lj_charmmfsw_coul_long.cpp:81
  // resets force->qqr2e = force->qqr2e_lammps_real at end of timestep 0
  // causing ~E-6 errors for steps 1,2,... everywhere in this class when
  // running kokkos with openmp (and probably with GPUs also).
  //
  // WORKAROUND: for now until guidance from lammps devs is to
  // reset it back force->qqr2e = force->qqr2e_charmm_real here.
2024-01-03 23:00:07 -05:00
13b6d40062 tiny_epoxy example correction
not sure why this issue showed up in recent LAMMPS versions
2024-01-03 20:38:10 -05:00
a6b00a60b2 additional check/warning for valid templates 2024-01-03 20:31:22 -05:00
fd846d539d Merge branch 'develop' of github.com:lammps/lammps into issue3775_fft_kokkos 2024-01-03 17:57:41 -07:00
9d7582ec1b Small tweak for readability 2024-01-03 16:59:11 -07:00
55784019f7 Fix CPU issue 2024-01-03 16:46:06 -07:00
e00fc992fc skip python tests using numpy that fail randomly on macOS 2024-01-03 15:10:37 -07:00
4fbb913425 skip python tests using numpy that fail randomly on macOS 2024-01-03 15:07:41 -07:00
600eaf837b update preferred contact info 2024-01-03 16:20:04 -05:00
66a5f56682 whitespace 2024-01-03 14:13:11 -07:00
377450882e Port changes to pair_pace_extrapolation_kokkos, unify code 2024-01-03 14:10:29 -07:00
5020861cbc Fix compiler warnings 2024-01-03 13:22:52 -07:00
163805bc33 removed scaffolding comments and fixed "(STACKPARAMS?m_params[itype][jtype].lj3:params(itype,jtype).lj3)" in compute_evdwl 2024-01-03 15:18:34 -05:00
d9ea10ca24 Merge branch 'lammps:develop' into bond_react_fixes_aug23 2024-01-03 14:59:26 -05:00
817c7bac18 Optimize Kokkos PACE pair style for GPUs 2024-01-03 10:11:30 -07:00
3a1d3bb64d second draft... applied changes to compute methods 2024-01-03 03:00:10 -05:00
c1446ddd92 improve error messages 2024-01-02 11:02:59 -05:00
94a124eb23 Merge branch 'lammps:develop' into alphataubio-charmmfsw-kk 2024-01-02 04:52:25 -05:00
0562c31138 added pair/lj/charmmfsw/coul/long/kk and dihedral/charmmfsw/kk so that lammps scripts generated by charmm-gui.org can be run without tweaks 2024-01-02 04:51:10 -05:00
ded160cd41 Generalizing fix update/special/bonds for pair hybrid 2023-12-31 10:49:59 -07:00
9546fd89e5 adjust heading levels 2023-12-23 12:16:53 -05:00
05bbb94345 add graph to show relation between branches and versions of LAMMPS 2023-12-23 12:06:38 -05:00
5d9f384338 recreate graphvis images with graphviz 8.1 2023-12-23 11:58:40 -05:00
b01065b398 use "neato" layout only for lammps-classes.dot to avoid issues with recent graphviz versions 2023-12-23 11:57:58 -05:00
bdb0fc6b7a replace non-ASCII character 2023-12-23 11:35:39 -05:00
0515f07172 whitespace 2023-12-23 03:00:11 -05:00
d080a1c218 Merge branch 'aip-water-update' of github.com:oywg11/lammps into collected-small-fixes 2023-12-23 02:46:55 -05:00
0822a49cfc Merge branch 'develop' into collected-small-fixes 2023-12-23 02:45:37 -05:00
35214120ad Merge pull request #4025 from oywg11/ilp-tmd-update
Add a new potential file for ilp/tmd
2023-12-22 21:06:27 -05:00
6a636d5491 Merge pull request #4023 from ndtrung81/unittest-debug
Updated the Developer unittest section for debugging failed unit tests individually
2023-12-22 19:59:14 -05:00
f147df8b44 add full list of atom pairs 2023-12-23 08:29:15 +08:00
6489e475b9 Merge pull request #4022 from akohlmey/cmap-fixes-for-charmm-gui
Corrections for fix cmap to be compatible with CMAP files created by CHARMM-GUI
2023-12-22 19:19:52 -05:00
3f677f798a Fleshing out tension model 2023-12-22 17:04:56 -07:00
4ea40ed2fd Merge branch 'ilp-tmd-update' of github.com:oywg11/lammps into collected-small-fixes 2023-12-22 14:45:43 -05:00
8cf958e241 Merge branch 'aip-water-update' of github.com:oywg11/lammps into collected-small-fixes 2023-12-22 14:44:27 -05:00
7cfbe77532 report incompatibility of verlet/split with INTEL package kspace styles 2023-12-22 13:42:56 -05:00
5b00ad8f71 flag error if using INTEL package kspace styles with run style verlet/split 2023-12-22 13:37:20 -05:00
08d2dd2699 Prototyping latent heat, other misc fixes 2023-12-22 10:46:44 -07:00
c964d8cda8 skip python tests using numpy that fail randomly on macOS 2023-12-22 11:35:35 -05:00
efa37fff7f remove cached copy of "layout" since this was not always initialized when used 2023-12-22 11:31:31 -05:00
c4124c0995 correct statement about Xeon Phi support 2023-12-22 10:28:45 -05:00
a16a1a768c fix cut-n-paste bug and avoid uninitialized data access 2023-12-22 00:04:16 -05:00
f8495eaf75 make certain nbonds is initialized 2023-12-21 23:59:35 -05:00
2b31a2bed5 gracefully handle reaxff parameter files without hydrogen bond parameters 2023-12-21 16:07:58 -05:00
3b15594707 update citation comment 2023-12-21 15:58:29 -05:00
dedbd8f6db improvements from clang-tidy 2023-12-21 14:25:31 -05:00
d61c379b0c Error formatting 2023-12-21 14:28:54 +01:00
de066bcde0 Merge remote-tracking branch 'lammps/develop' into electrode 2023-12-21 14:13:16 +01:00
b857cd9e39 update the doc file 2023-12-21 11:31:26 +08:00
b58203fc52 update the doc file 2023-12-21 10:44:03 +08:00
aa221e2f2b add new potential file for aip/water/2dm 2023-12-21 10:28:53 +08:00
b0f3f88b49 Merge branch 'stress_deform' of github.com:jtclemm/lammps into stress_deform 2023-12-20 10:51:37 -07:00
e69a079545 Fixing invalid variable deform kokkos 2023-12-20 10:50:54 -07:00
e72f186123 check ghost vel in pair bpm/spring 2023-12-19 22:01:18 -07:00
7403426046 Argument error in fix rheo 2023-12-19 13:58:22 -07:00
86f87e0f7b Update docs 2023-12-19 10:46:41 -07:00
ab29200c60 More tuning 2023-12-19 10:26:52 -07:00
e98df7018b update the example files 2023-12-19 08:17:43 +08:00
6c798412b4 fix typo and remove unnecessary quotes 2023-12-18 18:52:42 -05:00
8e4871c5e1 Tune team params 2023-12-18 16:37:31 -07:00
af222711ae Added text to explain the output of ctest -V a bit more 2023-12-18 15:52:30 -06:00
3237c30117 reorganize the LAMMPS version and development description 2023-12-18 15:48:03 -05:00
c0c64e812f Enable default threading over neighbors for half list 2023-12-18 11:29:42 -07:00
dd1ac640ae Added declaration for FFT_KOKKOS variable 2023-12-18 12:56:30 -05:00
cddce67931 Merge branch 'develop' into issue3775_fft_kokkos 2023-12-18 12:14:15 -05:00
bc7050ab50 Added LMP_HEFFTE to CMakeLists.txt to attempt to fix a merge conflict 2023-12-18 12:11:31 -05:00
d02ffb0e70 Updated Summit & Frontier template Makefiles 2023-12-18 12:06:41 -05:00
bc47f4f3a3 Updated CMake preset files for kokkos-cuda and kokkos-hip 2023-12-18 11:56:23 -05:00
a6addbc907 Updated documentation for FFT_KOKKOS_ flags and CMake variable selection 2023-12-18 11:30:56 -05:00
4d2aed8937 bug fix
for when reaction site has angles, but post-reaction template has none (same for dihedrals, impropers)
2023-12-18 11:15:56 -05:00
7414fdaa47 Merge branch 'develop' of github.com:lammps/lammps into kk_half_thread 2023-12-18 09:03:39 -07:00
40f27eb7cf update doc file for ilp/tmd 2023-12-18 17:36:04 +08:00
20183ac9cc update potential file for ilp/tmd 2023-12-18 16:56:24 +08:00
8dcf980d0a update doc of ilp/tmd 2023-12-18 16:55:10 +08:00
ba4ac991b6 small fix for ilp/tmd and KC/full 2023-12-18 16:06:36 +08:00
94b62fa98b tweak epsilon 2023-12-17 21:22:33 -05:00
4c34bc2b9b upgrade CodeQL GitHub action scripts to latest version 2023-12-17 20:25:39 -05:00
188e1090e9 add some corrections and clarifications 2023-12-17 20:01:47 -05:00
e6a510ddc5 Merge branch 'lammps:develop' into bond_react_fixes_aug23 2023-12-17 17:02:18 -05:00
58ed034d7a Updated Developer unittest for debugging failed unit tests individually 2023-12-17 15:42:10 -06:00
d2ca1fe354 avoid that mliappy is initialized multiple times 2023-12-16 23:15:56 -05:00
4ae4c8103d step LAMMPS-GUI patch level 2023-12-16 22:46:02 -05:00
695a81ef70 avoid uninitialized data access 2023-12-16 21:50:38 -05:00
15a7b93361 relax epsilon to be compatible with most recent GCC compilers on Fedora 39 2023-12-16 17:40:31 -05:00
1ab406ee1a read CMAP data blocks one at a time and catch EOF exception to stop reading 2023-12-16 17:16:06 -05:00
4bf1b1d9c0 some refactoring and modernization 2023-12-16 17:15:31 -05:00
fb6a5843b9 handle comments in CMAP coeff assignments 2023-12-16 17:14:47 -05:00
96ef731f06 remove unused items 2023-12-16 17:14:19 -05:00
e100a42087 (re)throw EOF exception when next_dvector() has not yet read any items 2023-12-16 17:07:37 -05:00
41495579a6 update list 2023-12-16 00:18:05 -05:00
1f540772af Merge branch 'develop' into BPM 2023-12-15 15:25:35 -07:00
95d1a41ee4 Fixing bpm/sphere error in fix move, displace atoms 2023-12-15 13:33:45 -07:00
84af9e3476 remove hack 2023-12-14 22:02:39 -05:00
e36a764db2 add array and vector STL headers 2023-12-15 12:44:55 +10:00
abe6356716 update help index table for recently added or changed styles 2023-12-14 21:34:11 -05:00
a873106790 improve AMOEBA fix property/atom checks 2023-12-15 12:27:24 +10:00
09c87040b5 add border arguments to FixPropertyAtom add_custom functions 2023-12-15 11:54:15 +10:00
61ca9b79db add custom_border to Atom and AtomKokkos 2023-12-15 11:48:46 +10:00
5358a1b3b1 Merge remote-tracking branch 'github/develop' into collected-small-fixes 2023-12-14 20:16:11 -05:00
df7f3b8dea Merge pull request #3938 from rbberger/compute_reaxff_bonds_local
new compute: reaxff/atom
2023-12-14 20:10:52 -05:00
01ab951ff3 Merge pull request #3833 from evoyiatzis/master
Implementation of analytical expressions for Born matrix of some potentials & inclusion of angle contribution to stress/mop/profile
2023-12-14 20:08:12 -05:00
44fbcf7bfe reorder "ghost" processing in fix property/atom 2023-12-15 11:01:50 +10:00
54089fb5ab Revert "add extract function to fix_property_atom"
This reverts commit b199368c19.
2023-12-15 10:58:06 +10:00
1df91f21a1 workaround hack for macOS 2023-12-14 18:07:32 -05:00
172238f4ca workaround hack for macOS 2023-12-14 17:59:18 -05:00
c4626e982f revert bogus change 2023-12-14 17:19:45 -05:00
5f0bdca3f2 add missing override 2023-12-14 17:09:37 -05:00
ff0553e859 fix typos 2023-12-14 16:50:30 -05:00
7dab2b7eee add new package files to .gitignore 2023-12-14 16:21:17 -05:00
603837c96c add versionadded tag 2023-12-14 16:21:04 -05:00
5a9c9981e7 replace include file with forward declaration 2023-12-14 16:18:41 -05:00
a98ea8c3b2 Merge branch 'develop' into compute_reaxff_bonds_local 2023-12-14 16:16:34 -05:00
c45183d45c Updated CMake build system to allow for FFT_KOKKOS parameter. Updated CMakeLists.txt to print the correct value when summarizing. 2023-12-14 15:38:45 -05:00
ae58fe2732 silence compiler warning 2023-12-14 15:30:13 -05:00
4d6e70600e some more small changes for portability and clarity 2023-12-14 15:03:13 -05:00
eb4c85566e fix up port of platform::disk_free() to Windows 2023-12-14 13:06:20 -05:00
b94b9a311d Merge branch 'develop' into stress_deform 2023-12-14 10:02:46 -07:00
45ca21da3b fix typo 2023-12-14 11:21:16 -05:00
54ff3cf78f include new platform call in docs 2023-12-14 11:21:09 -05:00
298ce1863c coding style updates 2023-12-14 11:15:28 -05:00
727c3c9572 move call to determine free disk space to platform namespace 2023-12-14 11:15:11 -05:00
757f28f8bf correct info about fix halt default setting 2023-12-14 10:59:30 -05:00
9c01d64804 avoid accessing uninitialized data 2023-12-13 22:39:14 -05:00
48b5e16f5d remove unused class members, initialize pointers, adjust programming style 2023-12-13 22:39:14 -05:00
61fd4d643b correct logic for "cannot happen" case 2023-12-13 22:39:13 -05:00
00c3f14a63 Merge pull request #3430 from jtclemm/consolidate_neigh_classes
Reducing the number of npair and nstencil classes
2023-12-13 22:37:45 -05:00
b199368c19 add extract function to fix_property_atom 2023-12-14 11:10:33 +10:00
1420cd6879 Merge branch 'develop' of github.com:lammps/lammps into kk_half_thread 2023-12-13 15:42:49 -07:00
6d1d515f3a Fix compile issue 2023-12-13 15:32:32 -07:00
68c53886b8 Revert some name changes 2023-12-13 15:09:02 -07:00
1e0d0e327c Merge pull request #4004 from akohlmey/collected-small-changes
Collected small changes and updates
2023-12-13 16:25:16 -05:00
89c5ee7079 Merge pull request #3996 from lafourcadep/snann_slcsa
Compute sna/atom on fixed number of neighbors and compute slcsa/atom (Supervised Learning Crystal Structure Analysis tool)
2023-12-13 14:36:49 -05:00
37cb1ce30f Merge branch 'develop' of github.com:lammps/lammps into compute_reaxff_bonds_local 2023-12-13 11:14:45 -07:00
0cf4c9e7a3 Whitespace 2023-12-13 11:07:42 -07:00
0c4a1cb21d Merge pull request #4009 from ndtrung81/gpu-updates-Dec23
GPU package updates Dec 2023
2023-12-13 11:59:10 -05:00
754041ee36 minor fix 2023-12-13 11:57:03 -05:00
304e141f24 add missing define to GNU make based build of pace library as well 2023-12-13 11:46:01 -05:00
0b35b98722 add missing define to fix building ML-PACE with conventional build 2023-12-13 11:30:17 -05:00
e1be6c09f7 merge with GHub version 2023-12-13 09:05:27 -07:00
665785f41e adjust 2d box bounds 2023-12-13 09:04:23 -07:00
f53e2c3398 update details about unittests 2023-12-13 00:49:41 -05:00
1cff1deedc add valgrind suppressions for MPICH on Fedora 39 2023-12-13 00:24:49 -05:00
5543912a12 add missing potential file 2023-12-12 23:58:43 -05:00
c2dbd7dc9d plug one more memory leak 2023-12-12 23:56:36 -05:00
569c23a1e6 Fixed typo with the kernel names in lj/cut/coul/cut/soft 2023-12-12 22:54:50 -06:00
29cf012061 re-use existing potential file, fix screen/log output, plug memory leaks 2023-12-12 23:28:09 -05:00
e7c330db9d Merge branch 'develop' into snann_slcsa 2023-12-12 22:30:20 -05:00
26d0671337 update compute slcsa example to better align with LAMMPS conventions and move to more appropriate folder 2023-12-12 22:30:15 -05:00
3a89af4469 silence preprocessor warning from leaking internal define in cython generated code 2023-12-12 21:52:45 -05:00
8f7d7f9178 Fixed typo in the pair style lj/cut/coul/cut/soft/gpu header 2023-12-12 20:15:05 -06:00
6923c04e47 spelling and formatting fixes. small clarifications 2023-12-12 21:01:20 -05:00
710776d4e8 Merge branch 'develop' into collected-small-changes 2023-12-12 20:35:55 -05:00
98feaa00cb Merge pull request #4012 from stanmoore1/kk_fix_temp
Port Fix temp berendsen and rescale to use Kokkos
2023-12-12 20:34:48 -05:00
ecc460b358 Added the new pair styles to Command_pairs.rst and pair_style.rst 2023-12-12 17:17:32 -06:00
9100f486cb Clarify and fix logic in multi, simplify skip 2023-12-12 15:51:02 -07:00
2a152eb078 Merge pull request #4011 from rbberger/python3.12_update
Use PyConfig to initialize Python
2023-12-12 17:27:24 -05:00
8104f68bc1 Merge pull request #3963 from mkstoyanov/heffte_integration
Heffte integration
2023-12-12 17:27:02 -05:00
75c3959cea Merge pull request #4006 from Birfy/develop
Fixing typos in fix_nh_uef.rst
2023-12-12 16:26:16 -05:00
c33d950ac3 Merge pull request #3869 from jmgoff/compute-pace-update
Compute pace update
2023-12-12 16:19:41 -05:00
e80c3d3215 Revert FFT_AT name change 2023-12-12 12:20:24 -07:00
d3eed12071 include documentation integration checks into "make check" in the src folder 2023-12-12 13:43:10 -05:00
7ed8779d28 tweak another epsilon for new GPU pair style 2023-12-11 23:18:08 -05:00
7881eeaa1c silence warnings about unused variables 2023-12-11 23:15:13 -05:00
669782cd5f Saved some exp operations 2023-12-11 21:26:12 -06:00
93f8ada8dc Fixed ecoul issue with the coul/slater/long kernels 2023-12-11 21:21:31 -06:00
1651a7741a relax epsilon for coul/slater long test a little for GPU forces 2023-12-11 18:51:09 -05:00
6e0e1dc44f Fixed atom force issues with the coul/long/slater kernels 2023-12-11 17:10:43 -06:00
354db72a10 update github action script for setting up python 2023-12-11 17:42:06 -05:00
930fbe8c5d reaxff/atom: First attempt of filtering by group 2023-12-11 14:07:48 -07:00
e241f08cfe Finish first version of compute reaxff/atom docs 2023-12-11 14:05:42 -07:00
e147d131fb Fix issue with temp compute 2023-12-11 12:58:15 -07:00
9d51d9c0e9 Update docs 2023-12-11 12:55:06 -07:00
48c85f7718 Port Fix temp berendsen and rescale to use Kokkos 2023-12-11 12:42:45 -07:00
1a3d36fdbf Use PyConfig to initialize Python 2023-12-11 12:39:31 -07:00
15f8488fc4 update developer contact email 2023-12-11 13:43:13 -05:00
af74afdf62 Editing intel files (to be templated) 2023-12-11 09:02:55 -07:00
25bb1633c3 fix typo and be more precise in describing what "Loop" time means 2023-12-11 09:48:07 -05:00
2ed03164b7 Updated in place testing case, assuming in.* are input scripts, skipping input scripts without REG markers for now 2023-12-10 22:56:53 -06:00
7c40170182 Fixing errors in headers 2023-12-10 21:37:13 -07:00
fbbdd5bcad Updated run_tests.py for testing inplace input scripts 2023-12-10 16:56:47 -06:00
bcd0eac78a Merge remote-tracking branch 'refs/remotes/origin/regression-tests' into regression-tests 2023-12-10 16:53:52 -06:00
76bf35fa4d Added -allow-unsupported-compiler to nvcc for both CMake and traditional CUDA builds 2023-12-10 14:42:27 -06:00
37535267da clarify docs about fix phonon dependency on KSPACE 2023-12-10 15:27:50 -05:00
a6f82eb970 Added check if input files in a folder have REG markers 2023-12-10 14:15:13 -06:00
9a625b715a use Langevin thermostat with fix rigid/small instead of fix rigid/nvt/small
also intra-molecular non-bonded interactions are excluded now
2023-12-10 09:50:51 -05:00
1f13a6a193 Merge branch 'upstream' into regression-tests 2023-12-09 23:02:38 -06:00
bab9fc5533 Consolidating some skip npair classes 2023-12-09 22:00:22 -07:00
e727ec1eac Fixed compiling bugs revealed by CUDA builds, removed unused variables 2023-12-09 16:46:10 -06:00
267e360bac Fixed bugs with acquiring depsh from lib/gpu, updated the doc page 2023-12-09 15:39:54 -06:00
a365cb15b0 Updating class names in Intel 2023-12-09 14:18:20 -07:00
3830711dec Added the GPU version of sph/heatconduction 2023-12-09 15:15:13 -06:00
7679043793 Merge conflicts 2023-12-08 22:45:17 -07:00
010a7a4d44 check for out-of-range or invalid numbers more thoroughly 2023-12-08 21:07:38 -05:00
54a6143e9e Updated the doc pages for sph/lj/gpu and sph/taitwater/gpu 2023-12-08 14:27:00 -06:00
46a670889d Added BaseSPH for sph pair styles, fixed bugs with per-type arrays 2023-12-08 14:09:39 -06:00
1957eb5ca8 Attempted to change dir to individual example folders 2023-12-08 10:21:35 -06:00
0f78afc66f Added atom tag for dpd to work with tag and v 2023-12-08 00:20:53 -06:00
7fad795141 Added pair sph/taitwater/gpu in src/GPU 2023-12-08 00:10:01 -06:00
cad4c25750 Adding sph/taitwater in lib/gpu 2023-12-07 17:22:45 -06:00
6fe16c7606 Added pair style sph/lj/gpu in src/GPU, removed commented codes 2023-12-07 14:33:47 -06:00
e51a8ccfbf Removed the unnecessary line since CUDA_BUILD_MULTIARCH is ON by default 2023-12-07 12:00:24 -06:00
fef28c9daa Updated sph_lj kernels 2023-12-07 11:41:37 -06:00
379d3c8e20 Updated host_esph to extra data and cut to coeff 2023-12-07 11:06:17 -06:00
26c7358a84 Working on sph_lj kernels 2023-12-07 10:24:25 -06:00
1849df15e0 Removed unused member functions in edpd 2023-12-07 10:16:40 -06:00
0940793537 Updated the coul_soft and coul_long_soft kernels with forces as acctyp3 2023-12-07 09:23:49 -06:00
52f576fd1c update fix adapt/fep from fix adapt. only supports 2-d parameters for pair styles 2023-12-06 13:54:44 -05:00
884af7e88c update list of supported pair styles and parameters 2023-12-06 13:53:45 -05:00
51eebf311f Added fft settings to Install.sh, fixed typo in HIPFFT_C2C and HIPFFT_Z2Z 2023-12-06 12:40:11 -05:00
48ef968dd2 Decoupled all variable typenames from the non-kokkos FFT 2023-12-06 12:01:06 -05:00
0e98e706c6 Added LMPFFT settings for Kokkos-specific FFTs 2023-12-06 11:49:54 -05:00
fc897512a0 Initial conversion of all FFT_ settings in the KOKKOS subdirectory to FFT_KOKKOS_ 2023-12-06 11:13:34 -05:00
8eaaae1e99 recenter 2d boxes around 0.0 2023-12-06 08:31:41 -05:00
e05751f487 Update fix_nh_uef.rst
Fixing typo
2023-12-06 08:14:12 -05:00
58787ddecd make 2d system box center on 0.0 2023-12-06 07:36:29 -05:00
9edf553332 flag development branch 2023-12-06 07:22:23 -05:00
dd6b77d570 Merge branch 'develop' into general-triclinic 2023-12-06 07:01:55 -05:00
9c103ff6e2 fix some accumulated formatting and spelling issues in the manual 2023-12-06 02:59:47 -05:00
b94642ccf8 Merge branch 'develop' into collected-small-changes 2023-12-06 02:51:51 -05:00
30051ec260 Merge pull request #3858 from jtclemm/new-computes
Adding tools to identify rattlers and measure nonaffine displacement
2023-12-06 02:51:21 -05:00
c092de9bc3 Merge pull request #3985 from yury-lysogorskiy/feature/zbl
ACE/ZBL core repulsion (+Kokkos implementation)
2023-12-06 01:22:06 -05:00
131f3cee20 fix typo 2023-12-05 22:09:06 -05:00
c90999a083 cosmetic 2023-12-05 21:56:29 -05:00
c172dceb9f white space update 2023-12-05 16:05:07 -07:00
2cbb6a634e merge with upstream version 2023-12-05 16:00:32 -07:00
ae4b65430a clarify rules for reading multiple data files with read_data 2023-12-05 15:58:40 -07:00
3e3454e3e1 Merge pull request #4005 from jibril-b-coulibaly/small_changes
Add doc to partially or undocumented features
2023-12-05 16:59:44 -05:00
21027d660d Clarify exception handling some more. 2023-12-05 16:35:07 -05:00
e53b3c76f5 Updated doc pages for the added pair styles, added a cmake preset for gpu-cuda, added "comm_modify vel yes" to in.mdpd 2023-12-05 15:32:57 -06:00
fe96d9f836 Added the GPU version of pair edpd and mdpd 2023-12-05 13:34:37 -06:00
086cf49a8c Added the GPU version of coul/slater/long 2023-12-05 13:32:33 -06:00
9588ddabf6 Added the GPU versions of lj/cut/coul/cut/soft and lj/cut/coul/long/soft 2023-12-05 13:30:26 -06:00
17ffd5c228 remove misplaced file 2023-12-05 06:16:48 -05:00
e5ae46a01a update compute pace example to follow usual conventions 2023-12-05 06:15:40 -05:00
73f1bac827 remove commented out code. print warnings only on mpi rank 0 2023-12-05 06:09:34 -05:00
7d8de8301f Merge branch 'develop' into compute-pace-update 2023-12-05 06:05:34 -05:00
a5894d8ab3 clarify 2023-12-05 03:18:56 -05:00
250307f7c6 add description for undocumented Body entries in molecule command 2023-12-04 21:29:37 -07:00
69fb814b33 Remove duplicated code, small whitespace tweaks 2023-12-04 17:31:38 -07:00
1f7d262bd7 add mol keyword to fix rigid doc 2023-12-04 16:01:39 -07:00
82868cd583 Simplify Madelung examples with mixed eta 2023-12-04 13:59:07 +01:00
8035521fe4 Merge branch 'develop' of github.com:lammps/lammps into develop 2023-12-04 11:18:13 +01:00
9571d5a0ea Merge branch 'develop' of github.com:Bibobu/lammps into develop 2023-12-04 11:17:37 +01:00
e0862c6618 must do region check only when region is active 2023-12-03 11:22:03 -05:00
2a245f780a initialize class members 2023-12-03 04:45:53 -05:00
47edf5effa use memory class for memory allocation consistently 2023-12-03 04:33:00 -05:00
c0cab665e4 complete printf format 2023-12-03 04:18:44 -05:00
21701a5eac correct dpi to get proper image scaling in PDF output 2023-12-02 16:34:32 -05:00
28c547a3cf Merge branch 'develop' into general-triclinic 2023-12-02 12:40:23 -05:00
8389e2eb80 Merge pull request #4000 from akohlmey/collected-small-changes
Collected small changes
2023-12-02 12:15:36 -05:00
d77ba37128 Merge pull request #3962 from ndtrung81/amoeba-pppm-accuracy
AMOEBA/HIPPO RMS force accuracy estimate
2023-12-02 10:39:54 -05:00
7f3af781fa remove superflous class member. 2023-12-02 09:37:36 -05:00
318556497f refactor balance and fix balance to std::string to avoid buffer overflows 2023-12-02 09:32:53 -05:00
2970d73d22 cosmetic 2023-12-02 08:53:20 -05:00
cace83e30d improve error handling to make coverity scan happy 2023-12-02 08:53:05 -05:00
4035291a48 Merge branch 'develop' into collected-small-changes 2023-12-02 08:17:11 -05:00
f0d8a70757 Merge pull request #4002 from akohlmey/moltemplate-howto
Add moltemplate tutorial to HowTo section
2023-12-02 07:58:09 -05:00
95c2ad5150 Merge pull request #3998 from Bibobu/replicate_labelmap
Adding copy of label maps while using replicate command
2023-12-02 06:06:54 -05:00
a3d44e0048 make map types to merge explicit 2023-12-02 05:13:44 -05:00
1b282ad3fd Merge pull request #4001 from akohlmey/remove-reaxc
Remove "reax/c" alias for sources and examples and require to use "reaxff"
2023-12-02 02:32:12 -05:00
41a5fbc025 ensure must_check is initialized 2023-12-01 20:14:22 -05:00
ef2a420aeb modernize 2023-12-01 17:16:25 -05:00
782ca9e0ff Thread over neighbors in addition to atoms when using a half neighbor list 2023-12-01 14:46:30 -07:00
dab47d518d apply clang-format 2023-12-01 16:23:59 -05:00
fbb9c69771 fix initialization bug 2023-12-01 16:23:49 -05:00
acdb0481f0 loads of spelling fixes 2023-12-01 15:54:54 -05:00
ef400cc13f fix broken links 2023-12-01 15:31:33 -05:00
e41d9cb746 added explanations about the stock backend to the cmake 2023-12-01 15:21:23 -05:00
3c331321b3 update the naming convention 2023-12-01 15:12:23 -05:00
bc7d0f5d50 renamed cmake option 2023-12-01 15:12:23 -05:00
d0ae489dda addressed some pr comments 2023-12-01 15:12:23 -05:00
f75648030f document traditional make 2023-12-01 15:12:23 -05:00
a6e629f4e4 update variable names 2023-12-01 15:12:23 -05:00
77ad067458 added documentation 2023-12-01 15:12:23 -05:00
03b6b2d030 enable automatically downlowding of heffte 2023-12-01 15:12:23 -05:00
5bbdfe5b4f enabled the use of heffte for the cpu backend 2023-12-01 15:12:23 -05:00
45372937db loads of whitespace fixes 2023-12-01 14:52:47 -05:00
fb243eba9b update lattice death tests for changed error messages 2023-12-01 14:41:12 -05:00
767b50e718 Merge branch 'develop' into general-triclinic 2023-12-01 14:13:05 -05:00
f7aeecd3be Fixing error in averaging 2023-12-01 09:58:40 -07:00
303f365435 Added reference to the related enum in the Atom class. 2023-12-01 17:12:15 +01:00
1f86706710 make more cases specifying cutoff Rc/r_c consistent 2023-12-01 05:49:20 -05:00
0d3f111627 use r_c consistently 2023-12-01 05:43:42 -05:00
42ac8a9e9b use r_c consistently 2023-12-01 05:36:25 -05:00
e3574e84ec correct spelling of r_c 2023-12-01 04:31:06 -05:00
14d08f0284 recreate compute xrd mesh image with reasonable dpi setting and used PNG format 2023-12-01 00:37:42 -05:00
97a0885145 Merge pull request #3997 from ConnorSA/mlquip
adding the scale feature of quip calculator, allows fix adapt functio…
2023-11-30 17:10:25 -05:00
28e22862c8 reformat 2023-11-30 16:57:43 -05:00
9aaa38d912 mention tutorial files location 2023-11-30 16:48:19 -05:00
f6b644388c add moltemplate tutorial to HowTo section 2023-11-30 16:41:19 -05:00
6c992ee511 rearrange and rewformulate content of the tip4p pair style docs to make it more obvious 2023-11-30 14:53:24 -05:00
605dc08e73 whitespace 2023-11-30 11:35:44 -07:00
049fd06bdf handle thermo_modify energy yes correctly 2023-11-30 10:31:30 -05:00
00be75e084 update example inputs and logs for change in ReaxFF required name 2023-11-30 10:31:08 -05:00
6ff87f5c39 remove reax/c aliases and related code checking for them 2023-11-30 05:41:05 -05:00
a377f2a271 document removal of "reax/c" aliases for ReaxFF pair styles and fixes 2023-11-30 05:39:50 -05:00
368ea39816 fully integrate additions into distribution 2023-11-29 02:12:23 -05:00
fe418bbe77 spelling 2023-11-29 02:11:54 -05:00
918cddfb90 reformat to conform to LAMMPS writing style 2023-11-29 02:11:44 -05:00
d39cd265ae make citations consistent 2023-11-29 02:11:18 -05:00
a38fade483 whitespace fixes 2023-11-29 01:35:49 -05:00
28a89100e8 Merge branch 'develop' into snann_slcsa 2023-11-29 01:34:17 -05:00
f36f846e19 Merge branch 'develop' into mlquip 2023-11-28 09:23:53 -05:00
f83a3dd989 whitespace one more time 2023-11-28 09:23:31 -05:00
7631f2baa2 follow LAMMPS programming style more closely 2023-11-28 09:22:31 -05:00
34e373d114 removed tabs and unsused itype variable 2023-11-28 13:33:03 +00:00
8c34f7f7b8 switched 2D array out for scalar, and updated documentation 2023-11-28 11:37:59 +00:00
d57979eede Merge branch 'develop' of github.com:lammps/lammps into replicate_labelmap 2023-11-28 12:09:57 +01:00
dcb4127631 Added label map copy to replicate.cpp 2023-11-28 12:05:51 +01:00
2825aeff48 apply changes suggested by coverity scan 2023-11-28 05:26:45 -05:00
87c9891c07 Merge remote-tracking branch 'public-lammps/develop' into feature/zbl 2023-11-28 09:13:37 +01:00
4fd63612f8 correct misformatted tables 2023-11-27 23:21:13 -05:00
92220140ab indicate if Intel package SIMD directives are enabled 2023-11-27 22:20:50 -05:00
664ffbedac fixed a missed scale of vdw via quip_energy 2023-11-28 03:16:37 +00:00
bbef545675 Merge pull request #3988 from akohlmey/collected-small-changes
Collected small changes and fixes
2023-11-27 21:41:03 -05:00
1e26c6d0c5 Adding multiphase support, new stress 2023-11-27 15:53:19 -07:00
631dcc36de BUGFIX: TagPairPACEComputeNeigh - explicitly check if atom has neighbours (ncount>0), only them run parallel_reduce, otherwise set d_d_min and d_jj_min to default values 2023-11-27 23:51:51 +01:00
99f0a7aa8e upd version string in ML-PACE package 2023-11-27 22:38:35 +01:00
d76230c490 Merge pull request #3993 from alphataubio/patch-1
Update atom_map_kokkos.cpp to fix overflow warning
2023-11-27 15:09:39 -05:00
b03bee49b3 Small tweak to fix warning 2023-11-27 11:48:42 -07:00
7249aea5e5 error out when no per-type masses are set. warn if both per-type and per-atom masses are used. 2023-11-27 07:47:08 -05:00
7dbd649683 fix cut-n-paste bug 2023-11-27 05:31:30 -05:00
9e1f85518c avoid segfault with immediate variables 2023-11-27 05:31:12 -05:00
a1d2256e60 Added example for use of compute sna/atom on a fixed number of neighbors + use of compute slcsa/atom for crystal structure classification on a case of HCP to BCC phase transition in Zr 2023-11-27 09:22:03 +01:00
1d25862146 update documentation for the fact that exceptions in LAMMPS are always used 2023-11-26 13:11:18 -05:00
b90d63a192 add versionaddded tag for new feature 2023-11-26 11:00:02 -05:00
088c5d72a8 correct fix mvv/* compatibility checks in DPD-MESO package 2023-11-26 10:31:24 -05:00
7ac5f590ee Merge branch 'develop' into collected-small-changes 2023-11-25 22:36:39 -05:00
d4fe21f34d update pair_pace.rst documentation page 2023-11-25 23:37:01 +01:00
c0631c9bd2 add per-atom array corerep_factor to all four pair styles: pace, pace/extrapolation, pace/kk, pace/extrapolation/kk
upd PACELIB_URL to v.2023.11.25 (+md5sum) in ML-PACE.cmake and Install.py
2023-11-25 23:04:18 +01:00
b7376e3459 Merge pull request #3990 from lammps/variable-custom-atom-properties
Enable direct custom atom property references in variable formulas
2023-11-25 10:03:17 -05:00
e3ba19c145 Merge branch 'develop' into variable-custom-atom-properties 2023-11-25 06:42:38 -05:00
e4149035fa restore using nvcc_wrapper with kokkos-cude.cmake preset 2023-11-25 05:58:43 -05:00
e15aef290d Update atom_map_kokkos.cpp to fix overflow warning
fix overflow compile warning while building KOKKOS package with -D LAMMPS_SIZES=bigbig:

/home/XXXX/lammps-2Aug2023/src/KOKKOS/atom_map_kokkos.cpp: In lambda function:
/home/XXXX/lammps-2Aug2023/src/KOKKOS/atom_map_kokkos.cpp:218:21: warning: overflow in conversion from ‘long int’ to ‘int’ changes value from ‘9223372036854775807’ to ‘-1’ [-Woverflow]
  218 |     int i_closest = MAXTAGINT;
      |                     ^~~~~~~~~
2023-11-25 03:06:10 -05:00
b4c09a3d65 Merge branch 'develop' into collected-small-changes 2023-11-25 02:57:03 -05:00
4380806a30 Merge pull request #3987 from lammps/variable-ternary-function
Add a ternary math function to equal- and vector- and atom-style variables
2023-11-25 02:56:27 -05:00
10f207b986 Merge pull request #3992 from akohlmey/linalg-lapack-3.12
Update internal linear algebra library to LAPACK 3.12
2023-11-24 19:16:02 -05:00
239407c4eb Merge pull request #3983 from stanmoore1/kk_update_4.2
Update Kokkos library bundled in LAMMPS to v4.2
2023-11-24 18:51:39 -05:00
2a1af662d4 update to LAPACK 3.12 2023-11-24 15:29:14 -05:00
ea7f0deb42 some compilers require a code block to follow OpenMP pragmas, even if empty. 2023-11-24 14:46:49 -05:00
ab31a532e2 Possibility to compute bispectrum on a fixed target number of neighbors using compute_sna_atom for crystal structure classification purpose. Add of a compute_slcsa_atom compute style that takes the newly computed bispectrum as an input and performs dimension reduction + logistic regression classification. Documentation has been modified/added and code cleaned. 2023-11-24 19:09:30 +01:00
351fc63f27 use const reference instead of copy 2023-11-24 01:20:10 -05:00
cea1528765 update list of packages included in coverity runs 2023-11-24 01:08:34 -05:00
1f6f612bb6 remove redundant code and fix memory leaks 2023-11-24 01:02:00 -05:00
09acf1b409 add versionadded tag 2023-11-23 19:56:51 -05:00
a76b02dd57 correct broken link 2023-11-23 19:53:12 -05:00
0f5d24cd1a fix table format 2023-11-23 16:21:41 -05:00
dc32efe9be whitespace 2023-11-23 16:19:43 -05:00
35103df86b make compatible with Kokkos 3.7 2023-11-23 14:25:30 -05:00
4cf8045f81 add check and document that "scale yes" is not supported for scaling atomic parameters with fix adapt/fep 2023-11-23 12:37:49 -05:00
e1c028c785 Update documentation
Describe the arguments for cone indenter style
2023-11-23 16:02:22 +02:00
a90c7b42f9 Include code for conical indenter in fix_indent.cpp 2023-11-23 15:40:34 +02:00
c57ed87e9a Addition of conical indenter 2023-11-23 15:36:27 +02:00
961cbfbe10 add custom atom property refs to variable syntax 2023-11-22 22:40:58 -07:00
9c19495392 detect newer OpenMP standard versions 2023-11-23 00:37:26 -05:00
742a772767 report Kokkos library version and OpenMP standard version 2023-11-23 00:24:34 -05:00
85ac2dc5fd correct formatting of table 2023-11-22 19:52:44 -05:00
64573b7b32 add unit tests for new variable function 2023-11-22 19:47:51 -05:00
0db826ae77 whitespace 2023-11-22 19:39:29 -05:00
0dd19b2cbf doc page update 2023-11-22 15:25:19 -07:00
469358cbf4 UPDATE KOKKOS 2023-11-22 14:38:13 -07:00
61993d1643 MLIAP Unified fix for multi layer models
CPU only
2023-11-22 14:36:59 -07:00
eb6c101d94 add ternary math function 2023-11-22 09:49:11 -07:00
bf498022cc use inum instead of list->inum 2023-11-22 14:44:49 +01:00
2e421b2eac fix ML_PACE.cmake 2023-11-22 10:36:39 +01:00
77549414ae - implementation of ZBL-core repulsion with smooth transition from ACE to ZBL + Kokkos implementation
- automatic BBasis(.yaml) to CTildeBasis(.yace) conversion for pair_pace
2023-11-22 10:19:18 +01:00
83f91d4ac7 Update docs 2023-11-21 18:50:13 -07:00
9fae8a2c2d Merge branch 'develop' into general-triclinic 2023-11-21 15:21:16 -07:00
6b822c1d0e Update CMake 2023-11-21 15:13:56 -07:00
18c5cdb327 doc page for thermo output difference with triclinic/general 2023-11-21 15:03:32 -07:00
3306b95589 Update Kokkos library in LAMMPS to v4.2 2023-11-21 15:02:12 -07:00
b72c34d497 compute reaxff/atom: return tag[i] instead of i 2023-11-21 14:20:17 -07:00
a5cc181358 Start with compute reaxff/atom documentation 2023-11-21 14:03:10 -07:00
33dcfb5390 Merge pull request #3978 from akohlmey/next_patch_release
Update version strings for 21 Nov 2023 feature release
2023-11-21 15:51:35 -05:00
fd83ed4004 compute reaxff/atom: add support for pair hybrid 2023-11-21 13:42:51 -07:00
fef0e0762b Merge pull request #3981 from rbberger/update_cmake_codeowner
Update CODEOWNERS, part 2
2023-11-21 14:27:07 -05:00
16f0806da0 Rename compute to reaxff/atom 2023-11-21 11:19:47 -07:00
fc28fc318b Update CODEOWNERS for cmake 2023-11-21 10:57:33 -07:00
92c5150034 Merge pull request #3979 from akohlmey/intel-fmtlib-workarounds
Workaround for bug in C++17 support in Intel Classic compilers with fmtlib
2023-11-21 09:35:34 -05:00
f25075db6c adding the scale feature of quip calculator, allows fix adapt functionallity 2023-11-21 13:57:34 +00:00
dfafdff209 finalized dump command support for general triclinic 2023-11-20 12:06:58 -07:00
afd0107f01 Add new files to makefile build system 2023-11-20 11:14:05 -07:00
9bffeb9512 Next iteration 2023-11-20 11:14:05 -07:00
717e7b0649 Address comments 2023-11-20 11:14:05 -07:00
ca143e6ba8 undo minor change 2023-11-20 11:14:05 -07:00
a72a3ed50d Kokkos version of compute reaxff/bonds 2023-11-20 11:14:05 -07:00
fea5f5a243 First serial version of Steve's suggestion 2023-11-20 11:14:05 -07:00
bbc2794df2 add reaxff/bonds/local/kk 2023-11-20 11:14:05 -07:00
5830dec742 new compute: reaxff/bonds/local 2023-11-20 11:14:05 -07:00
ac90a4ac9c reorder for cleaner dependency handling 2023-11-19 09:19:03 -05:00
6cd2055084 delete obsolete dependencies 2023-11-19 09:18:40 -05:00
bc692dce79 add missing entries 2023-11-19 09:18:17 -05:00
3c73882a68 update Purge.list and avoid redundant checks 2023-11-19 08:59:27 -05:00
de7f87621a Merge pull request #3974 from stanmoore1/skip_trim
Add trim option to skip neighbor list build styles
2023-11-19 07:02:40 -05:00
11305107d9 update release date to 21 November 2023 2023-11-19 05:40:05 -05:00
d60fb7067a Merge branch 'develop' into next_patch_release 2023-11-19 05:31:41 -05:00
92b02041cb more edits on create_atoms doc page 2023-11-18 17:16:29 -07:00
0487dc5331 copy intel C++17 compiler hack to Kokkos makefiles 2023-11-18 11:15:53 -05:00
2d4527d59a tweak intel compiler makefile for traditional build 2023-11-18 07:14:38 -05:00
baa00d22e9 simplify 2023-11-18 06:22:25 -05:00
c66710934d reduce warnings when compiling with intel classic compilers 2023-11-18 06:22:16 -05:00
be286d2c7d lower the C++ standard to 14 for some files when compiling with intel classic compiler 2023-11-18 06:21:28 -05:00
6ae0715650 Merge pull request #3976 from akohlmey/collected-small-fixes
Collected small fixes and updates
2023-11-18 00:03:37 -05:00
d1f3411db9 Merge branch 'develop' of github.com:lammps/lammps into skip_trim 2023-11-17 17:49:27 -07:00
56b2c7ed46 alter how lattice interacts with create_box and create_atoms for general triclinic 2023-11-17 17:10:45 -07:00
be19b5c210 Make naming consistent 2023-11-17 12:46:45 -07:00
6fc7f5689b Port changes to OPENMP package 2023-11-17 10:04:11 -07:00
06b962fc33 Bugfix: port missed changes from #3846 2023-11-17 09:50:03 -07:00
0083cc9e26 Port changes to OPENMP and INTEL packages 2023-11-17 09:12:43 -07:00
2c670e8d44 update version strings to 17 Nov 2023 2023-11-17 08:25:44 -05:00
5223f2dfb4 Merge remote-tracking branch 'akohlmey/numerial_propagation' into collected-small-fixes 2023-11-17 08:10:13 -05:00
ab183eb6e6 Merge remote-tracking branch 'github/develop' into collected-small-fixes 2023-11-17 08:09:58 -05:00
9a432341f9 Merge pull request #3970 from Yi-FanLi/numerial_propagation
fix pimd/langevin: add support for plain integrators without normal mode transformation
2023-11-17 08:08:33 -05:00
a4da55942a check if creating unix domain socket failed 2023-11-17 03:16:27 -05:00
e59a665943 add tests for immediate variables 2023-11-17 03:00:16 -05:00
ea8234a875 treat immediate variables like equal style also for evaluating references to computes and fixes 2023-11-16 22:08:00 -05:00
752088c410 Merge pull request #3975 from jibril-b-coulibaly/small_changes
correct typo and link in body particles doc
2023-11-16 21:16:22 -05:00
d739faf971 disable if constexpr for all Intel compilers 2023-11-16 21:14:55 -05:00
4ccd59af80 another doc tweak for 2d 2023-11-16 16:37:43 -07:00
4057ee3d62 more doc page updates for general tri 2023-11-16 16:35:16 -07:00
98ba8706a5 Merge branch 'develop' of github.com:lammps/lammps into skip_trim 2023-11-16 16:28:47 -07:00
4608444ada Add trim option to skip neighbor list build styles 2023-11-16 16:23:09 -07:00
6f366b8c74 Fix issues with sorting neigh list by cutoff distance 2023-11-16 16:21:59 -07:00
718cfc4562 Fix indexing bug 2023-11-16 16:19:44 -07:00
ddd5cc1a73 avoid segfault on command errors in force style unit tests and print error mesage instead 2023-11-16 17:53:12 -05:00
ac5f28719b explicitly include if constexpr only when C++17 or later is selected 2023-11-16 17:52:58 -05:00
44b126a87d correct typo and link in body particles doc 2023-11-16 10:35:02 -07:00
ba1c848f43 Merge branch 'develop' into numerial_propagation 2023-11-16 12:01:11 -05:00
7f2a6b1a85 update h2 fix pimd/langevin example 2023-11-16 12:00:29 -05:00
1f509d900e make output more consistent with other LAMMPS code 2023-11-16 11:57:33 -05:00
3664eaf12f Merge pull request #3973 from stanmoore1/kk_min
Bugfixes for Kokkos minimize
2023-11-16 08:46:22 -05:00
d31c3abbd4 Merge pull request #3971 from akohlmey/collected-small-fixes
Collected small fixes and updates
2023-11-15 17:08:30 -05:00
fc5803188f doc page for write_data 2023-11-15 09:29:04 -07:00
f512a37173 add versionadded tag 2023-11-15 10:45:37 -05:00
e39a52879c update .gitignore 2023-11-15 10:44:05 -05:00
4760c02182 Merge branch 'develop' into compute-pace-update 2023-11-15 10:29:19 -05:00
b326572916 flag input errors 2023-11-15 09:49:58 -05:00
aec2266064 fix typo 2023-11-15 09:43:02 -05:00
aa8f9e956f Merge branch 'develop' into collected-small-fixes 2023-11-15 08:32:06 -05:00
bcfbea9903 throw error for illegal replication values 2023-11-15 08:03:15 -05:00
5e4761d631 Merge pull request #3724 from lammps/fix-rigid-enforce2d
Enable fix rigid to support 2d enforcement internally
2023-11-15 07:08:38 -05:00
a0a21fab64 changes for body particles in general triclinic 2023-11-14 17:03:56 -07:00
f9b385061b Multiphase support 2023-11-14 12:33:51 -07:00
4da49c6d85 more updates to doc page and read_data functionality 2023-11-13 15:22:17 -07:00
e6485002ad Avoid integer division 2023-11-13 15:08:49 -07:00
d88ffeea3f Need force_clear for atom_vec_spin_kokkos 2023-11-13 14:58:48 -07:00
bc6031cd24 Fix bug in Kokkos minimize + fix deform 2023-11-13 14:53:45 -07:00
3c915b14a7 Renamed the README file 2023-11-13 15:18:36 -06:00
25d862d7b4 Added README.md 2023-11-13 15:17:22 -06:00
1d1d53222a Merge branch 'lammps:develop' into regression-tests 2023-11-13 15:08:05 -06:00
3a93b16cff Added argument parsers 2023-11-13 11:52:21 -06:00
476c569804 Used the last thermo step in the log file for comparison 2023-11-13 11:35:27 -06:00
9642a950b1 Updated run_tests.py, added in.eam 2023-11-13 11:19:59 -06:00
a651697d2e Mix eta in Electrode package 2023-11-13 14:41:13 +01:00
443f0666b7 refactor some more temperature/pressure/pe compute lookups 2023-11-12 16:12:16 -05:00
3390a11312 improve error detection and messages 2023-11-12 10:04:04 -05:00
be6fcaa77f modernize 2023-11-12 04:58:24 -05:00
e6524b59fa only check significant chunk of the words 2023-11-12 04:43:17 -05:00
be02ef3a53 fix broken link 2023-11-12 04:43:17 -05:00
0f375715db modernize 2023-11-11 13:27:44 -05:00
649aad3877 modernize 2023-11-11 11:28:40 -05:00
7a425475e0 get rid of redundant class members 2023-11-11 10:27:28 -05:00
27d0d98e80 Merge pull request #4 from akohlmey/numerial_propagation 2023-11-11 06:21:59 -05:00
9ef1b2d64d apply clang-format 2023-11-11 06:20:55 -05:00
6850aacc55 doc tweaks 2023-11-11 06:09:15 -05:00
ca7242bf41 Merge branch 'develop' into numerial_propagation 2023-11-11 06:05:22 -05:00
3d14e2e0e2 whitespace 2023-11-11 06:05:07 -05:00
2e43bb0865 correct usage of virtual and override for rigid fixes and OpenMP versions 2023-11-11 05:56:06 -05:00
9a65bd4e3b update document for method=pimd 2023-11-11 04:10:31 -05:00
4ef27552c4 fix spring_force()'s position 2023-11-11 03:10:00 -05:00
ae05e35017 Merge branch 'develop' into fix-rigid-enforce2d 2023-11-11 02:21:25 -05:00
781eadc9c3 Merge pull request #3950 from akohlmey/collected-small-fixes
Collected small fixes and updates
2023-11-11 02:06:54 -05:00
ba32afc06e fix spring_energy 2023-11-11 01:45:36 -05:00
98a0f43c9b add spring_force function 2023-11-11 01:04:13 -05:00
ae3c332667 Tested a coarser PME mesh with a lower accuracy (2e-4) 2023-11-10 16:16:49 -06:00
6393519419 q_step function 2023-11-10 16:07:00 -05:00
beea2a6ee1 Merge branch 'develop' into collected-small-fixes 2023-11-10 10:57:08 -05:00
23ae4a34b3 Merge pull request #3958 from jrgissing/fix_deposit-var-keyword
Fix deposit var keyword
2023-11-10 10:56:21 -05:00
41a3115801 Merge pull request #3966 from yury-lysogorskiy/patch-2
[BUGFIX] Update pair_pace_extrapolation.cpp
2023-11-10 10:49:40 -05:00
6dca6471a3 Merge pull request #3968 from rbberger/fix_wrong_argv_bugs
Bugfix: Correctly build argv with nullptr at the end
2023-11-10 10:48:18 -05:00
f413d395a5 add support for method=PIMD; add q_step function 2023-11-10 00:20:51 -05:00
e6d3148533 add method=pimd support for Langevin thermostat 2023-11-09 23:34:01 -05:00
eff65ad3f3 bugfix: correctly build argv when using Python interface 2023-11-09 20:29:14 -07:00
e57079768f update some doc pages 2023-11-09 17:58:12 -07:00
64fa32cf1e Removed commented lines 2023-11-09 10:13:23 -06:00
db5ed64045 Merge pull request #2 from Bibobu/dependabot/github_actions/actions/checkout-4
Bump actions/checkout from 3 to 4
2023-11-09 09:52:58 +01:00
73a3ae7602 Debugging some compute property items, allow surface shifting inward 2023-11-08 15:57:42 -07:00
c922fcef5a prototyping limit on tension 2023-11-08 14:30:37 -07:00
053a904d08 bugfix: make copy of exename 2023-11-08 09:18:58 -07:00
46768d0ff3 Correctly build argv with nullptr at the end 2023-11-08 09:18:58 -07:00
b8b2141993 Fixing errors in oxide model 2023-11-07 14:47:46 -07:00
6fef7871e8 Update pair_pace_extrapolation.cpp
BUGFIX: pair_pace_extrapolation: setup flag aceimpl->ace->compute_projections = true before computing  extrapolation grade
2023-11-07 16:46:47 +01:00
44ae758bf5 Parallel support for bond creation/deletion 2023-11-06 20:27:18 -07:00
612a919e93 more work on read_data and doc pages 2023-11-06 16:56:33 -07:00
92ff79af08 Debugging BPM coupling 2023-11-06 16:22:02 -07:00
109becc542 Retrieved the list of installed packages 2023-11-05 23:39:44 -06:00
17640f54d2 reset warnflag for each run 2023-11-04 17:53:19 -04:00
3d3b07f0d4 consolidate nb3b pair style docs 2023-11-03 22:39:42 -04:00
de037f5bd8 Merge branch 'develop' into general-triclinic 2023-11-03 14:53:17 -06:00
6fe6395ab2 reset quats for ellipsoids for general <-> restriced triclinic 2023-11-03 14:52:41 -06:00
9b88ba595d reduce timestep to get correct runs and no crashes. update logs. 2023-11-03 16:52:35 -04:00
0fbe388cbd undo "boxgeom" changes 2023-11-03 16:40:18 -04:00
16a3abdadd Filling in tension and react 2023-11-03 13:33:03 -06:00
a0f7612f13 encode system box geometry into a class member 2023-11-03 03:25:08 -04:00
f288efe823 Merge branch 'collected-small-fixes' of https://github.com/akohlmey/lammps into collected-small-fixes 2023-11-02 17:45:31 -04:00
6102c2a460 Forces are not modified 2023-11-02 13:10:27 -06:00
8c3cda0aea Fix bug in fix_dt_reset_kokkos 2023-11-02 13:05:18 -06:00
925d006d19 join wrapped strings 2023-11-02 13:43:37 -04:00
e655cda066 Merge pull request #3828 from vladgl/kk-ompi-rocm
Dynamic check for CUDA and ROCm-aware OpenMPI support in KOKKOS package
2023-11-01 18:10:59 -04:00
bee1b66365 Merge branch 'develop' into collected-small-fixes 2023-11-01 17:57:56 -04:00
5b14b7c86c Fixing gitignore 2023-11-01 13:42:33 -06:00
45582fee07 Merge pull request #3960 from akohlmey/nb3b-screened
New pair_style nb3b/screened
2023-11-01 14:57:00 -04:00
745f2e6c54 Changing logic for self-bin check, newton+ortho 2023-11-01 12:22:30 -06:00
bf115e5df4 Fix compiler/memory errors in tension, update properties in surface 2023-11-01 11:55:07 -06:00
da597880a5 add code to avoid deadlock 2023-11-01 05:11:43 -04:00
7fbde12e6a Merge branch 'develop' into collected-small-fixes 2023-11-01 05:01:03 -04:00
b8a0622be1 Merge pull request #3964 from lammps/compute-cluster-atom-bugfix
Fix bug with compute cluster/atom and aggregate/atom when used with fix deform
2023-11-01 04:59:15 -04:00
7a148688d5 Merge branch 'develop' into general-triclinic 2023-10-31 16:19:58 -06:00
74efe0a00c add comm of ghost atom coords to compute cluster/atom and aggregate/atom 2023-10-31 16:02:49 -06:00
4f3162888b remove debug code 2023-10-31 12:55:49 -04:00
9807316e7c Cleaned up and added comments 2023-10-31 11:15:24 -05:00
288629bd13 Added an RMS accuracy estimate for AMOEBA/HIPPO 2023-10-31 11:03:37 -05:00
ac527e3d3f store invrho instead of rho 2023-10-31 10:07:53 -04:00
a4064e5202 update code owners for new pair style 2023-10-31 09:37:38 -04:00
41fb0a5700 make README consistent with potential file and implementation 2023-10-31 09:34:32 -04:00
e04dfc55bd replace UTF-8 characters with their ASCII counterparts 2023-10-30 23:24:54 -04:00
14f8d99894 update ReaxFF force field info and remove references to reax and reax/c pair styles 2023-10-30 23:21:46 -04:00
89150877a2 Hiding compile bugs in temporary files 2023-10-30 20:48:20 -06:00
0fb7fd9a80 Merge branch 'rheo' of github.com:jtclemm/lammps into rheo 2023-10-30 20:22:27 -06:00
0945c3dda8 Bug in rheo, cleaning up old files 2023-10-30 20:22:14 -06:00
5674786acd add feature to comment out and uncomment lines and selections from context menu 2023-10-30 15:25:06 -04:00
afa149ba1a Merge remote-tracking branch 'github/develop' into collected-small-fixes 2023-10-30 12:25:18 -04:00
6056941688 add pair_style nb3b/screened by Federica Lodesani 2023-10-30 11:28:45 -04:00
2e1ee3ff7a Merge branch 'lammps:develop' into fix_deposit-var-keyword 2023-10-30 10:57:50 -04:00
f0a15036cd Merge pull request #3957 from jrgissing/record_particle_insertions
Record particle insertions
2023-10-30 10:07:52 -04:00
f3a7ec8c55 copy/paste issues 2023-10-29 16:19:11 -04:00
d4ee6f476c var/set docs for fix_deposit 2023-10-29 16:13:12 -04:00
549ea506d4 add var keyword to fix_deposit
borrowed from create_atoms
2023-10-29 15:46:55 -04:00
c5c816e360 Add another check 2023-10-28 20:14:53 -06:00
56d2a791af whitespace 2023-10-28 14:01:39 -04:00
902c43e8c6 formatting 2023-10-28 13:45:55 -04:00
db91f9413d docs 2023-10-28 13:41:42 -04:00
c5463e13f1 output ninserted for fixes: deposit+pour 2023-10-28 13:22:10 -04:00
ef2b3a7d70 remove accidentally committed file 2023-10-28 05:25:05 -04:00
d35c271677 limit the maximum number of iterations so the LAMMPS simulation will not stall 2023-10-27 19:10:55 -04:00
6c3206f2f6 Tweaks 2023-10-27 15:41:21 -06:00
588be47b18 remove dead code 2023-10-27 17:02:21 -04:00
e7fc2923a5 whitespace 2023-10-27 14:59:51 -06:00
36690a861d correct and simplify 2023-10-27 16:33:24 -04:00
784ae460a1 only offer completion in context menu, if there is something to complete 2023-10-27 13:18:19 -04:00
0ab6870402 Need to include MPI header 2023-10-27 10:31:24 -06:00
16dd61ca5f Remove redundant compile-time checks 2023-10-27 09:48:26 -06:00
d79aca6015 fix bug in not listing all not compiled-in styles 2023-10-27 11:08:02 -04:00
e431a972ad Stop processing commands when "quit" is found instead of crashing.
When using the library interface for processing commands, the "quit"
command will terminate the application. Instead we intercept and just
stop processing the command buffer and print a suitable message.

Long-term, we perhaps may want to add a "QuitException" and throw that.
2023-10-27 11:06:59 -04:00
6b4a190820 must skip quit command death test with MPICH version 4.1 and later due to using threads 2023-10-27 03:51:19 -04:00
dc9140dfa8 modernize 2023-10-27 03:19:11 -04:00
5a665c31f6 use better heuristics to avoid zero plot ranges 2023-10-27 00:20:34 -04:00
b9283cfcf6 modernize 2023-10-27 00:20:05 -04:00
717e1d4319 Merge branch 'collected-small-fixes' of github.com:akohlmey/lammps into collected-small-fixes 2023-10-26 20:48:47 -04:00
d33a8ea0c2 whitespace 2023-10-26 20:48:20 -04:00
c02782413f Merge remote-tracking branch 'github/develop' into collected-small-fixes 2023-10-26 20:35:36 -04:00
ed6c603488 Merge pull request #3954 from bnebgen-LANL/mliap_null_fix
Mliap null fix
2023-10-26 20:18:32 -04:00
7051852f8f Merge pull request #3947 from evoyiatzis/patch-7
Enable definition of cone region using equal variables
2023-10-26 20:07:09 -04:00
b1ffb70f7d Logic tweak 2023-10-26 17:20:33 -06:00
eea3b1a757 Whitespace 2023-10-26 13:59:36 -06:00
b6b8884bc6 clear data buffer when querying LAMMPS for info, check return values, use symbolic constant 2023-10-26 13:58:17 -04:00
22c47a4e1b expand x or y range for charts if too small 2023-10-26 12:21:48 -04:00
1e533d6496 simplify 2023-10-26 12:20:47 -04:00
ed4ae0a26c find more misformatted references in ReST sources 2023-10-26 04:46:33 -04:00
5e402c76c2 Merge remote-tracking branch 'github/develop' into collected-small-fixes 2023-10-26 04:42:24 -04:00
226786969a Merge pull request #3953 from jibril-b-coulibaly/fix_wall_region_eflag
Fix wall region eflag
2023-10-26 04:41:51 -04:00
47dd98dd34 whitespace 2023-10-25 20:38:20 -04:00
8aa28e40b7 Merge branch 'mliap_null_fix' of github.com:bnebgen-LANL/lammps-kokkos-mliap into mliap_null_fix 2023-10-25 14:40:06 -06:00
bb9f468247 Added fix to setting pair energies in kokkos 2023-10-25 14:38:28 -06:00
ea744ac8f9 fix typos 2023-10-25 11:17:24 -06:00
23d4bfe198 reset eflag=0 in fix wall/region 2023-10-25 11:08:58 -06:00
6942103c27 Initiated the regression test setup 2023-10-25 11:21:00 -05:00
20b386fc1a update CONTRIBUTING guidelines posted on GitHub 2023-10-25 06:12:44 -04:00
020ef70300 avoid double free on B array 2023-10-24 23:18:24 -04:00
e5160b279a avoid static code analysis warnings 2023-10-24 23:12:17 -04:00
c123c7058b remove dead code 2023-10-24 19:08:00 -04:00
975cc9a052 simplify, avoid division by zero 2023-10-24 19:05:48 -04:00
8abe52c613 simplify/modernize access to computes and fixes and check dynamics casts 2023-10-24 18:59:39 -04:00
63e674cc3e simplify and remove redundant or dead code 2023-10-24 18:37:29 -04:00
8f14cdcb34 Cleaning up ghost stencils 2023-10-24 13:55:43 -06:00
c6c174469c Replace deprecated Kokkos code 2023-10-24 12:32:02 -06:00
0f94e6030f Adding separate ghost stencil for intel 2023-10-24 12:26:37 -06:00
bd0c1795b4 Fix harmless compiler warnings 2023-10-24 10:33:55 -06:00
5f2f120b4b improve help and error messages 2023-10-24 10:39:49 -04:00
88644306cd add sanity check on path to LAMMPS python package folder 2023-10-24 10:39:30 -04:00
9052f67319 Merge branch 'collected-small-fixes' of github.com:akohlmey/lammps into collected-small-fixes 2023-10-24 07:52:28 -04:00
ceed4c7db8 for consistency with CMake 3.12+ we should set Python_EXECUTABLE instead of PYTHON_EXECUTABLE 2023-10-24 07:51:54 -04:00
8054d2807a Adding full atomonly bin npair style 2023-10-23 16:54:56 -06:00
51577eff2c Merging atomonly npair styles, minor fixes 2023-10-23 16:14:56 -06:00
1e2416dfcc make sure liblinalg is built before linking phana 2023-10-23 15:00:59 -04:00
3536cf9db9 Adding triclinic patch to intel stencil 2023-10-23 12:59:13 -06:00
14f0045567 Fixing missing variable in multi 2023-10-23 10:27:18 -06:00
358ee6eb1b Merge branch 'lammps:develop' into mliap_null_fix 2023-10-23 05:29:07 -06:00
9ba20864ca Merge conflicts + intel 2023-10-22 22:34:33 -06:00
1571c96480 Adding triclinic patch (except for intel) 2023-10-22 21:52:43 -06:00
22cc6bf0b3 provide example python code for reading a YAML dump file 2023-10-22 20:01:23 -04:00
e518637d63 avoid invalid escape warnings for regexp expressions with python 3.12 2023-10-22 20:00:33 -04:00
731400e004 improve error messages for read_dump 2023-10-22 18:29:07 -04:00
1782008b28 programming style updates 2023-10-22 18:13:17 -04:00
b5a01e84e1 consolidate dump file field enumerators into reader.h header for consistency 2023-10-22 18:09:11 -04:00
6281a818e7 merge conflicts 2023-10-22 14:55:13 -06:00
0d2b3dc51e Drafting oxide model 2023-10-22 14:54:27 -06:00
08edd193e2 programming style updates 2023-10-21 14:57:26 -04:00
a7fb81c68e must initialize deleted pointers to null since the following commands may fail 2023-10-21 14:57:26 -04:00
1db5643d6e Merge pull request #3949 from Yi-FanLi/pimd_langevin_fix_t_prim
fix pimd/langevin: fix a small bug in the output of t_prim
2023-10-21 11:58:50 -04:00
710cd1c001 Merge branch 'lammps:develop' into mliap_null_fix 2023-10-21 04:08:19 -06:00
80f72e7a1d use times inverse_np instead 2023-10-21 00:28:33 -04:00
3d480a01a5 add the missing dividing by np in compute t_prim 2023-10-20 23:41:06 -04:00
58d299d08e Merge pull request #3948 from lammps/fix-srd-doc-page
Update citations on fix srd doc page
2023-10-20 22:14:19 -04:00
1064c82c00 Cleaned of print statements 2023-10-20 18:56:20 -06:00
fd05acec2f fix spelling 2023-10-20 20:54:05 -04:00
4aedba058c Merge branch 'develop' into fix-srd-doc-page 2023-10-20 20:47:17 -04:00
6f9310d32e Merge pull request #3943 from akohlmey/collected-small-fixes
Collected small fixes and updates
2023-10-20 20:45:11 -04:00
e1d876b7fe kokkos working 2023-10-20 18:41:46 -06:00
a4a7b9c500 formatting 2023-10-20 14:01:24 -06:00
1c4ab13f01 merge with current develop 2023-10-20 13:31:32 -06:00
654a410b8c update refs on fix srd doc page 2023-10-20 12:59:36 -06:00
291defb453 update refs on fix srd doc page 2023-10-20 12:57:19 -06:00
ccbe907def avoid memory leak 2023-10-20 14:24:45 +03:00
61371bba5e remove whitespace from region_cone.cpp 2023-10-20 13:44:35 +03:00
b22d0afd97 Update region.rst 2023-10-20 13:41:00 +03:00
c180f3d825 Include method & variable definitions in region_cone.h 2023-10-20 13:31:48 +03:00
1300999c22 Enable definition of cone region using equal variables 2023-10-20 13:24:08 +03:00
0f11a9dd70 require version newer than 2 Aug 2023 for LAMMPS GUI 1.5.9 2023-10-19 23:21:18 -04:00
5ed10f9127 doc fix 2023-10-19 18:19:55 -06:00
d93d4f8b5c normal complete, kokkos in development 2023-10-19 17:32:21 -06:00
83186a50b0 Update compute_pace.rst
typo fix
2023-10-19 16:37:45 -06:00
1de15c38bf whitespace 2023-10-19 12:16:26 -07:00
2401cba84a Fix bug in Kokkos SNAP on GPUs 2023-10-19 12:15:01 -07:00
5986fb90b9 Few updates to surface tension, add stress fix 2023-10-19 12:37:59 -06:00
decb47cc15 Merge branch 'compute-pace-update' of github.com:jmgoff/lammps_compute_PACE into compute-pace-update 2023-10-19 12:25:21 -06:00
ac59f47ea0 Merge remote-tracking branch 'upstream/develop' into compute-pace-update 2023-10-19 12:22:10 -06:00
e0ef4f15ee Merge branch 'lammps:develop' into compute-pace-update 2023-10-19 12:18:32 -06:00
2ac32872e2 compute pace docs 2023-10-19 12:18:07 -06:00
88fb7c849d Merge branch 'rheo' of github.com:jtclemm/lammps into rheo 2023-10-19 11:57:25 -06:00
f28e46d40e Adding support for remap v 2023-10-19 11:57:07 -06:00
ea6bfa5948 Merge branch 'develop' into collected-small-fixes 2023-10-19 12:24:16 -04:00
f641d88f86 Merge pull request #3944 from Maria-Lesniewski/fix_bocs_bugfix
Propagate Barostat fixes to BOCS user package - see Lammps PR 1259
2023-10-19 12:22:55 -04:00
62ea874d9d Add more error checks to Kokkos minimize 2023-10-19 08:02:11 -06:00
0fc9b194dc quote strings with special characters in keyword lists 2023-10-19 10:01:10 -04:00
27e0a71849 whitespace 2023-10-19 07:44:44 -06:00
bcc93c2dc5 Initial working Null atom fix 2023-10-19 00:19:02 -06:00
4602c8c849 First null atom fix pass 2023-10-18 23:22:16 -06:00
e188407566 Cleaned fix 2023-10-18 23:17:25 -06:00
0501674724 Commit before cleaning changes 2023-10-18 23:07:21 -06:00
791f7d1d88 Add dynamic check for CUDA 2023-10-18 22:14:42 +03:00
45d2a91c62 Barostat fix - see lammps PR 879 and 942 2023-10-18 13:13:37 -04:00
54ff01d86d assign code owner to fix press/langevin 2023-10-18 08:01:41 -04:00
a5f61c5d44 address bugs and issues flagged by static code analysis with coverity scan 2023-10-18 07:59:22 -04:00
5cfd8b3c63 silence coverity scan warning 2023-10-18 07:56:50 -04:00
302e3be669 make sure itag is initialized 2023-10-18 07:51:25 -04:00
0f10269357 cleaning 2023-10-17 23:45:52 -06:00
87fdff5874 No variable transfer 2023-10-17 23:41:52 -06:00
4c980eec91 correct table formatting 2023-10-17 20:52:13 -04:00
ea69d77b79 fix issues with Qt library detection 2023-10-17 20:02:01 -04:00
dbd5f93ed4 whitespace 2023-10-17 19:41:00 -04:00
6b184e8079 copy-and-paste bugfix from @stanmoore1 2023-10-17 19:39:31 -04:00
f0801338f3 Merge pull request #3846 from lammps/triclinic-neighbor-bug
Fix occasional bug in neighbor list build for triclinic geometries due to round off
2023-10-17 19:36:43 -04:00
c051a4cf2d Fix perf regression 2023-10-17 14:18:16 -06:00
bd1794f142 Remove debug output 2023-10-17 12:59:10 -06:00
672905bbf0 Merge branch 'develop' of github.com:lammps/lammps into kk-ompi-rocm 2023-10-17 12:57:11 -06:00
750957d585 Remove unused var 2023-10-17 12:27:35 -06:00
3b4fff4164 Need to sync tag, add template param 2023-10-17 12:01:01 -06:00
0fe621886e Merge pull request #3896 from lammps/compute-fix-variable-outputs
Standardize how computes and fixes can produce multiple kinds of output
2023-10-16 18:12:20 -04:00
4ae0fc8312 Fix GPU compile 2023-10-16 15:47:42 -06:00
dc67f25270 Another tweak 2023-10-16 15:17:46 -06:00
8c7493d02a Fix more broken examples 2023-10-16 15:11:37 -06:00
462a3935fe Port bugfix to Kokkos 2023-10-16 14:07:42 -06:00
558c1307fd Merge pull request #3941 from stanmoore1/trim_fix
Fix issues with trim lists
2023-10-16 15:49:47 -04:00
ad1400ac71 Fix broken example 2023-10-16 12:33:21 -06:00
51f0c9eac4 Merge branch 'develop' of github.com:lammps/lammps into triclinic-neighbor-bug 2023-10-16 12:18:04 -06:00
5d0dc79403 Merge branch 'develop' of github.com:lammps/lammps into compute-fix-variable-outputs 2023-10-16 12:01:59 -06:00
53d123caa5 Merge pull request #3930 from stanmoore1/kk_flux
Small Kokkos changes
2023-10-16 14:00:04 -04:00
902e996f2a restore neighbor list trimming support to REBO family of pair styles 2023-10-16 13:51:16 -04:00
f93ff98728 Fix issues with trim lists 2023-10-16 11:20:06 -06:00
00b5eb57c9 Merge branch 'kk_flux' of https://github.com/stanmoore1/lammps into kk_flux 2023-10-13 14:52:24 -04:00
65bd04260b bugfix for modernization 2023-10-13 14:50:03 -04:00
69d82b9bc6 Remove unused variable 2023-10-13 12:47:46 -06:00
6c6f35dd69 modernize loops over fixes 2023-10-13 14:39:20 -04:00
41a7f64847 Update dependency 2023-10-13 10:58:14 -06:00
d8e6b432fa Port recent changes 2023-10-13 10:48:37 -06:00
34c94fccd2 Merge branch 'develop' of github.com:lammps/lammps into kk_flux 2023-10-13 09:36:42 -06:00
14af16e4a6 Merge pull request #3937 from akohlmey/collected-small-changes
Collected small changes and fixes
2023-10-13 11:20:33 -04:00
02d66ea4ca Merge pull request #3939 from yury-lysogorskiy/feature/ml-pace-bgrad
upd ML-PACE.cmake and Install.py (new version v.2023.10.04 and checks…
2023-10-13 11:18:44 -04:00
ae8791c682 avoid out of bounds access to string under cursor 2023-10-13 08:17:10 -04:00
2f67826363 indicate whether multi-thread is available in preferences 2023-10-13 06:59:06 -04:00
50d2ebc27d auto-detect OpenMP support also when compiling a standalone binary 2023-10-13 06:50:52 -04:00
3db7e1f9cf avoid invalid data accesses 2023-10-13 06:50:06 -04:00
926de1575c avoid completion on empty lines 2023-10-13 06:20:19 -04:00
2629136958 avoid uninitialized data access and segfaults when calling main widget functions 2023-10-13 06:20:12 -04:00
d29ae7af92 upd ML-PACE.cmake and Install.py (new version v.2023.10.04 and checksum) that should fix build issues with KOKOKOS 2023-10-13 12:05:28 +02:00
3ebcb0f6f1 store settings to different locations for different Qt versions 2023-10-13 06:00:29 -04:00
6195be5af7 make keyboard shortcut handling consistent across the entire app 2023-10-13 05:59:20 -04:00
506de7015d document support for building LAMMPS GUI with Qt6 2023-10-13 05:13:30 -04:00
c67ca1bfd9 Merge branch 'develop' into collected-small-changes 2023-10-13 04:59:18 -04:00
1150f1ab07 Merge pull request #3909 from ndtrung81/kk-updates
Adding KOKKOS support for pair yukawa/colloid, fix efield and fix spring/self
2023-10-13 04:58:33 -04:00
6ad5c0eced port LAMMPS GUI to Qt6 while still supporting Qt5 2023-10-12 23:24:11 -04:00
1a9dac83d7 update fix srd docs 2023-10-12 21:52:32 -04:00
26133bd26a Revert "restore GNU make build capability for ML-PACE"
This reverts commit 2b1985f755.
2023-10-12 16:29:01 -04:00
4910401f6c Add accelerator package text 2023-10-12 12:52:57 -06:00
8bc3965583 More robust refactor of Kokkos fix property/atom 2023-10-12 12:06:55 -06:00
201f8cda9a more updates 2023-10-12 06:49:59 -06:00
fc12f86ea9 Update compute_pace.h
Header style fix
2023-10-11 16:47:35 -06:00
9b108a631b Do not zero forces in pair if using hybrid/overlay 2023-10-11 16:36:15 -06:00
fbdd61e28c enable spacefilling sphere option also for systems with per-atom radius 2023-10-11 18:15:13 -04:00
aff10deeb7 Merge branch 'lammps:develop' into compute-pace-update 2023-10-11 14:19:49 -06:00
6f38fa090a Merge remote-tracking branch 'github/develop' into collected-small-changes 2023-10-11 15:37:40 -04:00
71ebb60a33 Merge pull request #3931 from evoyiatzis/patch-6
Fixes #3925 in region_ellipsoid.cpp
2023-10-11 15:37:01 -04:00
45172d33a9 use potential file name distributed with LAMMPS in examples 2023-10-11 09:20:05 -04:00
bb7e8c66ed clarify 2023-10-11 08:26:50 -04:00
eff74405c1 don't replace end of line character from completion 2023-10-11 02:16:23 -04:00
cc5c5bbd49 block waiting for end of stdout data not more than a second 2023-10-11 02:12:03 -04:00
86a5d6bb15 must re-initialized threads also for neigbor lists 2023-10-11 02:05:23 -04:00
84eab70fb4 must select entire non-blank string under cursor for completion insertions 2023-10-10 22:18:41 -04:00
07a0333670 prevent potential memory leak 2023-10-10 13:53:56 -04:00
2b1985f755 restore GNU make build capability for ML-PACE 2023-10-10 11:36:49 -04:00
c0ace4aa4b Merge pull request #3921 from wmbrownIntel/snap-intel
Adding intel variant of snap pair style.
2023-10-10 11:02:43 -04:00
d97d14745e Merge pull request #3791 from Bibobu/NPTLangevin
Adding fix press/langevin
2023-10-10 06:28:41 -04:00
4b5c0043ba Merge pull request #3923 from akohlmey/lammps-gui-ubuntu20-backport
LAMMPS GUI improvements, fixes, refactoring, and backports for Ubuntu 20.04LTS
2023-10-10 00:24:08 -04:00
b816029d70 pop down completion list when all characters have been deleted 2023-10-09 23:32:22 -04:00
b24e1e10a0 reposition the cursor for the context menu, but only if there is no selection 2023-10-09 22:59:14 -04:00
a4eaf1e6bd Merge branch 'develop' into lammps-gui-ubuntu20-backport 2023-10-09 21:32:35 -04:00
4ff226b00f Fix issues in Kokkos fix property/atom 2023-10-09 16:12:27 -06:00
ea4ce05633 Merge pull request #3932 from yury-lysogorskiy/feature/ml-pace-bgrad
add support of computing B-grads (and C-tilde grads)
2023-10-09 13:00:28 -04:00
1db12d7df5 update LAMMPS GUI help summary text 2023-10-09 00:09:18 -04:00
4eef20e808 make consistent 2023-10-08 19:26:08 -04:00
b2c52c5032 use FSAA implementation of dump image instead of emulating it 2023-10-08 19:23:07 -04:00
e5190a0ff9 more specific preferences label 2023-10-08 19:14:04 -04:00
1390a92a5b correct indexing bug with FSAA 2023-10-08 19:12:37 -04:00
2d597f61b8 adjust default size of image area 2023-10-07 13:35:32 -04:00
d1f910af2c remove redundant close button 2023-10-07 13:33:59 -04:00
3e6997e98b restore saved text cursor when initializing system before creating an image 2023-10-07 13:33:43 -04:00
60ffcf74dc enable and apply clang-format to fix press/berendsen 2023-10-07 12:17:05 -04:00
8d305cb44f modernize access to list of fixes and fix properties also for fix press/berendsen 2023-10-07 12:15:57 -04:00
6442763b70 indicate that fix press/langevin changes box dimensions 2023-10-07 12:08:02 -04:00
5649381f01 enable and apply clang-format 2023-10-07 12:03:18 -04:00
3b02979645 improve error messages 2023-10-07 12:01:33 -04:00
578c95fb42 modernize access to list of fixes and their properties 2023-10-07 12:01:13 -04:00
63eed5e230 Drafting tension model 2023-10-06 17:43:54 -06:00
090f12e029 Minor edits, mainly affecting friction keyword 2023-10-06 17:03:41 -06:00
dc3b6aa697 Minor edits, mainly affecting friction keyword 2023-10-06 16:47:38 -06:00
f688a28d7f update help index table 2023-10-06 13:01:12 -04:00
d388ef762d Implement more conventional behavior when opening non-existing file.
Instead of only printing a warning we now create a *named* and
empty buffer and change to the directory of the filename, so that
the file will be created in the desired location as soon as it is saved.
2023-10-06 06:42:40 -04:00
fcc92b50db add support for a help flag and print text mode error message for nonexisting file 2023-10-06 02:46:15 -04:00
b38e828c49 Prevent segfault with unsupported radial basis 2023-10-05 22:51:48 -06:00
1cbe59c254 Fixing compile errors 2023-10-05 21:19:50 -06:00
3999b3e557 enforce newline before adding run 0 command to avoid syntax errors. 2023-10-05 13:22:15 -04:00
127dcd5613 fix cut-n-paste error 2023-10-05 13:16:03 -04:00
1c3f659844 Merge branch 'develop' of github.com:lammps/lammps into NPTLangevin 2023-10-05 16:01:57 +02:00
ea8d6aaa52 Version of the code with Pdamp similar to NH barostat and friction input
as Langevin caracteristic time.
2023-10-05 16:01:03 +02:00
7d1c5b4106 Updated the manual to explain the new parameter and the physics of the
barostat.
2023-10-05 15:56:51 +02:00
b0deb87188 include Qt version in About dialog 2023-10-04 15:13:22 -04:00
f5f8df55b8 Merge branch 'lammps:develop' into compute-pace-update 2023-10-04 10:16:17 -06:00
92a6200c55 no need to converge root finding beyond when g reaches 2*epsilon 2023-10-04 10:39:19 -04:00
c0f1fe4d31 make utility functions local and static. remove from class. 2023-10-04 10:33:27 -04:00
ac53cbb779 update LAMMPS GUI docs and some images 2023-10-04 07:45:25 -04:00
0536e0e7b3 upd Install.py (new version v.2023.10.04.pre and checksum) 2023-10-04 12:38:25 +02:00
63aa467959 add support of computing B-grads (and C-tilde grads) 2023-10-04 12:32:24 +02:00
35640dd72e use event filter to bypass default shortcuts that conflict with our custom ones 2023-10-04 06:29:39 -04:00
857cc53923 README file for the ELECTRODE package 2023-10-04 10:32:50 +02:00
8af3aef734 Fixes #3925 in region_ellipsoid.cpp 2023-10-04 10:04:45 +03:00
ed631ecd44 add button to reset zoom/pan of chart viewer 2023-10-03 22:36:00 -04:00
a3c843f590 add support for shortcuts CTRL-/ (stop run) and CTRL-Q (quit) to most windows 2023-10-03 21:14:11 -04:00
6ff7050d2d enforce that the number of threads is properly reset for /omp styles 2023-10-03 19:47:34 -04:00
02b9bdd639 fix uninitialized data access 2023-10-03 17:49:55 -04:00
b3008e3329 fix delete / delete[] mismatch 2023-10-03 17:49:44 -04:00
f9f33ce1b6 Fix issues with Kokkos fix property/atom 2023-10-03 15:41:35 -06:00
6a43ca8410 reset number of threads to 1 when using no accelerator or opt 2023-10-03 16:13:59 -04:00
75050b8920 get upper thread limit from Qt so we can raise the number of threads 2023-10-03 15:40:06 -04:00
6da8fff08c Fix bug with dynamic groups 2023-10-03 13:35:50 -06:00
18a69873f8 add keyboard shortcut for saving log to file 2023-10-03 15:23:52 -04:00
5302e39f69 avoid segfaults when accessing lammps_last_thermo() 2023-10-03 14:35:48 -04:00
bb01afc498 provide default file name when writing log window text to file 2023-10-03 14:18:17 -04:00
4bbaebda16 Revert ineffectual change 2023-10-03 12:09:23 -06:00
9f612e6ef3 Merge branch 'kk_flux' of github.com:stanmoore1/lammps into kk_flux 2023-10-03 12:07:46 -06:00
f57e5d975c Fix harmless compiler warnings 2023-10-03 12:07:28 -06:00
c521d54f85 Fix compile error 2023-10-03 10:58:22 -06:00
ff23da1c97 Switch order 2023-10-03 10:28:08 -06:00
918705ce2f refactor CSV format output 2023-10-03 12:10:44 -04:00
367d0ac905 Add support for FLUX 2023-10-03 10:07:52 -06:00
e840d422ef Use a_f to be consistent 2023-10-03 10:07:41 -06:00
b5dae4024a tweak output format for gnuplot data export 2023-10-03 12:02:56 -04:00
37c1bfafa3 remove unused class member 2023-10-02 18:30:47 -04:00
5db01aa989 BUGFIX: correctly render the currently selected chart when exporting to image files 2023-10-02 18:19:27 -04:00
77d0475fb7 update TODO file 2023-10-01 11:46:16 -04:00
e7b9bc2d4f update docs 2023-09-29 18:53:18 -04:00
1689c306b6 add "Save to File" option to the context dialog for the log window 2023-09-29 18:00:31 -04:00
5a750c8633 automatically define variable "gui_run" to contain the run number 2023-09-29 17:42:30 -04:00
ef575d5944 change default for replacing log/chart/image windows to true 2023-09-29 16:47:52 -04:00
c24ddfed29 add a run counter to log, chart, and slideshow window titles
this counter is reset on loading a new file
2023-09-29 16:45:13 -04:00
b03e8e376a make references consistent 2023-09-28 14:31:32 -04:00
6613af05dc fix spelling issue 2023-09-28 14:31:19 -04:00
54517726cd Merge remote-tracking branch 'github/develop' into lammps-gui-ubuntu20-backport 2023-09-28 14:19:15 -04:00
49f08e6231 Merge pull request #3924 from akohlmey/collected-small-changes
Collected small changes and fixes
2023-09-28 14:18:40 -04:00
d84ee0c4f1 Update compute_stress_mop_profile.cpp 2023-09-28 17:48:17 +03:00
dc84ab5e5f Update compute_stress_mop.rst 2023-09-28 17:06:11 +03:00
bbd6b2846f implementation of compute_dihedral() in compute_stress_mop.cpp 2023-09-28 16:59:03 +03:00
d062541177 remove whitespace from compute_stress_mop.cpp 2023-09-28 16:29:15 +03:00
ca449f1ea8 Prepare for inclusion of dihedral contribution in compute_stress_mop.cpp 2023-09-28 16:25:52 +03:00
ac435319fd Definition of compute_dihedral and related variables in compute_stress_mop.h 2023-09-28 16:15:03 +03:00
3445330cf1 remove whitespace from compute_stress_mop.cpp 2023-09-28 16:13:13 +03:00
18f48a5e7c Recognize Windows 11 23H2 2023-09-27 18:00:19 -04:00
5a455c5e3a remove redundant calls to fmt::format() from calls to error->one/all() and utils::logmesg() 2023-09-26 23:56:51 -04:00
6115edefcb remove redundant use of fmt::format() 2023-09-26 23:34:56 -04:00
6141d8d08c gracefully handle some older ReaxFF force field files without overcorrection parameter 2023-09-26 23:29:59 -04:00
7c3a95240e print more specific error messages when parsing ReaxFF force field files 2023-09-26 23:29:22 -04:00
3cae238eb5 Finish drafting bond creation/deletion 2023-09-26 09:07:44 -06:00
1591b21617 remove whitespaces from compute_stress_mop_profile.cpp 2023-09-26 16:53:16 +03:00
b86d1f6553 Update compute_stress_mop.rst for dihedral interactions 2023-09-26 16:48:45 +03:00
d40fb4a337 method implementation for dihedral contribution to compute_stress_mop_profile.cpp 2023-09-26 16:45:46 +03:00
ec458e2861 method and member variables definition for dihedrals in compute_stress_mop_profile.h 2023-09-26 16:32:26 +03:00
381d8de017 initialization of angleflag in constructor compute_stress_mop_profile.cpp 2023-09-26 16:22:09 +03:00
e819b38a18 undo dihedral changes in compute_stress_mop_profile.h 2023-09-26 16:15:12 +03:00
b81df7c21b Include methods and variables for dihedral contribution to compute_stress_mop_profile.h 2023-09-26 16:12:09 +03:00
bd07252da3 Merge branch 'rheo' of github.com:jtclemm/lammps into rheo 2023-09-25 09:39:43 -06:00
583917b194 Drafting structure of solidification bond creation 2023-09-25 09:39:29 -06:00
25e9c2a35b file completion only in current folder. hide popup when changing completer 2023-09-25 09:23:49 -04:00
053f6fa03d must also update CWD when *saving* a file, not only when loading 2023-09-25 08:54:56 -04:00
a128089ab1 apply clang-format 2023-09-25 08:35:32 -04:00
2c636c83f5 check for compatible LAMMPS version when creating LAMMPS instance
This check must be done at runtime, since the LAMMPS shared library
may have been loaded dynamically and thus required library functions
may not be present or missing features with too only a LAMMPS version.
2023-09-25 08:35:23 -04:00
082d2bec9f merge used parts of periodic_table.h into imageviewer.cpp 2023-09-25 07:46:55 -04:00
29989f102a remove unused class members and silence compiler warnings 2023-09-24 23:08:59 -04:00
b2f62bbd1a include FFMpeg and gzip into windows zip archive for LAMMPS GUI 2023-09-24 17:52:43 -04:00
11608abf34 update docs 2023-09-24 16:45:59 -04:00
5201e6b2f1 add support for completion on file names 2023-09-24 16:31:28 -04:00
934269e456 move all icon files to the icons folder 2023-09-24 15:55:14 -04:00
5588c121f4 add support to export slide show animation to movie file via ffmpeg 2023-09-24 15:09:14 -04:00
c50dcf6129 move helper functions to separate file. add overloads to mystrdup() 2023-09-24 12:53:14 -04:00
35bf3e05ca Merge branch 'develop' into fix-rigid-enforce2d 2023-09-22 12:01:57 -04:00
afa8501d20 recognize STL files starting with "solid binary" as binary files 2023-09-22 07:51:58 -04:00
12acd346b7 plug memory leak 2023-09-22 07:51:16 -04:00
fb55fc3277 we don't need a lattice for creating atoms from a STL mesh 2023-09-22 07:51:07 -04:00
6f79918bab copy FFMpeg binary into app bundle 2023-09-21 19:43:53 -04:00
8b40e16ebd Revert "link gui to jpeg and png libs"
This reverts commit 57b3b74bcd.
2023-09-21 19:16:54 -04:00
70d6518eac minor updates for using presets. mention macos multi-arch preset 2023-09-21 19:10:36 -04:00
a9f15f6a29 update preset 2023-09-21 19:09:57 -04:00
57b3b74bcd link gui to jpeg and png libs 2023-09-21 19:09:26 -04:00
a463995646 add dependencies for building dmg bundle 2023-09-21 19:09:04 -04:00
c22d6a9e4e update to doc pages 2023-09-21 22:13:16 +02:00
c5deb581c2 Updates to address PR comments 2023-09-21 22:12:58 +02:00
c3cc4974d1 silence uninitialized access valgrind warning 2023-09-21 07:33:03 -04:00
5ff16da272 Adding rate cap on vol link pressure 2023-09-21 12:17:47 +02:00
94a0d85b33 doc page updates 2023-09-20 15:20:02 -06:00
db4f55b76f compatibility with new lammps-user-pace library and cleanup 2023-09-19 17:24:15 -06:00
f9cc60cfd5 Merge branch 'lammps:develop' into compute-pace-update 2023-09-19 11:14:14 -06:00
75682ffbca Merge pull request #3922 from arghdos/fix_for_rocm_60
Apply fix for hipfft paths in ROCm >= 6.0
2023-09-19 10:43:19 -04:00
77a5fd16dd Fixing bug in link pressure 2023-09-19 13:37:47 +02:00
d371550f5f step lammps-gui version patch number 2023-09-18 19:19:37 -04:00
934055601b change insertion function to always replace partial word with completion
Also change popup mode to always display all possible completions
and only highlight the current selection. This seems more beginner friendly.
2023-09-18 18:03:27 -04:00
e52eb81839 make use of std::swap() 2023-09-18 16:51:19 -04:00
7467a058ee Apply fix for hipfft paths in ROCm >= 6.0 2023-09-18 11:21:02 -05:00
70a8aff561 update todo list 2023-09-17 20:45:02 -04:00
7f4de6b8b9 more use of QRegExp instead of QRegularExpression for QT version < 5.15 2023-09-17 19:52:00 -04:00
20be9e64cf use split_line convenience function for better consistency and backward compatibility 2023-09-17 19:44:15 -04:00
cf8b157702 use QtRegExp for QT 5.12 on Ubuntu 20.04LTS 2023-09-17 19:38:53 -04:00
21d3f3240e more work on restart support 2023-09-16 10:09:26 -06:00
3e9f1c8af2 Merge pull request #3919 from akohlmey/collected-small-fixes
Collected small fixes and updates
2023-09-16 07:19:25 -04:00
c5b2d66283 upgrades to read/write data commands 2023-09-15 16:49:56 -06:00
508dbb74c5 print warning when using threads that snap/intel will not use them 2023-09-15 08:37:32 -04:00
d1e405e83f ML-SNAP now also has INTEL as dependent package 2023-09-14 19:08:38 -04:00
7b4ca086a8 documentation updates, clarifications, and corrections 2023-09-14 19:08:15 -04:00
5e657e5adb Intel Package: Adding documentation changes for snap variant. 2023-09-14 18:01:55 -04:00
30f7328841 more dump custom fields rotated 2023-09-14 16:00:25 -06:00
1c10d0d495 Intel Package: Adding snap variant. 2023-09-14 17:11:51 -04:00
6d12800a0d make the GUI update interval a configurable option in the preferences 2023-09-14 10:39:57 -04:00
232e57a949 fix cut-n-paste issue 2023-09-14 00:27:35 -04:00
88b9aa62b7 forgot to rename files in KOKKOS/Install.sh 2023-09-13 17:27:30 -04:00
ae7945bd99 add missing newline 2023-09-13 15:56:49 -04:00
d198a9314f reorder to have sections in alphabetical order again 2023-09-13 15:55:23 -04:00
822ad5b866 change refereces to lib/smd and smd to lib/machdyn and machdyn 2023-09-13 15:51:41 -04:00
e5f3fcbbf4 more work on read_data and write_data 2023-09-13 13:29:37 -06:00
c7e794146f initial support for write_data 2023-09-13 10:03:05 -06:00
dec245c67b support for other vector fields in read_data 2023-09-13 09:29:56 -06:00
5d0bbeb257 Merge branch 'develop' into collected-small-fixes 2023-09-13 08:57:32 -04:00
c82e7b16bd Merge pull request #3915 from Architect0rr/develop
Initialize ADIOS dumps only the first time when used in multiple runs (for custom/adios dump style)
2023-09-13 08:54:40 -04:00
6e539da050 Merge branch 'lammps:develop' into compute-pace-update 2023-09-12 13:01:10 -06:00
e230220c13 remove dead code 2023-09-12 02:44:58 -04:00
d0f0bdd695 remove deprecated register storage class 2023-09-11 17:37:32 -04:00
2839ce334e disable neighbor list trimming by default for REBO pair styles for now 2023-09-10 10:25:03 -04:00
3c1586878a reorder include files 2023-09-08 15:36:30 -04:00
2319f98987 update docs with settings for building tools with CMake 2023-09-08 11:42:35 -04:00
5235d7e434 there is no "thermo_extract" tool (anymore) 2023-09-08 11:42:35 -04:00
da1db776b6 update some tables and comments for the current state of LAMMPS 2023-09-08 11:42:35 -04:00
8bde9ffd53 silence compiler warning 2023-09-08 11:42:34 -04:00
400bb426b8 Merge pull request #3912 from akohlmey/tab-reformat-completion
Add reformatting of line and command completion to LAMMPS GUI
2023-09-08 11:40:47 -04:00
f8e65b19a2 add completion for compute and fix ID references 2023-09-08 10:43:31 -04:00
778263673c add completion for variables and variable references 2023-09-08 08:57:17 -04:00
f293c5dd87 don't add the same group name twice 2023-09-08 08:38:54 -04:00
f726a54f27 detect and highlight strings in more places 2023-09-08 08:37:48 -04:00
ecc68c2f0c fix typo 2023-09-08 00:26:22 -04:00
1d851a6cff fix some spelling issue. Start auto-complete after 2 characters 2023-09-07 23:53:21 -04:00
e20e3972d2 doc page updates 2023-09-07 17:21:15 -06:00
2d76f9e4ac add completion for group id 2023-09-07 18:02:02 -04:00
fea91c0583 edits to LAMMPS GUI howto page 2023-09-07 12:16:07 -06:00
a1ddf68e5c also delete log and chart window when loading a new file 2023-09-07 10:06:11 -04:00
71a6f5b827 some small clarifications 2023-09-06 23:51:35 -04:00
34179d2cf9 Merge branch 'develop' into tab-reformat-completion 2023-09-06 23:40:10 -04:00
ceed2e723e more general tri support in dump atom and dump custom 2023-09-06 10:11:28 -06:00
1ab26e083a more general tri support in dump atom and dump custom 2023-09-06 10:11:04 -06:00
595f2db72f Merge pull request #3914 from lammps/dependabot/github_actions/actions/checkout-4
Bump actions/checkout from 3 to 4
2023-09-06 12:01:49 -04:00
4735534139 enforce atom z coords = 0.0 for 2d simulations 2023-09-06 09:05:02 -06:00
d6d65f001a enforce atom z coords = 0.0 for 2d simulations 2023-09-06 09:04:10 -06:00
17aa458c26 delete image viewer window when loading new file 2023-09-06 00:28:05 -04:00
2c0ff19528 allow calling lammps_last_error_message() with a NULL buffer to clear the error 2023-09-06 00:27:46 -04:00
0b5ce04638 initialize system with commands up to first run/minimize to have initial snapshot 2023-09-05 22:18:25 -04:00
6f01b27e7e add general triclinic pressure tensor to thermo_style 2023-09-05 16:50:38 -06:00
aaad6cffba must close LAMMPS instance after loading new file. 2023-09-05 18:03:05 -04:00
788ce89751 fix typo in query 2023-09-05 18:02:42 -04:00
1fe5c59674 Initialize ADIOS dumps only the first time when
used in multiple runs (for custom/adios dump style)
2023-09-05 12:44:56 +03:00
e1088ed6f9 add "none" to completions of force styles 2023-09-05 04:59:50 -04:00
9036717f1e add completions for unit styles 2023-09-04 20:56:55 -04:00
1ed8dd6906 add general triclinic options to dump custom 2023-09-04 15:26:55 -06:00
68d88de785 Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 19:30:21 +00:00
fb890fcdfe Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 17:09:21 +00:00
cf23022921 highlighting tweaks for numbers and special terms 2023-09-02 23:49:57 -04:00
7f5124e11a tweak highlighting for "setup" commands 2023-09-02 23:39:29 -04:00
78fbdad59e code cleanup 2023-09-02 18:46:58 -06:00
57f6526e53 code cleanup 2023-09-02 18:45:37 -06:00
c7973ccc9b initialize all pointers in initializer list to null 2023-09-02 19:36:49 -04:00
6f3b74b53e plug memory leak 2023-09-02 18:49:35 -04:00
2bda147ff5 since dump image calls functions in thermo, thermo must be delete *after* the dumps 2023-09-02 18:48:06 -04:00
2b90e1143a add missing %1 for arg() method 2023-09-02 18:36:05 -04:00
2d17894430 Update LAMMPS GUI documentation for Version 1.5 2023-09-02 11:50:20 -04:00
cf9ce0ebed support displaying completions from editor context menu 2023-09-02 10:48:36 -04:00
98b803eba9 implement workaround for broken word under cursor selection in QTextCursor class 2023-09-02 09:44:13 -04:00
8c3ab47fd6 more debugging for fcc example 2023-09-01 22:58:10 -06:00
4d409906fe implement more completions, skip suffixed styles, support variable styles 2023-09-01 23:02:51 -04:00
cb446f5e7f simplify auto-completion 2023-09-01 20:04:47 -04:00
8383da5e74 create individual completer classes for different styles, use macros 2023-09-01 19:57:42 -04:00
40def67942 debugging 2023-09-01 17:46:52 -06:00
7918f14499 remove unneeded method 2023-09-01 14:45:00 -06:00
817a16b48c work on create_atoms command 2023-09-01 14:38:22 -06:00
7462439b5d mods to change_box 2023-09-01 12:15:51 -06:00
c1bf3f7d4e must step up ABI version for plugin loader 2023-09-01 11:55:19 -04:00
0a5e97e768 add LAMMPS version check, to be uncommented after PR #3896 is merged 2023-09-01 11:00:35 -04:00
b2ba1bbe70 implement automatic completion popup and reformat on return 2023-09-01 07:27:52 -04:00
65866156dd make handling of boolean settings consistent 2023-09-01 07:27:10 -04:00
1514d98c35 swap matching isSetup and isRun to avoid funny coloring of run_style and similar 2023-09-01 07:25:50 -04:00
0043e4ccc8 macOS drops us into "/" when opening the app bundle without a file. use $HOME instead. 2023-09-01 03:29:45 -04:00
2e0bc524cc update TODO list 2023-09-01 02:53:48 -04:00
b478888ede move processing of completion to separate function 2023-09-01 02:52:26 -04:00
9690d2dc02 update formatting with clang-format 2023-09-01 02:45:20 -04:00
b6d10d1e20 implement command completion popup 2023-09-01 02:43:32 -04:00
156ab0b338 add reformat to context menu, formatting width may be changed in preferences 2023-08-31 23:25:30 -04:00
7a9aa7950c add special case formatting for *_coeff commands 2023-08-31 21:58:39 -04:00
8ac45a8a02 reformat line when Tab key is pressed 2023-08-31 21:39:43 -04:00
7b5dfa2a3b Merge pull request #3910 from akohlmey/add-slideshow
Add slideshow feature to LAMMPS GUI
2023-08-31 21:35:45 -04:00
9796317269 Merge pull request #3911 from taylor-a-barnes/mdi_fix
Fix bug in MDI energy
2023-08-31 18:09:21 -04:00
932a080246 tweak comments 2023-08-31 14:45:24 -06:00
db72d4b73a add general tri options to read and write data commands and Domain class 2023-08-31 14:34:37 -06:00
ca8722d14c Fix bug in MDI energy 2023-08-31 16:27:23 -04:00
5d23d5d317 remove duplicates, move misplaced, and add missing keywords for syntax highlighting 2023-08-31 15:59:46 -04:00
7a1466671b Merge branch 'develop' into BPM 2023-08-31 10:28:47 -06:00
c96d793fb6 update unit tests for change in read_restart 2023-08-31 04:45:23 -04:00
43d1d8c86b make atom_modify map settings in restart file overridable 2023-08-30 23:51:25 -04:00
f77fec1e61 handle immediate variables and atom_modify keyword 2023-08-30 22:10:53 -04:00
0e9a402c5a update TODO list 2023-08-30 16:19:28 -04:00
4b910d7812 complete rewrite of syntax highlighting with more consistency 2023-08-30 16:01:14 -04:00
2c92de2690 update preference dialog images 2023-08-30 09:07:23 -04:00
d474a511b6 update 2023-08-30 07:38:00 -04:00
b75b0ff3d5 sync naming of resulting archives with macOS 2023-08-30 07:37:53 -04:00
bfca91bbf0 layout tweak for macOS 2023-08-30 07:18:50 -04:00
34b26ffb74 final tweaks for macOS packaging 2023-08-30 07:04:15 -04:00
207cb5bb51 update LAMMPS GUI bundling for macOS 2023-08-30 06:42:56 -04:00
4f52a5e791 need to implement the same workaround for macOS as for ImageViewer class 2023-08-30 06:04:58 -04:00
8aee65b25c update TODO list 2023-08-30 05:40:13 -04:00
3fd8e1dd7d change table of hotkeys to use 6 columns instead of 8 for better reability 2023-08-30 04:53:55 -04:00
c2eafb874d update docs for LAMMPS GUI v1.4 2023-08-30 04:38:11 -04:00
9fe266d4cd make consistent 2023-08-30 04:30:33 -04:00
c432df0f91 set window icon consistently where possible 2023-08-30 04:15:13 -04:00
4ca5d7eec5 fix logic error 2023-08-30 03:58:56 -04:00
2aa8e10ae2 do not allow to zoom in beyond 80% of screen height or width 2023-08-30 03:54:13 -04:00
07efb5b015 don't add button to toggle slideshow window 2023-08-30 02:46:56 -04:00
9b065c0ac4 remove redundant "View" menu 2023-08-30 02:46:39 -04:00
9aa68442b6 complete implementation of slideshow window 2023-08-30 01:07:27 -04:00
ceadb04cf3 store the actual file name *after* it is written 2023-08-29 23:31:24 -04:00
a176ef4768 make consistent with write_dump 2023-08-29 20:07:35 -04:00
26ef4065da add image_fname string for caching the last active dump image filename pattern 2023-08-29 19:22:56 -04:00
d0c1cfd292 simplify 2023-08-29 19:21:41 -04:00
8531e8138c Use "Create Image" instead of "View Image" for launching the image viewer 2023-08-29 19:07:07 -04:00
514fec1b11 add non-functional slide show window to GUI
# Conflicts:
#	tools/lammps-gui/CMakeLists.txt
#	tools/lammps-gui/lammpsgui.cpp
#	tools/lammps-gui/lammpsgui.qrc
#	tools/lammps-gui/lammpsgui.ui
2023-08-29 18:45:04 -04:00
e83e9ab78b Merge pull request #3904 from akohlmey/highlight-line
Add highlighting of current line in lammps-gui and tracking of line numbers in LAMMPS
2023-08-29 17:43:15 -04:00
432380c468 update 2023-08-29 16:54:51 -04:00
c8a611098e add pointer to installation/download of LAMMPS GUI 2023-08-29 16:54:45 -04:00
21c0ec7e2c Merge remote-tracking branch 'github/develop' into highlight-line 2023-08-29 16:28:15 -04:00
6bdf86056c Merge pull request #3903 from akohlmey/collected_small_changes
Collected small changes and fixes
2023-08-29 16:26:41 -04:00
a206072520 Merge branch 'develop' into master 2023-08-29 19:04:58 +03:00
67bcf75b74 Updated the corresponding doc pages with ".. index::" and added (k) to the commands in the overview pages 2023-08-28 23:18:05 -05:00
0cf0d11b03 whitespace 2023-08-28 21:30:55 -04:00
c71c4d0fcd must have a verbatim block to include .. versionadded:: 2023-08-28 21:19:04 -04:00
2c363043e3 update LAMMPS GUI Howto for version 1.3 2023-08-28 21:18:39 -04:00
976080ecf0 tweak layout of chart window by adding a spacer and a label 2023-08-28 20:50:06 -04:00
6c8e782289 Merge branch 'develop' into highlight-line 2023-08-28 17:46:06 -04:00
bed5d65e1b Merge branch 'develop' into collected_small_changes 2023-08-28 17:45:13 -04:00
afabb279a3 Merge pull request #3908 from lammps/doc-page-tweak
Add info for on-line manual versions to Manaul home page
2023-08-28 15:33:37 -04:00
e2daed05ad fix typo 2023-08-28 13:12:01 -04:00
b5756e25d2 Merge pull request #3906 from akohlmey/fmtlib-10.1.1
Update fmtlib to version 10.1.1
2023-08-28 12:29:48 -04:00
b55be3eb7e list manual versions on Manual home page 2023-08-28 10:22:52 -06:00
b08abd4a80 Updated Install.sh and cleaned up 2023-08-28 11:06:07 -05:00
4ef9f70bfe Fixed whitespaces, added author info 2023-08-28 09:43:00 -05:00
09e94cc1ff update fmtlib to version 10.1.1 2023-08-28 09:53:00 -04:00
64750c8a21 allow sphinx 7.2 again after incompatibility with breathe has been fixed 2023-08-28 05:20:47 -04:00
58d60dfea0 Fixed bugs with device sync for xoriginal 2023-08-26 16:08:59 -05:00
1039f86037 remove unnecessary restriction
do not check for comm cutoff when initiator atoms are directly bonded
2023-08-26 14:29:07 -04:00
92f173f7c3 update TODO list and step patch version for next set of features 2023-08-26 12:40:59 -04:00
821cbf1a22 add window to monitor current variables 2023-08-25 23:56:27 -04:00
d864b4789f refactor variable info in Info class, make info accessible from library interface 2023-08-25 23:55:42 -04:00
999c364b83 better way to list rxn counts 2023-08-25 21:44:42 -04:00
cd5ebb86c8 inserting atoms: correct logic for per-atom mass 2023-08-25 21:37:57 -04:00
5b5210130c improve highlighting settings to also show errors with different color 2023-08-25 21:19:05 -04:00
401133acec count lines during scanning for triple quotes 2023-08-25 21:17:41 -04:00
568199e50d must initialize force style pointers to null 2023-08-25 21:17:11 -04:00
0461fe8a13 delete carriage returns instead of turning them into blanks, add final newline 2023-08-25 18:55:14 -04:00
9c91ec9050 remove dead code 2023-08-25 17:51:22 -04:00
74d76f988d update docs 2023-08-25 17:48:28 -04:00
6cc021bcaf when updating the highlight also update cursor position 2023-08-25 17:35:38 -04:00
6759a20cfc remove dead code 2023-08-25 17:35:05 -04:00
8f41ac1272 support loops in lammps_commands_string() 2023-08-25 17:34:32 -04:00
c5da0581e6 add support for input file line numbers 2023-08-25 16:11:46 -04:00
c61aaa81d2 add support to run LAMMPS on the file instead of the edit buffer 2023-08-25 15:12:48 -04:00
f94d00d435 step version number 2023-08-25 15:11:59 -04:00
149a820510 sync prototype with library.h 2023-08-25 15:11:46 -04:00
079d6c2341 LAMMPS class destructor may throw execption via utils::logmesg() 2023-08-25 11:55:58 -04:00
7b6c78bc06 explicitly flag ForceConst class destructor as noexcept(false) since call to set_ntypes() may throw exception 2023-08-25 10:47:37 -04:00
fee9a77fb4 must use array delete and not scalar delete on char array 2023-08-25 10:05:11 -04:00
76c0632363 remove dead code, class members that should be local, initialize others 2023-08-25 09:15:31 -04:00
6fcad323ab must initialize typefirst now after recent changes from @dsbolin 2023-08-25 06:15:33 -04:00
541a5be1dd update more frequently 2023-08-25 06:08:18 -04:00
8a7c1f3d0d add support for add a highlight for the currently active input line to the line number display 2023-08-24 21:25:57 -04:00
3a7efdfb8c implement setFont() method that sets the font for the entire editor window 2023-08-24 21:25:14 -04:00
c7a0e5f0e1 use line splitting method that keeps empty lines and set line numbers 2023-08-24 21:23:35 -04:00
48de679a58 add support for accessing line number from cached thermo data 2023-08-24 21:22:51 -04:00
23bc3abe18 add option to cache the current line number of the input file or buffer 2023-08-24 21:20:49 -04:00
1b86d647de cleaned up headers and used PIMPL namespace instead, fixed whitespace, fixed homepage 2023-08-24 17:08:31 -06:00
d54fb3eb47 Merge branch 'lammps:develop' into compute-pace-update 2023-08-24 16:47:28 -06:00
187bebb515 Working on fix spring/self/kk, something with missing host-device sync that causes force blowup 2023-08-24 12:17:37 -05:00
dc3c8da52b Merge pull request #3900 from dsbolin/fix_srd_bugfixes
Bug fixes for fix srd
2023-08-24 11:52:46 -04:00
afc4e1d476 Merge pull request #3893 from akohlmey/lammps-gui-fixes
Some more lammps-gui fixes and updates
2023-08-24 11:04:52 -04:00
2c897df841 Merge branch 'develop' into new-computes 2023-08-24 09:38:05 -04:00
6ccccb5d13 add versionadded tag to new inputs keyword docs 2023-08-24 09:27:17 -04:00
f7656101a2 Merge pull request #3892 from akohlmey/collected-small-changes
Collected small changes and fixes
2023-08-23 21:19:37 -04:00
b4e7d5f0b9 fix whitespace (again) 2023-08-23 20:11:32 -04:00
949f93b588 clarify the documentation for the extract_atom numpy wrapper 2023-08-23 20:02:23 -04:00
df1e2a64d2 the MESONT package depends on the MOLECULE package since the last upgrade 2023-08-23 19:03:34 -04:00
70dab54e79 A few bug fixes for fix srd 2023-08-23 13:03:51 -06:00
c417288df9 add missing :doc: 2023-08-23 14:14:26 -04:00
00345ce8c3 rename compute local/comp/atom to composition/atom 2023-08-23 14:06:44 -04:00
95c792c559 Merge branch 'compute-fix-variable-outputs' of github.com:lammps/lammps into compute-fix-variable-outputs 2023-08-23 09:47:44 -06:00
e6b98f5942 fix logic issue in compute reduce 2023-08-23 09:47:36 -06:00
476446d93c add reference log outputs for ML-HDNNP and add input demoing use with hybrid 2023-08-23 08:58:20 -04:00
174825fe8c fix element mapping bug in pair style hdnnp when used as a hybrid sub-style 2023-08-23 07:21:16 -04:00
2e79beb368 signal that destructors may throw exceptions 2023-08-23 03:37:54 -04:00
aec1f46291 initialize all class members 2023-08-23 03:28:06 -04:00
9999f775cc address CodeQL issue 2023-08-23 03:03:19 -04:00
351a9dd11f Merge remote-tracking branch 'github/develop' into collected-small-changes 2023-08-23 03:02:29 -04:00
154c98cd7d Merge remote-tracking branch 'github/develop' into compute-fix-variable-outputs 2023-08-22 21:37:19 -04:00
c072719a44 Merge pull request #3898 from stanmoore1/reax_kk_bug
Fix bug in Kokkos ReaxFF on GPUs when border comm is on host
2023-08-22 18:57:43 -04:00
3e22eb8355 adjust version date 2023-08-22 16:40:25 -06:00
17dd04b4de tweak variable doc page 2023-08-22 16:22:57 -06:00
71ca6ee47c fix one more example input script 2023-08-22 16:02:28 -06:00
ad33a018f4 update variable syntax in several example input scripts 2023-08-22 15:52:47 -06:00
17b78d86a6 Merge pull request #3885 from bathmatt/pt_without_device
Made check incase PyTorch didn't define the device
2023-08-22 17:38:54 -04:00
dd6b847a5c mention that "peratom" is no longer required and was removed 2023-08-22 16:29:14 -04:00
ffe291b793 Fixed bugs with the memory allocation for xoriginal 2023-08-22 15:28:28 -05:00
dc5619667f Fix bug in Kokkos ReaxFF on GPUs when border comm is on host 2023-08-22 11:26:12 -06:00
7d9c068da0 whitespace 2023-08-22 11:50:54 -04:00
aad232ffc6 fix typo 2023-08-22 11:46:57 -04:00
eaedc60396 more fixes for file and pathnames with blanks 2023-08-21 15:55:47 -04:00
532e365331 enable/disable VDW mode pushbutton depending on whether valid element info is present 2023-08-21 13:24:12 -04:00
331adc09c0 Merge branch 'develop' into compute-fix-variable-outputs 2023-08-21 10:56:54 -06:00
ab2b83f654 clarify doc for fix ave/histo command 2023-08-21 10:54:42 -06:00
1d749594cb avoid write_dump image failing when not all elements can be recognized 2023-08-21 12:26:08 -04:00
c6233547a5 update compute and fix doc pages for new generality 2023-08-21 09:39:00 -06:00
20748b877e Merge pull request #3894 from akohlmey/remove-mpiio
Remove MPIIO package
2023-08-21 11:02:28 -04:00
3192b11cb8 fix write_dump command string so it can handle paths with blanks 2023-08-21 09:06:19 -04:00
603d7d28fd make constants and functions static so there are no namespace conflicts with multiple files including it 2023-08-21 05:23:42 -04:00
d230ae49c4 update documentation for removal of MPIIO package 2023-08-20 22:17:03 -04:00
4de7694bbe add removed MPIIO dump styles to deprecated dump styles 2023-08-20 22:03:34 -04:00
a81412f015 remove MPIIO sources and references to them. update Purge.list and build systems 2023-08-20 21:51:33 -04:00
46f28e1fb8 workaround for imageviewer GUI glitch on macOS 2023-08-20 19:11:11 -04:00
e50d950a86 fix copy-n-paste bug 2023-08-20 00:24:11 -04:00
a94c45eb0c speed up SSAO with OpenMP multi-threading, if available 2023-08-20 00:11:33 -04:00
93f011ad7c make vdwfactor consistent and speed up rendering for VDW mode by skipping bonds 2023-08-20 00:10:42 -04:00
b592542a5b use more consistent way to update checkboxes and labels by assigning names 2023-08-20 00:01:42 -04:00
80144c9970 speed up SSAO with OpenMP multi-threading, if available 2023-08-19 20:06:31 -04:00
a86c0ed671 suppress pointless warning by MSVC++ compilers 2023-08-19 17:48:03 -04:00
c1b5fe4e84 reimplement lammps_commands_string() library function with C++ and support for heredocs 2023-08-19 17:48:03 -04:00
89fc0ad68a correctly extract local file name from dropped URI 2023-08-19 17:46:41 -04:00
fb0712b66f consistently use bool for echo and cite flags 2023-08-19 13:38:53 -04:00
a4390529ab automatically copy "About LAMMPS" dialog text to clipboard 2023-08-19 09:28:11 -04:00
b904534ac2 Merge pull request #3889 from akohlmey/image-anti-alias
Implement anti-aliasing for dump image (and dump movie)
2023-08-18 15:52:01 -04:00
6e1529ddff finish changes to variables 2023-08-18 13:18:50 -06:00
283c928aac add note and images to showcase the effect of fsaa and ssao 2023-08-18 14:08:43 -04:00
7febd8c918 Merge branch 'develop' into image-anti-alias 2023-08-18 13:32:23 -04:00
d35cd8625e Merge pull request #3890 from akohlmey/lammps-gui-improvements
More lammps gui improvements
2023-08-18 11:37:19 -04:00
91d826a5d6 changed compute section of variable formulas 2023-08-18 09:34:46 -06:00
95e9e6549f simply variable.cpp 2023-08-18 09:28:58 -06:00
9ab79c745b no executable permissions on source code 2023-08-18 07:03:02 -04:00
f5361b49be Merge branch 'develop' into new-computes 2023-08-18 06:58:14 -04:00
9702a7a9d4 don't need to list utils.h as include as it is always included for styles 2023-08-18 06:58:06 -04:00
67f42fa84f add version tags, sort out spelling issues 2023-08-18 06:58:00 -04:00
bb2c286f27 fix whitespace 2023-08-18 06:46:10 -04:00
2af8842877 whitespace 2023-08-18 06:40:51 -04:00
0624aa56b9 remove unused file 2023-08-18 01:50:13 -04:00
422b989c1c may only set bond diameter, if there are actual bonds in the system allowed 2023-08-17 22:33:12 -04:00
5528cefe0f move fsaa keyword next to ssao and away from dump_modify
we don't need to reallocate the buffers this way
2023-08-17 19:57:46 -04:00
f2901827e6 updates to variable doc page to clarify compute/fix options 2023-08-17 17:25:27 -06:00
299eda8ca3 have compute_reduce require either peratom or local inputs 2023-08-17 16:12:14 -06:00
988b121a96 silence compiler warnings 2023-08-17 16:55:57 -04:00
f4fe28d8d0 change PNG compression from best compression to best speed 2023-08-17 16:42:22 -04:00
0d739439c7 changes to compute voronoi/atom 2023-08-17 12:47:48 -06:00
aedda9513e document cost of FSAA 2023-08-17 13:11:41 -04:00
a0414f2fc9 update TODO list 2023-08-17 05:38:51 -04:00
6e2a65c4c5 update docs for LAMMPS GUI 2023-08-17 05:26:48 -04:00
4ec5b5776c fix permissions 2023-08-17 02:25:13 -04:00
b7126f523c use counter so that widgets are properly assigned to their grid slots 2023-08-17 02:23:00 -04:00
18aa897430 fix whitespace and include missing icon 2023-08-17 01:38:34 -04:00
b2a8bc07a0 add option to toggle between VDW style representation and licorice style 2023-08-17 01:20:07 -04:00
23f9615ef2 color by element when units setting allows it 2023-08-17 00:41:30 -04:00
37b0ba1d51 import periodic table functions from VMD/molfile plugin 2023-08-17 00:40:00 -04:00
3ac856cc92 add extract_global() and extract_atom() 2023-08-17 00:39:10 -04:00
43347b87ce also recognize integer ranges with : or * as integer 2023-08-17 00:38:46 -04:00
f91dc3e68a implement anti-aliasing for dump image (and dump movie) 2023-08-16 20:24:57 -04:00
4628199041 update todo 2023-08-16 19:10:14 -04:00
3eb8fd219a update of a Howto_output doc page 2023-08-16 16:19:11 -06:00
2c8a3d87a0 must stop running LAMMPS simulation before we can close the lammps object 2023-08-16 13:06:09 -04:00
ebbce58da6 fix typo 2023-08-16 12:07:43 -04:00
561f682afd support setting image dimensions, have render activity indicator 2023-08-16 08:48:31 -04:00
44f725f61f add tooltips, add run/stop/image buttons to status bar, replace run/stop icons 2023-08-16 07:11:07 -04:00
7c9eda658f fix typo 2023-08-16 03:38:05 -04:00
06e2d5d306 Merge pull request #3883 from akohlmey/lammps-gui-improvements
LAMMPS GUI improvements
2023-08-16 02:17:57 -04:00
cd4642dfb4 Merge pull request #3887 from lammps/compute-prop-grid-proc
Add proc option to compute property/grid
2023-08-15 23:49:33 -04:00
b57f6d9b30 dynamic loaded library crashes currently on macOS 2023-08-15 23:44:14 -04:00
a7f84ef645 Merge pull request #3888 from lammps/example-asphere-tri
Changes to make example script in ASPHERE/tri run smoothly
2023-08-15 23:25:04 -04:00
2cdb9c5c69 must make copies on Linux 2023-08-15 23:22:17 -04:00
653f0c4d8a correct re-launch implementation for windows 2023-08-15 23:13:31 -04:00
65cd6a3f2a we cannot cleanly restart with a new plugin through loading. must relaunch. 2023-08-15 22:46:50 -04:00
51cb6da4ca must dynamically load liblammps.so before any library function calls 2023-08-15 21:33:35 -04:00
d8541e1318 Merge branch 'develop' into lammps-gui-improvements 2023-08-15 21:23:58 -04:00
cbf463898d add versionadded tag 2023-08-15 20:58:57 -04:00
9b45b80844 Merge branch 'develop' into example-asphere-tri 2023-08-15 20:56:09 -04:00
db9bb9e390 Merge branch 'develop' into compute-prop-grid-proc 2023-08-15 20:54:33 -04:00
1e2db10252 whitespace 2023-08-15 20:54:28 -04:00
e3167fb83d Merge pull request #3881 from akohlmey/collected-small-changes
Collected small changes and fixes
2023-08-15 20:40:30 -04:00
b3f045f5ae changes to make example script in ASPHERE/tri run 2023-08-15 17:09:17 -06:00
185fa1bcdb small documentation and spelling updates 2023-08-15 12:01:07 -04:00
e886d01190 add View in OVITO and View in VMD entries to Run menu 2023-08-15 08:04:01 -04:00
cd9a5f8d8c make darkgray *really* dark gray, i.e. darker than gray 2023-08-15 06:09:34 -04:00
a5b2461e36 update docs 2023-08-15 06:08:57 -04:00
afd5f6a818 some more image settings tweaks 2023-08-15 06:08:39 -04:00
62547ccde5 update quick help and TODO list 2023-08-15 05:35:34 -04:00
263db3d13c avoid lengthy accelerator details with Nvidia GPUs 2023-08-15 02:26:54 -04:00
0c7f56e881 imageviewer updates
- new zoom icons
- resetview option
- properly track pushbutton checked state
- add preferences options for selecting background and box color
2023-08-15 02:21:05 -04:00
dedddee70a no point in removing a null pointer item 2023-08-15 01:06:15 -04:00
3bf70c1b97 various chart window updates and improvements
- charts are reset if the thermo style changes
- charts are reset if the timestep is reset (to a lower value)
- charts are not updated if thermo data is not valid (e.g. during setup)
- use integer format for Steps on the x-axis
2023-08-15 01:05:54 -04:00
8bfa0b2b04 add option to query Update::setupflag to see if thermo data is valid 2023-08-15 01:03:25 -04:00
4e604c2ccd remove OpenMPI hack. We have disabled MPIIO testing altogether. 2023-08-14 22:05:32 -04:00
f0962f36f6 make consistent and avoid segfaults 2023-08-14 21:53:45 -04:00
e51845776d make box, axes, ssao, antialias checkable buttons in image viewer
this reduces the antialias option to just 2x
2023-08-14 21:37:46 -04:00
2728f6763e updated output and cross-check 2023-08-14 18:47:27 -04:00
c11c51ba3c complete lammps gui howto 2023-08-14 16:56:22 -04:00
b53c564190 update clang-format detection for compatibility with Debian 2023-08-14 15:13:43 -04:00
9fc54865cf improve desktop integration for Linux 2023-08-14 14:31:30 -04:00
dad8081d55 Merge pull request #3884 from akohlmey/fmtlib-10.1
Update fmtlib to version 10.1
2023-08-14 11:35:29 -04:00
e297800102 get rid of tr() macros 2023-08-14 10:11:58 -04:00
a10b1de511 complete bundling and assigning icons to actions 2023-08-14 04:01:33 -04:00
cdbbe33933 Made check incase PyTorch didn't define the device 2023-08-14 09:36:56 +02:00
ea965d3b26 Working on exchange comm on device, and grow arrays for xoriginal 2023-08-13 23:40:53 -05:00
619623f0f6 more icons 2023-08-13 21:38:18 -04:00
f53991c107 include more icons link to Howto doc 2023-08-13 17:46:00 -04:00
a07f02c135 more howto documentation updates 2023-08-13 17:13:19 -04:00
d650bc61c5 include images of the preferences dialog tabs and discuss preferences 2023-08-13 15:36:05 -04:00
7e3c04aa51 add a small LAMMPS icon to the status bar indicating whether an active LAMMPS instance exists 2023-08-13 02:57:47 -04:00
9f407cae1e more documentation and tutorial updates 2023-08-13 02:57:02 -04:00
c1f9f9d1c6 we have accumulated enough changes to call this version 1.2 2023-08-13 00:15:09 -04:00
8076f77e1e add missing connect() macro 2023-08-13 00:14:46 -04:00
d4b6302b31 more doc improvements 2023-08-12 23:33:06 -04:00
1991d74623 desktop integration for Linux, embedded icons on Windows 2023-08-12 23:30:37 -04:00
929ca8f0f1 small clarification 2023-08-12 21:07:35 -04:00
c11d58f7b1 Start working on a LAMMPS GUI howto
Docs are now organized as follows:
- README is minimal and points to other docs
- The section in Tools.rst mostly explains compilation and installation
- The Howto contains a tour of the GUI and explains intended functionality
2023-08-12 21:07:12 -04:00
e7b02e89fa also linke the principal command when linking styles 2023-08-12 20:13:40 -04:00
bbcfbe957b implement context specific help either via right-click or CTRL-? 2023-08-12 17:46:10 -04:00
3957b4b194 avoid legacy compilation failures on recent ubuntu machines that only have python3-config 2023-08-12 12:45:13 -04:00
5115df7a38 avoid legacy compilation failures on recent ubuntu machines that only have python3-config 2023-08-12 12:45:01 -04:00
dd18de164a avoid legacy compilation failures on recent ubuntu machines that only have python3-config 2023-08-12 12:41:44 -04:00
45290b5296 update fmtlib to version 10.1 2023-08-12 11:52:22 -04:00
f104d75626 add missing icon 2023-08-12 10:17:10 -04:00
62b4318801 complete implementation of variable setting dialog 2023-08-12 10:08:02 -04:00
ca9924035b Working on pack/unpack exchange for xoriginal 2023-08-12 01:19:43 -05:00
9110c23fcb add set variables dialog 2023-08-12 00:09:30 -04:00
45b9801941 add parser that collects info about possible variables to be set from the command line 2023-08-11 21:59:51 -04:00
a24eccf95d Removed maxatom from fix spring/self, need to work on exchange for xoriginal on spring/self/kk 2023-08-11 09:43:28 -05:00
2cf73ff427 use platform abstractions from Qt library 2023-08-11 06:44:52 -04:00
035620d252 more image window tweaks
- add image windows to View menu
- add setting to replace old image view instead of creating a new one
- add setting to turn on/off box
- add setting to turn on/off axes
2023-08-11 03:36:40 -04:00
93e67c9388 add pixmaps to image viewer buttons 2023-08-11 02:40:08 -04:00
2e0e3d9204 add support for near-interactive image processing 2023-08-10 23:27:04 -04:00
4afd5f9661 update status message while rendering snapshot image 2023-08-10 21:46:05 -04:00
7c03921669 only close LAMMPS instance if preferences for command line flags have changed 2023-08-10 21:36:09 -04:00
55d0b84428 add support for Image rendering with up to 4x4 antialiasing and SSAO mode 2023-08-10 21:16:17 -04:00
4fb5135887 remove scrollwheel support, add prototype buttons 2023-08-10 19:58:03 -04:00
cb2627220e add a few more ideas 2023-08-10 13:29:27 -04:00
506383ab7e more ideas 2023-08-10 06:35:34 -04:00
bf6e021335 Merge branch 'develop' into lammps-gui-improvements 2023-08-10 06:28:05 -04:00
eda6a39e6a Merge branch 'develop' into collected-small-changes 2023-08-10 06:27:44 -04:00
3ae89fed8b Merge pull request #3867 from akohlmey/fix-vector-nmax
Add  nmax keyword to fix vector to restrict vector length
2023-08-10 06:27:11 -04:00
54edfd1604 update TODO, remove useless file 2023-08-10 06:14:41 -04:00
4bb3ecd09c Added the fix spring/self/kk source files 2023-08-10 00:36:33 -05:00
6ff85cab7f Adding fix spring/self/kk, needed to add maxatom to fix spring/self, may need resize xoriginal as well 2023-08-10 00:34:52 -05:00
2b7873a5bd fix typos 2023-08-09 22:55:31 -04:00
cb4eee809d add support to store the 5 most recent files and add them to the file menu 2023-08-09 22:22:17 -04:00
f1ba4227dc update TODO list 2023-08-09 20:26:26 -04:00
27d4a8afcf small tweak 2023-08-09 20:26:18 -04:00
2f415c8b62 bugfix for pair style dpd/gpu from Trung 2023-08-09 09:42:01 -04:00
b9afbf40a0 Merge branch 'develop' into collected-small-changes 2023-08-09 00:43:29 -04:00
bddb19fda1 disable *all* MPI-IO related testing 2023-08-09 00:41:40 -04:00
5d1c75e660 disable MPI-IO based restart writing (for now) 2023-08-09 00:41:39 -04:00
a56ac77132 indexing bugfix for compute global/atom 2023-08-09 00:41:39 -04:00
2f6dbfd239 possible workaround for unit test failure
taken from: https://github.com/open-mpi/ompi/issues/9656
2023-08-09 00:41:39 -04:00
ab4ae4f177 recover lost "reset to defaults" action 2023-08-09 00:36:42 -04:00
a4ab3935b4 more "About" dialog box tweaks 2023-08-09 00:36:33 -04:00
a3f742a405 add info about accelerator support and communication 2023-08-09 00:36:26 -04:00
46dd9c8546 make font size in "About" dialog 3/4 the default size. 2023-08-09 00:36:17 -04:00
b7fad288c7 fix ability to select a temporary directory (for image files) 2023-08-09 00:36:05 -04:00
7b1c00137a add preference option to select default and text font 2023-08-09 00:35:47 -04:00
4397e13aaf simplify font selection and prepare for making it a preference 2023-08-09 00:35:36 -04:00
54c62c86a7 fall back to "none" accelerator, if one was selected, but is no longer available 2023-08-09 00:35:23 -04:00
407bcf30a0 step patch level for lammps-gui 2023-08-09 00:35:13 -04:00
65d5d6508a force C locale from within the LAMMPS GUI app 2023-08-09 00:34:58 -04:00
77808cd178 add option to set visibility of log and chart windows from menu and in preferences 2023-08-09 00:34:43 -04:00
d7b5387712 enforce C locale, so that numbers are created and parsed correctly in the GUI text editor 2023-08-09 00:34:35 -04:00
f345146103 Simplify QtCreator file, update TODO once more, tag patch level 2023-08-09 00:34:19 -04:00
6dcfe130a4 tweaks to syntax highlighting 2023-08-09 00:34:05 -04:00
b81aaebd87 update TODO list 2023-08-09 00:33:54 -04:00
d33d59ec41 update docs 2023-08-09 00:33:43 -04:00
1b0967477b add support to export collected Thermo data to gnuplot .dat and excel .csv 2023-08-09 00:33:31 -04:00
bf79b91db0 update TODO list 2023-08-09 00:33:17 -04:00
890765f2e6 add preference option to replace chart window 2023-08-09 00:33:00 -04:00
53eaca030b complete chart view window with option to select chart from thermo columns 2023-08-09 00:32:46 -04:00
fe7681d0b3 add chart viewer window to show graphs of ongoing runs from thermo data 2023-08-09 00:32:34 -04:00
d414dd52d5 subclass QPlainTextEdit for logwindows, so we can store its size on close
also some more settings tweaks (e.g. do not store window size when maximized)
and add setting to replace log windows instead or creating new ones.
2023-08-09 00:32:22 -04:00
ea15cec4bf remember the size of the main window 2023-08-09 00:31:53 -04:00
9b0fe3eeda improve LAMMPS GUI docs, add info about using the Linux-2-Windows cross-compiler 2023-08-09 00:31:11 -04:00
4ca32f0cec Added comments to the use of operators overloaded when accessing unwrap on the GPU (serial works fine) 2023-08-07 15:24:16 -05:00
7c17ea632c Reverted changes to tau as a time constant. To be checked. 2023-08-07 12:09:44 +02:00
4a82754464 Fixed an obvious bug with x 2023-08-07 00:30:32 -05:00
5a6b2ec59c disable *all* MPI-IO related testing 2023-08-06 22:06:28 -04:00
a1bfbf4872 disable MPI-IO based restart writing (for now) 2023-08-06 22:06:14 -04:00
2987f38257 possible workaround for unit test failure
taken from: https://github.com/open-mpi/ompi/issues/9656
2023-08-06 22:05:53 -04:00
dc8f17e8e6 Fixed bugs with missing x array, removed the () operator overloads because they require access to domain within the kernels 2023-08-06 00:04:46 -05:00
b6f7a27b09 Merge pull request #3871 from megmcca/local-composition
Per-atom compute to calculate local composition of atom types
2023-08-05 00:53:57 -04:00
dbab5b6931 possible workaround for unit test failure
taken from: https://github.com/open-mpi/ompi/issues/9656
2023-08-04 22:32:28 -04:00
e10e1190e2 Merge branch 'develop' into triclinic-neighbor-bug 2023-08-04 22:32:19 -04:00
003a207038 possible workaround for unit test failure
taken from: https://github.com/open-mpi/ompi/issues/9656
2023-08-04 22:30:28 -04:00
7d359403ac clarify docs 2023-08-04 21:37:20 -04:00
db0c892d24 correct parsing of arguments with nmax appended at the end 2023-08-04 21:37:12 -04:00
5e9658aff6 fix whitespace and minor documentation integration issues 2023-08-04 21:06:47 -04:00
7adb2d7bcf fix syntax issues 2023-08-04 17:16:00 -04:00
b248211eb5 Merge branch 'develop' into fix-vector-nmax 2023-08-04 16:44:20 -04:00
41e71f2e41 update fix vector docs 2023-08-04 16:44:10 -04:00
95bc422424 fix duplicate implicit reference 2023-08-04 16:38:18 -04:00
bc02a7cc62 Merge pull request #3836 from akohlmey/cmake-3.16
Make CMake 3.16 the minimum required version
2023-08-04 15:36:32 -04:00
4c68e3f5f3 Small tweaks 2023-08-04 13:29:22 -06:00
376b83df52 Merge branch 'develop' of github.com:lammps/lammps into local-composition 2023-08-04 13:23:53 -06:00
5d3839db9f clean up all created files 2023-08-04 13:27:01 -04:00
cf5cd9f977 update docs 2023-08-04 13:21:59 -04:00
907673c4d7 Merge branch 'develop' into fix-vector-nmax 2023-08-04 13:07:03 -04:00
951b344a07 Merge branch 'develop' into cmake-3.16 2023-08-04 13:05:08 -04:00
4851f30634 Merge pull request #3877 from akohlmey/collected_small_fixes
Collected small fixes
2023-08-04 13:04:39 -04:00
a6767c85b0 apply clang-format 2023-08-04 12:11:59 -04:00
bc6fcdc61a Applying triclinic neighbor fixes to intel package. 2023-08-04 08:49:27 -07:00
1a5b947593 flag if we are cross-compiling 2023-08-04 08:02:06 -04:00
e958cc0ef1 silence warning about a setting that was added to silence warnings 2023-08-04 08:01:57 -04:00
ecb28e8e2e Merge branch 'develop' into cmake-3.16 2023-08-04 04:26:30 -04:00
8eb7f56491 be more thorough and complete about including all required dll files 2023-08-04 04:17:01 -04:00
3a10888a6d merge electrode changes 2023-08-04 17:03:44 +10:00
2ea1c78376 cosmetic 2023-08-04 02:24:52 -04:00
cf6866d5e6 improve message in about LAMMPS dialog 2023-08-03 22:42:50 -04:00
6280876825 Merge remote-tracking branch 'github/develop' into collected_small_fixes 2023-08-03 22:09:45 -04:00
a10aab440f report LAMMPS GUI build choices in CMake config summary 2023-08-03 22:09:36 -04:00
e87bbf4edb Merge pull request #3832 from akohlmey/fmtlib-update
Update fmtlib copy to version 10
2023-08-03 22:03:32 -04:00
4e08e6cb4c add support to build LAMMPS GUI zip package with cross compiler 2023-08-03 21:57:33 -04:00
7498739f98 work around build issue with cross-compiler 2023-08-03 21:56:35 -04:00
0446bdfc00 work around C++17 issue in AWPMD package 2023-08-03 21:56:04 -04:00
7d84eb86f7 Merge remote-tracking branch 'github/develop' into collected_small_fixes 2023-08-03 21:01:08 -04:00
e467461cac Merge pull request #3736 from lammps/always-exceptions
Always throw exceptions for errors
2023-08-03 21:00:19 -04:00
2305c4cb30 Merge branch 'develop' into cmake-3.16 2023-08-03 17:39:15 -04:00
794e3d11df Merge pull request #3670 from stanmoore1/kk_update_4.0
Update Kokkos library in LAMMPS to v4.1.0
2023-08-03 17:36:22 -04:00
e3fa10ee88 add deprecation note to lammps_config_has_exceptions() function 2023-08-03 17:35:05 -04:00
6e9a6e6b0b Merge pull request #3856 from akohlmey/remove-mscg-package
Remove MSCG package from LAMMPS distribution
2023-08-03 17:29:56 -04:00
24ea5fe7e3 hack to avoid compile failure with intel 2023-08-03 17:21:09 -04:00
397f3e4786 exceptions are always enabled and thus the check is no longer required 2023-08-03 16:52:24 -04:00
4ed98083e0 Merge branch 'develop' into always-exceptions
# Conflicts:
#	src/library.cpp
2023-08-03 16:50:50 -04:00
a57f2a996f sync with fmtlib upstream 2023-08-03 16:34:07 -04:00
6049f2985d Merge branch 'develop' into fmtlib-update 2023-08-03 16:22:57 -04:00
e0055ea929 Merge branch 'develop' of github.com:lammps/lammps into kk_update_4.0 2023-08-03 13:42:48 -06:00
fbf0bad3b5 correct sort order 2023-08-03 14:30:32 -04:00
cefb38a000 update package list for Windows with MSVC 2023-08-03 14:30:21 -04:00
3f5898a241 flag development branch 2023-08-03 14:28:23 -04:00
cc9dee5ecd use references instead of copies when looping over list of selected fixes 2023-08-03 11:00:05 -04:00
a6d178194e use consistent names and capitalization in comments 2023-08-03 10:59:31 -04:00
554db7daaf Merge pull request #3873 from akohlmey/next_patch_release
Step version strings for next release
2023-08-03 08:14:14 -04:00
dea8050a8a Merge pull request #3870 from akohlmey/lammps-gui
Add simple LAMMPS GUI using Qt library
2023-08-03 01:02:18 -04:00
3c24e4fbf3 fix typo 2023-08-02 23:53:32 -04:00
8d5343ea23 temporary skip showing broken temp file setting on macOS 2023-08-02 23:46:44 -04:00
3f1f08d4c0 add setting support for selecting the LAMMPS plugin shared object 2023-08-02 23:33:51 -04:00
2a82ed9494 add accelerators for tabs and layout tweaks 2023-08-02 21:36:04 -04:00
f6732f028c support running with Kokkos + OpenMP 2023-08-02 21:06:30 -04:00
91fdf6918d Merge pull request #3874 from lammps/perlmutter
Add missing path to Kokkos Perlmutter Makefile
2023-08-02 19:55:18 -04:00
9617c8e3d2 also update doc page 2023-08-02 16:30:26 -06:00
3e7f1ac83a add proc option to compute property/grid 2023-08-02 16:27:19 -06:00
07b36025e2 small doc fix from @sjplimp 2023-08-02 17:56:02 -04:00
6f6eb1dbb1 update TODO list 2023-08-02 17:54:40 -04:00
c800a2c676 add menu entry to reset to default settings 2023-08-02 17:52:56 -04:00
2808a78822 more updates to preferences dialog and supporting code. almost done. 2023-08-02 17:28:34 -04:00
498ca44310 Add missing path to Kokkos Perlmutter Makefile 2023-08-02 18:43:54 +00:00
97d406f2ff update TODO list with some new ideas 2023-08-02 13:53:31 -04:00
e493519c12 more hotkeys and have Ok/Cancel on preferences dialog handled properly 2023-08-02 11:05:35 -04:00
34c398dd37 Tried two ways of doing parallel reduce for fsum 2023-08-02 06:59:24 -05:00
e5bcbd4213 Bugfix electrode/conq after changes for qtotal 2023-08-02 13:03:45 +02:00
dfcd3f945e first pieces of preferences dialog 2023-08-02 07:02:20 -04:00
2711917a6e grammar 2023-08-02 07:01:30 -04:00
dfb614bd42 fix memory leak 2023-08-02 05:40:56 -04:00
56b50d6580 ensure final newline when saving to file 2023-08-02 05:37:56 -04:00
c918bdeb07 fix a couple of bugs that would hang the app waiting for log output 2023-08-02 05:25:24 -04:00
c99d0f5452 cmake cleanups 2023-08-02 04:58:38 -04:00
1fa2060175 Merge remote-tracking branch 'github/develop' into lammps-gui 2023-08-02 04:10:19 -04:00
8a53c66bef refactor. add LammpsWrapper class to hide plugin defines and interface changes. 2023-08-02 01:49:39 -04:00
57b6543886 Merge pull request #3859 from akohlmey/opencl-intel-single-fixes
Address GPU package issues with OpenCL on Intel GPU with single-only hardware (e.g. Xe)
2023-08-02 00:49:17 -04:00
310ede65d9 apply coding standard checks 2023-08-01 20:49:38 -04:00
f76300c4f8 do not build packages automatically but use explicit targets 2023-08-01 20:42:10 -04:00
22a9f869ea change version date 2023-08-01 18:39:42 -04:00
ea5a20afc5 add missing versionchanged tags 2023-08-01 18:39:20 -04:00
f1cda322fe make it LAMMPS GUI version 1.0.0 since we're including it in the stable version 2023-08-01 18:20:44 -04:00
4f1946f307 update LAMMPS GUI docs 2023-08-01 18:19:18 -04:00
6c8291fa15 Merge pull request #3861 from akohlmey/collected-small-fixes
Collected small fixes and updates
2023-08-01 17:10:33 -04:00
f2bc41a83c we should be ok with CMake 3.16 as minimum version again. 2023-08-01 15:38:07 -04:00
fd9af7d5c9 this is packaging/install for visual studio only 2023-08-01 15:32:24 -04:00
e3792616ad Moving line break in BPM doc pages for link, fixing prop/atom syntax 2023-08-01 12:54:23 -06:00
b9682fc6fd zip file packaging for windows 2023-08-01 14:38:48 -04:00
6a991ff0a0 Updated fix efield/kk, needs work on unwrap 2023-08-01 10:53:20 -05:00
1f829dd2e9 ignore install folder created by VS 2023-08-01 08:20:22 -04:00
b67de91feb rename script 2023-08-01 04:29:13 -04:00
d38ec56f3a more tweaks. avoid warnings. get dependencies for imageformats. 2023-08-01 04:28:54 -04:00
44cec03729 set environment variables to find potentials and frc files 2023-08-01 04:11:57 -04:00
89b205a08e must use tar to preserve symlinks 2023-08-01 03:48:57 -04:00
6b50daf5b7 Merge branch 'collected-small-fixes' into lammps-gui
# Conflicts:
#	cmake/CMakeLists.txt
2023-08-01 03:07:56 -04:00
418b2c3df0 integrate wrapper script for linux 2023-08-01 03:00:33 -04:00
488b4d46cd fix minor issues 2023-08-01 02:36:43 -04:00
0d7687cd02 strip debug info only on files, not symlinks. get deps for Qt platform plugins 2023-08-01 02:28:56 -04:00
349cf728b1 various tweaks, remove debug info, delete backward system libs 2023-08-01 02:13:48 -04:00
5fdeefe0ac Linux deployment script 2023-08-01 01:34:08 -04:00
be9d246b93 install runtime deps on Linux 2023-08-01 01:05:38 -04:00
fbf05fb9a9 copy runtime libs/dlls during install 2023-08-01 00:32:57 -04:00
33e893dbed cleanup. must include lammps-gui in install targets. windows cross-deploy 2023-07-31 17:22:26 -04:00
49d411e7c1 update 2023-07-31 14:43:09 -04:00
b5a5cf1c96 support zooming image with mousewheel 2023-07-31 14:32:10 -04:00
d41bf628c7 display number of threads in use for LAMMPS instance in status bar 2023-07-31 07:59:39 -04:00
2f159df3b7 changes for portability with Qt 5.12 on Ubuntu 20.04LTS 2023-07-31 07:04:25 -04:00
0a0184221c custom message box is more readable and wider 2023-07-31 05:09:08 -04:00
68454b3f73 small help window tweak 2023-07-31 02:12:32 -04:00
cadc45d41d implement quick help dialog 2023-07-31 01:01:00 -04:00
75254bf305 simplify. only look for Qt5 at the moment. 2023-07-31 01:00:36 -04:00
72ea2673dd update LAMMPS manual and README file 2023-07-31 00:07:32 -04:00
6d58910c5c Add new VS configuration for compiling LAMMPS GUI 2023-07-30 20:56:45 -04:00
e899a07b4c Show current working directory and share space with progress bar. Show/hide the other. 2023-07-30 20:39:48 -04:00
c95bf2c14b add image viewer dialog for write_dump image output, help can open link to manual 2023-07-30 19:23:42 -04:00
1c8b9e9467 Windos portability 2023-07-30 15:54:06 -04:00
2eca0f2634 Merge branch 'lammps-gui' of github.com:akohlmey/lammps into lammps-gui 2023-07-30 13:35:36 -04:00
93b2f24841 update installer background image 2023-07-30 13:35:08 -04:00
12fee35d78 fix bugs and typos 2023-07-30 13:32:46 -04:00
9e5dcfcf78 update for packaging a .dmg file w/o CPack (untested) 2023-07-30 13:10:11 -04:00
080d868e40 mention setting QT_FONT_DPI in README file since it has no effect in the binary 2023-07-30 11:50:00 -04:00
ac9163447c minor layout and behavior tweaks 2023-07-30 07:23:32 -04:00
05c8d260d9 use OpenMP with maximum number of threads by default
we still honor OMP_NUM_THREADS, if present.
2023-07-30 02:43:00 -04:00
e23176d633 no more rpath fixing needed. add icon to disk image 2023-07-30 02:41:35 -04:00
b3766384c3 fixup rpath for lmp executable so it can find libomp 2023-07-30 00:54:08 -04:00
2d6ae69048 include updates from @rbberger 2023-07-30 00:11:40 -04:00
81790e1c44 update DMG installer background image with instructions 2023-07-29 21:27:36 -04:00
a2503711d0 Merge branch 'lammps-gui' of github.com:akohlmey/lammps into lammps-gui
# Conflicts:
#	tools/lammps-gui/lammpsgui.cpp
2023-07-29 21:11:38 -04:00
d9f4ce04af integrate packaging related changes, build script for GUI 2023-07-29 21:03:24 -04:00
b75407684f more accurate pattern matching 2023-07-29 13:49:21 -04:00
62ec8e744a WIP on preferences dialog 2023-07-29 13:40:36 -04:00
cb5470ece3 add dialog checking whether to discard changes in a modified buffer 2023-07-28 07:36:25 -04:00
bb96707ec8 add support for "modified" indicator to window title 2023-07-28 07:12:21 -04:00
c1d690d190 implement drag-n-drop for files 2023-07-28 05:04:19 -04:00
7a9694b849 update TODO file 2023-07-28 01:15:03 -04:00
2da71bd2d6 improve cmake settings for creating an app bundle 2023-07-28 01:04:34 -04:00
739bffa5e6 accept sphinx 7.1 2023-07-27 19:20:35 -04:00
e6e5be4477 move initialization of plugin before opening input
This way we can load the shared library from the current folder
since the file opening may switch working directory.
2023-07-27 12:08:48 -04:00
034b7458bc add dummy help menu button 2023-07-27 11:53:23 -04:00
6c38c4de50 must update Purge.list when removing package from distribution 2023-07-27 10:46:34 -04:00
1fa4ab22ab Merge branch 'develop' into remove-mscg-package 2023-07-27 10:45:23 -04:00
a8de49769b add missing entry 2023-07-27 10:43:20 -04:00
f170d8a56d update todo list 2023-07-27 09:13:04 -04:00
2644c064e1 update version number and "about info" to also show whether LAMMPS was loaded dynamically 2023-07-27 09:09:06 -04:00
32091d9f32 fix typo in plugin interface API 2023-07-27 08:21:17 -04:00
dd25bac428 fix typo in plugin interface API 2023-07-27 08:20:02 -04:00
3657ed6beb clean up comments 2023-07-27 03:35:46 -06:00
2273c5c475 fix memory and output bugs 2023-07-27 03:28:46 -06:00
f533d4ff66 Merge branch 'lammps:develop' into local-composition 2023-07-27 03:13:51 -06:00
a2657c67dd fix typo 2023-07-27 04:47:45 -04:00
1697d1edf6 embed font and icon and make use of them 2023-07-27 04:41:50 -04:00
056c60839c portability to macOS 2023-07-27 04:07:03 -04:00
f81ee57c97 add button to stop a run via lammps_force_timeout() 2023-07-27 03:21:34 -04:00
da0669d988 implement running LAMMPS asynchonously in a separate thread 2023-07-27 02:56:07 -04:00
a62d1be3e6 add icons to menu bar 2023-07-26 22:39:09 -04:00
f3e54cada1 small layout tweaks 2023-07-26 18:54:24 -04:00
1698587a40 add a readme file 2023-07-26 18:25:25 -04:00
e0ed11a053 add option to load LAMMPS library dynamically at runtime as plugin 2023-07-26 18:25:13 -04:00
0120c7b8b7 add permanent text field for status to status bar 2023-07-26 08:43:55 -04:00
3287d79e9d tweak/correct highlighting 2023-07-26 08:43:26 -04:00
cde3328927 update todo list 2023-07-26 08:42:08 -04:00
c96e4d59da print more config info in about dialog 2023-07-26 02:33:50 -04:00
89b92e8b13 make "warning" boxes on errors "critical" 2023-07-26 02:33:32 -04:00
e6dc5822c3 more flexible font search 2023-07-26 02:33:06 -04:00
984a311dce make compatible with windows cross-compiler 2023-07-26 01:29:30 -04:00
e548c0bde6 add todo list 2023-07-25 23:39:29 -04:00
e4dde8ebd4 fix shortcut implementation for log windows 2023-07-25 23:15:19 -04:00
368be8ac39 update list of keywords for VIM syntax highlighting 2023-07-25 21:40:54 -04:00
6e0aaab973 first stab at LAMMPS input file syntax highlighting 2023-07-25 21:35:38 -04:00
8b9174821a capture stdout and display in dialog window 2023-07-25 16:01:02 -04:00
f7881f4de5 add global error message buffer for exceptions creating a LAMMPS instance 2023-07-25 13:08:26 -04:00
5d34cc624d temporarily disable highlighting a line 2023-07-25 13:06:52 -04:00
ab792acbe5 catch errors via library interface and present dialog displaying them 2023-07-25 13:06:27 -04:00
276b89366a add global error message buffer for exceptions creating a LAMMPS instance 2023-07-25 13:05:27 -04:00
7eb2afa994 integrate syntax highlight code from example (uses c++ syntax currently) 2023-07-25 12:20:48 -04:00
5da462670f add menu hotkeys and shortcuts 2023-07-25 12:19:10 -04:00
5d1251df27 properly canonicalize filename 2023-07-25 12:18:47 -04:00
4fd648c11e add copyright message 2023-07-25 12:18:00 -04:00
a402d2c6d8 simplify, move redundant operations to functions, update coding style 2023-07-25 10:16:20 -04:00
908e925b8f add minimal about dialogs 2023-07-25 00:39:47 -04:00
a49a1b644e update main widget to CodeEditor with line numbers and highlight. Open file from command line. 2023-07-25 00:13:53 -04:00
b87ced52b4 first minimal stab at LAMMPS GUI 2023-07-24 19:07:33 -04:00
497659a4c7 consolidate use of cstdint and cinttypes, with the latter being a superset of the former 2023-07-24 16:29:54 -04:00
0a5aa5b1d2 Merge branch 'lammps:develop' into compute-pace-update 2023-07-24 10:05:05 -06:00
c2ceb0d9e4 Merge branch 'patch-5' of github.com:evoyiatzis/lammps into collected-small-fixes 2023-07-23 17:19:10 -04:00
6422565048 Update CONTRIBUTING.md
Fixing a small typo
2023-07-23 12:22:02 +03:00
a48f4597a2 add optional nmax keyword to fix vector to allow using it as a sliding window 2023-07-22 00:08:17 -04:00
732566c8a9 mention that class members should be initialized in the constructor, not the header. 2023-07-21 19:32:47 -04:00
cbee2dd86d Merge remote-tracking branch 'github/develop' into collected-small-fixes 2023-07-21 17:27:06 -04:00
a4a206e601 Merge pull request #3865 from lammps/compute-init-flags
More fine grained monitoring if computes were initialized
2023-07-21 14:58:37 -04:00
21d4be321a must lower test epsilon with single precision FFTs and pppm used 2023-07-21 12:12:53 -04:00
cccc362b3f improve error messages 2023-07-21 11:28:09 -04:00
9669bf3d3b move creation of internal computes and variables before lmp->init() so they are initialized 2023-07-21 11:25:44 -04:00
2da908190b make error messages consistent and improve their grammar 2023-07-21 11:24:57 -04:00
0b57ea246c update dump styles to use Compute::is_initialized() 2023-07-20 21:48:51 -04:00
78880c9099 update reset_atoms image to call Compute::init_flag() as a workaround 2023-07-20 21:28:45 -04:00
c7996b506a make use of Compute::is_initialized() and Compute::init_flags() 2023-07-20 20:31:48 -04:00
6c6258371b add init_flags() and is_initialized() methods 2023-07-20 20:31:16 -04:00
b725f5da28 Merge pull request #3864 from stanmoore1/kk_meam_issue
Fix compile bug in Kokkos MEAM styles
2023-07-20 18:20:52 -04:00
c441a999f1 fix typos 2023-07-20 17:59:40 -04:00
7d46165c2a Fix compile bug in Kokkos MEAM styles 2023-07-20 13:31:34 -06:00
b9aa71cbc5 Merge branch 'develop' of github.com:lammps/lammps into kk_update_4.0 2023-07-20 13:03:17 -06:00
e299fa9aab add option to skip building for multiple GPU archs 2023-07-20 14:00:21 -04:00
3c2ba879ef Merge branch 'lammps:develop' into compute-pace-update 2023-07-20 08:55:35 -06:00
c42ec8a647 create toplevel README file when building for static Linux or macOS multiarch 2023-07-19 18:14:03 -04:00
f26064d9a5 also install the bench folder into ${datadir} 2023-07-19 17:46:21 -04:00
66403c93ad add preset and support for building serial multi-arch macOS executables 2023-07-18 18:55:27 -04:00
7aec563b86 building lammps-shell requires pkg-config 2023-07-18 17:02:48 -04:00
021eeae860 add workaround for failing overhead estimation test on (Intel) GPUs that only support single precision 2023-07-18 13:24:11 -04:00
34fcf1361f Merge remote-tracking branch 'github/develop' into opencl-intel-single-fixes 2023-07-18 12:16:42 -04:00
164b254602 Merge pull request #3860 from akohlmey/fix-for-fix-adapt
Small refactor to better handle diamflag in fix adapt and fix adapt/fep
2023-07-18 11:56:11 -04:00
ec65fc48ad Cleaning up files, fixing bug in berendsen 2023-07-18 09:25:22 -06:00
2e2624d719 update loop over adapt fixes logic 2023-07-18 11:10:41 -04:00
cea202ebe9 include file is not needed 2023-07-18 11:09:09 -04:00
7a04e048fe make certain radvary is initialized in constructor 2023-07-18 11:08:59 -04:00
1057fa9b00 move diamflag from fix adapt and adapt/fep to base class for cleaner code 2023-07-17 22:17:05 -04:00
dba4d9ebbc Merge pull request #3855 from akohlmey/collected-small-changes
Collected small changes and fixes
2023-07-17 19:00:40 -04:00
74c5ca0996 move definition of struct containing double to avoid failure on Intel Xe GPU 2023-07-17 18:34:03 -04:00
fa4a3a0622 using NBOR_PREFETCH=2 gives errors with Intel Xe GPUs set to 0 2023-07-17 18:33:21 -04:00
d27ab47ed9 for clarity 2023-07-17 18:32:18 -04:00
f62a4c5372 Working on fix efield/kk 2023-07-17 16:49:26 -05:00
e9223fc5af Fixing LAMMPS headers 2023-07-17 14:34:46 -06:00
2d897ac8f3 Fixing doc build errors 2023-07-17 14:22:22 -06:00
1ffb2289be explicitly zeroing arrays 2023-07-17 11:59:50 -06:00
f4000efd8a Adding reference section to doc pages, update misc error messages 2023-07-17 11:52:06 -06:00
3568cced4b update comment 2023-07-17 09:52:44 -04:00
9b7bd71ab6 remove MSCG package from LAMMPS distribution 2023-07-16 21:04:58 -04:00
27aa6898f8 modernize access for fixes and computes 2023-07-16 20:24:22 -04:00
71abebb1d7 debugging surface compute 2023-07-16 16:26:57 -06:00
89d82fde22 modernize access to list of fixes 2023-07-16 15:20:36 -04:00
b1a39d0b4d Merge branch 'upstream' into kk-updates 2023-07-16 00:04:32 -05:00
a80739c537 Doc and gitignore updates 2023-07-15 22:12:10 -06:00
7fa1f4b3b4 Various clean ups, moving files 2023-07-15 22:10:19 -06:00
2ef326273d Fixing bug in max rate threshold 2023-07-15 16:09:53 -06:00
fd0a72eab5 modernize and consolidate style across all three temper command variants 2023-07-15 12:37:12 -04:00
77bdcb3e19 small doc style update 2023-07-15 12:36:41 -04:00
baac049aed update LAMMPS input file syntax highlighting for recent changes 2023-07-15 12:25:03 -04:00
5e1c722b10 Merge branch 'develop' into collected-small-changes 2023-07-14 20:09:27 -04:00
e6873bb7c8 modernize code 2023-07-14 20:08:34 -04:00
78d3d4948f fix off-by-one bug in argument parsing 2023-07-14 20:08:21 -04:00
78470febbd Merge branch 'develop' of github.com:lammps/lammps into kk_update_4.0 2023-07-14 17:59:15 -06:00
2090d33d5f Merge pull request #3848 from ndtrung81/amoeba-gpu-bugfix
Bugfix for AMOEBA/HIPPO GPU
2023-07-14 18:32:58 -04:00
be2e437cec use approximation for erfc() on OpenCL for Intel since the OpenCL version seems broken 2023-07-14 10:08:59 -04:00
620c60122a should not use pow() for computing cube, use multiplication. 2023-07-14 10:08:09 -04:00
02d189fb23 avoid false positive with static code analysis 2023-07-13 10:53:56 -04:00
63be267a94 Merge branch 'lammps:develop' into compute-pace-update 2023-07-13 08:38:20 -06:00
e2d7c54409 Merge pull request #3851 from hammondkd/doc-fixes
Documentation: swap "parsed-literal::" for "code-block:: LAMMPS" in Syntax sections
2023-07-12 23:26:17 -04:00
acb0b89833 fix typos 2023-07-12 20:48:36 -04:00
6907543e9d highlight if/then/elif/else everywhere, but revert for general keywords 2023-07-12 20:25:49 -04:00
7b40576b2b Merge branch 'lammps:develop' into compute-pace-update 2023-07-12 18:12:31 -06:00
df2cfe28c4 Merge pull request #3850 from jibril-b-coulibaly/BPM
BPM package: allow bonded atoms to be excluded from neighbor lists if BPM cannot break + doc update
2023-07-12 18:38:08 -04:00
24de6377d3 handle more commands with arguments for more consistent syntax highlighting 2023-07-12 14:43:04 -04:00
fe95dbc82f enforce all special_bonds weights to be 1.0 when overlay/pair is used 2023-07-12 11:37:17 -06:00
751dc1cfb6 improve pygments lexer to detect more text to highlight and for more consistency 2023-07-12 12:28:03 -04:00
3b859094bf there is no mandatory group-ID for both commands 2023-07-12 12:27:15 -04:00
7d88a351f5 Merge branch 'develop' into doc-fixes 2023-07-12 11:41:15 -04:00
6e65744d1a Merge pull request #3844 from akohlmey/collected-small-fixes
Collected small fixes
2023-07-12 11:40:02 -04:00
eb52112a57 Merge branch 'develop' into collected-small-fixes 2023-07-11 23:07:52 -04:00
c936e98d5c Merge branch 'triclinic-neighbor-bug' of github.com:lammps/lammps into triclinic-neighbor-bug 2023-07-11 18:50:32 -07:00
a91b3dab96 doc atom ID requirement for triclinic 2023-07-11 18:50:23 -07:00
3fc809a1b9 add check for atom IDs when triclinic 2023-07-11 18:45:45 -07:00
9e049147be remove accidental commit 2023-07-11 19:50:37 -04:00
fe2a275531 update list of known commands 2023-07-11 19:40:14 -04:00
6efa8526ba work around pygments issue 2023-07-11 19:39:54 -04:00
6123883324 Replaced parsed-literal:: with code-block:: LAMMPS under "Syntax" 2023-07-11 17:57:22 -05:00
89fb236144 port bugfix for colloid test failure 2023-07-11 18:35:16 -04:00
2a7ac115d8 fix whitespace (one more time) 2023-07-11 18:25:29 -04:00
4bfffce703 merge conflict 2023-07-11 17:15:27 -05:00
fe1aab69e0 merge from ORIGIN 2023-07-11 14:39:44 -07:00
bb6e4d8440 add forgotten line to multi and mutli/old 2023-07-11 14:30:14 -07:00
0f89a8b2ca explicit special_bonds commands for 1-2 coul weight equal to zero 2023-07-11 10:42:26 -06:00
564a8e88c1 use blanks on both sides of comparison operators not only one, remove blanks next to parenthesis 2023-07-11 10:31:16 -04:00
2eeea43320 port neighbor list changes to OPENMP package 2023-07-11 10:11:39 -04:00
3328389baf Merge pull request #3814 from rohskopf/jax
JAX ML-IAP Unified connection & examples
2023-07-11 07:15:18 -04:00
4d8ef552c4 remove dead code, trim namespace imports 2023-07-10 22:42:49 -04:00
1427e0adbc Merge remote-tracking branch 'github/develop' into triclinic-neighbor-bug 2023-07-10 22:36:08 -04:00
6bd965f0df fix whitespace (again) 2023-07-10 22:35:36 -04:00
fbbf44fb8e same changes to other NPair and NStencil methods 2023-07-10 18:25:29 -07:00
c63c9711d5 update remaining ellipsoid example dump output for OVITO compatibility 2023-07-10 19:42:48 -04:00
a4b3306b7c fix error message 2023-07-10 18:48:13 -04:00
4ab95611db merge with ORIGIN 2023-07-10 12:57:57 -07:00
07f42930ff clean up code and comments 2023-07-10 12:53:02 -07:00
cb27cb644f Merge remote-tracking branch 'github/develop' into collected-small-fixes 2023-07-10 13:11:24 -04:00
254afdd938 Merge pull request #3849 from jibril-b-coulibaly/doclink
fix typo for broken links in doc
2023-07-10 13:10:38 -04:00
469ffc7aba Merge pull request #3845 from ndtrung81/dielectric-updates2
Update and bugfix for the DIELECTRIC package
2023-07-10 11:50:23 -04:00
55343d715c update URL 2023-07-09 21:39:51 -04:00
2607212363 update for upstream changes 2023-07-09 21:21:39 -04:00
63c28337ab Merge branch 'develop' into collected-small-fixes 2023-07-09 21:20:07 -04:00
91b16c5945 make certain conductivity class member is always initialized 2023-07-09 21:10:44 -04:00
60b45f9766 correct error message 2023-07-09 18:01:19 -06:00
0718114a67 fix typo for broken links in doc 2023-07-09 17:43:39 -06:00
75a2557e82 fix bugs where an Atom::tag value was stored in an int and not a tagint 2023-07-09 15:41:39 -04:00
4eba3791f3 enforce order for printing CHON 2023-07-09 15:30:56 -04:00
9db5d45232 port neighbor list build changes to corresponding OPENMP package files 2023-07-09 15:29:18 -04:00
e3349581c7 fix whitespace and remove debug code 2023-07-09 15:14:36 -04:00
ce1a084a0e expand stencil for triclinic neighbor build 2023-07-08 18:31:55 -07:00
abadf9412a check old results 2023-07-08 10:26:34 -07:00
d6412dc97b Attempted to resolve issues with switching from acctyp4 to acctyp3 in tep, fieldp since the changes in PR #3675, noting some changes with Intel OCL PR #3663 2023-07-08 00:50:19 -05:00
651ed1960d add per-atom data bugfix from Stan for fix ave/histo and fix ave/histo/weight 2023-07-07 18:29:28 -04:00
42f2a4b5b0 exclude self interactions and double counting of own/own 2023-07-07 08:58:14 -07:00
129264aa14 debugging 2023-07-07 08:42:46 -07:00
bacfcd2050 change triclinic logic to not depend on exact I,J atom coords 2023-07-07 07:36:05 -07:00
6a8ca34ce8 Merge pull request #3843 from dsbolin/gran_heat
Minor bug fix and enhancements for granular heat transfer
2023-07-06 21:09:23 -04:00
a3b9914f62 make error messages consistent with keyword values yes/no. Allow coul weight for 1-2 bonds to be zero for break no to eliminate bonded atoms from neighbor list when bonds cannot break 2023-07-06 17:48:49 -06:00
8665da6824 Merge pull request #3842 from lammps/rigid-gravity-doc
Add gravity keyword info to fix rigid doc page
2023-07-06 15:36:43 -04:00
6f289df980 enable and apply clang-format 2023-07-06 15:05:36 -04:00
6d8f5a38ea improve error messages 2023-07-06 15:03:38 -04:00
bf0372280e remove dead code 2023-07-06 14:59:09 -04:00
3e4b66378a typo 2023-07-06 14:06:31 -04:00
55b7b3d999 whitespace fixes 2023-07-06 14:03:07 -04:00
b66a5cd225 fix another typo 2023-07-06 13:31:00 -04:00
f6d4fd74e3 Merge branch 'develop' into fix-rigid-enforce2d 2023-07-06 13:23:21 -04:00
cac8247383 Modified doc page for pair granular to include flux as extra pairwise quantity 2023-07-06 11:19:22 -06:00
6e41ac7ead fix typo 2023-07-06 09:14:00 -07:00
02845483d2 add gravity keyword info to fix rigid doc page 2023-07-06 09:08:15 -07:00
8ae5ab57fc non-ellipsoid particles you have a 1,0,0,0 quaternion and 1,1,1 shape 2023-07-06 09:17:27 -04:00
fcf30f4c58 modernize example for dumping ellipsoid info to visualize with OVITO 2023-07-06 09:16:58 -04:00
146245e6ae Merge pull request #3834 from lammps/mdi-wrapper-tweak
Make QM wrappers more MDI-compatible with QM energy
2023-07-06 03:31:20 -04:00
afe2226797 Merge pull request #3830 from akohlmey/collected-small-fixes
Collected small changes and fixes
2023-07-06 00:39:42 -04:00
ef3de795c5 Merge pull request #3839 from stanmoore1/kk_makefiles
Kokkos Makefiles
2023-07-06 00:37:26 -04:00
ad14862cd0 Merge pull request #3827 from jtclemm/BPM
Bugfix and documentation corrections for BPM+Granular packages
2023-07-06 00:35:58 -04:00
108c5fc416 improve error messages 2023-07-05 14:59:35 -04:00
200b428039 Merge branch 'develop' into fix-rigid-enforce2d 2023-07-05 14:22:02 -04:00
9fde61fc4e Update compute_stress_mop_profile.cpp 2023-07-05 16:59:02 +03:00
78f4e4f1a1 Update compute_stress_mop.rst 2023-07-05 16:51:41 +03:00
9aa9bdd3ba Implementation of compute_angles in compute_stress_mop_profile.cpp and related adjustments to flags/memory allocations 2023-07-05 16:45:53 +03:00
79ed2d9e8b Definition of compute_angle and related variables in compute_stress_mop_profile.h 2023-07-05 16:35:25 +03:00
94fa2f51c9 compute kinetic contribution without assuming orthogonal geometry 2023-07-05 13:38:56 +03:00
005c15c07b compute kinetic contribution without assuming orthogonal geometry 2023-07-05 13:26:47 +03:00
6318b09a07 report unique species when duplicate elements
previously, duplicate species were reported when there were duplicate elements in the element-to-type mapping. for example, H2 and HH and multiple other H2s and HHs could appear in the 'species' and 'delete species' files
2023-07-04 20:29:31 -04:00
d57e1be942 avoid division by zero in angle style dipole 2023-07-04 08:13:06 -04:00
3c09aa26f9 Merge branch 'develop' of github.com:lammps/lammps into kk_update_4.0 2023-07-03 16:35:57 -06:00
9031d79791 Add Makefile for Perlmutter 2023-07-03 21:47:47 +00:00
9dd5ceaf4e Kokkos Makefiles 2023-07-03 15:06:23 -06:00
677ff15740 Gran/heat changes 2023-07-03 11:52:41 -06:00
268faf935b avoid overeager flagging of errors for arguments to derived classes 2023-07-03 10:32:24 -04:00
d23cebf9f1 must copy wheel to olddir when -w flag is not given 2023-07-03 09:53:59 -04:00
b7bfc86eaf remove unused files still available and used in download-build-jpeg-png branch 2023-07-02 07:07:12 -04:00
5878040f26 skip undesired 'make install' targets from bundled Kokkos library 2023-07-01 18:44:57 -04:00
900c6cf545 remove unused variable 2023-07-01 18:27:35 -04:00
ef40448df6 update docs for CMake 3.16 requirement 2023-07-01 03:01:37 -04:00
4a46083e88 add git commit descriptor to LAMMPS version output 2023-06-30 23:29:17 -04:00
b50fc0be78 remove obsolete CONFIGURE_DEPENDS backward compatibility hack 2023-06-30 23:19:53 -04:00
71b48253e8 remove special case CMake code for versions before 3.16 2023-06-30 23:15:37 -04:00
378ef4b23e require CMake version 3.16 2023-06-30 22:59:41 -04:00
c1213c5222 use dynamic/dof and extra/dof consistently. remove compatibility note in docs. 2023-06-30 16:27:07 -04:00
55918ebabf sphinx-tabs 3.4.1 is now available directly 2023-06-30 16:17:04 -04:00
83528f02e8 whitespace 2023-06-29 22:10:31 -04:00
02498925c5 only fail on too small periodic domain in z direction if 3d system. 2023-06-29 22:07:04 -04:00
ab1e090e0e neighbor list skin is added to custom cutoff automatically 2023-06-29 21:32:04 -04:00
b7024288b6 add check to disallow custom neighbor list cutoffs larger than the communication cutoff. 2023-06-29 21:20:07 -04:00
14462d8f80 join strings 2023-06-29 16:13:16 -04:00
7c9b7eecf3 Update CMake 2023-06-29 10:48:35 -06:00
330107b77b Update Kokkos library in LAMMPS to v4.1.0 2023-06-29 10:42:42 -06:00
b0b26d9d3a silence compiler warning 2023-06-29 07:32:52 -04:00
484e7ad0e3 clean up of originflag from compute_stress_mop_profile.h 2023-06-29 08:54:30 +03:00
6e32d29322 clean up of originflag variable in compute_stress_mop_profile.cpp 2023-06-29 08:53:50 +03:00
a50993dac1 update docs for create_bonds 2023-06-28 10:06:31 -04:00
5d027fc92c error out when many bonds creation cutoff is larger than periodic domain 2023-06-28 09:50:27 -04:00
a4cba99ff9 Attempted to update slabcorr() in pppm/dielectric 2023-06-27 23:55:57 -05:00
89c4d43a87 Merge branch 'collected-small-fixes' of github.com:akohlmey/lammps into collected-small-fixes 2023-06-27 17:53:14 -04:00
906eecdbd7 clarify the temperature computation in compute temp 2023-06-27 17:53:06 -04:00
c347de7850 improve error messages 2023-06-26 16:12:15 -04:00
c332103938 make short read detection bugfix work in parallel 2023-06-26 15:20:29 -04:00
46a9f0a08c change QM Python wrappers to use ENERGY instead of PE as MDI command 2023-06-26 11:08:04 -07:00
d4e705b059 enable and apply clang-format 2023-06-26 10:59:03 -04:00
d813519493 make handling of masses consistent and simplify code 2023-06-26 10:52:12 -04:00
1743f0b338 update fmtlib to current master branch 2023-06-25 06:30:42 -04:00
d1980031ef remove more duplicate semicolons 2023-06-25 06:02:17 -04:00
92c118b29f replace for (;;) with while (true) 2023-06-25 05:56:51 -04:00
bfa39a37ff apply clang-format 2023-06-25 05:47:21 -04:00
fab01c7d5f Remove extra semicolons 2023-06-24 20:26:08 -06:00
d6532d3550 Adding h_ratelo calculation 2023-06-23 14:13:32 -06:00
4ae41edee7 Fixing order of correct_v 2023-06-23 14:12:59 -06:00
a38e0fb47b restore clang-format comments 2023-06-23 08:22:31 -04:00
33d82c30ca fix to allow reaxff/species before pair_coeff 2023-06-22 18:40:50 -04:00
e9a06a0654 correct and reformat error messages for short reads 2023-06-22 11:49:56 -04:00
fc365d3d5f Merge branch 'develop' into always-exceptions 2023-06-22 10:53:36 -04:00
ffda6596da detect and flag short reads with missing lines in utils::read_lines_from_file() 2023-06-22 10:48:07 -04:00
8e1711c803 Implement born_matrix in dihedral_quadratic.cpp 2023-06-22 17:00:10 +03:00
ae96c9bd47 Define born_matrix() in dihedral_quadratic.h 2023-06-22 16:58:00 +03:00
558298ac04 Merge branch 'collected-small-fixes' of github.com:akohlmey/lammps into collected-small-fixes 2023-06-21 15:05:11 -04:00
e95b10f24a update VMD plugin headers to the latest version 2023-06-21 06:44:09 -04:00
e4b50a610e avoid segfaults if a dump is created and followed by run pre no 2023-06-21 06:44:08 -04:00
7ab9da0212 Implementation of born_matrix in dihedral_helix.cpp 2023-06-21 10:59:13 +03:00
fb31ffe17c Definition of born_matrix() in dihedral_helix.h 2023-06-21 10:56:53 +03:00
6d6f57aeff cosmetic 2023-06-20 16:17:11 -04:00
fcc3c99e2b avoid segfaults if a dump is created and followed by run pre no 2023-06-20 13:31:16 -04:00
6791651b62 add else branch to make coverity scan happy 2023-06-20 09:41:55 -04:00
7f3a930d89 Implement born_matrix() in angle_cosine_periodic.cpp 2023-06-20 16:21:57 +03:00
345a834c7e Include definition of born_matrix() in angle_cosine_periodic.h 2023-06-20 16:20:57 +03:00
bb2d691e78 implement born_matrix in angle_mm3.cpp 2023-06-20 15:42:47 +03:00
2631a159af define born_matrix in angle_mm3.h 2023-06-20 15:41:09 +03:00
24fbff2c03 Merge branch 'lammps:develop' into master 2023-06-20 11:50:30 +03:00
af3d971023 allow longer argument strings to avoid failues with unit tests 2023-06-19 18:49:43 -04:00
c5d9f901d9 Merge pull request #3829 from JohnLucas1/fixpair_bugfix
fix pair bugfix
2023-06-19 15:13:39 -04:00
104d175a85 Merge pull request #3822 from ilia-nikiforov-umn/patch-1
Update lib/kim/README
2023-06-19 14:39:43 -04:00
585e47c01a Merge pull request #3826 from srtee/patch-3
debug fix_modify press for press/berendsen
2023-06-19 14:25:49 -04:00
f5d9e78659 Merge pull request #3819 from stanmoore1/kk_sycl
Pair SNAP tuning for Kokkos SYCL
2023-06-19 14:25:14 -04:00
d6f93a5253 Merge pull request #3821 from stanmoore1/kk_npair_workaround
Temporarily disable team policy for Kokkos ghost neigh list build due to kno…
2023-06-19 14:24:48 -04:00
c08182801f Merge pull request #3825 from akohlmey/remove-obsolete-fortran-interface
Remove obsolete fortran interfaces
2023-06-19 14:20:35 -04:00
0adb355001 Merge pull request #3823 from akohlmey/collected-small-fixes
Collected small fixes
2023-06-19 14:04:55 -04:00
dc1eb43cf2 Cleaning coord and coordp vectors in compute_stress_mop_profile.cpp 2023-06-19 19:47:34 +03:00
ad3752431f Regular pointer for coord and coordp in compute_stress_mop_profile.h 2023-06-19 19:42:01 +03:00
f6b259b186 Implementing born_matrix in bond_harmonic_shift_cut.cpp 2023-06-19 19:40:11 +03:00
6c9d42b7c3 Include born_matrix() definition in bond_harmonic_shift_cut.h 2023-06-19 19:38:50 +03:00
838be24af4 Fixing argument parsing increment 2023-06-19 10:15:06 -06:00
bfc969d5c5 implementation of born_matrix in bond_mm3.cpp 2023-06-19 16:39:49 +03:00
2f22761461 born_matrix() method in bond_mm3.h 2023-06-19 16:38:34 +03:00
542aa203da correct typo in fix pair documentation 2023-06-18 20:42:45 -05:00
6ccf5f107c fix a bug in fix pair 2023-06-18 20:39:18 -05:00
365f4bc559 non-zero born_matrix_enable flag in angle_fourier.cpp 2023-06-18 18:44:28 +03:00
eb8512ba2a implementation of born_matrix() for angle_quartic.cpp 2023-06-18 18:26:48 +03:00
4e17cc551e inlcude born_matrix() definition in in angle_quartic.h 2023-06-18 18:25:35 +03:00
42c843ff4f remove iostream from bond_gaussian.cpp 2023-06-18 18:24:24 +03:00
c7ac1c1d5a Merge branch 'lammps:develop' into master 2023-06-18 18:22:24 +03:00
af76ffdfda ROCM aware OpenMPI support 2023-06-18 17:08:49 +03:00
21fb50f37b correct logic bug 2023-06-18 07:40:04 -04:00
2cea819e7f cosmetic 2023-06-18 07:24:42 -04:00
5196e4422b debug fix_modify press for press/berendsen 2023-06-18 17:51:15 +10:00
70823cac50 remove dead code 2023-06-17 23:30:36 -04:00
e2e9170dfa protect a couple more fixes from segfaults from errors in derived classes 2023-06-17 18:52:57 -04:00
753a0bd386 remove obsolete Fortran interfaces from examples/COUPLE folder 2023-06-17 18:31:11 -04:00
5eba9d7ee3 update regex for change to version output 2023-06-17 18:04:54 -04:00
f193a87426 correct CMake syntax 2023-06-17 18:04:38 -04:00
058d817335 whitespace 2023-06-17 17:45:16 -04:00
a3de790a0d include git descriptor info when compiling develop or maintenance version 2023-06-17 15:01:17 -04:00
9231ec6dbe avoid segfault on deleting callback when there is an error in the constructor or a derived class 2023-06-17 14:39:32 -04:00
37ca3f9af8 apply clang-format 2023-06-17 14:38:59 -04:00
60d060eeb1 fix logic bug 2023-06-17 14:38:49 -04:00
ce75691eae address issues flagged by coverity scan 2023-06-17 00:35:05 -04:00
32e4aac9f7 Update fix_reaxff_species.rst 2023-06-16 21:34:06 -04:00
d18d7edad9 reaxff/species: default elements from pair reaxff 2023-06-16 21:23:46 -04:00
492b0641f2 record element list from pair_coeff 2023-06-16 20:50:22 -04:00
2a432bdaf1 Clarifying output as sqrt 2023-06-16 16:32:15 -06:00
ca636ffa7d Adding d2min doc 2023-06-16 16:28:48 -06:00
6f5e5746b3 Update lib/kim/README
Fix some typos and update to non-deprecated form of kim commands
2023-06-16 12:21:42 -05:00
2d3bbd2e72 Temporarily disable team policy for ghost neigh list build due to known bug 2023-06-16 10:52:21 -06:00
bb9dc960b7 Use updated values from @cjknight 2023-06-16 10:26:01 -06:00
a20ed8e5e4 improve error messages for dump style custom 2023-06-16 12:13:22 -04:00
59c5ed63e3 programming style 2023-06-16 12:12:23 -04:00
74c4eb1063 indicate that LAMMPS was built from a development version 2023-06-16 12:12:12 -04:00
a1513a7d3b rattler documentation 2023-06-15 23:06:50 -06:00
7012e6ddd4 Debugging and cleaning up D2min calculation 2023-06-15 19:06:14 -06:00
2fbaeb4fc7 Fixing merge conflict 2023-06-15 16:03:30 -06:00
2905016f9a Updating to develop 2023-06-15 16:00:48 -06:00
25f5e74e9a updating args and D2min calculation in nonaffine fix 2023-06-15 15:51:59 -06:00
9673c22cc7 Merge pull request #3818 from akohlmey/next_release
Update version strings for upcoming release
2023-06-15 14:30:40 -04:00
0df1542be1 Pair SNAP tuning for Kokkos SYCL 2023-06-15 10:22:35 -06:00
227c4f2f1a Merge branch 'develop' into fix-rigid-enforce2d 2023-06-15 10:04:48 -04:00
1144a01658 Merge pull request #3815 from akohlmey/collected_small_changes
Collected small changes and fixes for the next feature release
2023-06-15 10:01:54 -04:00
55d767e416 make sure intermediate results are 64-bit compatible, so the won't overflow 2023-06-15 01:51:12 -04:00
e01bde5be5 avoid null pointer dereference 2023-06-15 01:50:07 -04:00
4eb602e0d4 improve error messages and apply clang-format 2023-06-14 22:18:08 -04:00
b8dda7ebfe documentation formatting and spelling fixes 2023-06-14 22:08:30 -04:00
d19d12e9e1 Merge branch 'develop' into collected_small_changes 2023-06-14 21:55:16 -04:00
4d02c6f26f update version strings for upcoming release 2023-06-14 21:50:27 -04:00
162f243ebc Merge pull request #3797 from Compizfox/develop
Include bond forces in `compute stress/cartesian`
2023-06-14 21:31:41 -04:00
77898e4a86 update log files for fix widom 2023-06-14 18:28:51 -04:00
57f82924f5 Merge branch 'develop' into collected_small_changes 2023-06-14 18:24:18 -04:00
618fa815cc Merge pull request #3812 from wmbrownIntel/intel_fixes_2023Jun
Misc Fixes for Intel Package
2023-06-14 18:21:34 -04:00
60173c477d Creating persistent h_rate variable 2023-06-14 15:14:19 -06:00
f75eda4bf4 Updating size of set in restart 2023-06-14 14:16:46 -06:00
6de50fbd33 Adding iso options to fix deform 2023-06-14 13:39:24 -06:00
634c6cdc13 Merge pull request #3632 from arghdos/eam_teampolicy_optimization
Implement a "caching in LDS" approach for EAM to improve performance in HIP
2023-06-14 15:38:54 -04:00
4faebaf4ed add log files for fix pimd/langevin 2023-06-14 14:53:06 -04:00
82f664acd4 update log files for BODY package styles 2023-06-14 14:43:29 -04:00
27908139ae whitespace 2023-06-14 14:14:47 -04:00
c83dc1ff30 fix STORE global -> fix STORE/GLOBAL 2023-06-14 13:52:54 -04:00
0564d79570 Fix SYCL compile error with GNU make, see https://github.com/kokkos/kokkos/pull/6218 2023-06-14 10:52:47 -06:00
0cd566a417 Fix compile error for HIP 2023-06-14 10:43:30 -06:00
80f3b6699e Merge pull request #3817 from jrgissing/bond/react-charge_rescale+other_small_fixes
Bond/react: rescale_charges fix
2023-06-14 12:29:07 -04:00
8a738fabcb must initialized triclinic variable in constructor 2023-06-14 12:12:18 -04:00
b225c94f59 remove variable shadowing instance in base class 2023-06-14 12:12:04 -04:00
fcd234f723 Merge branch 'develop' of github.com:lammps/lammps into eam_teampolicy_optimization 2023-06-14 09:28:44 -06:00
e27895b232 Merge pull request #3816 from ndtrung81/body_bugfix
Bugfix for body rounded polyhedron and polygon pair styles for non-lj units
2023-06-14 11:28:13 -04:00
0314c9892c silence compiler warnings 2023-06-14 10:26:38 -04:00
3b37c92b87 consistently print error when box has changed to triclinic without redefining kspace style 2023-06-14 10:06:01 -04:00
96b8bbbdc9 Merge branch 'develop' into develop 2023-06-14 15:09:51 +02:00
e6cd79e0e9 Fix doc links 2023-06-14 15:04:46 +02:00
8aeb059ce8 Update doc/src/compute_stress_cartesian.rst
Co-authored-by: Axel Kohlmeyer <akohlmey@gmail.com>
2023-06-14 15:03:35 +02:00
bc52d863b4 cosmetic 2023-06-14 08:48:01 -04:00
e831e54a21 Merge pull request #3811 from rbberger/python_and_library_fixes
PyLammps and Library interface changes
2023-06-14 08:25:32 -04:00
beabb4effe remove dead code 2023-06-14 03:48:59 -04:00
2afa07655f set code owner for fix pimd/langevin 2023-06-14 03:44:11 -04:00
dfd384eeff some more formatting and programming style improvements 2023-06-14 03:40:38 -04:00
494341ba48 error out when using barostat without pressure couple or vice versa 2023-06-14 03:40:12 -04:00
6f69e5ae02 initialized all pointers to null in initializer list 2023-06-14 03:18:37 -04:00
8984b89feb use consistent comments, apply clang-format 2023-06-14 03:18:17 -04:00
233fb67eaa Reverted the zero net induced charge constraint, updated the fix polarize doc page for q_scaled and q 2023-06-14 00:28:24 -05:00
03b25dcbaa update error checks 2023-06-13 21:25:58 -04:00
14a27e98c9 fix for when deleting atoms 2023-06-13 21:09:29 -04:00
105ef5f103 Rescaled EPSILON with a length scale (rounded radii) for contact detection 2023-06-13 14:24:12 -05:00
f128de7dd0 Bugfix from @ndtrung81 for indexing bug when tallying per-atom Coulomb energy 2023-06-13 15:13:16 -04:00
64508e08aa pylammps: use library API to return available groups 2023-06-12 22:49:40 -06:00
d7ecf41ff6 pylammps: use library API for variable access 2023-06-12 22:49:40 -06:00
2f7c3bf959 pylammps: reduce dependency to info command output 2023-06-12 22:49:34 -06:00
53f90fff3d final touch 2023-06-12 21:28:51 -04:00
603e397919 get_totalcharge routine 2023-06-12 20:20:45 -04:00
2ba83a4d8f add versionadded keyword 2023-06-12 15:31:37 -04:00
82cea7a546 small doc updates for added pppm_table keyword 2023-06-12 15:31:03 -04:00
90416faf0a Merge branch 'develop' into intel_fixes_2023Jun 2023-06-12 15:18:08 -04:00
a05fcc326e Implement born_matrix() in bond_gaussian.cpp 2023-06-12 12:47:21 +03:00
85765a2bf3 Include born_matrix() definition in bond_gaussian.h 2023-06-12 12:45:52 +03:00
bc87c69d60 Merge branch 'python_and_library_fixes' of github.com:rbberger/lammps into python_and_library_fixes 2023-06-11 17:48:26 -06:00
68a73f1c33 library: return atom and force styles via extract_global 2023-06-11 17:46:58 -06:00
c214f654b6 update communicated rxn instances to doubles 2023-06-11 19:27:58 -04:00
23552d4b7a refactor to carry around extra per-reaction values 2023-06-11 17:59:16 -04:00
92e069b19d add fortran unit tests for lammps_last_thermo 2023-06-10 21:36:56 -04:00
62b388b48f consolidate LAMMPS data type constants and enums and use the same names 2023-06-10 19:23:11 -04:00
0dab1910db Small updates to benchmark script in INTEL/TEST 2023-06-10 13:34:16 -07:00
da9637e94c Adding std namespace specifier to transcendentals in intel pkg 2023-06-10 13:33:10 -07:00
acaa2b7f9b pylammps: update email 2023-06-10 11:35:36 -06:00
38fd78b867 factor out variable lcomp 2023-06-10 09:11:09 -06:00
9eb32fc6b0 fix memory allocation runtime error 2023-06-10 07:54:40 -06:00
0e7d91b611 add missing documentation 2023-06-10 07:45:52 -06:00
235e98ee6a pylammps: only capture all thermo if PYTHON package is enabled 2023-06-09 17:40:06 -06:00
fe45b766c3 pylammps: make use of lammps_last_thermo
this now avoids parsing LAMMPS output to extract thermo data, but instead uses
the new lammps_last_thermo library function
2023-06-09 17:40:06 -06:00
ecf7c24e87 Avoid static int in lammps_last_thermo 2023-06-09 17:40:06 -06:00
f6b0981474 Fixing some issues introduced into verlet_lrt_intel.cpp 2023-06-09 14:05:41 -07:00
e0cbcff1f9 Simplying normal force calculation 2023-06-09 10:43:00 -06:00
89b37396eb Merge branch 'BPM' of github.com:jtclemm/lammps into BPM 2023-06-09 09:57:39 -06:00
04a31c33e2 Changing output of fforce in pair granular single() 2023-06-09 09:57:23 -06:00
2cb87bc9a2 Intel package should not reset atom sort frequency if it is 0 (disabled). 2023-06-08 21:47:30 -07:00
54286ce4dd Merge pull request #3781 from akohlmey/collected-small-fixes
Collected small changes and fixes
2023-06-08 22:03:23 -04:00
cbf062f383 Merge pull request #3809 from jtclemm/sdpd-examples
Updating SDPD examples
2023-06-08 20:06:35 -04:00
4cad18a057 document Fortran version of lammps_last_thermo 2023-06-08 19:59:47 -04:00
ce38bb988d add lammps_last_thermo support to swig, plugin and fortran interface 2023-06-08 19:12:59 -04:00
2e1190bfee Fixing issue with when atom styles using torque are mixed with intel pair styles not using torque. Generating runtime error for mixing intel gayberne style with non-ellipsoid intel pair styles. 2023-06-08 15:02:17 -07:00
5d4f9abf5b add unit tests for c-library interface and plain python module 2023-06-08 15:15:28 -04:00
81854cd03e change type keyword to return a pointer to static location for better portability 2023-06-08 14:55:45 -04:00
b093f1aac1 move versionadded tags to the top, replace some missed TBD with version info 2023-06-08 13:11:19 -04:00
3f6032e80d add python module interface to lammps_last_thermo, small consistency fixes 2023-06-08 13:05:37 -04:00
8ddac8cf02 search through the python folders recursive to detect all pending version tags 2023-06-08 12:46:41 -04:00
a2c968386e include versionadded tag 2023-06-08 12:46:00 -04:00
36cac1e83d make sure the field_data vector size always matches the size of the keywords vector 2023-06-08 12:45:41 -04:00
dc9cefbf21 Merge pull request #4 from jibril-b-coulibaly/BPM
clean up documentation for BPM bond styles
2023-06-08 09:08:39 -06:00
d6ad52ea66 allow wildcards with "cutoff" keyword to fix reaxff/species
this also switched to using fmtlib for column aligned output formatting
and re-applies clang-format.
2023-06-08 09:46:33 -04:00
2272d8dd20 add new library interface function to documentation 2023-06-08 09:45:12 -04:00
c851c7304c Update documentation for compute stress/cartesian,
and split the doc page compute_stress_profile into compute_stress_cartesian and compute_stress_curvilinear
2023-06-08 11:03:21 +02:00
3e2d5098c0 Update create_atoms.rst 2023-06-07 22:07:57 -04:00
0e07089de6 create_atoms:overlap_keyword_w_atomic_molecules 2023-06-07 22:04:28 -04:00
dd0bba6ac7 whitespace 2023-06-07 20:37:53 -04:00
7551219d81 correct multitype unittest for -DLAMMPS_SMALLSMALL 2023-06-07 20:16:26 -04:00
9235377b44 Merge branch 'develop' into collected-small-fixes 2023-06-07 20:05:06 -04:00
f3ff8dac66 clean up documentation for BPM bond styles 2023-06-07 16:23:06 -06:00
491e152289 add API to library interface to access last thermo data 2023-06-07 16:21:01 -04:00
de561737a3 update docs 2023-06-07 15:28:35 -04:00
af25bd87fb Merge branch 'develop' into collected-small-fixes 2023-06-07 15:23:54 -04:00
30e6b8b9b6 make more reliable with explicit loops using exported nfield value 2023-06-07 15:19:58 -04:00
620cca34d4 add accessor to nfield, make certain field types are initialized early 2023-06-07 15:19:13 -04:00
b7afe412dc Updating SDPD examples 2023-06-07 13:08:46 -06:00
6360c02daa use explicit const references 2023-06-07 14:04:41 -04:00
5fdba37492 Merge pull request #3807 from jtclemm/BPM
Misc minor patches/features in BPM/Granular packages
2023-06-07 13:55:00 -04:00
2f88153f06 Implementing feature request for runtime control of pppm_table in Intel package. 2023-06-07 10:43:51 -07:00
73693ca25b Merge pull request #3787 from oywg11/ilp-water-graphene
Registry-Dependent Potential for Interfaces of Water with Graphene
2023-06-07 11:48:43 -04:00
f2f8e139d8 Add optional keywords to arguments for ke/pair/bond forces 2023-06-07 16:03:32 +02:00
bb1ff49af6 Corrected bug from f_piston not initialised. Removed superfluous
temp compute id variable name
2023-06-07 14:03:40 +02:00
57f166670f fix versionadded macro so it is detected when actual version is added 2023-06-07 06:38:52 -04:00
37d894db51 update/clarify docs 2023-06-07 06:30:07 -04:00
bd3e7882e6 remove unused include and related statements 2023-06-07 06:25:47 -04:00
f406aa1492 Merge pull request #3792 from evoyiatzis/master
Inclusion of bond & angle contributions to "compute stress/mop"
2023-06-07 06:09:58 -04:00
53b1af7720 LAMMPS programming style/conventions updates 2023-06-07 05:11:53 -04:00
045b230587 Fix shifted coordinates:
Add `boxlo` to the bin centers
2023-06-07 10:43:57 +02:00
0f925f7a39 reformat, add versionadded marker 2023-06-07 04:33:37 -04:00
6c7a5d2f1e Using bigint for Intel package neighbor overflow detection for large local sizes. 2023-06-06 23:56:31 -07:00
bbfd909be6 Adding redundant call to sync Intel package arrays with native arrays for methods such as MC that do not need pre_reverse. 2023-06-06 23:56:16 -07:00
b81b1f5ecc switch dump yaml/netcdf thermo output to use new caching API. remove old API. 2023-06-06 22:40:13 -04:00
74a9cfc110 Merge pull request #3660 from Yi-FanLi/pimd_langevin
Add fix style pimd/langevin
2023-06-06 21:31:28 -04:00
14acb3e0ca add multitype data type and unittest (including tests for ubuf) 2023-06-06 21:29:50 -04:00
f83867787c update error message 2023-06-06 18:17:39 -04:00
5ff6fd9aad rename kBT to kt 2023-06-06 18:14:28 -04:00
a415d732fc rename Langevin init 2023-06-06 18:11:01 -04:00
ee6b12ee30 Correct reference info 2023-06-06 18:04:26 -04:00
0ec5274873 Merge branch 'develop' into BPM 2023-06-06 14:40:51 -06:00
e954d8f050 correctly indicate OPT package version of pair style 2023-06-06 16:11:03 -04:00
eafabf0fb1 update .gitignore 2023-06-06 16:10:11 -04:00
c4d49324b5 various documentation updates
- spelling fixes
- formatting conventions
- grammar fixes and clarifications
- full integration into manual build procedure
2023-06-06 16:08:50 -04:00
170173a213 Merge branch 'develop' of github.com:lammps/lammps into kk_update_4.0 2023-06-06 08:48:41 -06:00
51b45d6830 fix small format issues 2023-06-06 22:16:41 +08:00
f85474c9ec fix a typo 2023-06-06 22:03:33 +08:00
0ef0419a98 rename function names in opt version 2023-06-06 21:45:51 +08:00
9cc6839a8b Merge branch 'develop' into collected-small-fixes 2023-06-06 08:36:25 -04:00
0d7a411123 Merge branch 'NPTLangevin' of github.com:Bibobu/lammps into NPTLangevin 2023-06-06 09:54:16 +02:00
0c2cd80028 Edited the documentation of fix_press_langevin to take changes into
account.
2023-06-06 09:37:34 +02:00
9a585f8204 Change variables names in header for consistency with GJF paper. 2023-06-06 09:14:23 +02:00
a4e7966da5 Fixed some error messages for consistency.
Seed did not need comm->me addition.
2023-06-06 09:11:27 +02:00
409bced5fd update affiliations 2023-06-06 08:35:42 +08:00
c558de3ce0 remove the fprintf debug outputs 2023-06-06 08:27:14 +08:00
0978308f5e Merge pull request #3806 from stanmoore1/kk_update_3.7.2
Update Kokkos library in LAMMPS to v3.7.2
2023-06-05 19:41:34 -04:00
aeab026d66 Update Kokkos arch list 2023-06-05 15:32:26 -06:00
e1573a11a6 Update CMake 2023-06-05 15:07:07 -06:00
8ddd965127 Update Kokkos library in LAMMPS to v4.0.1 2023-06-05 15:03:28 -06:00
39eaab5278 Merge branch 'kk_update_3.7.2' of github.com:stanmoore1/lammps into kk_update_4.0 2023-06-05 11:05:26 -06:00
741db3da28 Merge branch 'develop' of github.com:lammps/lammps into kk_update_4.0 2023-06-05 10:55:24 -06:00
966efd8bd5 Add missed changes 2023-06-05 10:33:30 -06:00
2e09ba2702 Update CMake 2023-06-05 10:08:20 -06:00
a12133ce03 Update Kokkos library in LAMMPS to v3.7.2 2023-06-05 09:59:38 -06:00
8eed55b56c Update compute_stress_mop_profile.cpp 2023-06-05 18:54:26 +03:00
ead5a28d35 Update compute_stress_mop.cpp 2023-06-05 18:53:45 +03:00
a2d58c878b Merge pull request #3803 from rohskopf/sna-kk-switchflag
Fix Kokkos SNAP cutoff factor with `switchflag = 0`
2023-06-05 11:13:00 -04:00
ed9eaadad8 Merge pull request #3804 from xwuupb/develop
Use $t variable in the reaxff HNS example
2023-06-05 10:58:39 -04:00
0cff31060b Update compute_stress_mop.cpp 2023-06-04 16:10:24 +03:00
c25999d208 Update compute_stress_mop_profile.cpp 2023-06-04 16:08:33 +03:00
3782eeee2b remove whitespace from compute_stress_mop.rst 2023-06-04 13:47:54 +03:00
51851c2f4d remove whitespace from compute_stress_mop_profile.cpp 2023-06-04 13:45:52 +03:00
d8fad4db15 remove white space from compute_stress_mop.cpp 2023-06-04 13:45:00 +03:00
a0057d674f Update compute_stress_mop_profile.cpp 2023-06-04 13:40:31 +03:00
3282470cf5 update the citation information 2023-06-04 10:19:13 +08:00
bf8a4402ce update log files in the examples 2023-06-04 10:17:21 +08:00
196641927f correct a typo in the doc file 2023-06-03 23:07:55 +08:00
b5ab173763 update the doc file 2023-06-03 23:03:12 +08:00
63f3d183fe rename log files of examples 2023-06-03 23:02:45 +08:00
f507e30d36 update input files of examples 2023-06-03 22:52:45 +08:00
a40b87b05c rename potential files 2023-06-03 22:46:33 +08:00
738a955c40 fix checkstyle issues 2023-06-03 22:37:57 +08:00
d85342cd6d Update test_compute_global.cpp 2023-06-03 16:04:40 +03:00
a25100120b update the doc file 2023-06-03 20:36:12 +08:00
8c6e2ca000 rename the opt pair style 2023-06-03 20:34:42 +08:00
2e7ca5f65c rename the pair style 2023-06-03 18:14:45 +08:00
250eac93dc fix bug in the reaxff HNS benchmark 2023-06-03 07:34:39 +02:00
a42bfb0e26 Make cutoff factor 1 instead of 0 to prevent zero valued descriptors 2023-06-02 17:26:40 -06:00
241f3b751e Unifying syntax for BPM bond options 2023-06-02 15:45:53 -06:00
40cd3bbdc4 add cache line size padding to avoid false sharing with OPENMP package 2023-06-02 17:13:39 -04:00
390888179f Update compute_stress_mop_profile.cpp 2023-06-02 20:24:32 +03:00
9dc1f45e1e Create/destroy local_contribution 2023-06-02 20:08:59 +03:00
28e3a741a8 declare local_contribution as pointer in compute_stress_mop_profile.h 2023-06-02 20:02:52 +03:00
c30762ca8b Update documentation for compute stress/mop/profile 2023-06-02 19:44:37 +03:00
e7ae02dd2a Code for bond contribution to stress/mop/profile 2023-06-02 19:33:15 +03:00
70507462e9 Include method for bond contribution & variables to compute_stress_mop_profile.h 2023-06-02 19:22:28 +03:00
8ef4e933b2 Fix bug when Kokkos border comm is on host 2023-06-02 10:17:38 -06:00
08ffd268bf remove unused symbolic constant 2023-06-02 09:43:58 +03:00
0d875d4f8f Fixed up kokkos version 2023-06-01 18:51:31 -06:00
710597a353 Made some coding style changes 2023-06-01 17:43:51 -06:00
2c22bb49b4 Added some comments to data members 2023-06-01 12:32:02 -06:00
77340921ff Merge pull request #3800 from jrgissing/fix/deposit-per_atom_property_bug
fix deposit: per atom property bug
2023-06-01 14:19:53 -04:00
869780828b Merge pull request #3802 from stanmoore1/acks2_warnings
Fix (harmless) compiler warnings in Kokkos ACKS2
2023-06-01 12:57:55 -04:00
bda933e0db Merge pull request #3793 from srtee/reaxff-varstyle-efield
Enable `fix qeq/reaxff` with variable `fix efield`
2023-06-01 10:01:56 -04:00
0e4d5f03a1 Merge branch 'lammps:develop' into local-composition 2023-06-01 07:46:15 -06:00
a4f4f965e3 fix a bug in the codes 2023-06-01 21:45:52 +08:00
887534fd02 fix checkstyle 2023-06-01 21:12:11 +08:00
1189661edc revise the code files of standard version based on latest version of LAMMPS 2023-06-01 21:00:16 +08:00
c310616bb7 Update compute_stress_mop.rst to reflect the added keywords 2023-06-01 15:34:41 +03:00
c1cec45652 add keywords to specify contributions to stress/mop 2023-06-01 15:26:43 +03:00
f3bf20be8b The first three p_flags for iso should be 1. 2023-06-01 08:26:02 -04:00
6bc27db58c do not delete c_pe and c_press in destructor 2023-06-01 06:17:11 -04:00
9a389fbac6 fix typo 2023-06-01 03:25:17 -06:00
4ebc8afd1e update documentation 2023-06-01 03:20:43 -06:00
b01db47b2d consistency in issuing errors between mop and mop/profile 2023-06-01 10:33:50 +03:00
ea6ece510e turning warning into errors for unsupported styles 2023-06-01 10:22:01 +03:00
a0461d29dd Update atom.cpp 2023-05-31 17:04:49 -04:00
90e84a6ff8 set up basic KOKKOS file (untested) 2023-05-31 13:32:52 -06:00
1124f7eb93 adjust to one-liner 2023-05-31 13:32:37 -06:00
5f8b0f56a5 Merge pull request #3790 from jrgissing/is_typelabel-function
add is_typelabel() variable function
2023-05-31 15:15:08 -04:00
cae2414126 Fix compiler warnings in Kokkos ACKS2 2023-05-31 13:09:07 -06:00
6138b2b1f7 fix grammar 2023-05-31 13:31:45 -04:00
90000ca166 update docs 2023-05-31 13:29:48 -04:00
cb02563d3d the potential keyword is not (yet) supported by fix efield/tip4p 2023-05-31 13:29:41 -04:00
c0602b6500 make using energy and potential keyword at the same time an error 2023-05-31 13:20:35 -04:00
59bdb136dc added qtotal keyword 2023-05-31 14:50:55 +00:00
4073241413 correct docs about label2type() function 2023-05-31 09:57:19 -04:00
69c5493631 silence compiler warning 2023-05-31 09:09:35 -04:00
8602ecd57f update/correct docs 2023-05-31 08:59:36 -04:00
4540427e2b add unit tests for is_typelabel() variable function 2023-05-31 08:50:21 -04:00
70709f2f08 simplify error messages 2023-05-31 08:25:45 -04:00
ddc34e03d6 Revert removal of copies of pointers 2023-05-31 09:50:50 +02:00
9ec55dcb1f silence compiler warning 2023-05-30 19:10:11 -04:00
088d870e20 check remaining per-atom initializations 2023-05-30 17:17:54 -04:00
2a799d45a9 Merge pull request #3795 from jwillma2/develop
Adding carbon SNAP potential files and example
2023-05-30 15:10:58 -04:00
da7a348089 simplify and shorten example, use symlinks, recreate logs 2023-05-30 14:24:32 -04:00
b3e9efcb50 Use system periodicity to find an equivalent position of the plane 2023-05-29 17:55:24 +03:00
3b38145d91 Update compute_stress_mop.cpp
Fixing sign issues because I was considering the theta angle to be formed by vectors x[atom2] - x[atom1] & x[atom3] - x[atom2] instead of x[atom1] - x[atom2] & x[atom3] - x[atom2] as done in lammps
2023-05-29 16:34:44 +03:00
86743bc0a6 Update compute_stress_mop.cpp
The angle was computed using the dot product of the vectors x[atom2] - x[atom1] and x[atom3] - x[atom2]. This is not consistent with the lammps convention where the angle is computed using the dot product between x[atom1]-x[atom2] and x[atom3]-x[atom2].
2023-05-29 10:59:18 +03:00
c934208a4a only update ivector if it still exists 2023-05-28 14:07:25 -04:00
f9ee2ad42b reorder thermo and dump output so dump styles include correct thermo data 2023-05-28 11:49:02 -04:00
f69b50408d improve error messages 2023-05-28 11:47:32 -04:00
4c4eb6ee1e improve error message 2023-05-28 00:49:52 -04:00
b28ee36f00 update documentation for compute stress/mop 2023-05-27 14:50:31 +03:00
458cce7699 Updating unit test for mop to reflect the contribution from bonds 2023-05-27 14:33:46 +03:00
01b481ec4f Small tweaks 2023-05-26 15:27:15 -07:00
16751b06b3 Add os env vars to allow more MPI procs 2023-05-26 12:52:51 -06:00
b5a1c6d47f Declare update per atom function 2023-05-26 11:25:29 -06:00
2e68930f2a Format readme 2023-05-26 11:21:13 -06:00
87850f31ca Add Kokkos instructions 2023-05-26 11:18:37 -06:00
fd87c1464a Merge branch 'jax' of https://github.com/rohskopf/lammps into jax 2023-05-26 10:49:30 -06:00
49b2c299a7 Add Kokkos example 2023-05-26 10:48:58 -06:00
6eb586e66f update_atom_energy initial 2023-05-25 21:03:32 -04:00
b7146c900f Add instructions 2023-05-25 18:58:56 -06:00
ff7bae1739 Add Kokkos getters 2023-05-25 18:43:18 -06:00
3d8df660c3 make rigid water examples more realistic and consistent. avoid warnings. 2023-05-25 18:08:42 -04:00
4174116014 Fix 1/2 factor in energy 2023-05-25 16:02:45 -06:00
3012426bd5 send eij to LAMMPS 2023-05-25 17:49:02 -04:00
1fd34ffac6 Update 2023-05-25 14:49:38 -06:00
edfb8cf100 Fixing double mixing of normal coeffs 2023-05-25 13:54:12 -06:00
58ee392579 Merge pull request #3 from akohlmey/pimd_langevin
Update to current develop and some cosmetic changes
2023-05-25 15:49:34 -04:00
ceed30e7c6 Fixing mistakes in doc pages 2023-05-25 12:58:57 -06:00
40056e29a4 move reset of lcomp array to correct scope 2023-05-25 11:58:02 -06:00
f26f397e08 avoid crashing when there are no bonds or no angles 2023-05-25 14:47:20 +03:00
8e6615918b avoid crashing when no bonds or no angles exist 2023-05-25 14:39:03 +03:00
35a55068d7 Add input padded rij from LAMMPS Cython side 2023-05-25 01:35:08 -06:00
29ba0e3f18 Update MLIAP JAX example to use jax.grad 2023-05-24 18:15:56 -07:00
a0a0812ebf Added link to fix press/berendsen and fixed minor typos 2023-05-24 14:33:34 -06:00
d9937fc2c6 add base tested code 2023-05-24 13:16:08 -06:00
b2e5f93d49 Use jax functions 2023-05-24 13:08:10 -06:00
d66504be81 Properly decorate energy/force compute 2023-05-24 11:39:05 -06:00
74d89c4c9b init 2023-05-24 11:07:03 -06:00
e246864682 Refactor compute_array() and compute_pressure():
Remove unnecessary copies of variables, declare variables locally so they are properly scoped
2023-05-24 17:03:57 +02:00
ecca46acf9 Include bond interactions in force 2023-05-24 17:03:33 +02:00
9ee40cceef fixing indexing issue and more sign problems for angle contributions 2023-05-24 17:01:13 +03:00
c7c8b065a2 fixing bug with sign issue for bond contribution in compute_stress_mop.cpp 2023-05-24 16:49:35 +03:00
25bff3e4ed fixing bug with sign for angle contribution in compute_stress_mop.cpp 2023-05-24 16:24:33 +03:00
df708a67a5 Code for angle contribution to stress/mop 2023-05-24 11:55:08 +03:00
0692ed3bd7 @evoyiatzis Include method for angle contribution & variables to compute_stress_mop.h 2023-05-24 11:47:15 +03:00
6f59b7c5e0 Fixing misc bugs with interfaces 2023-05-23 22:12:34 -06:00
2855f18d02 Delete C_Willman_PRB2022.quadratic.snapparam 2023-05-23 12:58:34 -04:00
c95dcd7582 Delete C_Willman_PRB2022.quadratic.snapcoeff 2023-05-23 12:58:19 -04:00
a701a5e6cc Merge branch 'akohlmey:develop' into develop 2023-05-23 12:56:14 -04:00
0510ce7372 Carbon SNAP potential and example added 2023-05-23 12:29:25 -04:00
d190249e98 add documentation and checks 2023-05-22 00:10:01 +10:00
685255083e clean the duplicate info 2023-05-21 11:43:39 +08:00
91ac9ef3fc update doc file 2023-05-21 11:29:28 +08:00
276bc39a51 delete rst 2023-05-21 11:02:17 +08:00
3822e6ff0f add potential file that parameterized against with DMC reference data 2023-05-21 10:29:24 +08:00
28c9c274be Copy MLIAPUnified LJ example 2023-05-20 14:08:20 -06:00
6977f71eb0 Initial example 2023-05-20 13:53:22 -06:00
1d7a6f813b Update compute_stress_mop.cpp 2023-05-20 15:14:47 +03:00
90427c8750 Update compute_stress_mop.cpp 2023-05-20 15:12:42 +03:00
5da65bbd0a Code for bond contribution to stress/mop 2023-05-20 13:06:19 +03:00
36eb11f499 Include method for bond contribution & variables to compute_stress_mop.h 2023-05-20 12:59:34 +03:00
68ec36b006 Added the flip keyword to the documentation of fix_press_langevin. 2023-05-20 09:16:30 +02:00
9440f26355 Merge branch 'develop' of github.com:lammps/lammps into NPTLangevin 2023-05-20 08:59:29 +02:00
93402f61d8 Updated the documentation to include triclinic commands and other info. 2023-05-20 08:58:52 +02:00
fe7a6fce29 make QEQ work with atom-style potential 2023-05-20 14:33:24 +10:00
8d0eb9b1f7 hook up efield variables to qeq/reaxff 2023-05-20 14:10:07 +10:00
5fac8f483e last typo 2023-05-19 23:51:01 -04:00
d7b7d1d323 make sure error messages not wrong 2023-05-19 23:48:41 -04:00
aaabe41b22 typo 2023-05-19 22:54:23 -04:00
ad7b27a67a correct logic 2023-05-19 22:27:28 -04:00
0a45d1f9ac Update variable.rst 2023-05-19 21:31:51 -04:00
b9f01f106e is_typelabel function 2023-05-19 21:20:34 -04:00
0dd26189d4 Adding missing factor in bpm/rotational single method 2023-05-19 13:52:35 -06:00
cb5934cbcd Adding option to doc files, clarifying normal forces in compute pair/bond local 2023-05-19 13:51:53 -06:00
7ec842d9cb Adding requested feature to normalize forces 2023-05-19 13:50:11 -06:00
b4e1effe5f Improving options for outputting gradients 2023-05-19 13:10:39 -06:00
0334ddb7c6 Update pair_ilp_water_2dm.rst 2023-05-19 22:57:45 +08:00
22d9c047f4 update doc file 2023-05-19 22:52:18 +08:00
ab925000fe Added triclinic and relative remap functions to press/langevin files 2023-05-19 16:34:42 +02:00
7c14b750ef improve error message 2023-05-19 00:40:54 -04:00
9da310a33e spelling 2023-05-19 00:40:45 -04:00
842016e997 Merge branch 'develop' into collected-small-fixes 2023-05-19 00:13:15 -04:00
ed03d04a70 Merge pull request #3779 from lammps/fix-ttm-mod-arrays
Reorder fix ttm/mod 3d arrays to be consistent with fix ttm and fix ttm/grid
2023-05-18 18:33:25 -04:00
c73b7483b2 swtich loop order back to be consistent with rest of file 2023-05-18 11:47:20 -06:00
af71279df1 Merge branch 'fix-ttm-mod-arrays' of github.com:lammps/lammps into fix-ttm-mod-arrays 2023-05-18 11:44:31 -06:00
50858205f6 refresh log files for fix ttm/mod example 2023-05-18 11:43:54 -06:00
bbff6c25b3 add examples 2023-05-18 22:01:19 +08:00
3d35d68a4b add doc file 2023-05-18 22:00:03 +08:00
af04ecc532 add potential file 2023-05-18 21:59:07 +08:00
cc30c4478d add optmized verion of ilp_water_2dm 2023-05-18 21:58:40 +08:00
81a497adcd add standard version of ilp_water_2dm 2023-05-18 21:51:53 +08:00
6585151ce1 reorder loops to compute properties vector 2023-05-17 22:04:32 -04:00
d206f583c4 whitespace 2023-05-17 21:57:14 -04:00
f1aca8b71a formatting tweaks 2023-05-17 16:39:14 -06:00
d8ca6274e7 Merge branch 'develop' into pimd_langevin 2023-05-17 18:26:59 -04:00
10880332ed Merge pull request #3783 from Colvars/colvars-update
Update Colvars library to version 2023-05-01
2023-05-17 18:26:41 -04:00
5d66dc6659 apply clang-format 2023-05-17 17:50:15 -04:00
79f3eb6a4d remove debug code 2023-05-17 17:35:22 -04:00
8736f97792 remove dead code 2023-05-17 17:35:14 -04:00
39f61b6af3 Merge branch 'develop' into pimd_langevin 2023-05-17 17:30:49 -04:00
5be9eda905 Merge pull request #3780 from srtee/patch-3
Bugfix fix_efield.cpp for atom-style energy
2023-05-17 16:33:37 -04:00
377c652a83 Update Colvars library to version 2023-05-01
This update consists exclusively of bugfixes or maintenance-related changes.

The following is a list of pull requests in the Colvars repository since the previous update to LAMMPS:

- 532 Add XYZ trajectory reading feature
  https://github.com/Colvars/colvars/pull/532 (@jhenin, @giacomofiorin)

- 531 Delete objects quietly, unless explicitly requested via script (including VMD)
  https://github.com/Colvars/colvars/pull/531 (@giacomofiorin)

- 530 Append newline to log and error messages if not already present
  https://github.com/Colvars/colvars/pull/530 (@giacomofiorin)

- 528 Forward-declare OpenMP lock
  https://github.com/Colvars/colvars/pull/528 (@giacomofiorin)

- 527 Remove unneeded STL container
  https://github.com/Colvars/colvars/pull/527 (@giacomofiorin)

- 526 Allow collecting configuration files and strings before setting up interface
  https://github.com/Colvars/colvars/pull/526 (@giacomofiorin, @jhenin)

- 523 Fallback to linearCombination when customFunction is missing in customColvar
  https://github.com/Colvars/colvars/pull/523 (@HanatoK, @giacomofiorin)

- 522 Use iostream::fail() to check for I/O error
  https://github.com/Colvars/colvars/pull/522 (@jhenin)

- 520 Fix ref count
  https://github.com/Colvars/colvars/pull/520 (@giacomofiorin)

- 513 Set target temperature through a common code path
  https://github.com/Colvars/colvars/pull/513 (@giacomofiorin, @jhenin)

- 509 Safer detection of Windows with recent Microsoft Visual Studio versions
  https://github.com/Colvars/colvars/pull/509 (@akohlmey)

- 508 Update LAMMPS patching method to reflect Lepton availability
  https://github.com/Colvars/colvars/pull/508 (@giacomofiorin)

- 497 Increase the precision of write_multicol
  https://github.com/Colvars/colvars/pull/497 (@HanatoK)

- 496 Only perform MTS automatic enable/disable for timeStepFactor > 1
  https://github.com/Colvars/colvars/pull/496 (@giacomofiorin)

- 493 Remove unused branch of quaternion input function
  https://github.com/Colvars/colvars/pull/493 (@giacomofiorin)

- 489 Ensure there are spaces between the fields in the header
  https://github.com/Colvars/colvars/pull/489 (@HanatoK)

- 487 Use map of output streams, and return references to its elements
  https://github.com/Colvars/colvars/pull/487 (@giacomofiorin, @jhenin)

- 486 Remember first step of moving restraint
  https://github.com/Colvars/colvars/pull/486 (@jhenin)

- 485 Add decoupling option for moving restraints
  https://github.com/Colvars/colvars/pull/485 (@jhenin)

- 483 Update Lepton via patching procedure
  https://github.com/Colvars/colvars/pull/483 (@giacomofiorin)

- 481 Make file-reading operations of input data abstractable
  https://github.com/Colvars/colvars/pull/481 (@giacomofiorin)

Authors: @akohlmey, @giacomofiorin, @HanatoK, @jhenin
2023-05-17 13:29:00 -04:00
1c33aec5dc Wrote the documentation for fix_press_langevin 2023-05-17 18:28:49 +02:00
b1c4fc8948 Merge branch 'develop' of github.com:lammps/lammps into NPTLangevin 2023-05-17 17:14:25 +02:00
859012b192 Initial commit of an early version of anisotropic Langevin barostat. 2023-05-17 17:13:07 +02:00
7c98d4dba3 avoid null pointer dereferences by allocating a buffer for at least 1 item 2023-05-17 10:26:33 -04:00
88d9d39bab Merge branch 'fix-ttm-mod-arrays' of github.com:lammps/lammps into fix-ttm-mod-arrays 2023-05-17 08:17:11 -06:00
d98b1e9f04 fix left/right indices 2023-05-17 08:15:42 -06:00
166301180b Merge pull request #3769 from stanmoore1/kk_optimize
Kokkos package optimizations
2023-05-17 07:13:04 -04:00
e044ccbbb3 Bugfix fix_efield.cpp for atom-style energy 2023-05-17 16:41:21 +10:00
4f57026dc0 whitespace 2023-05-16 21:15:01 -04:00
2e58a9ecf8 whitespace 2023-05-16 21:13:48 -04:00
05b8082e3c code cleanup 2023-05-16 17:03:34 -06:00
0d31ab9c88 one more change 2023-05-16 16:51:00 -06:00
2b9c65855a swap 3d array indices in fix ttm/mod 2023-05-16 16:38:12 -06:00
858fd4cc2c Small optimization 2023-05-16 15:23:31 -06:00
b1ee177c0a Must use local variable for lambda capture 2023-05-16 12:43:19 -06:00
b9256fa492 Reduce memory allocations 2023-05-16 11:09:37 -06:00
a84470383b Merge pull request #3777 from ilia-nikiforov-umn/kim_adapt
Add "scale" attribute to pair_kim to be used with fix adapt
2023-05-16 07:08:40 -04:00
2328cae55f Merge branch 'develop' of https://github.com/lammps/lammps into kk_optimize 2023-05-15 10:48:51 -06:00
91e0d0411b one more programming style tweak 2023-05-15 02:04:17 -04:00
cf51c94be0 update unit test for presence of Pair::extract() function in pair style kim 2023-05-15 02:02:36 -04:00
ed958d8aed Merge branch 'develop' into kim_adapt 2023-05-15 02:01:01 -04:00
d584f2fe50 follow LAMMMPS' programming style more closely 2023-05-15 01:58:45 -04:00
17747a3c58 moved scaling to immediately after compute and removed virial scaling 2023-05-14 15:07:31 -05:00
2d18883e8b Merge pull request #3755 from jtclemm/doc-edits
Reorganization of the programming guide
2023-05-13 17:22:41 -04:00
c76e85c445 Merge pull request #3770 from akohlmey/collected-small-fixes
Collected small fixes and updates
2023-05-13 15:19:13 -04:00
55f7e9271c removing old files 2023-05-12 23:34:26 -06:00
dfc47a5501 Fixing various errors, reorganizing status variable 2023-05-12 23:33:02 -06:00
d6d825258e Merge pull request #3771 from lammps/variable-current
Change how variables check if computes are current
2023-05-12 19:26:36 -04:00
8414d23c2b use symbolic constants 2023-05-12 18:04:37 -04:00
ac4cf2dc99 Merge pull request #3776 from inflowencer/develop
Fixed read-in of initial electron temperature file
2023-05-12 18:03:50 -04:00
96af466f4a as a few details to the discussion of programming languages and their standards 2023-05-12 15:45:55 -04:00
cd79276309 small formatting tweaks 2023-05-12 15:45:24 -04:00
aa069b2cfb fix typos 2023-05-12 15:44:54 -04:00
9a8640ca1a Merge pull request #3767 from lammps/vector-variable
Vector-style variable enhancements
2023-05-12 15:18:08 -04:00
0abb217d59 whitespace 2023-05-12 15:13:29 -04:00
5f34f53ab7 also use 1-based indexing when writing out the electron temperature 2023-05-12 15:06:34 -04:00
cbb0558778 correct comments 2023-05-12 15:06:03 -04:00
b54d39adf9 minor editing changes 2023-05-12 11:18:07 -06:00
f1a3d0ce5a whitespace 2023-05-12 11:14:34 -04:00
9ef4d7f320 allow internal variables in reset_atoms to be used before first run 2023-05-12 09:06:29 -06:00
54b2a5c17a allow internal variables in reset_atoms to be used before first run 2023-05-12 09:04:42 -06:00
35418afd6b Rename CRK -> RK 2023-05-11 14:19:32 -06:00
dd3d4e2b50 bump minimum requirement for building docs to python 3.8 2023-05-10 19:09:13 -04:00
4c65aa572d Prefer custom python interpreter set via -DPython_EXECUTABLE if possible 2023-05-10 18:48:47 -04:00
7c4883704c upgrade sphinx-tabs 2023-05-10 18:46:55 -04:00
f74947a359 Fixed read-in of initial electron temperature file 2023-05-10 15:15:10 -07:00
a92e0030e8 whitespace 2023-05-10 17:24:29 -04:00
d2361ffe7d add workaround for reset_atoms image 2023-05-10 17:23:34 -04:00
f015aaff84 compile time compatibility with swig 4.1 2023-05-10 16:54:05 -04:00
9890987eec Merge remote-tracking branch 'github/develop' into variable-current 2023-05-10 16:53:49 -04:00
ee5a300643 updated doc for kim adapt 2023-05-09 09:24:53 -05:00
4c51264b15 explain how to keep pairs in the neighbor list even if the scaling factor should be 0.0 2023-05-09 08:24:02 -04:00
c54ff43806 compile time compatibility with swig 4.1 2023-05-09 02:59:12 -04:00
9512568fd8 improve pair_coeff error message for pair styles derived from PairHybrid 2023-05-09 02:40:55 -04:00
a6310f170a streamlined scaling implementation 2023-05-08 18:37:51 -05:00
820899cd5e use more obvious pair style dpd thermostat examples 2023-05-08 11:51:30 -04:00
200f740c06 update variable doc page to explain new behavior 2023-05-08 09:48:27 -06:00
fceff845c7 Merge pull request #3754 from kawai125/bugfix-fix_ttm_mod-read_electron_temperatures
fix ttm_mod
2023-05-08 11:02:14 -04:00
49ac79fcdd change error checks for computes that are not current 2023-05-08 08:55:40 -06:00
abe238ce61 use correct spelling for semicolon 2023-05-08 05:54:33 -04:00
a6f60405b6 resolve formatting issues and add a few style tweaks from languagetool.org 2023-05-08 05:52:18 -04:00
69f60c5222 bugfix in fix_ttm 2023-05-08 10:36:29 +09:00
8ed42f6e4b remove unused communication API 2023-05-07 21:36:29 -04:00
7342f27fb1 clarify download info 2023-05-06 22:40:58 -04:00
7b46f15068 use macOS consistently (missed a few places in the last round) 2023-05-06 22:40:58 -04:00
b1d0f4afab correct timer time output format for timeouts > 24 hours 2023-05-06 22:40:58 -04:00
15116a0456 Merge pull request #3766 from stanmoore1/kk_min_bug
Fix issues with Kokkos minimize and fix addforce
2023-05-06 22:39:39 -04:00
d8584bb15a Hacky first pass at kim scaling 2023-05-06 16:31:30 -05:00
0cd95d64e2 Merge pull request #3768 from jrgissing/fix_reaxff/species-variable_Nlimit
reax/species: variable input for Nlimit keyword
2023-05-06 11:15:48 -04:00
6074303f4a whitespace 2023-05-05 19:13:49 -06:00
806af5322e Kokkos package optimizations 2023-05-05 19:08:02 -06:00
b9161843dc more robust variable error checks 2023-05-05 17:41:42 -04:00
aa62a2a9cf Merge branch 'doc-edits' of https://github.com/jtclemm/lammps into doc-edits 2023-05-05 11:44:32 -04:00
56f06bc9e0 Reordering styles by priority, misc clean ups 2023-05-05 09:41:54 -06:00
c328761c78 Merge branch 'develop' into doc-edits 2023-05-05 11:30:48 -04:00
0facd4cf66 support vector variable definitions with embedded blanks 2023-05-05 01:06:55 -04:00
1b7f9439ad simplify parse_vector() method by using Tokenizer class 2023-05-04 21:14:25 -04:00
366b64571d add a few unit tests for static vector style variables 2023-05-04 20:44:46 -04:00
0de35dee29 spelling 2023-05-04 20:34:41 -04:00
6ffa720f87 Merge branch 'develop' into vector-variable 2023-05-04 20:14:51 -04:00
b3130a2878 Merge pull request #3763 from akohlmey/collected-small-fixes
Collected small changes and fixes
2023-05-04 20:13:46 -04:00
0b71371597 reax/species: variable input for Nlimit keyword 2023-05-04 20:10:13 -04:00
67b6a1de70 fixup broken unit tests 2023-05-04 20:09:57 -04:00
0c10184a69 whitespace, simplify 2023-05-04 20:09:45 -04:00
5da1df5004 add versionadded tag 2023-05-04 20:08:36 -04:00
93100adbe0 debugging and doc pages 2023-05-04 16:24:15 -06:00
269f07a137 fix a few more sphinx issues and inconsistencies 2023-05-04 16:45:30 -04:00
d4554fc89e Merge branch 'develop' into doc-edits 2023-05-04 16:35:55 -04:00
77ea3ed215 reduce sphinx warnings 2023-05-04 16:35:49 -04:00
8fe4394ada spelling 2023-05-04 16:04:08 -04:00
042829c40d Start document about per-atom properties and atom data access 2023-05-04 15:57:11 -04:00
40f7c90474 correct underline 2023-05-04 15:56:31 -04:00
ccc1b200c0 add output option for vector-style vars 2023-05-04 12:52:11 -06:00
a0d9854e11 more thorough tests and PBC handling for compute stress/cartesian 2023-05-04 03:46:18 -04:00
de45437cc9 apply clang-format 2023-05-04 03:32:59 -04:00
b61e06a40f must initialize fp to avoid crash in destructor 2023-05-04 03:32:39 -04:00
42e090d945 replace tabs and remove trailing whitespace 2023-05-04 02:21:55 -04:00
936b24e3b0 allow vector variable to be initialized 2023-05-03 16:36:05 -06:00
c9cfc952aa polishing variable doc page and code 2023-05-03 14:06:21 -06:00
5a52369fff Reading mask too 2023-05-03 10:41:43 -06:00
b560559b0a Fix issues with Kokkos minimize 2023-05-03 10:37:41 -06:00
62858115b2 offset positions so bin indices are >= 0 even for positions < 0 2023-05-03 07:36:27 -04:00
2542a7e840 avoid integer overflow 2023-05-03 00:39:59 -04:00
89d59fad61 Merge branch 'develop' into collected-small-fixes 2023-05-02 20:47:33 -04:00
8054923941 Merge pull request #3761 from lammps/count-types
New compute count/type command
2023-05-02 20:44:55 -04:00
db38d99f3c Merge pull request #3758 from stanmoore1/kk_fuse
Fuse some Kokkos kernels to reduce launch latency for small systems
2023-05-02 20:36:48 -04:00
25bc0bd365 Merge pull request #3762 from akohlmey/phana-cmake-build
Update phonon tool (phana) and add CMake support
2023-05-02 19:49:17 -04:00
81523b7ba3 Merge branch 'patch-2' of github.com:srtee/lammps into collected-small-fixes 2023-05-02 17:42:02 -04:00
7ab30aa468 add versionadded tag 2023-05-02 17:32:57 -04:00
3e3ed89f33 avoid out-of-range access if an angle/dihedral/improper type is set to 0 2023-05-02 17:30:23 -04:00
a8dcb3987a silence compiler warning 2023-05-02 17:29:06 -04:00
7b5fecfad7 make phana installation in LAMMPS compatible with ubuntu 18.04LTS 2023-05-02 17:24:38 -04:00
36632e3356 Clarifying how BPM package works 2023-05-02 14:28:17 -06:00
6d050374c3 fix compilation with -DLAMMPS_BIGBIG 2023-05-02 16:24:43 -04:00
3f8cd4577c update unit test 2023-05-02 16:20:29 -04:00
b6e211dd62 consistently declare variables when used only 2023-05-02 16:20:20 -04:00
e8a77c61ac whitespace 2023-05-02 16:19:53 -04:00
3119434932 apply clang-format 2023-05-02 15:59:34 -04:00
8a9091595d Revert "use more obvious representation of 2^53"
This reverts commit ff29ef7d31
as it conflicts with how MSVC interprets 1L (it would require
1LL which creates issues with other compilers).
2023-05-02 15:56:45 -04:00
22eb09ee0f sunc with GHub version 2023-05-02 13:44:04 -06:00
aa4447413a expand to angles, dihedrals, impropers 2023-05-02 13:39:37 -06:00
fdf9288e52 Merge branch 'develop' into kk_fuse 2023-05-02 10:11:55 -06:00
d13096e08b improve error message 2023-05-02 12:08:55 -04:00
8ca1e2d417 add OpenMP suppression for GNU 13 compilers 2023-05-02 11:50:15 -04:00
c5e4f7c5fd modernize 2023-05-02 11:49:55 -04:00
d2bb1b420d simplify and cleanup 2023-05-02 11:49:13 -04:00
eacb420e21 whitespace 2023-05-02 10:34:36 -04:00
12135bac77 add unit tests for compute count/type 2023-05-02 10:22:37 -04:00
56f791eec2 avoid uninitialized data access for scalar data 2023-05-01 23:52:35 -04:00
c8d5b9e4d0 avoid uninitialized pointers 2023-05-01 23:52:04 -04:00
ba747e5544 suppress bogus warnings with gcc 13.0 and later 2023-05-01 21:10:18 -04:00
ff29ef7d31 use more obvious representation of 2^53 2023-05-01 20:57:32 -04:00
b38544a9e8 apply clang-format 2023-05-01 20:43:05 -04:00
73b8bb8617 fix bug that breaks compilation with -DLAMMPS_BIGBIG 2023-05-01 20:41:44 -04:00
a2b74c8466 small doc update 2023-05-01 20:23:13 -04:00
39a77064e0 update so it can be built either standalone or as subdir with LAMMPS 2023-05-01 20:14:52 -04:00
478058119b integrate CMake build procedure for tools/phonon 2023-05-01 20:14:52 -04:00
d1f64c02d8 show/explain alternate LJ potential using the minimum energy distance 2023-05-01 20:13:37 -04:00
53848be081 improve error messages 2023-05-01 19:55:14 -04:00
41a0196874 Merge pull request #3740 from stanmoore1/kk_sort
Add Kokkos support for atom sorting on device
2023-05-01 19:54:00 -04:00
dbcc19aef4 Fix uninitialized variables 2023-05-01 15:42:17 -06:00
f8058f039f Fix bug 2023-05-01 15:26:07 -06:00
fae0ef6cde update count/type doc page 2023-05-01 15:21:56 -06:00
ef9ce62aa8 update broken bond doc page 2023-05-01 15:17:19 -06:00
4a419b2f00 Adding rheo property/atom compute odc 2023-05-01 14:47:52 -06:00
c81c4cefc0 Fixing pair label 2023-05-01 14:32:14 -06:00
0b1d393d78 Adding arguments to doc page 2023-05-01 14:05:47 -06:00
f1b29941fd Port changes to nve/sphere 2023-05-01 13:34:58 -06:00
76f9336de4 whitespace 2023-05-01 13:16:16 -06:00
cd972884ff Clarify with comment 2023-05-01 13:13:23 -06:00
757130f9d0 whitespace 2023-05-01 13:09:46 -06:00
fd65000afc Small refactor 2023-05-01 13:08:01 -06:00
059601734f Fix issues 2023-05-01 12:38:16 -06:00
370ec56207 Whitespace 2023-05-01 10:20:45 -06:00
e679936e0a Merge branch 'develop' into kk_sort 2023-05-01 09:43:12 -06:00
2fe423cc70 bug fix 2023-05-01 09:20:20 -06:00
c282d8d5d0 add group support to new command 2023-05-01 09:01:03 -06:00
f644f7078c doc page for new command 2023-04-29 18:50:15 -06:00
2c8a49bb26 new compute count_type 2023-04-29 18:14:24 -06:00
f66cf7c9e8 Revert testing change 2023-04-28 16:15:55 -06:00
24e7204b51 whitespace 2023-04-28 15:00:50 -06:00
29a2b58ab6 Small cleanup 2023-04-28 14:57:19 -06:00
235372d6e8 Fuse some Kokkos kernels to reduce launch latency for small systems 2023-04-28 14:40:59 -06:00
8d6c3a7536 Fix Markdown table in tools/tabulate/README.md 2023-04-28 14:50:09 +10:00
0cd22dd0d2 Creating doc pages and links for rheo 2023-04-27 21:04:04 -06:00
4a608dced6 Merge pull request #3756 from stanmoore1/triclinic_sort
Fix bug in atom sorting with triclinic boxes
2023-04-27 17:53:44 -04:00
b17f9ac10e Small tweak to docs 2023-04-27 15:21:30 -06:00
50adf2b340 Add a couple notes to the docs 2023-04-27 15:17:54 -06:00
7791ab728f Fix small issue 2023-04-27 11:25:34 -06:00
7c3deba4a6 whitespace 2023-04-27 11:21:31 -06:00
4705f46a30 Merge branch 'triclinic_sort' of github.com:stanmoore1/lammps into kk_sort 2023-04-27 11:10:17 -06:00
c95a349fae Small tweak 2023-04-27 11:07:04 -06:00
1f54dc3ac4 Port changes to Kokkos 2023-04-27 11:04:39 -06:00
a4d56b56ab Fix bug in atom sorting with triclinic boxes 2023-04-27 10:27:38 -06:00
787399f5e3 Reorganizing the programming manual and editing some text 2023-04-27 09:25:58 -06:00
449f5439ae fix grid index in read_electron_temperatures 2023-04-27 18:52:04 +09:00
308bea4557 Merge branch 'upstream' into kk-updates 2023-04-26 23:14:54 -05:00
89aa45e15c Merge branch 'develop' of github.com:lammps/lammps into kk_sort 2023-04-26 17:07:39 -06:00
717c3207d6 Merge pull request #3753 from akohlmey/tally-compute-warn
Add warning message when the callback for a /tally compute was not run
2023-04-26 18:29:40 -04:00
f68603703f add false positive 2023-04-26 15:35:03 -04:00
d4a3903ba3 improve error messages 2023-04-26 14:58:12 -04:00
367b0afb17 document additional pair style restrictions for /tally computes 2023-04-26 14:57:50 -04:00
9b9b14e614 add mechanism to record when Pair::ev_tally() was called and the corresponding callback functions 2023-04-26 14:49:57 -04:00
0cd3bd190f Fixing various memory issues 2023-04-26 12:14:40 -06:00
be568d257d Adding output option for reorganized peratom values 2023-04-25 16:29:29 -06:00
7fc916a1d4 Prototyping example and accessory commands 2023-04-25 13:38:37 -06:00
7cfe45c00b Adding gsl version, cmake options, readme files 2023-04-25 10:29:39 -06:00
e1df51969d Merge branch 'develop' into always-exceptions 2023-04-25 09:08:21 -04:00
4aee151b0e Merge pull request #3745 from akohlmey/collected-small-fixes
Collected small changes and fixes
2023-04-24 23:52:57 -04:00
47b8cdc94f Fixing compilation errors 2023-04-24 19:46:27 -06:00
58ec69c34a plug memory leak in FixNHIntel class 2023-04-24 20:58:18 -04:00
9f11cac393 updated apptainer build definitions for almalinux 8/9 2023-04-24 20:41:06 -04:00
217be1f274 improve error message handling for code shared between fix nvt/nph/npt 2023-04-24 17:32:47 -04:00
cbc635110a Merge pull request #75 from jtclemm/collected-small-fixes
Minor changes to the style/contribute modify pages
2023-04-24 16:59:38 -04:00
90496a663b Minor changes to the style/contribute modify pages 2023-04-24 14:31:18 -06:00
d76c9a198d fix spelling 2023-04-24 16:06:53 -04:00
b28e650308 add deprecation warning for cuboid and sphere keywords 2023-04-24 16:04:05 -04:00
3cd6c776e7 ignore GranSubModel styles until we have a more regularized granular pair style doc 2023-04-24 16:03:38 -04:00
a83c112e9f Merge remote-tracking branch 'github/develop' into collected-small-fixes 2023-04-24 15:41:46 -04:00
c1da9c26a1 Merge pull request #3746 from akohlmey/fix-dpd-source-region
Add support for a region keyword to fix edpd/source and fix tdpd/source
2023-04-24 12:46:42 -04:00
bbbdfd57e4 Merge pull request #74 from jtclemm/collected-small-fixes
Adding changes to doc page
2023-04-24 11:59:49 -04:00
289601e814 Adding changes to doc page 2023-04-24 09:29:25 -06:00
0be9206c08 Merge branch 'develop' into kk_update_4.0 2023-04-24 09:05:29 -06:00
8a118b6f17 Merge pull request #16 from rbberger/kk_cpp17_update
Cleanups and HIP bugfix
2023-04-24 09:01:59 -06:00
74cf149aef Merge branch 'lammps:develop' into main 2023-04-24 09:00:00 -06:00
31a7d10756 silence compiler warning 2023-04-23 17:41:33 -04:00
07de4abc08 refactor and reformat granular submodels
- use override as needed
- delete default destructors
- make submodel data members protected and add getter functions
- remove unused constants
- import specific functions/constants from namespaces
- remove unused include files
- convert #define constants to static constexpr
- enable and apply clang-format
2023-04-23 17:41:23 -04:00
65a42d3921 kokkos: make use of NeedDup_v 2023-04-22 17:05:05 -06:00
f954edc791 kokkos: remove duplicated define 2023-04-22 16:45:38 -06:00
0fee9ce956 kokkos: HIP is no longer in Experimental namespace 2023-04-22 16:42:10 -06:00
88909114a4 kokkos: make use of AtomicDup_v 2023-04-22 16:33:25 -06:00
d3b48a9346 kokkos: use std::enable_if_t and std::is_same_v 2023-04-22 16:20:04 -06:00
b9c940926f silence compiler warnings 2023-04-22 17:50:41 -04:00
ddf801f08f add missing override properties 2023-04-22 15:10:47 -04:00
c6c470a2c9 compilation fix for Fedora 38 from upstream 2023-04-22 13:04:47 -04:00
94f84409aa make choice of Sphinx version more conservative 2023-04-22 10:59:12 -04:00
6ca91b01a1 Merge branch 'develop' into collected-small-fixes 2023-04-22 10:59:05 -04:00
601f2bf137 Merge pull request #3747 from rbberger/doc_theme_upgrade
docs: upgrade lammps_theme based on sphinx_rtd_theme 1.2.0
2023-04-22 10:56:25 -04:00
4c0705a741 Be more specific about web browser support after tests on browserstack.com 2023-04-22 06:15:16 -04:00
2667543e0e docs: set language to en 2023-04-21 21:45:56 -06:00
f60ed39322 docs: upgrade lammps_theme based on sphinx_rtd_theme 1.2.0 2023-04-21 21:37:58 -06:00
3e05efa1f3 must initialize vest_temp to null to avoid segfaults 2023-04-21 18:13:18 -04:00
7c723b4852 add support for a region keyword to fix edpd/source and fix tdpd/source 2023-04-21 17:58:28 -04:00
77ad4fdac6 must initialize vest_temp to null to avoid segfaults 2023-04-21 17:47:06 -04:00
d1ecb206f6 fix spelling and reformat 2023-04-21 17:46:42 -04:00
4890d820f6 enable and apply clang-format 2023-04-21 12:27:14 -04:00
b7350188a4 use ubuf() to encode/decode tagints into communication buffers 2023-04-21 12:27:02 -04:00
30cdb635c2 modernize 2023-04-21 12:23:35 -04:00
8cfac6fd60 consolidate enum into header file 2023-04-21 12:23:03 -04:00
bee5afcd08 Added yukawa/colloid/kk 2023-04-21 00:22:36 -05:00
35d1178cfa Adding cmake options, fixing a few misc errors 2023-04-20 20:15:17 -06:00
2197d62c2f Merge remote-tracking branch 'github/develop' into collected-small-fixes 2023-04-20 20:04:55 -04:00
e6e7121445 Merge pull request #3744 from jtclemm/granular-updates
Small fixes to GRANULAR
2023-04-20 19:51:52 -04:00
de0e4bb170 Rho sum compute 2023-04-20 16:17:04 -06:00
a4d971df52 Updating surface compute 2023-04-20 14:45:35 -06:00
7c7e626097 Revert docs 2023-04-20 14:34:00 -06:00
b511681c2b Revert binsize change 2023-04-20 14:07:57 -06:00
5c8f3a0c95 avoid 32-bit integer overflow when allocating memory for neighbor list copy 2023-04-20 14:42:48 -04:00
6ef6d6f0b2 Fixing group mask bug in gran wall, clean up redundant nullptr assignments 2023-04-20 11:17:24 -06:00
b548a06270 Redefining already used variable name a->A in pair granular doc 2023-04-20 10:19:05 -06:00
c2027d7512 correct logic error when applying group masks 2023-04-20 08:51:09 -04:00
bf32d219d8 fix typo 2023-04-20 08:50:48 -04:00
d85ce6a392 Initial surface compute 2023-04-19 17:15:00 -06:00
313b3a6935 Fix typo 2023-04-19 14:09:55 -06:00
28d31dedc8 Add missing BinOp struct 2023-04-19 13:50:08 -06:00
b7ea2cc50c Merge branch 'develop' of https://github.com/lammps/lammps into kk_sort 2023-04-19 13:40:52 -06:00
b58368dc34 whitespace 2023-04-19 13:31:37 -06:00
cf2e55f4ac Update docs 2023-04-19 13:16:38 -06:00
f5e55bb6d9 Need to set var 2023-04-19 12:56:47 -06:00
5cb3d15ada Add Kokkos support for atom sorting on device 2023-04-19 12:47:38 -06:00
e99a41158e Merge pull request #3727 from taylor-a-barnes/taylor
Small enhancements to the mdi/qm fix
2023-04-19 14:22:11 -04:00
2cf690cc99 fix typo 2023-04-19 13:28:02 -04:00
58be6dcd52 Merge branch 'develop' into taylor 2023-04-19 13:27:36 -04:00
dab02394ce whitespace 2023-04-19 13:27:29 -04:00
29ad47cc0f cosmetic changes to comments and code structure 2023-04-19 10:22:10 -06:00
9aa8f1bfb1 Merge pull request #3739 from stanmoore1/kk_hash
Fix compile error with latest Kokkos `develop` branch
2023-04-19 12:08:53 -04:00
76afaefe45 Merge pull request #3735 from akohlmey/collected-small-changes
Collected small changes and fixes
2023-04-19 09:50:30 -04:00
040a43b50b add false positives 2023-04-18 22:01:51 -04:00
a9e715bce8 KOKKOS updates 2023-04-18 22:01:39 -04:00
4e466d8840 whitespace 2023-04-18 21:49:55 -04:00
1404424071 Merge branch 'develop' into collected-small-changes 2023-04-18 21:49:32 -04:00
bc27e96d23 Merge pull request #3737 from athomps/gcmc-region-triclinic
Updated fix gcmc log file contents with correct species counts
2023-04-18 21:30:22 -04:00
f436bd69b5 Merge pull request #3734 from lammps/example-couple-lammps-spparks
Update examples/COUPLE for LAMMPS + SPPARKS (kMC code)
2023-04-18 21:29:52 -04:00
3b0eedeb08 Merge pull request #3731 from yury-lysogorskiy/patch-1
Update reference in pair_pace doc page
2023-04-18 20:52:46 -04:00
94c773ee03 Merge pull request #3738 from athomps/smtbq-cites
Updated SMTBQ doc page citations
2023-04-18 19:48:37 -04:00
c1eecf0b48 Fix compile error with latest Kokkos lib 2023-04-18 14:08:45 -07:00
c2a58a692a Updated SMTBQ doc-page citations 2023-04-18 14:25:32 -06:00
5547492d34 Updated log file contents with species counts 2023-04-18 14:03:04 -06:00
f138117ecf Merge branch 'develop' of github.com:lammps/lammps into kk_update_4.0 2023-04-18 12:36:08 -06:00
f2e1bf5116 Merge branch 'kk_update_4.0' of github.com:stanmoore1/lammps into kk_update_4.0 2023-04-18 12:35:51 -06:00
5a25d5310b Fix bug in Makefile.kokkos 2023-04-18 12:35:30 -06:00
fcea2cc5b5 zero out fix external local data when allocated to avoid uninitialized data access 2023-04-18 09:53:01 -04:00
43cf7e9094 mention DIFFRACTION package under Restrictions 2023-04-17 08:57:02 -04:00
08bf9e2513 apply clang-format 2023-04-16 12:35:41 -04:00
5f4a80d41f remove obsolete unittest code specific to handling the case of lammps exceptions disabled 2023-04-16 12:34:47 -04:00
98efb19e79 simplify and modernize. apply clang-format. 2023-04-16 12:23:42 -04:00
a7460445bb simplify and modernize. apply clang-format. 2023-04-16 12:14:59 -04:00
5980fdf9fd Revising interface compute 2023-04-15 21:15:37 -06:00
7e4d180e57 silence compiler warnings 2023-04-15 22:00:42 -04:00
8086228976 make communicator protected and use accessor instead. simplify 2023-04-15 21:54:13 -04:00
baeed85468 update CMake files 2023-04-15 18:03:09 -04:00
0cd5ae5f2e remove -DLAMMPS_EXCEPTIONS and always enable the corresponding code paths 2023-04-15 17:49:08 -04:00
3ed6612f08 correct comment 2023-04-14 23:20:22 -04:00
88dcad59af silence compiler warnings 2023-04-14 14:59:25 -04:00
213a6d8ac8 silence compiler warning 2023-04-14 14:49:59 -04:00
e1e82e6715 Merge branch 'develop' into fix-rigid-enforce2d 2023-04-14 14:38:21 -04:00
82e17c8aec add image outputs to both couple codes 2023-04-14 12:11:09 -06:00
32f9800943 testing new version of coupling 2023-04-14 11:00:59 -06:00
ca2222e11f update contact info 2023-04-13 20:06:35 -04:00
fbded8d8f4 include fix from @ndtrung81 2023-04-13 20:06:35 -04:00
8a3d0caffd consistently apply \vec{} macro to only the first text/character and not subscripts 2023-04-13 20:06:35 -04:00
bfe40a324a correct LaTeX formatting issues reported at https://matsci.org/t/latex-math-in-pair-amoeba-rst/47987/1 2023-04-13 20:06:35 -04:00
e506dd738b Merge pull request #3733 from stanmoore1/kk_pace_bug
Fix bug in Kokkos PACE
2023-04-13 19:15:51 -04:00
7f35ecffcc more edits 2023-04-13 12:55:38 -06:00
24365d7353 Allow UVM to compile 2023-04-13 12:33:44 -06:00
9279f6b385 Fix bug in Kokkos version of PACE 2023-04-13 12:33:31 -06:00
93ecbbdcff Modified CMAKE file so we can hopefully use the PLUMED_SUFFIX 2023-04-13 15:42:26 +01:00
d685bf8962 Update pair_pace.rst 2023-04-13 11:01:04 +02:00
6e47e5284e Update reference in pair_pace.rst
Update reference to extrapolation grade paper (Phys Rev M)
2023-04-13 10:58:57 +02:00
986cfd6641 Cleaning up peratom variables, adding peratom variables to fix rheo/interface 2023-04-12 17:05:05 -06:00
a9c686dfcc Merge pull request #3729 from GenieTim/absmax-absmin-reduce
Introduce compute reduce minabs and maxabs
2023-04-12 18:24:15 -04:00
b3c00f3edf modernize a couple examples/COUPLE apps 2023-04-12 15:59:12 -06:00
09a9951c69 whitespace 2023-04-12 17:21:02 -04:00
56b5291529 Merge pull request #1394 from valleymouth/granular-kokkos
Kokkos exchange comm for fixes
2023-04-12 14:59:14 -04:00
4e33b1b867 Fix implementation of absmax 2023-04-12 09:28:15 +02:00
7a32152ee5 Implement maxabs and minabs atom reduction operations 2023-04-12 09:28:04 +02:00
382c09abcb Use correct var 2023-04-11 16:55:45 -06:00
12731f23a7 Fix more issues 2023-04-11 16:51:04 -06:00
4a760f5e81 Fix another bug 2023-04-11 15:05:08 -06:00
3249d9eba3 Fix bug in new code 2023-04-11 11:41:14 -06:00
dc4e4e6329 More tweaks 2023-04-10 14:01:01 -06:00
9a1250a9d7 Merge branch 'develop' of https://github.com/lammps/lammps into granular-kokkos 2023-04-10 12:46:13 -06:00
ff5b4e971d Merge pull request #3725 from akohlmey/collected-small-changes
Collected small changes and fixes
2023-04-10 13:53:16 -04:00
96b696450c Fix GPU issues 2023-04-10 11:03:54 -06:00
96f3c88f0f Merge pull request #3714 from akohlmey/pair-lj-lepton-sphere
New pair styles lj/cut/sphere. lj/expand/sphere and lepton/sphere
2023-04-10 12:14:17 -04:00
13c4e4e8f2 Merge pull request #3728 from jtclemm/granular-updates
Patching various bugs in GRANULAR
2023-04-10 11:11:39 -04:00
415be03f6c improve dependency processing 2023-04-10 09:26:49 -04:00
bc4d664f2b Fully integrate cross-compiling Plumed2 lib into CMake build system 2023-04-10 07:23:46 -04:00
f84a31dfdf change folder for patches, so we can set PLUMED_ROOT accordigly 2023-04-09 01:46:58 -04:00
71700b8765 use explicit target to update/copy precompiled plumed files 2023-04-08 18:07:03 -04:00
891c284754 avoid static code analysis warnings 2023-04-08 16:38:39 -04:00
d71de7cc38 handle exceptions in destructors 2023-04-08 16:36:52 -04:00
d5680f0c6d fix typo 2023-04-08 15:44:56 -04:00
a6a8f2c451 more tweaks for cross-compiling plumed for windows 2023-04-08 15:28:18 -04:00
a98a77041e add option to include PLUMED into cross-compiled Windows binaries 2023-04-08 15:05:46 -04:00
3b01845f11 Updated API versions that are allowed for PLUMED 2023-04-08 19:45:50 +01:00
f7d6592aa6 avoid crash in Pair::single() test on certain inpus 2023-04-08 04:00:10 -04:00
fbf1fcc605 small corrections. remove redundant statement. 2023-04-07 23:48:58 -04:00
227e41e50b spelling 2023-04-07 23:45:47 -04:00
c03ff3b61a fix broken link 2023-04-07 23:45:40 -04:00
37eb81799e update docs, examples, and add performance numbers and version tags 2023-04-07 23:23:50 -04:00
70f1d17495 implement lj/expand/sphere 2023-04-07 18:33:06 -04:00
8085d34b40 fix cutoff argument parsing bug 2023-04-07 18:19:37 -04:00
6b2896db75 update 2023-04-07 18:19:18 -04:00
6ce9e2283e enable and apply clang-format 2023-04-07 18:19:06 -04:00
0f07c5e809 Run clang on MDI fixes 2023-04-07 18:56:40 +00:00
5d893b36c9 Add periodicity warning to MDI documentation 2023-04-07 18:41:12 +00:00
486489acd7 Add support for non-periodic calculations to MDI QMMM 2023-04-07 18:27:08 +00:00
1e531cb25d Merge pull request #3726 from rbberger/cmake_kokkos_hipfft
Add missing hipFFT dependency CMake logic
2023-04-07 11:37:59 -04:00
276e1dd12b Add support for the <KE_ELEC MDI command 2023-04-07 14:24:23 +00:00
317c7761d4 cmake: Skip OpenMP version check for (AMD)Clang 2023-04-07 00:18:55 -06:00
4e8038a4f5 Add DetectHIPInstallation.cmake
Extending CMAKE_PREFIX_PATH is needed in both GPU and KOKKOS package to
make HIP CMake available.
2023-04-06 23:17:23 -06:00
3950765e8f Add missing hipfft-dev to ROCm containers 2023-04-06 22:44:07 -06:00
ebb8eee941 cmake: use find_package for hipfft dependency 2023-04-06 21:12:25 -06:00
dd5763cd3a Fixing interation cutoff in gran wall/region, rerunning relevant examples 2023-04-06 13:58:06 -06:00
ad72e9f6ea Fixing temperature set command and adding check for neighbor size in pair granular 2023-04-06 13:16:46 -06:00
b202f7b3d5 Minor style changes 2023-04-06 12:55:45 -06:00
fbea0af29b Adding J Monti's corrections to contact area/JKR 2023-04-06 12:39:08 -06:00
5b6e8884b4 Add support for non-periodic systems in the MDI fix 2023-04-06 18:11:38 +00:00
4c403e5b71 close and finalize LAMMPS instance in MLIAP example python scripts 2023-04-06 12:58:30 -04:00
ebcb443237 correct link 2023-04-06 11:42:19 -04:00
e82fd31bd4 rename lj/sphere to lj/cut/sphere and add (yet non-functional) lj/expand/sphere 2023-04-06 08:18:56 -04:00
e44aa77403 fix copy-n-paste error 2023-04-06 07:23:49 -04:00
4e48ddb975 No need to use nvcc_wrapper globally when configuring with CMake 2023-04-06 07:21:37 -04:00
8e3ec4d567 whitespace 2023-04-05 18:56:15 -04:00
313c70f211 another tweak 2023-04-05 15:56:11 -06:00
fa1df5ffb9 doc page simplification 2023-04-05 15:54:57 -06:00
eef94ac5a8 use bimodel atom diameter distribution to demo multi-cutoff 2023-04-04 20:21:21 -04:00
6562a4eb14 whitespace 2023-04-04 13:17:29 -04:00
abb32a319e update docs and add example 2023-04-04 12:41:09 -04:00
fed3c02d01 improve error messages and partially apply clang-format 2023-04-04 08:56:30 -04:00
777ba98764 cosmetic 2023-04-04 08:56:07 -04:00
e670a94b8a cosmetic 2023-04-04 08:09:47 -04:00
c9605e1cba update custom linker support also for "mold" (even faster than lld) 2023-04-04 06:06:26 -04:00
106f029941 improve Linux distribution detection for recent Fedora versions 2023-04-04 06:05:03 -04:00
6e09037aa3 incremental improvements 2023-04-04 05:20:53 -04:00
3f636cbad1 Merge branch 'develop' into fix-rigid-enforce2d 2023-04-04 01:49:52 -04:00
d0b86ad612 Merge branch 'develop' into pair-lj-lepton-sphere 2023-04-04 01:38:39 -04:00
56f760d0d8 whitespace 2023-04-03 22:30:39 -04:00
d2565bb1e2 port changes to OPENMP 2023-04-03 22:30:30 -04:00
ac465baf80 fix compilation issue with KOKKOS 2023-04-03 22:29:50 -04:00
e59c9d0f67 silence compiler warning 2023-04-03 21:49:53 -04:00
dfed9bf854 improve error messages 2023-04-03 21:49:43 -04:00
27127a46cc enable and apply clang-format 2023-04-03 21:41:09 -04:00
b53a47b192 Merge branch 'develop' into collected-small-changes 2023-04-03 21:32:32 -04:00
cbf7f66a6f Merge pull request #3717 from evoyiatzis/master
Block regions with bounds defined by equal-style variables
2023-04-03 21:31:17 -04:00
5d34150bed attempty to discuss cutoffs and neighbor list bin vs. multi 2023-04-03 19:23:45 -04:00
8d523c0604 enable fix rigid to support 2d enforcement internally 2023-04-03 17:21:11 -06:00
e0f5215414 give atom style variables access to "radius" property. add check for charge. 2023-04-03 19:08:10 -04:00
dfd16c95ff Merge branch 'develop' into pair-lj-lepton-sphere 2023-04-03 17:46:34 -04:00
c9b6fad6a0 Merge pull request #3723 from stanmoore1/kk_shake_issue
Fix issue with Kokkos fix shake on GPUs from #3719
2023-04-03 17:45:32 -04:00
8e4e0e3749 whitespace 2023-04-03 10:23:15 -06:00
0bac0b4e0f Fix issue with Kokkos fix shake on GPUs from #3719 2023-04-03 10:11:04 -06:00
4e6dffc7cd silence compiler warning, reformat beginning of file. 2023-04-03 11:45:40 -04:00
d5418bd463 Merge pull request #3720 from akohlmey/collected-small-changes
Collected small changes and fixes
2023-04-03 11:13:22 -04:00
15fb6965c1 protect more loops for fixes and computes from segfaults 2023-04-02 22:15:08 -04:00
19683ade92 avoid segfault when returning list of fixes by style 2023-04-02 20:09:25 -04:00
09deafd6d4 modernize lookup of fixes 2023-04-02 17:46:42 -04:00
eb13217498 Merge branch 'patch-4' of github.com:evoyiatzis/lammps into collected-small-changes 2023-04-02 08:51:37 -04:00
5a2160c96e Update fix_indent.rst 2023-04-02 12:55:11 +03:00
590de515e3 Merge branch 'develop' into collected-small-changes 2023-04-01 18:18:56 -04:00
2056ef4aed Merge pull request #3718 from lammps/fix-gcmc-cleanup-group
Cleanup internally created group in fix gcmc
2023-04-01 18:11:41 -04:00
3f40d1ef5d port cutoff changes to OPENMP version 2023-04-01 01:45:13 -04:00
88f3ebe63b make the cutoff distance a cutoff ratio to be multiplied by sigma 2023-03-31 19:36:02 -04:00
ec8e0f84a0 Merge branch 'develop' of github.com:lammps/lammps into granular-kokkos 2023-03-31 16:12:00 -06:00
932d54b5eb Merge branch 'shake_closest' of github.com:stanmoore1/lammps into granular-kokkos 2023-03-31 16:11:45 -06:00
03d6d54435 remove obsoleted Domain::minimum_image_once() 2023-03-31 17:53:56 -04:00
81150b7392 Merge branch 'develop' into collected-small-changes 2023-03-31 17:50:07 -04:00
02babb16cd Merge pull request #3719 from stanmoore1/shake_closest
Refactor fix shake to use `closest_image` instead of `minimum_image_once`
2023-03-31 17:46:17 -04:00
c36ae07bd1 Temp solution for Kokkos min_post_force 2023-03-31 14:25:30 -06:00
06d67756d4 Fix issue with shake stats on GPU 2023-03-31 14:15:20 -06:00
909b20c00a Fix GPU issues 2023-03-31 13:01:25 -06:00
d9fcc4b968 Port Steve's changes to Kokkos 2023-03-31 11:45:33 -06:00
60b83a5732 use Domain::minimum_image() instead of Domain::minimum_image_once()
This way the latter function can be removed once the
fix shake/rattle refactor is complete
2023-03-31 13:43:16 -04:00
4aacbfb24f refactor to silence compiler warnings 2023-03-31 13:26:04 -04:00
5dd7ad4759 Merge branch 'shake_closest' of github.com:stanmoore1/lammps into shake_closest 2023-03-31 11:13:10 -06:00
ad9db3a127 code cleanup 2023-03-31 11:13:03 -06:00
d03fc75329 Fix issues in new Kokkos code 2023-03-31 11:02:11 -06:00
e5a82bc461 Merge pull request #3716 from lammps/remove-fix-latte
Remove fix latte and LATTE package and examples and lib
2023-03-31 12:52:47 -04:00
51beb97dd0 Fix compile error with BIGBIG 2023-03-31 10:23:30 -06:00
a6576046e0 Missed change 2023-03-31 10:18:24 -06:00
31bd8ce0c8 Port changes to Kokkos 2023-03-31 09:55:17 -06:00
b6ff9f0607 Remove other instances of minimum_image 2023-03-31 09:54:09 -06:00
11dbfab4cc Need xshake values on ghosts, even for 1 proc 2023-03-31 08:39:51 -06:00
f16c8b4cc4 recognize "Maintenance" tag in addition to "Development" 2023-03-31 09:36:00 -04:00
2ac369a3e1 accommodate for Development marker in RunCouple* unit tests 2023-03-31 09:23:23 -04:00
63c86ccc61 write out and check for unit settings marker in data files 2023-03-31 08:10:50 -04:00
9021129799 accommodate for "Development" marker in simple RunLammps unit tests 2023-03-31 08:10:27 -04:00
42758d0780 delete dynamically allocated arrays in destructor 2023-03-31 03:28:09 -04:00
f444fe8fdf fix spelling error 2023-03-31 03:12:38 -04:00
c37247eb5a add restart info in doc 2023-03-31 03:09:34 -04:00
25c449df8e enable restart in fix pimd/langevin 2023-03-31 03:03:17 -04:00
18e4ed2e32 do not transform velocity to normal mode in setup 2023-03-31 00:59:35 -04:00
1c8aff1297 Fix copy/paste issue 2023-03-30 15:18:33 -06:00
f1d1e9d241 Refactor fix shake to use closest_image instead of minimum_image_once 2023-03-30 13:42:48 -06:00
3d652af44d add unit tests for lj/sphere and lepton/sphere 2023-03-30 14:44:14 -04:00
0da6d71757 initialize all pointers to null 2023-03-30 14:19:07 -04:00
8439c0e0c6 use the diameter for sigma in lj/sphere. update docs 2023-03-30 14:14:30 -04:00
664a022c46 Merge branch 'develop' into pair-lj-lepton-sphere 2023-03-30 13:52:27 -04:00
2fd5c4a192 programming style and whitespace fixups 2023-03-30 13:38:01 -04:00
beb3feb73e add exclusion group cleanup also to fix charge/regulation 2023-03-30 13:37:36 -04:00
c4fd1070b2 cleanup 2023-03-30 11:23:05 -06:00
ea5c068f5a also delete rotation group and add same operations to FixWidom 2023-03-30 11:21:41 -06:00
c3df4a9485 whitespace 2023-03-30 13:20:10 -04:00
5f45bbe243 remove allocated exclusion group 2023-03-30 10:32:57 -06:00
6b25b67a08 fix typo 2023-03-30 09:43:26 -04:00
751dbd08b6 Update region.rst 2023-03-30 15:47:36 +03:00
b1e1e85279 fix compilation issue 2023-03-30 15:39:19 +03:00
6d23551aed actual code for equal-variable block regions 2023-03-30 15:20:26 +03:00
f0b290dadc methods & variables definitions for equal-style blocks 2023-03-30 15:08:02 +03:00
75f5130f5f add missing override 2023-03-30 05:28:23 -04:00
9cd5557ac4 use the LAMMPS_UPDATE macro to indicate that this is a development version 2023-03-29 17:59:57 -04:00
6ed7d24363 Merge branch 'develop' into collected-small-changes 2023-03-29 17:57:57 -04:00
a382f4ce3c some more documentation updates 2023-03-29 17:48:16 -04:00
c68e71a24f update Purge.list and .gitignores 2023-03-29 17:33:58 -04:00
0965d9da2b remove references to LATTE packages in CMake scripts 2023-03-29 17:33:38 -04:00
2a7f3d002a sync with develop 2023-03-29 14:48:24 -06:00
44fc1c55f6 Merge branch 'develop' into remove-fix-latte 2023-03-29 14:43:45 -06:00
35121a2ed8 Merge pull request #3715 from akohlmey/update-for-sphinx
Small update for the 28 March 2023 release to recover Sphinx formatting of the Documentation website
2023-03-29 13:48:53 -04:00
e195b840f2 restrict Sphinx version to pre-6.0 to recover lost website assets 2023-03-29 12:00:25 -04:00
ea7e75798d include an additional latex package and an nsis plugin for building everything 2023-03-29 11:58:05 -04:00
1a17ecdeb8 add OPENMP package versions of pair styles lj/sphere and lepton/sphere 2023-03-28 21:03:20 -04:00
08f64e1edb add pair style lepton/sphere 2023-03-28 21:03:20 -04:00
e338c648bb add pair style lj/sphere 2023-03-28 21:03:20 -04:00
ff96eb2e84 Merge pull request #3706 from akohlmey/next_patch_release
Update version strings for feature release
2023-03-28 20:57:19 -04:00
bb01b849a9 Merge pull request #3667 from akohlmey/pair_style_tutorial
Add detailed developer information about adding pair styles and use new born/gauss style as example
2023-03-28 20:07:06 -04:00
8a77837f21 spelling 2023-03-28 18:32:50 -04:00
304778b617 cosmetic 2023-03-28 18:22:09 -04:00
68d79274cd Merge branch 'develop' into pair_style_tutorial 2023-03-28 18:18:23 -04:00
f9edd3a539 Merge pull request #3664 from hoba87/develop
simplify execution of mliap pytorch example
2023-03-28 18:05:22 -04:00
7d5d2b909f Merge pull request #3698 from yafshar/set-command-type-label
use of type labels in set commands
2023-03-28 16:07:14 -04:00
b456beb62f Reorganizing intel npair to work with cmake, adding intel stencil 2023-03-28 13:55:12 -06:00
ee3c000339 Merge branch 'bugfix-doc-amoeba' of github.com:robeme/lammps into pair_style_tutorial 2023-03-28 09:20:06 -04:00
7738b67737 Adding mass to python numpy unittest of KE 2023-03-28 09:17:11 -04:00
2b9962ea68 Bugfix amoeba doc header 2023-03-28 11:15:29 +02:00
824ed3379a avoid segmentation fault when atom map is cleared before sametag is allocated 2023-03-28 01:48:16 -04:00
19da998932 add Jacobian into utils/sphinx-config/false_positives.txt 2023-03-27 23:11:24 -04:00
849933a687 add difference part in fix pimd doc 2023-03-27 23:06:05 -04:00
2610feb270 update version string for release 2023-03-27 22:48:21 -04:00
d3a766af2d Merge branch 'develop' into pair_style_tutorial 2023-03-27 22:46:57 -04:00
f6d94a95dd fix whitespace in fix pimd doc 2023-03-27 22:45:14 -04:00
42fa5b736d Remove the white space in doc 2023-03-27 19:41:45 -07:00
aa918d3d1e Fix a typo 2023-03-27 19:34:34 -07:00
cbcba31d47 Fix the typestr replacement with arg issue 2023-03-27 19:23:29 -07:00
561f80ccc7 add example for fix pimd/langevin with reduced units 2023-03-27 22:21:38 -04:00
4e4ae34de6 update doc with output info and reduced unit instructions 2023-03-27 22:16:41 -04:00
53c452506f Merge pull request #3705 from akohlmey/collected-small-fixes
Collected small fixes and updates
2023-03-27 21:34:04 -04:00
89ceb1688f Merge pull request #3712 from stanmoore1/kk_pppm
Remove duplicated code in Kokkos PPPM
2023-03-27 21:23:00 -04:00
28acbdb4fc Also rename function to prevent future bugs 2023-03-27 16:53:23 -06:00
7460cc682d rewording of doc page 2023-03-27 16:39:37 -06:00
781eb934c1 Adding mass to python numpy unittest of KE 2023-03-27 16:37:11 -06:00
165b40b22a Remove duplicated code in Kokkos PPPM 2023-03-27 16:29:17 -06:00
47e3230186 apply logic fix from @jtclemm 2023-03-27 15:52:52 -04:00
c319231395 Merge branch 'develop' into consolidate_neigh_classes 2023-03-27 10:33:04 -06:00
5b37ff8160 Clarify the doc for type label 2023-03-27 09:13:45 -07:00
b8ff478d78 Merge pull request #3709 from GenieTim/minor-fixes-pr-27032023
Minor fixes that might be of interest...
2023-03-27 11:45:06 -04:00
8e8bb0d2b3 Document the useage of variable vectors in fix ave/correlate/long 2023-03-27 09:11:52 +02:00
58b9466852 Fix typo in berendsen 2023-03-27 09:10:00 +02:00
0334dcaf57 Fix issue where after expanding wrong argument errors were thrown 2023-03-27 09:09:44 +02:00
317ce28538 ensure that the atom map is initialized. Fixes #3708 2023-03-27 02:53:27 -04:00
bc5e45af6c remove redundant line 2023-03-26 23:22:13 -04:00
4244e458f5 silence compiler warnings about unused variables and parameters 2023-03-26 21:50:29 -04:00
584f526e71 use emplace instead of push 2023-03-26 21:40:49 -04:00
4234c04e6d use powint() where possible; simplify 2023-03-26 21:40:41 -04:00
0d8623c3f2 simplified logic from clang-tidy 2023-03-26 21:33:37 -04:00
79ddd1445f Misc clean ups, initial draft of interface 2023-03-26 17:04:56 -06:00
7787734496 move check for non-ellipsoid atoms to compute function so it is compatible with hybrid pair styles 2023-03-26 17:28:18 -04:00
a1a0186438 move initialization of all pointers to null to initializer list 2023-03-26 17:26:47 -04:00
d31f754451 simplify 2023-03-26 17:26:03 -04:00
6facb8d424 use override instead of virtual as per style conventions 2023-03-26 17:19:33 -04:00
bfb3457b9e Adding memory usage 2023-03-26 14:44:01 -06:00
98050c96cc Cleaning up kernel compute 2023-03-26 14:30:34 -06:00
908c32788c Cleaning up fix rheo, initial sketch of kernel compute 2023-03-25 20:17:17 -06:00
5390b2b0aa fix typo in test 2023-03-25 22:01:17 -04:00
41e13e99fb avoid uninitialized data access 2023-03-25 21:50:02 -04:00
e446b950d9 silence compiler warnings 2023-03-25 19:10:28 -04:00
315d0733f7 improve error messages and remove redundant fmt::format() calls 2023-03-25 19:07:23 -04:00
cfac692012 plug memory leaks in fix electrode/conp 2023-03-25 18:58:38 -04:00
47e3da2c7b fix uninitialized data access bug 2023-03-25 18:09:23 -04:00
5074d589fe delete created typestr 2023-03-25 08:25:56 -07:00
5c4dd6d5a3 plug memory leaks 2023-03-25 10:31:00 -04:00
c667b5d8dc complete documentation of version change 2023-03-25 10:26:07 -04:00
4de0cd762f use powint() instead of pow() for faster and more accurate results 2023-03-25 10:12:05 -04:00
8cd34af4f0 enable and apply clang-format to a whole bunch of small .cpp files in src/ 2023-03-25 09:59:25 -04:00
22a1cf935e enable and apply clang-format, remove redundant code, improve error message for EAM potential pair styles 2023-03-25 06:48:59 -04:00
7edb42f190 remove redundant code 2023-03-25 06:30:30 -04:00
974d560453 enable and apply clang-format 2023-03-25 06:30:19 -04:00
0d145f317f update version strings to 28 March 2023 for upcoming release 2023-03-25 06:14:52 -04:00
f906aeee9b spelling 2023-03-25 06:08:43 -04:00
19df5ff811 fix typo 2023-03-25 06:06:58 -04:00
529e81e142 enable and apply clang-format 2023-03-25 06:04:36 -04:00
1d13af8057 check is already done in Input::pair_coeff() 2023-03-25 06:04:23 -04:00
c0f0edfaba tweak sphinx config that PDF and HTML manual have the same chapter numbers 2023-03-25 06:04:06 -04:00
d98435f435 removing merge conflict 2023-03-24 22:02:30 -06:00
29edfc45d7 Adding heat/temperature checks/zeroing to thermal fix 2023-03-24 21:59:17 -06:00
7ec1d1e330 discuss derived pair style classes that only modify some minor detail 2023-03-24 21:43:51 -04:00
1a234a4351 update pair style writing docs according to suggestions by @sjplimp 2023-03-24 21:43:13 -04:00
72783d6cfd Merge branch 'develop' into pair_style_tutorial 2023-03-24 19:28:04 -04:00
131173d062 Merge branch 'develop' into granular-kokkos 2023-03-24 19:23:04 -04:00
ddaa008ede Merge pull request #3691 from akohlmey/refactor-compute-chunk
Refactor per-chunk computes to use ComputeChunk class with shared functionality
2023-03-24 19:07:41 -04:00
a09013986a update docs for python package installation and building of wheel file 2023-03-24 18:02:01 -04:00
ab48b834f7 refactor python module wheel building and installation to be less prone to race conditions 2023-03-24 17:43:52 -04:00
b46b786a3f Merge pull request #3 from EricPalermo/rheo
Rheo
2023-03-24 15:43:30 -06:00
0a3a4c527d generalized density in dT calculation 2023-03-24 16:43:34 -04:00
bf669d526b test adding file 2023-03-24 15:38:26 -04:00
45fabe74b9 Add TBD to inform the users for the new addition not available in older versions 2023-03-24 08:52:16 -07:00
1991332887 Merge branch 'develop' of github.com:lammps/lammps into kk_update_4.0 2023-03-24 09:17:32 -06:00
2a6a21eba3 Merge branch 'develop' of github.com:lammps/lammps into granular-kokkos 2023-03-24 09:05:57 -06:00
aec41d60de Merge branch 'granular-kokkos' of github.com:valleymouth/lammps into granular-kokkos 2023-03-24 09:05:38 -06:00
294f8c0d80 Fix a few more issues 2023-03-24 09:04:45 -06:00
ff622f10ea Remove extra space 2023-03-24 07:13:54 -07:00
d83386de56 ATOM_SELECT uses numerical id for atom ID 2023-03-24 07:12:09 -07:00
23524c6655 use of type labels in set commands 2023-03-24 06:55:52 -07:00
83b4e18704 update doc 2023-03-23 21:05:07 -04:00
bd59c3ea69 remove dead code 2023-03-23 18:45:25 -04:00
1666f5f903 Merge branch 'develop' into refactor-compute-chunk 2023-03-23 18:34:00 -04:00
ee9c7cbe3a Merge pull request #3701 from stanmoore1/kk_4.0_deprecated
Remove deprecated Kokkos code
2023-03-23 18:07:56 -04:00
f1b0e911e1 support using old fix wall/gran files with KOKKOS in CMake 2023-03-23 17:56:26 -04:00
47c2103930 Merge pull request #3652 from athomps/gcmc-region-triclinic
Moved region check from constructor to init()
2023-03-23 17:48:07 -04:00
5be5d8be7c Merge pull request #3703 from lammps/drude-mpi-wait-error
bug fix for fix rigid nh/npt small error in MPI message sizes
2023-03-23 17:42:37 -04:00
487bb24896 Temporarily preserve old version of fix wall/gran for Kokkos 2023-03-23 15:42:21 -06:00
51e3db6a6d Updated LJ reference logfile because reported atom counts were mysteriously wrong 2023-03-23 14:02:40 -06:00
0a5f523eae whitespace 2023-03-23 13:51:59 -06:00
313c86af6a Merge branch 'develop' of github.com:lammps/lammps into granular-kokkos 2023-03-23 13:50:01 -06:00
1654b74fb6 Fix a few more issues 2023-03-23 13:38:31 -06:00
1ee2a7bff4 correct check for incompatible rigid fixes 2023-03-23 15:34:54 -04:00
bb1f1a7593 modernize check for fix drude. print warning about order of fixes with rigid. 2023-03-23 15:19:51 -04:00
3b3325076a whitespace 2023-03-23 14:31:08 -04:00
d846b1b952 Merge branch 'develop' into drude-mpi-wait-error 2023-03-23 14:30:47 -04:00
92b78d6804 Merge pull request #3702 from lammps/voronoi-tilt-bug
bug fix for compute voronoi with triclinic simulation boxes
2023-03-23 14:23:14 -04:00
3da45d2f9e miscount of comm forward values in fix_rigid_nh_small 2023-03-23 11:28:17 -06:00
ed8b06a756 Merge pull request #3628 from lammps/fix-mdi-qmmm
Add a fix mdi/qmmm command for running QMMM via MDI code coupling
2023-03-23 12:33:00 -04:00
b669c793fc compute bounding box on Voronoi sub-domain correctly for triclinic tilted domains 2023-03-23 09:27:09 -06:00
19efa08778 Remove unused volatile overloads 2023-03-23 09:06:08 -06:00
8d0de74d5c Remove deprecated code 2023-03-23 09:05:48 -06:00
5c94806a1d update doc 2023-03-23 01:59:38 -04:00
0007b7c9fe Merge branch 'develop' into pair_style_tutorial 2023-03-23 01:23:36 -04:00
3964321e0b Merge branch 'develop' into rheo 2023-03-22 21:53:36 -06:00
beb6f934f8 adding new peratom storage to pressure 2023-03-22 21:44:11 -06:00
b550d72e38 Fixing merge conflicts 2023-03-22 21:35:54 -06:00
886c642e01 Cleaning up pairstyle 2023-03-22 21:15:54 -06:00
7587eaf763 Logic tweak 2023-03-22 19:58:57 -06:00
12e0131abf Merge pull request #3693 from akohlmey/collected-small-changes
Collected small changes and fixes
2023-03-22 21:56:22 -04:00
667ba0febb update README files to have more conventional options and settings 2023-03-22 20:42:54 -04:00
8149386aec Merge pull request #3699 from lammps/compute-chunk-atom-bug
fix ids once bug in compute chunk/atom
2023-03-22 20:17:24 -04:00
bad1188c52 Reorganizing peratom arrays 2023-03-22 17:27:51 -06:00
9470169d2f Merge pull request #3696 from jtclemm/BPM
Minor updates/patches for BPM, rigid, and multi
2023-03-22 19:14:47 -04:00
737ef160d2 one more file 2023-03-22 13:47:07 -06:00
5e85baf919 update of quantum code repos and instructions and log files 2023-03-22 13:46:20 -06:00
872a4e2999 cosmetic. remove commented out debug code. 2023-03-22 15:03:52 -04:00
56ac387e6f synchronize Kokkos version of grow_atoms() with base version 2023-03-22 15:02:49 -04:00
b5e1bbfa6f move fix property/atom property type enumerator to class definition in header 2023-03-22 15:02:14 -04:00
1463e2c52b Merge branch 'develop' of https://github.com/lammps/lammps into pimd_langevin 2023-03-22 13:44:53 -04:00
1370f05714 Elaborating on the scaling of multi 2023-03-22 11:33:17 -06:00
cc2106397a fix ids once bug in compute chunk/atom 2023-03-22 10:18:50 -06:00
06d6c183fb Merge branch 'BPM' of github.com:jtclemm/lammps into BPM 2023-03-22 09:36:47 -06:00
669397b092 fixing exponent in multi documentation 2023-03-22 09:36:29 -06:00
375eb46450 README edits 2023-03-22 09:24:04 -06:00
91eb544979 address spelling and grammar issues flagged by languagetool.org 2023-03-22 01:52:44 -04:00
91f3edb63b Merge pull request #73 from jtclemm/pair_style_tutorial
Fix some typos and grammar issues. Thanks @jtclemm.
2023-03-22 01:26:34 -04:00
a6c7eef624 a few possible typos 2023-03-21 21:32:20 -06:00
115c9ee3af Add files via upload 2023-03-21 23:14:18 -04:00
bd9ea586a7 Delete C_Willman_PRB2022.quadratic.snapcoeff 2023-03-21 23:13:49 -04:00
6fc17bfa17 Add files via upload
Coefficient and parameter files for carbon SNAP potential as described in Phys. Rev. B 106, L180101  (2022)
2023-03-21 22:50:17 -04:00
3c5083d75d implement suggestions from @jtclemm 2023-03-21 21:36:27 -04:00
af8d4788b8 fix doc errors 2023-03-21 10:11:37 -04:00
2c0ac82996 update doc press -> iso 2023-03-21 09:54:29 -04:00
32efa1a3af update fix pimd/langevin doc 2023-03-21 09:23:22 -04:00
2cb9d2784b add false_positive for fix pimd/langevin doc 2023-03-21 09:23:04 -04:00
f94bea8d97 correct fix pimd/langevin example file permission 2023-03-21 09:22:37 -04:00
3d47c5c6f0 add x/y/z barostating options 2023-03-21 08:38:14 -04:00
1101383b51 add versionadded tags 2023-03-20 22:07:02 -04:00
4351ada794 improve error message throughout fix adap 2023-03-20 21:05:11 -04:00
badfd0bc40 Specifying dimensions, lamda->lambda 2023-03-20 15:34:52 -06:00
d15e13d475 Reverting mistakenly deleted line, fixing duplicated text in granular doc 2023-03-20 14:56:39 -06:00
ac9389f5cb Slight rewrite 2023-03-20 14:24:21 -06:00
7876fb7ee7 Fixing merge conflicts 2023-03-20 14:19:58 -06:00
0dd8a6aea2 add document for keywords of fix pimd/langevin 2023-03-20 14:27:58 -04:00
7a38f49a21 add lj example for fix pimd/langevin 2023-03-20 14:10:09 -04:00
be8c0b9835 enable fixcom feature of fix pimd/langevin 2023-03-20 14:08:42 -04:00
ecc6269648 add useful comments 2023-03-20 10:52:20 -04:00
9f22974209 Merge branch 'develop' of github.com:agiliopadua/lammps into collected-small-changes 2023-03-20 10:50:05 -04:00
3280d6b786 Fixed bug in fep tools 2023-03-20 14:47:40 +01:00
a320f24247 Fixed bug in fep tools 2023-03-20 14:46:01 +01:00
e317b0eb7e update kim unit tests for recent changes, make variable for extended test an option 2023-03-20 07:11:47 -04:00
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
57e86346a6 fix bug where floating point data was formatted as integer since the second column was assumed to be the type 2023-03-19 18:20:31 -04:00
03b63de588 update .gitignore for recently added styles 2023-03-19 16:05:53 -04:00
ece7697f6a cosmetic 2023-03-18 23:16:59 -04:00
a2a4dcba06 complete sections about variants of potentials 2023-03-18 23:16:42 -04:00
c9af040be9 improve error message 2023-03-18 20:00:58 -04:00
26941e4a2e complete first draft of full pair style explanation and start with many-body 2023-03-18 20:00:41 -04:00
29e724b810 add unit test for compute dipole/tip4p/chunk 2023-03-18 11:14:32 -04:00
d8f41a9032 support sp in fix pimd/nvt 2023-03-18 10:25:05 -04:00
7beec96dd3 support sp in fix pimd/langevin 2023-03-18 10:23:09 -04:00
fd21a584bf update fmass part of fix pimd/langevin document 2023-03-18 10:17:01 -04:00
1ccb0f8d8d Introduce ComputeChunk class with shared functionality of all /chunk computes 2023-03-18 05:55:03 -04:00
29a68c37c5 Refactor atom list fill to reduce GPU/CPU data transfer 2023-03-17 17:11:43 -06:00
76c19410c7 correct fmass input of fix pimd/langevin 2023-03-17 17:44:48 -04:00
008147d1f3 correct mass preconditioning of fix pimd/langevin 2023-03-17 17:41:29 -04:00
0e22e36b94 add method nmpimd note for fix pimd/langevin document 2023-03-17 15:38:48 -04:00
ad25af56a9 add reference in fix pimd/langevin document 2023-03-17 15:29:26 -04:00
06e9163e65 Add missing data movement flags for GPUs 2023-03-17 12:52:59 -06:00
68d01429ea Fix error message 2023-03-17 11:50:07 -06:00
882a72987b Port compute_erotate_sphere to Kokkos 2023-03-17 11:49:42 -06:00
fceb9a6925 Error out if using onesided or newton on 2023-03-17 10:04:29 -06:00
aeb3b92148 Fix issues 2023-03-17 09:45:23 -06:00
14e30d61cf more content 2023-03-17 08:36:10 -04:00
aca8bc4ea9 Merge branch 'develop' into pair_style_tutorial 2023-03-17 05:42:08 -04:00
fce1f8e0af Merge pull request #3687 from akohlmey/collected-small-changes
Collected small changes and fixes
2023-03-17 03:56:35 -04:00
21c71bf35d mention project boards. remove reference to milestones. 2023-03-16 23:36:13 -04:00
4a7ab34568 lift restriction to Sphinx version < 6.0, enable jquery extension 2023-03-16 23:07:18 -04:00
a232915e71 update example logs for changed granular pair style 2023-03-16 22:37:58 -04:00
073f21c0d9 spelling 2023-03-16 22:35:25 -04:00
cc7c4bed76 Merge branch 'develop' into consolidate_neigh_classes 2023-03-16 20:30:38 -06:00
c9b383d3f0 grammar 2023-03-16 22:18:35 -04:00
e7b7d5804e Update URL for EPEL 2023-03-16 21:23:02 -04:00
08153b7b4d trim list of known plumed source packages. 2023-03-16 21:01:32 -04:00
4e221803b0 Merge branch 'develop' into collected-small-changes 2023-03-16 20:53:04 -04:00
7c0fdbe2d9 Merge pull request #3512 from jtclemm/gran-temp
Refactoring the GRANULAR package
2023-03-16 20:47:40 -04:00
ea20c934ea print warning when using fix efield with a TIP4P pair style 2023-03-16 18:33:23 -04:00
bf94448843 simplify and avoid segfault without pair style 2023-03-16 18:32:54 -04:00
5e6004961d Merge branch 'develop' into collected-small-changes 2023-03-16 18:00:36 -04:00
224b1369a1 Merge pull request #3685 from akohlmey/more-tip4p-support
Add TIP4P versions for compute dipole, compute dipole/chunk and fix efield
2023-03-16 17:59:58 -04:00
f1539d0ef5 silence compiler warnings 2023-03-16 17:53:58 -04:00
b41d826e0a Merge branch 'develop' into gran-temp 2023-03-16 17:44:36 -04:00
d3a23817f1 disable purging old wheel files 2023-03-16 17:25:11 -04:00
120f5cf7f1 Minor patches to BPM, multi, and rigid 2023-03-16 15:20:18 -06:00
4a66389bf1 purge build folder from within install.py script 2023-03-16 16:39:34 -04:00
feb1b9e029 fix whitespace 2023-03-16 12:55:30 -04:00
180ed2553c Merge branch 'develop' into collected-small-changes 2023-03-16 12:54:48 -04:00
6069e8cb14 Merge pull request #3684 from jrgissing/encode_improper_symmetries
Encode improper symmetries
2023-03-16 12:33:15 -04:00
d71a78449a fix two bugs in the ndx2group command 2023-03-16 12:29:51 -04:00
45a3e30f6c Merge pull request #3689 from rbberger/cmake_optional_python_install
cmake: remove pip install from install target
2023-03-16 10:46:15 -04:00
f63befc80f consolidate replicated commands to single location 2023-03-16 10:29:00 -04:00
5c5e7b7e48 update fix mscg example 2023-03-16 08:39:23 -04:00
0e3dc6fefa Download the latest MSCG snapshot to address bug in library. 2023-03-16 08:01:26 -04:00
a8c27a2275 clarify symmatoms convention 2023-03-15 23:55:13 -04:00
4940bda15f remove references to "make install" for Python package installation 2023-03-15 23:08:46 -04:00
0bf0fd98cc explicitly specify central atom 2023-03-15 21:29:14 -04:00
56f4aaff47 explicitly specify central atom 2023-03-15 21:28:05 -04:00
fa9062a87e make Force::special_lj and Force::special_coul accessible through the library interface 2023-03-15 18:39:32 -04:00
5071b2f016 update document notes part 2023-03-15 17:25:25 -04:00
4e0af69b67 update documentation keyword part 2023-03-15 17:06:28 -04:00
aa84548002 set mapflag=0 if there is only 1 bead 2023-03-15 16:45:18 -04:00
0aca0435ef delete mapflag input script interface 2023-03-15 16:43:44 -04:00
3f965a1c33 format the specification of external pressure 2023-03-15 16:25:56 -04:00
f7bc270c00 Do not initialized random number generator when there is no thermostat 2023-03-15 14:51:04 -04:00
77b9fe37ba delete dead code 2023-03-15 14:00:56 -04:00
2c6fe1e8bc add p_md calculation 2023-03-15 13:57:42 -04:00
32c695a7d4 tag all TIP4P related pair style tests as unstable 2023-03-15 12:17:57 -04:00
c472821d67 remove outdated MDI example folder 2023-03-14 23:31:16 -04:00
730e5d2e64 Merge pull request #3671 from akohlmey/bond-harmonic-restrain
Add new bond style harmonic/restrain
2023-03-14 16:40:28 -04:00
d459c3763d whitespace 2023-03-14 13:53:04 -04:00
c3dba53040 update for more recent MDI and PySCF versions 2023-03-14 13:52:56 -04:00
04dfda9952 update MDI LAMMPS-on-LAMMPS examples 2023-03-14 12:00:20 -04:00
d8d1235773 update MDI library version to 1.4.16 2023-03-14 11:59:19 -04:00
88c8781396 silence compiler warnings 2023-03-14 10:17:20 -04:00
5dc9a570fa Merge branch 'develop' into pair_style_tutorial 2023-03-14 10:10:52 -04:00
14180774b7 mention OpenMP support in the GPU library 2023-03-14 07:00:34 -04:00
a328537ee3 Merge branch 'develop' of https://github.com/lammps/lammps into pimd_langevin 2023-03-14 02:48:29 -04:00
b4dc074638 delete global variable inv_volume 2023-03-14 02:46:31 -04:00
d2faf86214 Merge branch 'develop' into bond-harmonic-restrain 2023-03-14 00:41:28 -04:00
266f8fb67e clean up fix pimd/langevin 2023-03-13 23:42:25 -04:00
03454aeefb compile GPU library with thread support when BUILD_OMP is enabled 2023-03-13 23:07:11 -04:00
0e2b2eb266 Merge branch 'develop' into collected-small-changes 2023-03-13 22:47:08 -04:00
17f39d9d2c rename fix STORE/PERATOM to STORE/ATOM 2023-03-13 22:33:47 -04:00
e4ad330c2b Merge pull request #3675 from wmbrownIntel/mar2023_gpu_misc
Misc Improvements to GPU Package
2023-03-13 21:43:08 -04:00
1031110d93 update docs 2023-03-13 19:55:52 -04:00
ef67f790a2 whitespace 2023-03-13 19:43:44 -04:00
3ba37fc954 Merge branch 'develop' into bond-harmonic-restrain 2023-03-13 19:43:16 -04:00
c369c0252f fix issues with changes in fix STORE/PERATOM 2023-03-13 19:43:08 -04:00
92302d0f22 Merge branch 'develop' into mar2023_gpu_misc 2023-03-13 19:02:20 -04:00
3815c0ef76 modify fix STORE/PERATOM and callers to allow ghost comm 2023-03-13 17:00:54 -06:00
2d8936068e Merge pull request #3679 from ndtrung81/dielectric-bugfixes
Dielectric package doc update and bugfix
2023-03-13 18:27:50 -04:00
6bec23e7db Merge pull request #3668 from evoyiatzis/master
Implementation of analytical expressions for Born matrix
2023-03-13 17:19:05 -04:00
8353c8336c small tweaks 2023-03-13 15:31:45 -04:00
961c847c00 Merge branch 'develop' into pair_style_tutorial 2023-03-13 15:21:15 -04:00
21293f1c08 update links and hashes for new plumed2 releases 2023-03-13 12:10:41 -04:00
ac848c91e9 add versionadded tag for fix mdi/qmmm 2023-03-12 17:19:50 -04:00
6cb45a5e0f update minimal MDI test/demo for current code 2023-03-12 17:08:17 -04:00
11d220e956 update .gitignore 2023-03-12 16:49:45 -04:00
c34f398b5c spelling and formatting fixes and improved consistency. fix broken/missing links. 2023-03-12 16:48:21 -04:00
a6185fa0b2 fixup whitespace 2023-03-12 00:56:17 -05:00
1887495434 Merge branch 'develop' into fix-mdi-qmmm 2023-03-12 00:53:40 -05:00
a8c1359c54 make energy handling consistent for variable field 2023-03-11 18:56:29 -05:00
251fac2c60 add unit tests for fix efield/tip4p 2023-03-11 18:43:46 -05:00
91aae79fdc add docs for fix efield/tip4p 2023-03-11 18:13:44 -05:00
da9559d92c rewrite TIP4P molecule handling to process each force contribution only once 2023-03-11 18:13:44 -05:00
cf6f6829ae cosmetic 2023-03-11 18:13:44 -05:00
6b6f8087d3 output potential energy with fix efield with equal style variables 2023-03-11 18:13:44 -05:00
37b7ba7cae all functionality of fix efield/tip4p present (untested) 2023-03-11 18:13:44 -05:00
2de3f4d261 implementation for fix efield/tip4p for static field (untested) 2023-03-11 18:13:43 -05:00
b5804b320c update/improve/correct error messages in fix efield and make compatible with derived class 2023-03-11 18:13:36 -05:00
2a6515f765 use consistent names in error messages 2023-03-11 18:12:09 -05:00
02854c1d5c add compute dipole/tip4p and compute dipole/tip4p/chunk 2023-03-11 18:12:09 -05:00
416df96c1b add extract support for TIP4P parameters to cutoff versions 2023-03-11 18:12:09 -05:00
7b07fe04c8 Merge pull request #3663 from akohlmey/collected-small-changes
Collected small changes and fixes
2023-03-10 22:24:56 -05:00
2b6c2e07a4 add -help flag and help message output. step version number. update docs. 2023-03-10 21:26:40 -05:00
80233f353f port UTF-8 to ASCII substitution to msi2lmp and apply to reading .frc files 2023-03-10 20:56:55 -05:00
2dad2586f1 update help message 2023-03-10 20:16:39 -05:00
b75a8e5d31 Merge branch 'develop' into collected-small-changes 2023-03-10 19:10:44 -05:00
d28c3cf674 Merge pull request #3680 from akohlmey/cmake-fixup-linking
Address double linking issue with Kokkos libraries
2023-03-10 19:07:55 -05:00
233c55337c fix typo 2023-03-10 12:35:17 -05:00
e8871d990a clarify 2023-03-10 09:16:00 -05:00
45da03340a update package info; delete unused code 2023-03-10 02:56:44 -05:00
f301c00406 delete unused nmpimd_transform 2023-03-10 02:37:15 -05:00
da6d3de48e correct planck's constant for lj units 2023-03-10 02:06:40 -05:00
5a593f06f6 apply make fix-whitespace 2023-03-10 02:00:18 -05:00
882df6ad23 typo 2023-03-09 22:08:03 -05:00
53056f47ed encode improper symmetries 2023-03-09 22:04:08 -05:00
b6756c0319 update docs about using data files 2023-03-09 13:00:59 -05:00
d5f6c7e0be Implement born_matrix in pair_lj_cut_coul_cut.cpp 2023-03-09 10:06:04 +02:00
544a4e3d7f Include method declaration in pair_lj_cut_coul_cut.h 2023-03-09 10:03:57 +02:00
7da2f62bf6 Implement born_matrix in pair_nm_cut_coul_cut.cpp 2023-03-09 08:33:57 +02:00
0088607bc7 Include method declaration in pair_nm_cut_coul_cut.h 2023-03-09 08:31:44 +02:00
4b434c9a03 remove ifdefs 2023-03-08 18:40:29 -05:00
189be4625e improve/correct error messages for fix efield 2023-03-08 18:25:58 -05:00
2a3f753c41 Merge branch 'pimd_langevin' of github.com:Yi-FanLi/lammps into pimd_langevin 2023-03-08 17:09:16 -05:00
bbed5adeac fix merge conflict 2023-03-08 17:08:56 -05:00
c3c99b701c correct underline 2023-03-08 07:21:21 -05:00
7e1a21ad6e Merge branch 'patch-1' of github.com:alanhsieh4444/lammps into collected-small-changes 2023-03-08 07:19:55 -05:00
c96ac858bf GPU Package: Adding JIT test for OpenCL prefetch support. 2023-03-07 21:43:19 -08:00
451f3f71b8 Update molecule.rst 2023-03-08 13:37:46 +08:00
4220944ace cosmetic 2023-03-08 00:25:08 -05:00
fc8a048662 add unit test 2023-03-07 21:22:57 -05:00
9a8b5ebae0 use more unusual name for per-atom property 2023-03-07 20:36:28 -05:00
fd2cda66bb handle the case when the bond style is recreated after a restart 2023-03-07 20:18:41 -05:00
381d0445ed fix spelling issues 2023-03-07 19:41:50 -05:00
68ed9ec85e Merge branch 'develop' into collected-small-changes 2023-03-07 19:39:26 -05:00
010b030b56 update docs and mention alternatives and describe differences 2023-03-07 19:38:34 -05:00
e2aa948fac Fix more issues 2023-03-07 16:30:18 -07:00
d32411f61a recover restart ability and avoid memory leak 2023-03-07 16:37:14 -05:00
323248faef Merge branch 'develop' into bond-harmonic-restrain 2023-03-07 15:49:42 -05:00
01c03bddf6 improve style mismatch warning messages in read_data 2023-03-07 15:27:29 -05:00
c2d0734bc4 rerun updated examples and record log files 2023-03-07 14:36:56 -05:00
b21d915a7c simplify 2023-03-07 13:52:34 -05:00
2aa0e76ad9 avoid linking errors due to nvcc wrapper warning silencing. 2023-03-07 13:52:12 -05:00
2a3d0458d5 simplify 2023-03-07 13:47:39 -05:00
19a3e2f6b3 CUDA 12 is now tested 2023-03-07 13:47:09 -05:00
4ed49d2f21 make Input::file(const char *) function safe for passing a null pointer 2023-03-07 13:44:34 -05:00
ce1956e60b avoid linking errors due to nvcc wrapper warning silencing. 2023-03-07 13:43:27 -05:00
a3c9029664 Reverted the cutoff to 20.0 for in.nopbc 2023-03-07 12:02:56 -06:00
b65623ef1f Added back comments to data.sphere 2023-03-07 11:57:49 -06:00
9e57bedea2 Fixed bugs when mistakenly replacing all "NULL" with "nullptr" with FixPolarizeFunctional, reduced the number of induced charges so that in.nopbc with dof finishes in a reasonable time 2023-03-07 11:51:14 -06:00
41c5ba98ab Merge pull request #3672 from lammps/update_codeowners
Update CODEOWNERS
2023-03-07 12:30:57 -05:00
353e0820e3 capture log files for dielectric examples 2023-03-07 12:26:43 -05:00
4265b7379e update precomputed constants. apply clang-format 2023-03-07 12:07:56 -05:00
710baff14d use finalize wrappers from the LAMMPS library interface 2023-03-07 08:24:03 -05:00
6c1ed6a9b5 use finalize wrappers from the LAMMPS library interface 2023-03-07 08:23:36 -05:00
6d7d0f78d5 Merge pull request #3674 from rbberger/gpu_rocm_bugfix
GPU package bugfix / cmake improvement
2023-03-07 07:39:48 -05:00
d7c783560a GPU Package: Fixing out of bounds memory access issues with special kernel unroll optimizations. 2023-03-06 22:11:10 -08:00
40790f6c45 fix up non-KOKKOS case 2023-03-06 22:57:31 -05:00
642dccceb5 fix up non-KOKKOS case 2023-03-06 22:57:06 -05:00
0b204c8cb3 avoid including accelerator_kokkos.h in main.cpp 2023-03-06 22:40:35 -05:00
76cbc6f48d whitespace 2023-03-06 22:40:27 -05:00
3645ad9582 Merge branch 'develop' into collected-small-changes 2023-03-06 22:40:08 -05:00
21b2bf0253 avoid including accelerator_kokkos.h in main.cpp 2023-03-06 22:17:12 -05:00
5e4714b41e Fix some issues with new code in fix shake 2023-03-06 16:31:19 -07:00
795227d376 Merge pull request #3677 from lammps/fix-balance-sort-option
Add sort option for load balancing commands
2023-03-06 17:03:08 -05:00
d13f8c6701 Merge pull request #3676 from gtow-MD/develop
Updated fix_deposit documentation
2023-03-06 15:47:12 -05:00
2af1949a92 whitespace 2023-03-06 13:42:45 -05:00
5909a0527b update list of packages included into the Windows builds. 2023-03-06 13:39:50 -05:00
4f420f8454 incorporate changes to fix alchemy from @sjplimp 2023-03-06 12:14:57 -05:00
f63eec6953 gpu: drop hcc as platform and inherit compile defs
hip::host already adds the __HIP_PLATFORM_AMD__ definition

See https://github.com/ROCm-Developer-Tools/hipamd/blob/develop/hip-config.cmake.in#L180
2023-03-06 09:49:00 -07:00
376c7899ab add user option for performing message sorting during load balancing 2023-03-06 09:48:33 -07:00
31fc26a8ee Merge pull request #1 from gtow-MD/gtow-MD-patch-1
Updated fix_deposit documentation
2023-03-06 11:23:11 -05:00
4089b7bd37 Updated fix_deposit documentation 2023-03-06 11:11:49 -05:00
2627f60a39 fix cut-n-paste error 2023-03-06 08:10:30 -05:00
37f22c8627 Misc Improvements to GPU Package
- Optimizations for molecular systems
-   Improved kernel performance and greater CPU overlap
- Reduced GPU to CPU communications for discrete devices
- Switch classic Intel makefiles to use LLVM-based compilers
- Prefetch optimizations supported for OpenCL
- Optimized data repack for quaternions
2023-03-05 21:03:12 -08:00
f658a947c6 gpu: fix broken HIP code path 2023-03-05 19:35:32 -07:00
b11049ba1a CMake: Use hip::host and hip::hipcub targets 2023-03-05 19:03:38 -07:00
646ef15d83 more consistent way to disable fast math for Intel OpenCL with double precision 2023-03-05 07:18:12 -05:00
2aff321187 Revert "use sin(x+pi/2) instead of cos(x) on Intel OpenCL with double precision"
This reverts commit fa38047749
It is no longer needed since we disable fast math with
Intel OpenCL and double precision setting.
2023-03-05 07:04:20 -05:00
7f934e3b25 add check for broken doc links to doc makefile 2023-03-04 17:09:17 -05:00
8aad97ca4a fix broken doc links 2023-03-04 17:03:07 -05:00
fcf8fc503f fix broken links 2023-03-04 16:24:58 -05:00
dcb58a94b4 Merge branch 'lammps:develop' into master 2023-03-04 18:16:50 +02:00
02f36f4e72 whitespace 2023-03-04 06:30:47 -05:00
6640e8b647 address some spelling and grammar issues flagged by languagetool.org 2023-03-04 00:43:43 -05:00
3df51305df integrate updates for fix alchemy documentation from @sjplimp 2023-03-04 00:32:18 -05:00
76387d003b fine tune package check directory matching to not match bogus entries 2023-03-03 23:12:17 -05:00
142876a59b Merge pull request #3669 from Bibobu/tool_tabulate
Adding boltzmann inversion like pair tabulation to tools/tabulate
2023-03-03 22:39:38 -05:00
11aa922a6c Merge remote-tracking branch 'github/update_codeowners' into collected-small-changes 2023-03-03 22:38:26 -05:00
444a5daac5 Merge branch 'develop' into collected-small-changes 2023-03-03 22:37:20 -05:00
fc4ca0503e make --rdffile, --units, and --temperature required arguments 2023-03-03 20:51:28 -05:00
c3c6c5f154 python2 compatibility (or rather scipy of python2) and avoid NaNs 2023-03-03 20:50:56 -05:00
e373aa39e7 Update CODEOWNERS 2023-03-03 16:44:34 -07:00
de182aeeed fix issues due to incomplete conversion form txt2html markup 2023-03-03 17:25:28 -05:00
a136283312 update/correct section header (this is not a fix) 2023-03-03 17:17:07 -05:00
77ae215047 add versionadded tag 2023-03-03 17:16:12 -05:00
b2c636af75 Another refactor, port fix shake 2023-03-03 15:04:44 -07:00
c9e300f76f implementation of bond style harmonic/restrain /w docs 2023-03-03 16:54:47 -05:00
e73776240c Fix memory leak 2023-03-03 13:46:23 -07:00
aab4750231 Update docs 2023-03-03 10:50:12 -07:00
6f27357630 Merge branch 'develop' of github.com:lammps/lammps into granular-kokkos 2023-03-03 10:46:44 -07:00
10a3fc9508 Remove unused volatile overloads 2023-03-03 10:06:58 -07:00
35a45eaa36 Remove deprecated code 2023-03-03 09:56:01 -07:00
d18c1fdad1 Update C++ standard for Kokkos 2023-03-03 09:36:29 -07:00
03916a3c28 Update Kokkos CMake 2023-03-03 09:32:53 -07:00
14cb8576f4 Update Kokkos library in LAMMPS to v4.0 2023-03-03 09:22:33 -07:00
e4b1a33ced Corrected error in temperature argument managment, added unit as a
command-line parameter
2023-03-03 15:32:46 +01:00
eb750f0217 Adde temperature for BI as a command-line argument 2023-03-03 15:22:49 +01:00
13f82be035 fix typo 2023-03-03 09:12:57 -05:00
4612cd94f0 Removed bits of useless force computation. 2023-03-03 15:12:27 +01:00
67d4893f6e Added Warning section to pair_bi_tabulate.py file. 2023-03-03 15:10:36 +01:00
ed11cbd2c7 Updated tools/tabulate/README.md file to include pair_bi_tabulate.py 2023-03-03 15:04:46 +01:00
f23c2494ea Created tool file tools/tabulate/pair_bi_tabulate.py 2023-03-03 14:49:38 +01:00
0e03569def Merge branch 'develop' of github.com:/lammps/lammps into develop 2023-03-03 14:10:36 +01:00
9cdb9283ca another workaround for Intel GPU with OpenCL and double precision 2023-03-03 03:08:03 -05:00
cfb967d309 silence static code analysis warnings 2023-03-03 02:01:25 -05:00
df9bf18ed2 Merge pull request #3659 from stanmoore1/kk_deform_rigid
Allow `fix deform/kk` to use rigid bodies, fix logic issues with Kokkos neigh list
2023-03-02 19:04:13 -05:00
fa38047749 use sin(x+pi/2) instead of cos(x) on Intel OpenCL with double precision 2023-03-02 18:47:34 -05:00
c4f095f9df Updated the doc page of fix polarize to note that polarize/functional not supporting charged interfaces yet 2023-03-02 15:17:32 -06:00
b08fe855a1 Increased the default max iterations to 50, put a note on setting the local epsilon for charged interface particles to be the mean dielectric value 2023-03-02 15:12:59 -06:00
9b1afd7145 more description. address typos. 2023-03-02 15:54:30 -05:00
4a8aaf9f46 Added the missing factor 4\pi in epsilon0e2q to other units 2023-03-02 14:52:01 -06:00
663d57cc8f Prevent segfault 2023-03-02 10:13:52 -07:00
c2205266f0 Refactor FixWallGranKokkos 2023-03-02 09:48:01 -07:00
2f0aff7b78 Merge remote-tracking branch 'github/develop' into pair_style_tutorial 2023-03-02 10:34:31 -05:00
12f5bc9c77 Merge branch 'lammps:develop' into master 2023-03-02 16:10:21 +02:00
da79aadc8d spelling 2023-03-02 07:31:38 -05:00
de466cf998 improve documentation of the use of verlet/split run style. reformat. 2023-03-02 07:31:33 -05:00
63a391a649 replace leftover -DCUDA_PROXY 2023-03-01 21:05:22 -05:00
765d792f40 Merge remote-tracking branch 'github/develop' into collected-small-changes 2023-03-01 21:03:03 -05:00
2979296c02 Merge pull request #3666 from ndtrung81/gpu-cuda-mps
Fixed GPU library builds with CUDA MPS
2023-03-01 21:02:27 -05:00
c8696478b7 Merge pull request #3648 from jrgissing/bond/react-updates+tests
Bond/react updates
2023-03-01 21:01:59 -05:00
e4e994f1b1 add missing versionadded tags 2023-03-01 20:59:48 -05:00
8a1771aa61 implement documented pair style requirements for DPD-MESO intgreation fixes 2023-03-01 20:52:23 -05:00
c5c787ca5c better align with docs bundled with the MSCG library 2023-03-01 20:41:36 -05:00
04d3032914 improve error messages 2023-03-01 20:41:13 -05:00
a715a56afe fix typo 2023-03-01 20:41:00 -05:00
87a9695c64 Merge remote-tracking branch 'github/develop' into collected-small-changes 2023-03-01 20:37:50 -05:00
c2fe2b4360 Merge pull request #3661 from bathmatt/hippy-fixes
Hippy fixes
2023-03-01 20:36:37 -05:00
d44ba14030 Merge pull request #3657 from akohlmey/custom-wall-fixes
Add fix wall/table and fix wall/lepton for customizable wall fixes
2023-03-01 20:16:56 -05:00
993aba288a whitespace 2023-03-01 16:30:02 -07:00
7d0a28ec43 Remove unused var 2023-03-01 16:25:16 -07:00
6d29e9209d Another refactor 2023-03-01 15:48:04 -07:00
2ccfe635ce Removed the outdated CUDA_PROXY flag, using CUDA_MPS_SUPPORT consistently in CMake and traditional builds 2023-03-01 16:38:50 -06:00
c1e14e09f3 add more source code. remove remnants of the fix page 2023-03-01 17:16:36 -05:00
ef6f4465af Need to keep check for newton on 2023-03-01 13:05:22 -07:00
512eead15a Fix logic issues in Kokkos neigh build 2023-03-01 12:08:33 -07:00
35a9771e23 Implement born_matrix in pair_coul_debye.cpp 2023-03-01 18:33:37 +02:00
fa57857cc0 Implement born_matrix in pair_coul_cut.cpp 2023-03-01 18:32:11 +02:00
b8922ffe07 Include method declaration in pair_coul_debye.h 2023-03-01 18:30:51 +02:00
060976bb26 Include method declaration in pair_coul_cut.h 2023-03-01 18:29:56 +02:00
45009c8c66 Implement born_matrix in pair_buck_coul_cut.cpp 2023-03-01 12:38:23 +02:00
e0cc7aad97 Include method declaration in pair_buck_coul_cut.h 2023-03-01 12:36:35 +02:00
85f3d6eaef Implement born_matrix in pair_lj_class2_coul_cut.cpp 2023-03-01 10:24:22 +02:00
e59d08ee8b Include method declaration in pair_lj_class2_coul_cut.h 2023-03-01 10:22:07 +02:00
11172c1949 make biga0 and r0 accessible via Pair::extract() and add pair style to table in fix adapt 2023-02-28 21:50:44 -05:00
bc4da2afef roll back change causing unittest failures 2023-02-28 19:26:18 -05:00
103e63eca5 more careful checks and print error messages to global root. 2023-02-28 18:58:57 -05:00
2507e414d9 fix broken link 2023-02-28 18:11:05 -05:00
a98c497dbb redesign the Howto pages on water models and add inputs and molecule files 2023-02-28 18:10:45 -05:00
202a22ea68 Merge branch 'develop' into collected-small-changes 2023-02-28 11:27:26 -05:00
02190b82c2 link pair style hybrid/scaled to fix adapt and fix alchemy 2023-02-28 11:22:28 -05:00
a6eac92cd5 update list of pair styles that support fix adapt 2023-02-28 11:20:33 -05:00
36ce91c634 Merge branch 'develop' of github.com:lammps/lammps into kk_deform_rigid 2023-02-28 08:53:52 -07:00
3cd881f0b9 Implement born_matrix in bond_nonlinear.cpp 2023-02-28 17:29:50 +02:00
7aeccd9a6d Include method declaration in bond_nonlinear.h 2023-02-28 17:28:02 +02:00
3ab4735aa4 Implement born_matrix in bond_morse.cpp 2023-02-28 12:00:31 +02:00
22998f43ae Include method declaration in bond_morse.h 2023-02-28 11:59:06 +02:00
f866c1d961 Merge branch 'lammps:develop' into master 2023-02-28 11:54:23 +02:00
88760170bf python-mliap: consider abi flags for python lib 2023-02-28 10:34:36 +01:00
64d5317d19 hint to generate needed file for mliap pytorch example 2023-02-28 10:07:46 +01:00
2511872823 Updated GPU.cmake and Makefile.cuda_mps to not error out with exclusive process mode with the CUDA MPS server in use 2023-02-28 00:41:47 -06:00
a67d82c183 Merge pull request #3662 from akohlmey/fix-alchemy
New fix command for alchemical transformations using multiple partitions
2023-02-27 21:07:21 -05:00
02c26f4b87 add version tag 2023-02-27 16:53:43 -05:00
81a2d47c16 print warning about not checking lambda variable 2023-02-27 16:50:17 -05:00
446913f2f3 make ramp more flexible by defining lambda through a variable 2023-02-27 16:01:17 -05:00
3667382067 Add missing copy operation 2023-02-27 12:14:37 -07:00
83f936f31b Update fix_alchemy.rst 2023-02-27 11:00:11 -07:00
095f1d328e make non-polymorph functions and all data members protected. 2023-02-27 12:12:39 -05:00
bbd275a4e3 Merge pull request #2 from akohlmey/pimd_langevin 2023-02-27 10:01:47 -05:00
93b42f14e9 start document describing the implementation of a pair style 2023-02-27 01:58:59 -05:00
c8f3f4b173 add born/gauss pair style (for modeling liquid mercury) 2023-02-27 01:58:36 -05:00
6e65d13ad3 Adding vshift + pressure, various fixes 2023-02-26 21:13:32 -07:00
8368b78f23 document the change in mass handling 2023-02-26 13:52:31 -05:00
0b5acdca51 convert hard error about invalid atom masses from EAM potentials to warning 2023-02-26 13:47:11 -05:00
2bd6cde4e8 add reference output 2023-02-26 00:19:39 -05:00
76c879c388 make sure that output variables are initialized 2023-02-26 00:16:03 -05:00
3e2b5dd9d3 small cleanup 2023-02-25 23:47:46 -05:00
666be5c3d9 add log files for example run 2023-02-25 23:47:34 -05:00
6b1cad1e3d programming style updates 2023-02-25 23:16:51 -05:00
25a1996ece some formatting and programming style updates 2023-02-25 22:40:30 -05:00
f84765f29e update document for fix pimd/langevin 2023-02-25 20:34:10 -05:00
c950df2ede delete commented-out code 2023-02-25 19:53:19 -05:00
00a5930d4c delete default seed 2023-02-25 18:58:56 -05:00
c9b22ba04f mention pair style hybrid/scaled as alternative 2023-02-25 17:17:41 -05:00
27067beabc Merge pull request #1 from akohlmey/pimd_langevin
Add infrastructure to docs for fix pimd/langevin
2023-02-25 16:50:47 -05:00
0911565660 prepare for inclusion of fix pimd/langevin 2023-02-25 16:36:01 -05:00
3737b5f774 whitespace fixes and clang-format on the header 2023-02-25 16:22:27 -05:00
bb17541c30 add simple example for transforming a pure metal into an alloy 2023-02-25 16:01:26 -05:00
2bad63c68e add documentation 2023-02-25 14:09:14 -05:00
828b70fbfa silence warning 2023-02-25 13:58:58 -05:00
60129958c8 refactor how properties computed by the fix are accessed
lambda is no an (intensive) scalar property
and the vector property only has the potential energies.
pressure is accessed via compute pressure/alchemy.
2023-02-25 12:47:49 -05:00
d691d1db78 synchronize box dimensions at the beginning and when needed 2023-02-25 12:42:10 -05:00
81b0bb47be allow dynamic groups with fix oneway 2023-02-25 12:03:05 -05:00
c288a20077 add progress information to screen or universe logfile 2023-02-25 11:14:56 -05:00
7242186045 add compute pressure/alchemy so it can be used with fix npt 2023-02-25 10:43:49 -05:00
fdf5148238 don't store topology information with ghost atoms. they will be ignored. 2023-02-24 22:55:23 -05:00
6d12f7925b first working implementation of fix alchemy. still w/o support for pressure and variable cell. 2023-02-24 19:02:11 -05:00
7a4b23938e update example so we can use the simpler communication pattern 2023-02-24 19:00:12 -05:00
7d3b9e4dda another doc page change 2023-02-24 16:27:15 -07:00
6abc32efe8 Remove extra file 2023-02-24 16:19:22 -07:00
ea73ddcb59 remove all files and dirs relevant to the fix latte command 2023-02-24 16:13:50 -07:00
0e6be96de1 cleanup 2023-02-24 16:07:22 -07:00
fae0442130 rerun examples with latest version 2023-02-24 15:50:03 -07:00
7b66238eb2 sync with GH version 2023-02-24 14:51:42 -07:00
ea6ec5c70f more doc updates 2023-02-24 13:41:59 -07:00
ed822f8002 WIP 2023-02-24 15:41:04 -05:00
37d6014f40 updated doc pages and README files 2023-02-24 13:32:58 -07:00
c351b63919 fix pimd/langevin put properties and functions below protected 2023-02-24 11:48:28 -05:00
de98704e1e more syncing of fix mdi/qm and mdi/qmmm 2023-02-24 07:46:56 -07:00
b0b14bd1d1 add fix pimd/langevin 2023-02-24 07:48:34 -05:00
4d78d987c6 add unmap_inv function 2023-02-24 07:34:58 -05:00
d831562e1f Fixing typo in equation for fene/nm 2023-02-24 12:27:53 +02:00
8ba61e11a2 Implement born_matrix in pair_nm_cut.cpp 2023-02-24 12:25:55 +02:00
f264631267 Include method declaration in pair_nm_cut.h 2023-02-24 12:24:45 +02:00
a32440cdef Implement born_matrix in bond_fene_nm.cpp 2023-02-24 11:58:42 +02:00
885c4d7609 Include method declaration in bond_fene_nm.h 2023-02-24 11:56:22 +02:00
3ea0447715 Implement born_matrix in dihedral_multi_harmonic.cpp 2023-02-24 09:41:52 +02:00
c4bf0f0ab5 Include method declaration in dihedral_multi_harmonic.h 2023-02-24 09:39:38 +02:00
c35b32961b Implement born_matrix in dihedral_opls.cpp 2023-02-24 08:51:25 +02:00
e610924641 Include method declaration in dihedral_opls.h 2023-02-24 08:48:40 +02:00
6886f37188 Merge branch 'lammps:develop' into master 2023-02-24 08:46:27 +02:00
c5f29dee39 Merge pull request #3658 from akohlmey/collected-small-changes
Collected small changes and bug fixes
2023-02-23 23:10:52 -05:00
54a4bde88b Port changes to fix qeq/reaxff/kk 2023-02-23 17:37:26 -07:00
7548dc3e04 Another refactor 2023-02-23 17:19:14 -07:00
2d4f2532ae Allow fix_deform/kk to use rigid bodies 2023-02-23 14:58:59 -07:00
6b9911dd74 update unit test for correct fix wall/morse 2023-02-23 15:28:21 -05:00
d3ac4a728d fix bug in fix wall/morse that was computing the force incorrectly 2023-02-23 15:22:38 -05:00
6ae177f37e rename fix pimd to fix pimd/nvt (with backward compatibility) 2023-02-23 12:26:42 -05:00
bb75ed5071 Implement born_matrix in bond_fene.cpp 2023-02-23 18:15:43 +02:00
5fb11e3f06 Include method declaration in bond_fene.h 2023-02-23 18:14:23 +02:00
1a520325b2 Merge branch 'lammps:develop' into master 2023-02-23 18:12:00 +02:00
cad3c5ba95 Fixed code to run with hippynn 2023-02-23 15:53:43 +01:00
fc0efd43fc added kokkos functinos to the list of functions registered for ML-IAP 2023-02-23 15:53:43 +01:00
e422ae9477 improve error messages and make them consistent across variants 2023-02-23 09:40:51 -05:00
2e5bc2f6b7 add test example for validating custom potentials 2023-02-23 01:09:44 -05:00
34430c1047 add unit tests for fix wall/lepton and fix wall/table 2023-02-23 00:57:41 -05:00
b314f73ef4 update .gitignore and fix typo in doc makefile 2023-02-23 00:40:07 -05:00
ec87c71064 add documentation for fix wall/lepton, fix wall/table and WallTabulate() 2023-02-23 00:35:25 -05:00
0dcb591ee8 add support to create tables for fix wall/table 2023-02-22 23:31:04 -05:00
a3ff40ccf0 fixes to avoid uninitialized or out-of-bounds memory accesses 2023-02-22 23:29:46 -05:00
a92c9e3b91 cmake: remove pip install from install target 2023-02-22 20:15:59 -07:00
8b16301e5f doc pages and sync qm vs qmmm fixes 2023-02-22 17:21:40 -07:00
b12facbd54 add fix wall/table 2023-02-22 19:06:07 -05:00
36ec4a098b add fix wall/lepton 2023-02-22 19:06:07 -05:00
f4d8b2a57a remove unused namespace import 2023-02-22 19:06:07 -05:00
94ac3895f9 enable and apply clang-format, improve error messages. 2023-02-22 19:06:07 -05:00
1411d48d9e prepare fix wall argument parser to support wall/lepton and wall/table 2023-02-22 19:06:06 -05:00
fc0d23965b small cleanup 2023-02-22 16:48:01 -05:00
d24952ad0a Fix compile 2023-02-22 13:47:31 -07:00
2542778fa8 Merge pull request #3656 from pnorbert/fix-deprecated-adios-init
Fix the adios2::ADIOS constructor calls that were deprecated in adios…
2023-02-22 15:32:05 -05:00
54a18be0ff More cleanup 2023-02-22 13:26:32 -07:00
c6c5a157f1 Merge branch 'develop' of github.com:lammps/lammps into granular-kokkos 2023-02-22 11:48:32 -07:00
4814578d85 Fixing missing semicolon 2023-02-22 17:22:17 +02:00
c1a37ac00f Implement born_matrix in angle_harmonic.cpp 2023-02-22 17:16:56 +02:00
27f07206f6 Include method declaration in angle_harmonic.h 2023-02-22 17:15:13 +02:00
febaf55afe Fix the adios2::ADIOS constructor calls that were deprecated in adios 2.8 and removed in 2.9. The fix is backward compatible with older adios2 versions as well. 2023-02-22 07:28:00 -05:00
ecf43524d4 Most updates to pair 2023-02-21 22:07:11 -07:00
99e7673e8e Starting pair style, various clean ups 2023-02-21 19:41:52 -07:00
c647be0287 avoid segfault when atom style peri is used in a hybrid atom style 2023-02-21 18:11:59 -05:00
4c36702546 whitespace fixes 2023-02-21 16:31:45 -05:00
e86e67e8cd Merge pull request #3655 from evoyiatzis/master
More implementations of analytical expressions for compute born/matrix
2023-02-21 16:19:35 -05:00
1aa7a6c8b8 update from Aidan 2023-02-21 15:47:59 -05:00
6c5c93438c update for ROCm 5.4.3 and CUDA 12.0 2023-02-21 15:00:48 -05:00
633ae8bc40 Revert "add 'atom type' test option to force style tests"
This reverts commit 7709dfa118.
2023-02-21 12:59:32 -05:00
cdcc33aebc Revert "add simple bond/react unit test"
This reverts commit f2713aad94.
2023-02-21 12:59:32 -05:00
c715552f7e Ensuring fix order 2023-02-21 10:17:15 -07:00
e3003ce294 Revert change in angle_cosine_shift.h 2023-02-21 16:09:58 +02:00
ea9a498fcf Include method declaration in angle_cosine_shift.h 2023-02-21 15:54:13 +02:00
9611347d1b Implement born_matrix in angle_cosine_delta.cpp 2023-02-21 15:47:59 +02:00
ee2b6315ec Include method declaration in angle_cosine_delta.h 2023-02-21 15:46:34 +02:00
ca8a1b80d9 Implement born_matrix in angle_fourier_simple.cpp 2023-02-21 10:25:04 +02:00
994745bd53 Include method declaration in angle_fourier_simple.h 2023-02-21 10:23:18 +02:00
a86302beb7 Merge branch 'lammps:develop' into master 2023-02-21 10:20:44 +02:00
1adc66e82b Beginning updates to thermal fix 2023-02-20 22:07:30 -07:00
c73f9188ce Initial thermal/pair files 2023-02-20 20:42:44 -07:00
095e00e3e9 Merge pull request #3649 from akohlmey/collected-small-fixes
Collected small fixes
2023-02-20 15:23:20 -05:00
4ac7a228b5 Revamping atom data storage in fixes 2023-02-20 12:47:51 -07:00
2ea29affb8 Merge pull request #3653 from rohskopf/mliap-gradforce
Eliminate gradforce loops in ML-IAP pair style
2023-02-20 14:09:30 -05:00
d5ba6f70f2 enable and apply clang-format 2023-02-20 12:48:39 -05:00
f7aae84cf6 make gradgradflag a compile time constant 2023-02-20 12:48:23 -05:00
c7eaee117e eliminate gradgradflag class member and use flag from data class instead 2023-02-20 12:48:03 -05:00
a59e4a961b Implement born_matrix in pair_lj96_cut.cpp 2023-02-20 16:38:41 +02:00
e1d013bf7b Include method declaration in pair_lj96_cut.h 2023-02-20 16:36:59 +02:00
560bd90e11 Drafting viscosity fix 2023-02-19 22:08:02 -07:00
6cbade576c Adding gradient compute, minor patch bond history 2023-02-19 20:41:33 -07:00
dfc9da8020 add link_check target calling linkchecker to manual build makefile 2023-02-19 21:12:22 -05:00
9220ea5695 fix a bunch more broken links 2023-02-19 20:48:54 -05:00
7149143df8 fix outdated or broken URLs and typos in URLs 2023-02-19 16:11:22 -05:00
472d32ee17 Implement born_matrix in pair_harmonic_cut.cpp 2023-02-19 17:59:53 +02:00
7383daa23e Include method declaration in pair_harmonic_cut.h 2023-02-19 17:57:30 +02:00
29c5c1a0d3 Implement born_matrix in bond_harmonic_shift.cpp 2023-02-19 17:27:23 +02:00
d300225f78 Include method declaration in bond_harmonic_shift.h 2023-02-19 17:25:28 +02:00
8a5ee84901 Implement born_matrix in angle_fourier.cpp 2023-02-19 16:31:42 +02:00
42b7c40020 Include method declaration in angle_fourier.h 2023-02-19 16:27:03 +02:00
ff72268430 rate_limit keyword speedup
was previously checking for reactions when even one reaction would exceed rate limit
2023-02-18 16:33:57 -05:00
a875ef77cd Implement born_matrix in pair_lj_class2.cpp 2023-02-18 20:23:40 +02:00
863aec4c79 Include method declaration in pair_lj_class2.h 2023-02-18 20:21:44 +02:00
ac506255a6 Implement born_matrix in pair_born.cpp 2023-02-18 11:18:27 +02:00
c020aba17c Include method declaration in pair_born.h 2023-02-18 11:16:55 +02:00
ca7cb7bd0e Implement born_matrix in pair_buck.cpp 2023-02-18 10:24:08 +02:00
aa209e621d Include method declaration in pair_buck.h 2023-02-18 10:21:23 +02:00
0ead219a8b backward compatibility with restart
keep new maxline limit (1024 chars), but old react-ID length limit (256 chars)
2023-02-18 00:37:28 -05:00
9c73f32121 increase MAXLINE to match other parts of lammps
'custom' constraint could exceed 256 chars fairly easily
2023-02-17 13:01:47 -05:00
ba80af3bd9 Update Kokkos and confirm computes work 2023-02-16 19:59:25 -07:00
af4c45a52b Confirm computes still work and use gradgradflag = -1 for pair style 2023-02-16 15:43:44 -07:00
621283bb78 Enclose gradforce loops in gradgradflag conditional
Co-authored-by: Nicholas Lubbers <nlubbers@lanl.gov>
2023-02-16 12:16:53 -07:00
17e1ed4869 updates to README 2023-02-16 10:27:45 -07:00
348296e638 Adding base fix and atom style 2023-02-15 16:07:10 -07:00
33056a4fd3 Merge pull request #3651 from stanmoore1/kk_3.7.1_update
Fix Kokkos compile error with NVIDIA Hopper GPU
2023-02-15 16:51:49 -05:00
8d3b06623e Merge pull request #3650 from evoyiatzis/master
Implementation of analytical expressions for Born matrix in bond_class2 & bond_gromos
2023-02-15 16:11:09 -05:00
76c00fe2ed fix MPI issue in PySCF wrapper 2023-02-15 12:14:38 -07:00
bdfc49f88f Moved region check from constructor to init() 2023-02-15 11:17:06 -07:00
329dbd0485 Updating doc/examples, moving forward comm to pre_force 2023-02-15 11:00:19 -07:00
f775de1884 Fix Kokkos compile error with NVIDIA Hopper GPU 2023-02-15 10:02:25 -07:00
5f5c7624f2 Merge branch 'develop' of github.com:lammps/lammps into granular-kokkos 2023-02-15 09:45:19 -07:00
4a5d7c671c Switching from new atom style to property/atom 2023-02-14 15:02:12 -07:00
d13634cd6b move definition of MAXBIGINT_DOUBLE to variable.cpp 2023-02-14 15:37:59 -05:00
553a98036c Implement analytical expression for born_matrix in bond_gromos.cpp 2023-02-14 10:19:49 +02:00
7c951d60da Include method declaration in bond_gromos.h 2023-02-14 10:17:27 +02:00
864488adbb Implement analytical expression for born_matrix in bond_class2.cpp 2023-02-14 09:39:39 +02:00
115c09ce23 Include method declaration in bond_class2.h 2023-02-14 09:37:12 +02:00
4bf9024c17 tweak comments 2023-02-13 16:27:37 -07:00
4dac68ef72 Merge pull request #3644 from ndtrung81/gpu-gauss-bugfix
Fixed issues with gauss/gpu in bonded systems
2023-02-13 16:07:01 -05:00
f06d783497 add mc_active to header 2023-02-13 11:38:24 -07:00
04c22e86cd disable PySCF support for independent MDI coupling for now 2023-02-13 11:16:56 -07:00
f1fde259e7 make new/incremental quantum trigger more robust, including fix GCMC and atom/swap 2023-02-13 11:10:50 -07:00
9c7ba5a329 remove debug printf() 2023-02-13 10:56:02 -05:00
a0760d0ca6 improve error message 2023-02-13 10:56:02 -05:00
fbe30ffec6 use MAXBIGINT_DOUBLE which does not overflow when casting back to bigint 2023-02-13 10:56:02 -05:00
e99ec32b4b enable and apply clang-format 2023-02-13 10:56:02 -05:00
401ac8c4f7 make fallback url function available to plugin compilations 2023-02-13 10:56:01 -05:00
575dfd9b21 Merge branch 'develop' of github.com:lammps/lammps into develop 2023-02-13 10:36:33 +01:00
eab3c4d382 better map file error handling 2023-02-12 15:08:46 -05:00
f2713aad94 add simple bond/react unit test 2023-02-12 00:36:58 -05:00
b465594aec bond/react restarts bugfix
introduced with recent 'rate_limit' keyword
2023-02-12 00:05:07 -05:00
c0e147dc57 make bond/react examples more accurate 2023-02-11 23:38:55 -05:00
7709dfa118 add 'atom type' test option to force style tests 2023-02-11 16:11:35 -05:00
46ea4843c1 Refactor and small cleanup 2023-02-10 14:28:43 -07:00
403e88b25f Fix style issues 2023-02-10 14:28:32 -07:00
f135771ddf Fix compile error 2023-02-10 14:11:21 -07:00
89510e793d Merge pull request #3643 from akohlmey/feature-release-maintenance-branch
Update documentation for revised release and branch names
2023-02-10 15:36:25 -05:00
4f4a67fb45 make fix md/qm more robust 2023-02-10 12:38:55 -07:00
e80bfa4a95 Merge branch 'develop' of https://github.com/lammps/lammps into granular-kokkos 2023-02-10 11:41:52 -07:00
d0c6c310d9 Port changes to other EAM flavors 2023-02-10 10:50:36 -07:00
23bfc1666c Use range_policy if running on host, small cleanup 2023-02-10 09:24:18 -07:00
26333c28ab fix grammar and spelling issues 2023-02-10 11:22:13 -05:00
4d5d04aba3 cosmetic 2023-02-10 05:09:22 -05:00
7fa298f2ef consistently support special_bonds settings in pair style gauss 2023-02-10 04:47:19 -05:00
88ccd546d8 Fixed bugs with gauss/gpu in bonded systems, including factor_lj in forces and energies 2023-02-09 23:55:14 -06:00
58a90d613b update manual for revised release and branch names 2023-02-10 00:50:36 -05:00
c37c752d36 update markdown files for revised branch structure and development workflow 2023-02-09 21:21:51 -05:00
32186b98f5 more debugging 2023-02-09 14:05:47 -07:00
b4b3d47783 variable substitution memory leak 2023-02-09 11:14:16 -07:00
f9be11ac8a enable variables in MDI commands 2023-02-08 16:10:45 -07:00
618e766d5f organize NWChem examples 2023-02-08 16:06:45 -07:00
2cd32d7e76 clean up 2023-02-08 12:54:34 -07:00
10b20ec647 more examples in QUANTUM/LATTE 2023-02-08 12:48:50 -07:00
19bcf6b43c revert to simple ParReduce policy for reductions
Change-Id: Ib3018e85f7bc6c97ce9c0320d0ea43c743addacf
2023-02-08 14:05:29 -05:00
3419bfa3f2 LATTE examples dir 2023-02-07 15:21:43 -07:00
c60fd6f89d more debugging and examples with NWChem 2023-02-06 18:06:04 -07:00
e5b067d1ab Merge branch 'develop' of github.com:lammps/lammps into eam_teampolicy_optimization 2023-02-06 16:48:03 -07:00
08b9af89bb more work with NWChem 2023-02-06 14:46:40 -07:00
ddc23bb3bf refactor step 2: reorder when to dedup reactions 2023-02-05 15:14:57 -05:00
162ee16825 refactor step 1: delay check for ghosts 2023-02-05 13:46:29 -05:00
e7fc590f91 simplify and correct dedup routine 2023-02-05 12:00:33 -05:00
b7ed8828e7 start adding QE support to exampes/QUANTUM 2023-02-03 18:14:50 -07:00
c45b9a5301 more debugging 2023-02-03 15:20:18 -07:00
1c77ffc288 catch missing static extents
Change-Id: I456282b172053a3566b1ce9a36bc33d377bd801a
2023-02-03 14:57:56 -05:00
55f454db2d Addressed feedback from LAMMPS developers:
- moved policyInstance into the EAM class
  - eliminated MAX_CACHE_COLS define, in favor of the static_extent of the spline view type
  - made inum a protected member var that allows range checking inside TeamPolicy kernels
  - added range checking after initializing the cached table in TeamPolicy kernels
  - correctness and perf checks pass

Change-Id: Iaaf34f7560c37e0a2a34e980761246d3ef42be99
2023-02-03 14:53:34 -05:00
fd1823a890 more debugging 2023-02-03 08:00:58 -07:00
751e33c70e more LATTE refactoring and debugging 2023-02-02 18:16:45 -07:00
56ca901cdb Implement a "caching in LDS" approach for EAM to improve performance on HIP
- Use a TeamPolicy rather than a RangePolicy to expose scratch
	- Team cooperates to load row-zero of spline into LDS
	- At runtime, decide whether value can be 'cached' in LDS, and conditionally load from LDS based on this

Should be easily extendable / tunable for other architectures if ever required.

Change-Id: Ie4254c8db1a7b14abafffe2b581014c5137bf7ed
2023-02-02 16:35:28 -05:00
12079c32de Merge branch 'develop' into fix-mdi-qmmm 2023-02-02 13:10:55 -07:00
b3262684af more LATTE debugging 2023-02-01 17:15:25 -07:00
c53ea66f39 debgging for LATTE 2023-02-01 14:20:27 -07:00
090e61f0ec more debugging 2023-02-01 11:31:15 -07:00
a81e6693cd more work on LATTE interface 2023-02-01 10:53:08 -07:00
7d8866891a Call particle_map in compute of pppm/electrode 2023-02-01 11:35:03 +01:00
2b5ef8d93e add plugin input script 2023-01-31 16:04:59 -07:00
018a815398 start work on LATTE wrapper 2023-01-31 16:02:55 -07:00
7c9068c34a correct nonPBC vs PBC calls to PySCF 2023-01-31 13:31:42 -07:00
b4ac95b225 add support for NWChem in examples/QUANTUM 2023-01-31 12:40:54 -07:00
dc5980ab7e coments 2023-01-31 08:04:25 -07:00
be22256765 edits 2023-01-31 07:44:23 -07:00
e7bcdc63e5 add instructions for running 2-water QMMM PySCF problem 2023-01-31 07:43:20 -07:00
7160594902 Warning for mobile electrode atoms 2023-01-31 07:39:31 +00:00
3b2647917f add PySCF to renamed examples/QUANTUM dir 2023-01-30 15:45:07 -07:00
092a67ab93 debug 2023-01-30 15:41:25 -07:00
243fcbf47d more debugging 2023-01-30 14:08:18 -07:00
8bc8f3eb4c debugging 2023-01-27 12:20:30 -07:00
bc567ac406 added more MM suppport for direct method 2023-01-25 16:23:17 -07:00
07c17d4e63 debugging on coupled mode 2023-01-20 15:49:29 -07:00
2695ecbc07 updates to fix mdi/qmmm 2023-01-20 14:22:20 -07:00
4d7a5fb225 support two modes of QMMM coupling 2023-01-18 16:19:19 -07:00
25a8e08703 Merge branch 'develop' into fix-mdi-qmmm 2023-01-18 15:19:57 -07:00
420606658b Merge branch 'develop' into granular-kokkos 2023-01-17 08:20:35 -07:00
f175a15627 Merge branch 'develop' into gran-temp 2023-01-10 09:58:50 -07:00
1234f7d16d more work on fix mdi/qmmm 2022-12-21 11:50:58 -07:00
249773e08c adding fix mdi/qmmm command 2022-12-21 10:11:20 -07:00
0f9a36a171 Merge branch 'develop' of github.com:lammps/lammps into develop 2022-12-09 10:40:54 +01:00
531912a3c8 Merge branch 'gran-temp' of github.com:jtclemm/lammps into gran-temp 2022-12-07 11:42:48 -07:00
f2d866420a Updated examples 2022-12-07 11:41:53 -07:00
6c3ebc19b7 Merge branch 'develop' into gran-temp 2022-11-30 08:54:19 -05:00
e8c271cc16 update python to version to 3.11 and disable png/jpeg for now 2022-11-29 17:54:27 -05:00
1a467233fb adding examples, fixing wall algebra, updating labels 2022-11-29 12:24:43 -07:00
c4676aabfd Adding missing variables from omp npair halffull 2022-11-23 09:58:46 -07:00
58f9553bf1 Copying fixes to omp 2022-11-23 08:52:21 -07:00
8f81cd80b6 Fixing a few errors in npair/stencil classes 2022-11-22 21:31:31 -07:00
8026845346 Merge branch 'develop' of github.com:lammps/lammps into develop 2022-11-21 15:26:17 +01:00
f51ab2c440 Restarting limit_damping, other minor simplifications/cleanups 2022-11-16 16:36:22 -07:00
5f0fff58ac fixing broken doc references 2022-11-14 21:16:03 -07:00
f3d5941301 Updating logic for multi 2022-11-14 20:48:02 -07:00
b3e6a0bfa3 Fixing mistake in multi stencil 2022-11-12 20:44:45 -07:00
b0dcaa3823 Updating OPENMP package 2022-11-12 16:18:11 -07:00
213df2e2d5 Merge branch 'develop' into consolidate_neigh_classes 2022-11-11 20:41:19 -07:00
11f3195b0c Fixing more oversights in npair classes 2022-11-11 20:35:52 -07:00
c5181bb7c8 Fixing various oversights in npair classes 2022-11-11 16:56:21 -07:00
b2c5c1fda4 Fixing cmake style header 2022-11-10 21:06:47 -07:00
d6b5878dce Adding/removing underscores 2022-11-10 16:25:34 -07:00
d1dd8d3c11 Renaming files/classes, other small, misc updates 2022-11-10 16:06:36 -07:00
ea8ded470b Removing vectors to avoid resizing issues with coeff redefinitions 2022-11-09 10:17:07 -07:00
971b932387 Adding area flag for submodels 2022-11-07 17:39:40 -07:00
a1db5fda70 Simplifying variables and logic 2022-11-07 11:30:12 -07:00
cd658e6779 Fixing few bugs with histories, removing indices from granular model 2022-11-07 10:41:09 -07:00
48a957f333 Remove screen print 2022-11-03 09:04:50 -06:00
bc74fef3f4 Fixing memory leaks, misc clean ups, adding cohesive flag to Tsuji 2022-11-02 21:11:30 -06:00
871efda589 a few formal changes and spelling updates 2022-11-02 20:39:10 -04:00
b5d57531d9 complete integration into the manual build process 2022-11-02 20:38:43 -04:00
3561bbe887 simplify 2022-11-02 20:20:56 -04:00
74122040a3 add cmake support for generating gsm style header file 2022-11-02 20:20:06 -04:00
4dcf8c99de Merge branch 'develop' into gran-temp 2022-11-02 19:53:27 -04:00
95a8d2cc25 Patching pair tracker 2022-11-02 15:38:12 -06:00
02370fa25e Include headers in ace-evaluator directory 2022-11-02 14:51:00 -06:00
301877c6db Merge branch 'compute-pace' of https://github.com/jmgoff/lammps_compute_PACE into compute-pace 2022-11-02 14:11:15 -06:00
f8b29e09cd Merge branch 'lammps:develop' into compute-pace 2022-11-02 14:10:53 -06:00
f671cd7765 Merge branch 'develop' into gran-temp 2022-11-01 14:10:28 -06:00
88be5a3781 Minor fixes to doc pages 2022-11-01 14:01:07 -06:00
c8347df494 Removing knfac from documentation 2022-11-01 13:34:07 -06:00
dca901617e Removing knfac, removing unnecessary global variables, updating dev ref text 2022-11-01 13:30:57 -06:00
5dcbbc084b Adding developers documentation page 2022-11-01 13:30:24 -06:00
6544fbd248 Fixing compilation mistake, updating dev reference 2022-10-30 21:04:31 -06:00
33c84963e9 Merging with develop 2022-10-30 12:45:33 -06:00
fcc47158b3 Adding other npair classes 2022-10-29 20:35:04 -06:00
f66179f336 Removing old contact files, fixing capitalization in dump_custom.cpp 2022-10-28 16:38:32 -06:00
1eb048ef93 Adding granular sub model style creator 2022-10-28 16:00:04 -06:00
9cff8b4ae6 Merge branch 'compute-pace' of github.com:jmgoff/lammps_compute_PACE into compute-pace
Updated with new PRs from Yuri
2022-10-28 14:18:42 -06:00
5c6dedae52 fixed bug for bikflag 1 dgradflag 0 2022-10-28 14:17:24 -06:00
e74b6769a9 No need to populate map in constructor 2022-10-28 14:17:24 -06:00
9130f0a327 Working multi-element example 2022-10-28 14:17:24 -06:00
0159810cc8 add examples 2022-10-28 14:17:24 -06:00
3a57f5185d add examples 2022-10-28 14:17:24 -06:00
40b76b24a0 Merge branch 'develop' of https://github.com/lammps/lammps into develop 2022-10-28 14:16:42 -06:00
955fbe46d1 Renaming classes, adjusting initialization 2022-10-26 22:25:58 -06:00
63618d2490 Adding scalar pressure compute 2022-10-24 10:59:22 -06:00
173e2382b3 Adding documentation, various updates 2022-10-22 19:03:52 -06:00
20fd34a55c Fix swapped buffer 2022-10-21 21:13:05 -06:00
ca34dccec0 Merge branch 'develop' of github.com:lammps/lammps into granular-kokkos 2022-10-20 15:03:54 -06:00
4f2e0147e0 Merge branch 'doc-fixes' of github.com:hammondkd/lammps into doc-fixes 2022-10-19 10:29:30 -05:00
c07f5e8339 Temporary(?) fix for highlighting overflow in labelmap.rst 2022-10-19 10:29:18 -05:00
e8cd992891 fixed bug for bikflag 1 dgradflag 0 2022-10-18 17:29:56 -06:00
614fb3cbdd Adding other nstencil classes 2022-10-16 21:02:02 -06:00
e73d27cfa4 Fix runtime error 2022-10-14 15:56:22 -06:00
8242559377 A few more optimizations to pair_gran_hooke_history_kokkos 2022-10-14 15:22:18 -06:00
85726b7ce2 Optimize FixNeighHistoryKokkos 2022-10-14 14:22:08 -06:00
bf42f06a39 Optimizations for pair_gran_hooke_history_kokkos 2022-10-14 12:35:32 -06:00
dc6fc3ec03 Fix compile error 2022-10-13 12:35:13 -06:00
2f4fd62aed Whack errordocs 2022-10-12 17:23:57 -06:00
76220727c8 Whitespace, etc. 2022-10-12 17:20:16 -06:00
ba468fffcc Update to latest develop, fix merge conflicts 2022-10-12 17:08:48 -06:00
a3839cd07a Merge branch 'develop' of github.com:lammps/lammps into develop 2022-10-12 13:20:09 +02:00
66471c1465 Adding pressure controls and fixing misc errors 2022-10-11 16:52:02 -06:00
b8728884fc Drafting stress controls in fix deform 2022-10-10 10:33:47 -06:00
079ab1946f No need to populate map in constructor 2022-10-06 10:38:43 -06:00
a7d16f486f Working multi-element example 2022-10-06 10:38:43 -06:00
bc6a419dd4 add examples 2022-10-06 10:38:43 -06:00
ca98afea7a add examples 2022-10-06 10:38:43 -06:00
39f0051de6 Merge branch 'develop' of github.com:lammps/lammps into develop
Update the ML-PACE code to include recent updates from lammps-user-pace
including gamma pair fix.
2022-10-06 10:36:29 -06:00
80da41efc9 No need to populate map in constructor 2022-09-29 10:53:28 -06:00
85da521642 Working multi-element example 2022-09-29 10:07:22 -06:00
b4eab5e9b0 add examples 2022-09-28 13:08:56 -06:00
43698824f1 add examples 2022-09-28 13:07:50 -06:00
a03a6a9692 compute pace for ACE descriptor calculations 2022-09-28 10:12:00 -06:00
57d2086a5c Merge branch 'develop' of github.com:lammps/lammps into develop 2022-09-28 10:04:00 +02:00
cca7a53132 Patching heat implementation and adding example 2022-09-25 14:53:53 -06:00
dc1b7d4cfe Fixing mathematical errors in force/torque calculations 2022-09-21 16:31:18 -06:00
13be68aece Fixing argument errors and adding note on datafiles to doc 2022-09-19 22:14:59 -06:00
7f16225ffb Removing leftover file 2022-09-16 16:57:32 -06:00
c9ba3f4157 Adding classic tangential models 2022-09-16 16:56:20 -06:00
71db9f5e75 Fixing tangential damping coefficient 2022-09-16 14:16:34 -06:00
b61cfb7480 Fixing errors in gran/wall reff calculation and adding heat capabilities 2022-09-16 09:06:52 -06:00
038f4a5210 Adding variable temperature to fix gran/wall, misc fixes/updates 2022-09-14 21:40:00 -06:00
06953bd67a Adding none submodels, further cleaning up mixing, misc edits 2022-09-09 17:12:51 -06:00
6a6291827f Simplifying mixing coeffs, other misc clean ups 2022-09-09 15:11:24 -06:00
3df0abd081 Debugging restarts 2022-09-09 14:13:52 -06:00
25b89473b2 changing order of central bin 2022-09-03 16:46:55 -06:00
1cd18d2b37 Replacing # of models with macro, may revise... 2022-08-24 14:47:10 -06:00
c5da64ccea Fixing merge conflicts 2022-08-24 12:22:00 -06:00
92c10cc210 Fixing memory issues, passing lmp ptr to submodels, and other misc fixes/changes 2022-08-24 12:19:27 -06:00
12c1923511 Updating mixing 2022-08-12 17:36:53 -06:00
454f6b6c0d Merge branch 'develop' of github.com:lammps/lammps into develop 2022-08-09 15:05:41 +02:00
df22b91ac3 Updating coeff parsing, first pass on fix wall/gran, misc fixes 2022-08-08 08:01:48 -06:00
fb2cf0c32a Prototyping new nstencil/npair classes 2022-08-04 14:05:18 -06:00
22de863da9 Fixing compilation errors and finishing model classes 2022-08-01 13:12:44 -06:00
673823dd82 Merge branch 'develop' of github.com:lammps/lammps into develop 2022-07-31 12:52:52 +02:00
8557ce7c97 Adding normal, damping, and tangential sub models 2022-07-15 17:57:38 -06:00
6a1a06d76c Take 2 2022-07-15 12:30:30 -06:00
6dae78f900 Merge pull request #2 from dsbolin/gran-modular
Pulling in Dan's re-refactor
2022-07-14 12:40:06 -06:00
6b40ae29e4 First stab 2022-07-14 11:29:13 -06:00
bb92dae6d3 Simplying conduction 2022-07-05 10:12:12 -06:00
ba1c4e8e81 Defining conduction from area, a 2022-06-29 15:34:39 -06:00
222c40ebcf Fixing memory errors 2022-06-29 15:02:05 -06:00
1faa7397d3 Fixing complier issues, adding dump options, initail conduction 2022-06-18 10:11:57 -06:00
468a6d9f29 creating ContactModel class 2022-06-16 14:27:57 -06:00
68e00a60bd Fixing rare bug in writing restart files with history 2022-06-15 12:37:02 -06:00
c0078fda05 Begin refactoring of pair granular 2022-06-14 09:27:14 -06:00
66188d9d57 unified naming scheme 2022-06-13 09:00:15 -06:00
c6d59fc526 adding documentation and integration fix 2022-06-12 10:09:26 -06:00
e01ef14025 Adding documentation and integration fix 2022-06-12 10:06:16 -06:00
783cb117c5 Merge branch 'develop' of github.com:lammps/lammps into develop 2022-06-09 14:21:27 +02:00
f024abfe34 make simpler, faster, more self-contained
(and fix bugs)
2022-06-07 11:10:36 -04:00
5bc1fb1580 revert unneeded changes to atom_vec 2022-06-07 10:47:18 -04:00
2f003e86b9 Merge branch 'lammps:develop' into replicate_periodic_box 2022-06-07 10:39:55 -04:00
e8e2a0fd40 Merge branch 'develop' into replicate_periodic_box 2022-05-29 13:29:56 -04:00
cb7db85096 Merge branch 'develop' of github.com:lammps/lammps into develop 2022-05-13 13:44:04 +02:00
15f0a63260 Merge branch 'develop' of github.com:lammps/lammps into develop 2022-05-06 10:04:49 +02:00
662cfca43b Merge branch 'develop' of github.com:lammps/lammps into develop 2022-05-02 13:07:26 +02:00
3d3cca2964 Merge branch 'develop' of github.com:lammps/lammps into develop 2022-04-28 22:50:54 +02:00
b4c58c9828 actually reset image flags 2022-04-22 21:19:53 -04:00
78458a2143 add mention of example in docs 2022-02-23 01:04:04 -05:00
be6c41a85a delete now-unused variable 2022-02-23 00:44:39 -05:00
e0c0739b11 Merge branch 'develop' of github.com:lammps/lammps into develop 2022-02-15 15:15:59 +01:00
200ea62fd3 simplify things 2022-02-13 15:22:13 -05:00
793cfe05f9 spacing 2022-02-13 15:09:32 -05:00
2c0a9cf572 better contain bondlist code 2022-02-13 15:06:10 -05:00
5c1486661c revert now unnecessary edits 2022-02-13 14:53:16 -05:00
44c3f4e562 fix for breaking kokkos 2022-02-13 14:51:23 -05:00
437e7829cc Update replicate.rst 2022-02-13 14:11:15 -05:00
7288d78331 reset image flag for bondlist option 2022-02-13 14:06:19 -05:00
2a4dbe5bbc bondlist_flag correction 2022-02-13 13:51:20 -05:00
21c0702917 Merge pull request #1 from Bibobu/EAM_alloy_python_script
Added Python version of Zhou04_create_v2.f: create_eam.py and eamData…
2022-02-12 12:51:17 +01:00
22cca33966 typo 2022-02-07 18:02:17 -05:00
ac7db5041f add example for bondlist option validation 2022-02-06 16:14:30 -05:00
caafe2ff26 bondlist option docs 2022-02-06 15:31:02 -05:00
e384dfa424 'bondlist' option for replicate command
generalizes the command to work for periodic systems
2022-02-06 14:44:49 -05:00
7a457c143c Fixing missing template keyword when calling method. 2019-03-28 21:40:23 +00:00
661cfef0fb Merge branch 'master' of https://github.com/lammps/lammps into granular-kokkos 2019-03-28 19:34:17 +00:00
4349750e31 Fixing issue with destructor not verifying if pointer was null. 2019-03-28 19:20:49 +00:00
eb38f7404c Adding fix wall/gran for kokkos. Just hooke/history style for now. 2019-03-28 19:19:50 +00:00
4908f7f93a Fixing issue with FixNeighHistoryKokkos::unpack_exchange_kokkos not considering arbitrary pack sizes. 2019-03-28 19:18:03 +00:00
01399a4f09 Merge tag 'patch_28Feb2019' of https://github.com/lammps/lammps into granular-kokkos
patch 28Feb19
2019-03-15 14:33:50 +00:00
0bf48ac47f Implementing comm exchange on device for fixes. 2018-10-19 17:14:01 +01:00
93f149951e Merge branch 'granular-kokkos' of https://github.com/valleymouth/lammps into granular-kokkos 2018-10-15 15:34:28 +01:00
55cc76bac7 Merge branch 'comm_kokkos' into granular-kokkos 2018-10-15 15:33:59 +01:00
9cc72ab3a0 Implementing FixNeighHistoryKokkos using Kokkos communication. 2018-10-15 15:33:23 +01:00
7159 changed files with 838710 additions and 411613 deletions

44
.github/CODEOWNERS vendored
View File

@ -37,7 +37,8 @@ src/MESONT/* @iafoss
src/ML-HDNNP/* @singraber
src/ML-IAP/* @athomps
src/ML-PACE/* @yury-lysogorskiy
src/ML-POD/* @exapde @rohskopf
src/ML-POD/* @exapde
src/ML-UF3/* @monk-04
src/MOFFF/* @hheenen
src/MOLFILE/* @akohlmey
src/NETCDF/* @pastewka
@ -49,6 +50,7 @@ src/PTM/* @pmla
src/QMMM/* @akohlmey
src/REACTION/* @jrgissing
src/REAXFF/* @hasanmetin @stanmoore1
src/RHEO/* @jtclemm
src/SCAFACOS/* @rhalver
src/SNAP/* @athomps
src/SPIN/* @julient31
@ -58,15 +60,26 @@ src/VTK/* @rbberger
# individual files in packages
src/GPU/pair_vashishta_gpu.* @andeplane
src/KOKKOS/pair_vashishta_kokkos.* @andeplane
src/KOKKOS/pair_vashishta_kokkos.* @andeplane @stanmoore1
src/KOSSOS/pair_pod_kokkos.* @exapde @stanmoore1
src/MANYBODY/pair_vashishta_table.* @andeplane
src/MANYBODY/pair_atm.* @sergeylishchuk
src/MANYBODY/pair_nb3b_screened.* @flodesani
src/REPLICA/*_grem.* @dstelter92
src/EXTRA-COMMAND/geturl.* @akohlmey
src/EXTRA-COMMAND/group_ndx.* @akohlmey
src/EXTRA-COMMAND/ndx_group.* @akohlmey
src/EXTRA-COMPUTE/compute_stress_mop*.* @RomainVermorel
src/EXTRA-COMPUTE/compute_born_matrix.* @Bibobu @athomps
src/EXTRA-FIX/fix_deform_pressure.* @jtclemm
src/MISC/*_tracker.* @jtclemm
src/MC/fix_gcmc.* @athomps
src/MC/fix_sgcmc.* @athomps
src/REAXFF/compute_reaxff_atom.* @rbberger
src/KOKKOS/compute_reaxff_atom_kokkos.* @rbberger
src/REPLICA/fix_pimd_langevin.* @Yi-FanLi
src/DPD-BASIC/pair_dpd_coul_slater_long.* @Eddy-Barraud
src/GPU/pair_dpd_coul_slater_long.* @Eddy-Barraud
# core LAMMPS classes
src/lammps.* @sjplimp
@ -78,7 +91,7 @@ src/bond.* @sjplimp
src/comm*.* @sjplimp
src/compute.* @sjplimp
src/dihedral.* @sjplimp
src/domain.* @sjplimp
src/domain.* @sjplimp @stanmoore1
src/dump*.* @sjplimp
src/error.* @sjplimp
src/finish.* @sjplimp
@ -86,9 +99,11 @@ src/fix.* @sjplimp
src/force.* @sjplimp
src/group.* @sjplimp
src/improper.* @sjplimp
src/info.* @akohlmey
src/kspace.* @sjplimp
src/lmptyp.h @sjplimp
src/library.* @sjplimp
src/lmptype.h @sjplimp
src/label_map.* @jrgissing @akohlmey
src/library.* @sjplimp @akohlmey
src/main.cpp @sjplimp
src/min_*.* @sjplimp
src/memory.* @sjplimp
@ -96,12 +111,12 @@ src/modify.* @sjplimp @stanmoore1
src/molecule.* @sjplimp
src/my_page.h @sjplimp
src/my_pool_chunk.h @sjplimp
src/npair*.* @sjplimp
src/ntopo*.* @sjplimp
src/nstencil*.* @sjplimp
src/neighbor.* @sjplimp
src/nbin*.* @sjplimp
src/neigh_*.* @sjplimp
src/npair*.* @sjplimp @jtclemm
src/ntopo*.* @sjplimp @jtclemm
src/nstencil*.* @sjplimp @jtclemm
src/neighbor.* @sjplimp @jtclemm
src/nbin*.* @sjplimp @jtclemm
src/neigh_*.* @sjplimp @jtclemm
src/output.* @sjplimp
src/pair.* @sjplimp
src/rcb.* @sjplimp
@ -134,6 +149,7 @@ src/timer.* @akohlmey
src/utils.* @akohlmey @rbberger
src/verlet.* @sjplimp @stanmoore1
src/math_eigen_impl.h @jewettaij
src/fix_press_langevin.* @Bibobu
# tools
tools/coding_standard/* @akohlmey @rbberger
@ -150,12 +166,12 @@ tools/vim/* @hammondkd
unittest/* @akohlmey
# cmake
cmake/* @junghans @rbberger
cmake/* @akohlmey
cmake/Modules/LAMMPSInterfacePlugin.cmake @akohlmey
cmake/Modules/MPI4WIN.cmake @akohlmey
cmake/Modules/OpenCLLoader.cmake @akohlmey
cmake/Modules/Packages/COLVARS.cmake @junghans @rbberger @giacomofiorin
cmake/Modules/Packages/KIM.cmake @junghans @rbberger @ellio167
cmake/Modules/Packages/COLVARS.cmake @giacomofiorin
cmake/Modules/Packages/KIM.cmake @ellio167
cmake/presets/*.cmake @akohlmey
# python

View File

@ -1,13 +1,13 @@
# Contributing to LAMMPS via GitHub
Thank your for considering to contribute to the LAMMPS software project.
Thank you for considering to contribute to the LAMMPS software project.
The following is a set of guidelines as well as explanations of policies and work flows for contributing to the LAMMPS molecular dynamics software project. These guidelines focus on submitting issues or pull requests on the LAMMPS GitHub project.
Thus please also have a look at:
* [The guide for submitting new features in the LAMMPS manual](https://www.lammps.org/doc/Modify_contribute.html)
* [The guide on programming style and requirement in the LAMMPS manual](https://www.lammps.org/doc/Modify_style.html)
* [The GitHub tutorial in the LAMMPS manual](http://lammps.sandia.gov/doc/Howto_github.html)
* [The guide for submitting new features in the LAMMPS manual](https://docs.lammps.org/Modify_contribute.html)
* [The guide on programming style and requirement in the LAMMPS manual](https://docs.lammps.org/Modify_requirements.html)
* [The GitHub tutorial in the LAMMPS manual](http://docs.lammps.org/Howto_github.html)
## Table of Contents
@ -27,17 +27,17 @@ __
## I don't want to read this whole thing I just have a question!
> **Note:** Please do not file an issue to ask a general question about LAMMPS, its features, how to use specific commands, or how perform simulations or analysis in LAMMPS. Instead post your question to either the ['lammps-users' mailing list](https://lammps.sandia.gov/mail.html) or the [LAMMPS Material Science Discourse forum](https://matsci.org/lammps). You do not need to be subscribed to post to the list (but a mailing list subscription avoids having your post delayed until it is approved by a mailing list moderator). Most posts to the mailing list receive a response within less than 24 hours. Before posting to the mailing list, please read the [mailing list guidelines](https://lammps.sandia.gov/guidelines.html). Following those guidelines will help greatly to get a helpful response. Always mention which LAMMPS version you are using. The LAMMPS forum was recently created as part of a larger effort to build a materials science community and have discussions not just about using LAMMPS. Thus the forum may be also used for discussions that would be off-topic for the mailing list. Those will just have to be posted to a more general category.
> **Note:** Please do not file an issue to ask a general question about LAMMPS, its features, how to use specific commands, or how perform simulations or analysis in LAMMPS. Instead post your question to the [LAMMPS Material Science Discourse forum](https://matsci.org/lammps). Before posting to the forum, please read the general [guidelines](https://www.lammps.org/guidelines.html) and the forum specific [suggestions](https://matsci.org/t/please-read-this-first-guidelines-and-suggestions-for-posting-lammps-questions/49913). Following those guidelines and suggestions will help greatly to get a helpful response. *Always* mention which LAMMPS version you are using. The MatSci website may be also used for discussions that would be off-topic for the LAMMPS categories. Those will just have to be posted to a different category.
## How Can I Contribute?
There are several ways how you can actively contribute to the LAMMPS project: you can discuss compiling and using LAMMPS, and solving LAMMPS related problems with other LAMMPS users on the lammps-users mailing list or the forum, you can report bugs or suggest enhancements by creating issues on GitHub (or posting them to the lammps-users mailing list or posting in the LAMMPS Materials Science Discourse forum), and you can contribute by submitting pull requests on GitHub or e-mail your code
to one of the [LAMMPS core developers](https://lammps.sandia.gov/authors.html). As you may see from the aforementioned developer page, the LAMMPS software package includes the efforts of a very large number of contributors beyond the principal authors and maintainers.
to one of the [LAMMPS core developers](https://www.lammps.org/authors.html). As you may see from the aforementioned developer page, the LAMMPS software package includes the efforts of a very large number of contributors beyond the principal authors and maintainers.
### Discussing How To Use LAMMPS
The LAMMPS mailing list is hosted at SourceForge. The mailing list began in 2005, and now includes tens of thousands of messages in thousands of threads. LAMMPS developers try to respond to posted questions in a timely manner, but there are no guarantees. Please consider that people live in different timezone and may not have time to answer e-mails outside of their work hours.
You can post to list by sending your email to lammps-users at lists.sourceforge.net (no subscription required), but before posting, please read the [mailing list guidelines](https://lammps.sandia.gov/guidelines.html) to maximize your chances to receive a helpful response.
You can post to list by sending your email to lammps-users at lists.sourceforge.net (no subscription required), but before posting, please read the [mailing list guidelines](https://www.lammps.org/guidelines.html) to maximize your chances to receive a helpful response.
Anyone can browse/search previous questions/answers in the archives. You do not have to subscribe to the list to post questions, receive answers (to your questions), or browse/search the archives. You **do** need to subscribe to the list if you want emails for **all** the posts (as individual messages or in digest form), or to answer questions yourself. Feel free to sign up and help us out! Answering questions from fellow LAMMPS users is a great way to pay back the community for providing you a useful tool for free, and to pass on the advice you have received yourself to others. It improves your karma and helps you understand your own research better.
@ -47,7 +47,7 @@ The LAMMPS Materials Science Discourse forum was created recently to facilitate
### Reporting Bugs
While developers writing code for LAMMPS are careful to test their code, LAMMPS is such a large and complex software, that it is impossible to test for all combinations of features under all normal and not so normal circumstances. Thus bugs do happen, and if you suspect, that you have encountered one, please try to document it and report it as an [Issue](https://github.com/lammps/lammps/issues) on the LAMMPS GitHub project web page. However, before reporting a bug, you need to check whether this is something that may have already been corrected. The [Latest Features and Bug Fixes in LAMMPS](https://lammps.sandia.gov/bug.html) web page lists all significant changes to LAMMPS over the years. It also tells you what the current latest development version of LAMMPS is, and you should test whether your issue still applies to that version.
While developers writing code for LAMMPS are careful to test their code, LAMMPS is such a large and complex software, that it is impossible to test for all combinations of features under all normal and not so normal circumstances. Thus bugs do happen, and if you suspect, that you have encountered one, please try to document it and report it as an [Issue](https://github.com/lammps/lammps/issues) on the LAMMPS GitHub project web page. However, before reporting a bug, you need to check whether this is something that may have already been corrected. The [Latest Features and Bug Fixes in LAMMPS](https://www.lammps.org/bug.html) web page lists all significant changes to LAMMPS over the years. It also tells you what the current latest development version of LAMMPS is, and you should test whether your issue still applies to that version.
When you click on the green "New Issue" button, you will be provided with a text field, where you can enter your message. That text field with contain a template with several headlines and some descriptions. Keep the headlines that are relevant to your reported potential bug and replace the descriptions with the information as suggested by the descriptions.
You can also attach small text files (please add the file name extension `.txt` or it will be rejected), images, or small compressed text files (using gzip, do not use RAR or 7-ZIP or similar tools that are uncommon outside of Windows machines). In many cases, bugs are best illustrated by providing a small input deck (do **not** attach your entire production input, but remove everything that is not required to reproduce the issue, and scale down your system size, that the resulting calculation runs fast and can be run on small desktop quickly).
@ -65,9 +65,9 @@ To be able to submit an issue on GitHub, you have to register for an account (fo
We encourage users to submit new features or modifications for LAMMPS. Instructions, guidelines, requirements,
and recommendations are in the following sections of the LAMMPS manual:
* [The guide for submitting new features in the LAMMPS manual](https://lammps.sandia.gov/doc/Modify_contribute.html)
* [The guide on programming style and requirement in the LAMMPS manual](https://lammps.sandia.gov/doc/Modify_contribute.html)
* [The GitHub tutorial in the LAMMPS manual](http://lammps.sandia.gov/doc/Howto_github.html)
* [The guide for submitting new features in the LAMMPS manual](https://docs.lammps.org/Modify_contribute.html)
* [The guide on programming style and requirement in the LAMMPS manual](https://docs.lammps.org/Modify_requirements.html)
* [The GitHub tutorial in the LAMMPS manual](http://docs.lammps.org/Howto_github.html)
## GitHub Workflows
@ -85,7 +85,7 @@ For bug reports, the next step is that one of the core LAMMPS developers will se
### Pull Requests
Pull requests are the **only** way that changes get made to the LAMMPS distribution. So also the LAMMPS core developers will submit pull requests for their own changes and discuss them on GitHub. Thus if you submit a pull request it will be treated in a similar fashion. When you submit a pull request you may opt to submit a "Draft" pull request. That means your changes are visible and will be subject to testing, but reviewers will not be (auto-)assigned and comments will take into account that this is not complete. On the other hand, this is a perfect way to ask the LAMMPS developers for comments on non-obvious changes and get feedback and possible suggestions for improvements or recommendations about what to avoid.
Immediately after the submission, the LAMMPS continuing integration server at ci.lammps.org will download your submitted branch and perform a number of tests: it will tests whether it compiles cleanly under various conditions, it will also do a check on whether your included documentation translates cleanly and run some unit tests and other checks. Whether these tests are successful or fail will be recorded. If a test fails, please inspect the corresponding output on the CI server and take the necessary steps, if needed, so that the code can compile cleanly again. The test will be re-run each time the pull request is updated with a push to the remote branch on GitHub. If you are unsure about what you need to change, ask a question in the discussion area of the pull request.
Immediately after the submission, the LAMMPS continuing integration server at https://ci.lammps.org will download your submitted branch and perform a number of tests: it will tests whether it compiles cleanly under various conditions, it will also do a check on whether your included documentation translates cleanly and run some unit tests and other checks. Whether these tests are successful or fail will be recorded. If a test fails, please inspect the corresponding output on the CI server and take the necessary steps, if needed, so that the code can compile cleanly again. The test will be re-run each time the pull request is updated with a push to the remote branch on GitHub. If you are unsure about what you need to change, ask a question in the discussion area of the pull request.
Next a LAMMPS core developer will self-assign and do an overall technical assessment of the submission. If you submitted a draft pull request, this will not happen unless you mark it "ready for review". If you are not yet invited as a LAMMPS collaborator, and your contribution seems significant, you may also receive an invitation for collaboration on the LAMMPS repository. As part of the assessment, the pull request will be categorized with labels. There are two special labels: `needs_work` (indicates that work from the submitter of the pull request is needed) and `work_in_progress` (indicates, that the assigned LAMMPS developer will make changes, if not done by the contributor who made the submit).
You may also receive comments and suggestions on the overall submission or specific details and on occasion specific requests for changes as part of the review. If permitted, also additional changes may be pushed into your pull request branch or a pull request may be filed in your LAMMPS fork on GitHub to include those changes.
The LAMMPS developer may then decide to assign the pull request to another developer (e.g. when that developer is more knowledgeable about the submitted feature or enhancement or has written the modified code). It may also happen, that additional developers are requested to provide a review and approve the changes. For submissions, that may change the general behavior of LAMMPS, or where a possibility of unwanted side effects exists, additional tests may be requested by the assigned developer.

108
.github/release_steps.md vendored Normal file
View File

@ -0,0 +1,108 @@
# LAMMPS Release Steps
The following notes chronicle the current steps for preparing and publishing LAMMPS releases. For
definitions of LAMMPS versions and releases mean, please refer to [the corresponding section in the
LAMMPS manual](https://docs.lammps.org/Manual_version.html).
## LAMMPS Feature Release
A LAMMPS feature release is currently prepared after about 500 to 750 commits to the 'develop'
branch or after a period of four weeks up to two months. This is not a fixed rule, though, since
external circumstances can cause delays in preparing a release, or pull requests that are desired to
be merged for the release are not yet completed.
### Preparing a 'next\_release' branch
Create a 'next\_release' branch off 'develop' and make the following changes:
- set the LAMMPS\_VERSION define to the planned release date in src/version.h in the format
"D Mmm YYYY" or "DD Mmm YYYY"
- remove the LAMMPS\_UPDATE define in src/version.h
- update the release date in doc/lammps.1
- update all TBD arguments for ..versionadded::, ..versionchanged:: ..deprecated:: to the
planned release date in the format "DMmmYYYY" or "DDMmmYYYY"
- check release notes for merged new features and check if ..versionadded:: or ..versionchanged::
are missing and need to be added
Submit this pull request, rebase if needed. This is the last pull request merged for the release
and should not contain any other changes. (Exceptions: this document, last minute trivial(!) changes).
This PR shall not be merged before **all** pending tests have completed and cleared. If needed, a
bugfix pull request should be created and merged to clear all tests.
### Create release on GitHub
When all pending pull requests for the release are merged and have cleared testing, the
'next\_release' branch is merged into 'develop'.
Check out 'develop' locally, pull the latest changes, merge them into 'release', apply a suitable
release tag (for historical reasons the tag starts with "patch_" followed by the date, and finally
push everything back to GitHub. Example:
```
git checkout develop
git pull
git checkout release
git pull
git merge --ff-only develop
git tag -s -m "LAMMPS feature release 19 November 2024" patch_19Nov2024
git push git@github.com:lammps/lammps.git --tags develop release
```
Go to https://github.com/lammps/lammps/releases and create a new (draft) release page or check the
existing draft for any necessary changes from pull requests that were merged but are not listed.
Then select the applied tag for the release in the "Choose a tag" dropdown list. Go to the bottom of
the list and select the "Set as pre-release" checkbox. The "Set as the latest release" button is
reserved for stable releases and updates to them.
If everything is in order, you can click on the "Publish release" button. Otherwise, click on "Save
draft" and finish pending tasks until you can return to edit the release page and publish it.
### Update download website, prepare pre-compiled packages, update packages to GitHub
Publishing the release on GitHub will trigger the Temple Jenkins cluster to update
the https://docs.lammps.org/ website with the documentation for the new feature release
and it will create a tarball for download (which contains the translated manual).
Build a fully static LAMMPS installation using a musl-libc cross-compiler, install into a
lammps-static folder, and create a tarball called lammps-linux-x86_64-19Nov2024.tar.gz (or using a
corresponding date with a future release) from the lammps-static folder and upload it to GitHub
with:
```
gh release upload patch_19Nov2024 ~/Downloads/lammps-linux-x86_64-19Nov2024.tar.gz
```
## LAMMPS Stable Release
A LAMMPS stable release is prepared about once per year in the months July, August, or September.
One (or two, if needed) feature releases before the stable release shall contain only bug fixes
or minor feature updates in optional packages. Also substantial changes to the core of the code
shall be applied rather toward the beginning of a development cycle between two stable releases
than toward the end. The intention is to stablilize significant change to the core and have
outside users and developers try them out during the development cycle; the sooner the changes
are included, the better chances for spotting peripheral bugs and issues.
### Prerequesites
Before making a stable release all remaining backported bugfixes shall be released as a (final)
stable update release (see below).
A LAMMPS stable release process starts like a feature release (see above), only that this feature
release is called a "Stable Release Candidate" and no assets are uploaded to GitHub.
### Synchronize 'maintenance' branch with 'release'
The state of the 'release' branch is then transferred to the 'maintenance' branch (which will
have diverged significantly from 'release' due to the selectively backported bug fixes).
### Fast-forward merge of 'maintenance' into 'stable' and apply tag
At this point it should be possible to do a fast-forward merge of 'maintenance' to 'stable'
and then apply the stable\_DMmmYYYY tag.
### Push branches and tags
## LAMMPS Stable Update Release

92
.github/workflows/check-cpp23.yml vendored Normal file
View File

@ -0,0 +1,92 @@
# GitHub action to build LAMMPS on Linux with gcc and C++23
name: "Check for C++23 Compatibility"
on:
push:
branches:
- develop
pull_request:
branches:
- develop
workflow_dispatch:
jobs:
build:
name: Build with C++23 support enabled
if: ${{ github.repository == 'lammps/lammps' }}
runs-on: ubuntu-latest
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install extra packages
run: |
sudo apt-get update
sudo apt-get install -y ccache \
libeigen3-dev \
libcurl4-openssl-dev \
mold \
mpi-default-bin \
mpi-default-dev \
ninja-build \
python3-dev
- name: Create Build Environment
run: mkdir build
- name: Set up ccache
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: linux-cpp23-ccache-${{ github.sha }}
restore-keys: linux-cpp23-ccache-
- name: Building LAMMPS via CMake
shell: bash
run: |
ccache -z
python3 -m venv linuxenv
source linuxenv/bin/activate
python3 -m pip install numpy
python3 -m pip install pyyaml
cmake -S cmake -B build \
-C cmake/presets/most.cmake \
-C cmake/presets/kokkos-openmp.cmake \
-D CMAKE_CXX_STANDARD=23 \
-D CMAKE_CXX_COMPILER=g++ \
-D CMAKE_C_COMPILER=gcc \
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache \
-D CMAKE_C_COMPILER_LAUNCHER=ccache \
-D CMAKE_BUILD_TYPE=Debug \
-D CMAKE_CXX_FLAGS_DEBUG="-Og -g" \
-D DOWNLOAD_POTENTIALS=off \
-D BUILD_MPI=on \
-D BUILD_SHARED_LIBS=on \
-D BUILD_TOOLS=off \
-D ENABLE_TESTING=off \
-D MLIAP_ENABLE_ACE=on \
-D MLIAP_ENABLE_PYTHON=off \
-D PKG_AWPMD=on \
-D PKG_GPU=on \
-D GPU_API=opencl \
-D PKG_KOKKOS=on \
-D PKG_LATBOLTZ=on \
-D PKG_MDI=on \
-D PKG_MANIFOLD=on \
-D PKG_ML-PACE=on \
-D PKG_ML-RANN=off \
-D PKG_MOLFILE=on \
-D PKG_RHEO=on \
-D PKG_PTM=on \
-D PKG_PYTHON=on \
-D PKG_QTB=on \
-D PKG_SMTBQ=on \
-G Ninja
cmake --build build
ccache -s

89
.github/workflows/check-vla.yml vendored Normal file
View File

@ -0,0 +1,89 @@
# GitHub action to build LAMMPS on Linux with gcc and -Werror=vla
name: "Check for Variable Length Arrays"
on:
push:
branches:
- develop
pull_request:
branches:
- develop
workflow_dispatch:
jobs:
build:
name: Build with -Werror=vla
if: ${{ github.repository == 'lammps/lammps' }}
runs-on: ubuntu-latest
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install extra packages
run: |
sudo apt-get update
sudo apt-get install -y ccache \
libeigen3-dev \
libcurl4-openssl-dev \
mold \
mpi-default-bin \
mpi-default-dev \
ninja-build \
python3-dev
- name: Create Build Environment
run: mkdir build
- name: Set up ccache
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: linux-vla-ccache-${{ github.sha }}
restore-keys: linux-vla-ccache-
- name: Building LAMMPS via CMake
shell: bash
run: |
ccache -z
python3 -m venv linuxenv
source linuxenv/bin/activate
python3 -m pip install numpy
python3 -m pip install pyyaml
cmake -S cmake -B build \
-C cmake/presets/most.cmake \
-D CMAKE_CXX_COMPILER=g++ \
-D CMAKE_C_COMPILER=gcc \
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache \
-D CMAKE_C_COMPILER_LAUNCHER=ccache \
-D CMAKE_BUILD_TYPE=Debug \
-D CMAKE_CXX_FLAGS_DEBUG="-Og -g -Werror=vla" \
-D DOWNLOAD_POTENTIALS=off \
-D BUILD_MPI=on \
-D BUILD_SHARED_LIBS=off \
-D BUILD_TOOLS=off \
-D ENABLE_TESTING=off \
-D MLIAP_ENABLE_ACE=on \
-D MLIAP_ENABLE_PYTHON=off \
-D PKG_AWPMD=on \
-D PKG_GPU=on \
-D GPU_API=opencl \
-D PKG_LATBOLTZ=on \
-D PKG_MDI=on \
-D PKG_MANIFOLD=on \
-D PKG_ML-PACE=on \
-D PKG_ML-RANN=off \
-D PKG_MOLFILE=on \
-D PKG_RHEO=on \
-D PKG_PTM=on \
-D PKG_PYTHON=on \
-D PKG_QTB=on \
-D PKG_SMTBQ=on \
-G Ninja
cmake --build build
ccache -s

View File

@ -25,17 +25,17 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/${{ matrix.language }}.yml
@ -55,4 +55,4 @@ jobs:
cmake --build . --parallel 2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

View File

@ -1,5 +1,5 @@
# GitHub action to build LAMMPS on Windows with Visual C++
name: "Native Windows Compilation and Unit Tests"
# GitHub action to test LAMMPS on Windows with Visual C++
name: "Windows Unit Tests"
on:
push:
@ -11,48 +11,59 @@ on:
workflow_dispatch:
concurrency:
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
jobs:
build:
name: Windows Compilation Test
if: ${{ github.repository == 'lammps/lammps' }}
runs-on: windows-latest
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Enable MSVC++
uses: lammps/setup-msvc-dev@v3
with:
arch: x64
- name: Install Ccache
run: |
choco install ccache ninja -y
- name: Set up ccache
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: win-unit-ccache-${{ github.sha }}
restore-keys: win-unit-ccache-
- name: Select Python version
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Building LAMMPS via CMake
shell: bash
run: |
ccache -z
python3 -m pip install numpy
python3 -m pip install pyyaml
nuget install MSMPIsdk
nuget install MSMPIDIST
cmake -C cmake/presets/windows.cmake \
-D DOWNLOAD_POTENTIALS=off \
-D PKG_PYTHON=on \
-D WITH_PNG=off \
-D WITH_JPEG=off \
-S cmake -B build \
-D BUILD_SHARED_LIBS=on \
-D LAMMPS_EXCEPTIONS=on \
-D ENABLE_TESTING=on
cmake --build build --config Release --parallel 2
cmake -C cmake\presets\windows.cmake -D CMAKE_CXX_COMPILER=cl -D CMAKE_CXX_COMPILER_LAUNCHER=ccache -D CMAKE_C_COMPILER=cl -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_Fortran_COMPILER="" -D DOWNLOAD_POTENTIALS=off -D PKG_PYTHON=on -D WITH_PNG=off -D WITH_JPEG=off -S cmake -B build -D BUILD_SHARED_LIBS=on -D ENABLE_TESTING=on -D CMAKE_BUILD_TYPE=Release -G Ninja
cmake --build build
ccache -s
- name: Run LAMMPS executable
shell: bash
run: |
./build/Release/lmp.exe -h
./build/Release/lmp.exe -in bench/in.lj
build\lmp.exe -h
build\lmp.exe -in bench\in.lj
- name: Run Unit Tests
working-directory: build
shell: bash
run: ctest -V -C Release -E FixTimestep:python_move_nve
run: ctest -V -E FixTimestep:python_move_nve

View File

@ -16,7 +16,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2
@ -25,7 +25,7 @@ jobs:
- name: Cache Coverity
id: cache-coverity
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./download/
key: ${{ runner.os }}-download-${{ hashFiles('**/coverity_tool.*') }}
@ -59,25 +59,20 @@ jobs:
-D BUILD_SHARED_LIBS=on \
-D LAMMPS_SIZES=SMALLBIG \
-D LAMMPS_EXCEPTIONS=off \
-D PKG_MESSAGE=on \
-D PKG_MPIIO=on \
-D PKG_ATC=on \
-D PKG_AWPMD=on \
-D PKG_BOCS=on \
-D PKG_EFF=on \
-D PKG_H5MD=on \
-D PKG_INTEL=on \
-D PKG_LATBOLTZ=on \
-D PKG_MANIFOLD=on \
-D PKG_MDI=on \
-D PKG_MGPT=on \
-D PKG_ML-PACE=on \
-D PKG_ML-RANN=on \
-D PKG_MOLFILE=on \
-D PKG_NETCDF=on \
-D PKG_PTM=on \
-D PKG_QTB=on \
-D PKG_SMTBQ=on \
-D PKG_TALLY=on \
../cmake
- name: Run Coverity Scan

109
.github/workflows/full-regression.yml vendored Normal file
View File

@ -0,0 +1,109 @@
# GitHub action to build LAMMPS on Linux and run regression tests
name: "Full Regression Test"
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
build:
name: Build LAMMPS
# restrict to official LAMMPS repository
if: ${{ github.repository == 'lammps/lammps' }}
runs-on: ubuntu-latest
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
strategy:
max-parallel: 8
matrix:
idx: [ 0, 1, 2, 3, 4, 5, 6, 7 ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
show-progress: false
- name: Install extra packages
run: |
sudo apt-get update
sudo apt-get install -y ccache ninja-build libeigen3-dev \
libcurl4-openssl-dev python3-dev \
mpi-default-bin mpi-default-dev
- name: Create Build Environment
run: mkdir build
- name: Set up ccache
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: linux-full-ccache-${{ github.sha }}
restore-keys: linux-full-ccache-
- name: Building LAMMPS via CMake
shell: bash
run: |
ccache -z
python3 -m venv linuxenv
source linuxenv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install numpy pyyaml junit_xml
cmake -S cmake -B build \
-C cmake/presets/gcc.cmake \
-C cmake/presets/most.cmake \
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache \
-D CMAKE_C_COMPILER_LAUNCHER=ccache \
-D BUILD_SHARED_LIBS=off \
-D DOWNLOAD_POTENTIALS=off \
-D PKG_MANIFOLD=on \
-D PKG_ML-PACE=on \
-D PKG_ML-RANN=on \
-D PKG_RHEO=on \
-D PKG_PTM=on \
-D PKG_PYTHON=on \
-D PKG_QTB=on \
-D PKG_SMTBQ=on \
-G Ninja
cmake --build build
ccache -s
- name: Run Full Regression Tests
shell: bash
run: |
source linuxenv/bin/activate
python3 tools/regression-tests/run_tests.py \
--lmp-bin=build/lmp \
--config-file=tools/regression-tests/config_serial.yaml \
--examples-top-level=examples --analyze --num-workers=8
python3 tools/regression-tests/run_tests.py \
--lmp-bin=build/lmp \
--config-file=tools/regression-tests/config_serial.yaml \
--list-input=input-list-${{ matrix.idx }}.txt \
--output-file=output-${{ matrix.idx }}.xml \
--progress-file=progress-${{ matrix.idx }}.yaml \
--log-file=run-${{ matrix.idx }}.log
tar -cvf full-regression-test-${{ matrix.idx }}.tar run-${{ matrix.idx }}.log progress-${{ matrix.idx }}.yaml output-${{ matrix.idx }}.xml
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: full-regression-test-artifact-${{ matrix.idx }}
path: full-regression-test-${{ matrix.idx }}.tar
merge:
runs-on: ubuntu-latest
needs: build
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: merged-full-regresssion-artifact
pattern: full-regression-test-artifact-*

126
.github/workflows/kokkos-regression.yaml vendored Normal file
View File

@ -0,0 +1,126 @@
# GitHub action to build LAMMPS on Linux and run selected regression tests
name: "Kokkos OpenMP Regression Test"
on:
push:
branches:
- develop
workflow_dispatch:
jobs:
build:
name: Build LAMMPS with Kokkos OpenMP
# restrict to official LAMMPS repository
if: ${{ github.repository == 'lammps/lammps' }}
runs-on: ubuntu-latest
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
strategy:
max-parallel: 6
matrix:
idx: [ 'pair-0', 'pair-1', 'fix-0', 'fix-1', 'compute', 'misc' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
show-progress: false
- name: Install extra packages
run: |
sudo apt-get update
sudo apt-get install -y ccache ninja-build libeigen3-dev \
libcurl4-openssl-dev python3-dev \
mpi-default-bin mpi-default-dev
- name: Create Build Environment
run: mkdir build
- name: Set up ccache
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: linux-kokkos-ccache-${{ github.sha }}
restore-keys: linux-kokkos-ccache-
- name: Building LAMMPS via CMake
shell: bash
run: |
ccache -z
python3 -m venv linuxenv
source linuxenv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install numpy pyyaml junit_xml
cmake -S cmake -B build \
-C cmake/presets/gcc.cmake \
-C cmake/presets/basic.cmake \
-C cmake/presets/kokkos-openmp.cmake \
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache \
-D CMAKE_C_COMPILER_LAUNCHER=ccache \
-D BUILD_SHARED_LIBS=off \
-D DOWNLOAD_POTENTIALS=off \
-D PKG_AMOEBA=on \
-D PKG_ASPHERE=on \
-D PKG_BROWNIAN=on \
-D PKG_CLASS2=on \
-D PKG_COLLOID=on \
-D PKG_CORESHELL=on \
-D PKG_DIPOLE=on \
-D PKG_DPD-BASIC=on \
-D PKG_EXTRA-COMPUTE=on \
-D PKG_EXTRA-FIX=on \
-D PKG_EXTRA-MOLECULE=on \
-D PKG_EXTRA-PAIR=on \
-D PKG_GRANULAR=on \
-D PKG_LEPTON=on \
-D PKG_MC=on \
-D PKG_MEAM=on \
-D PKG_POEMS=on \
-D PKG_PYTHON=on \
-D PKG_QEQ=on \
-D PKG_REAXFF=on \
-D PKG_REPLICA=on \
-D PKG_SRD=on \
-D PKG_SPH=on \
-D PKG_VORONOI=on \
-G Ninja
cmake --build build
ccache -s
- name: Run Regression Tests for Selected Examples
shell: bash
run: |
source linuxenv/bin/activate
python3 tools/regression-tests/get_kokkos_input.py \
--examples-top-level=examples --batch-size=50 \
--filter-out="balance;fire;gcmc;granregion;hyper;mc;mdi;mliap;neb;pace;prd;pour;python;rigid;snap;streitz;shear;ttm"
export OMP_PROC_BIND=false
python3 tools/regression-tests/run_tests.py \
--lmp-bin=build/lmp \
--config-file=tools/regression-tests/config_kokkos_openmp.yaml \
--list-input=input-list-${{ matrix.idx }}-kk.txt \
--output-file=output-${{ matrix.idx }}.xml \
--progress-file=progress-${{ matrix.idx }}.yaml \
--log-file=run-${{ matrix.idx }}.log \
--quick-max=100
tar -cvf kokkos-regression-test-${{ matrix.idx }}.tar run-${{ matrix.idx }}.log progress-${{ matrix.idx }}.yaml output-${{ matrix.idx }}.xml
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: kokkos-regression-test-artifact-${{ matrix.idx }}
path: kokkos-regression-test-${{ matrix.idx }}.tar
merge:
runs-on: ubuntu-latest
needs: build
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: merged-kokkos-regresssion-artifact
pattern: kokkos-regression-test-artifact-*

View File

@ -0,0 +1,53 @@
# GitHub action to build LAMMPS-GUI as a flatpak bundle
name: "Build LAMMPS-GUI as flatpak bundle"
on:
push:
branches:
- develop
workflow_dispatch:
concurrency:
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
jobs:
build:
name: LAMMPS-GUI flatpak build
if: ${{ github.repository == 'lammps/lammps' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install extra packages
run: |
sudo apt-get update
sudo apt-get install -y ccache \
libeigen3-dev \
libcurl4-openssl-dev \
mold \
ninja-build \
python3-dev \
flatpak \
flatpak-builder
- name: Set up access to flatpak repo
run: flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
- name: Build flatpak
run: |
mkdir flatpack-state
sed -i -e 's/branch:.*/branch: develop/' tools/lammps-gui/org.lammps.lammps-gui.yml
flatpak-builder --force-clean --verbose --repo=flatpak-repo \
--install-deps-from=flathub --state-dir=flatpak-state \
--user --ccache --default-branch=${{ github.ref_name }} \
flatpak-build tools/lammps-gui/org.lammps.lammps-gui.yml
flatpak build-bundle --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo \
--verbose flatpak-repo LAMMPS-Linux-x86_64-GUI.flatpak \
org.lammps.lammps-gui ${{ github.ref_name }}
flatpak install -y -v --user LAMMPS-Linux-x86_64-GUI.flatpak

118
.github/workflows/quick-regression.yml vendored Normal file
View File

@ -0,0 +1,118 @@
# GitHub action to build LAMMPS on Linux and run selected regression tests
name: "Quick Regression Test"
on:
pull_request:
branches:
- develop
workflow_dispatch:
concurrency:
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
jobs:
build:
name: Build LAMMPS
# restrict to official LAMMPS repository
if: ${{ github.repository == 'lammps/lammps' }}
runs-on: ubuntu-latest
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
strategy:
max-parallel: 4
matrix:
idx: [ 0, 1, 2, 3 ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- name: Install extra packages
run: |
sudo apt-get update
sudo apt-get install -y ccache ninja-build libeigen3-dev \
libcurl4-openssl-dev python3-dev \
mpi-default-bin mpi-default-dev
- name: Create Build Environment
run: mkdir build
- name: Set up ccache
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: linux-quick-ccache-${{ github.sha }}
restore-keys: linux-quick-ccache-
- name: Building LAMMPS via CMake
shell: bash
run: |
ccache -z
python3 -m venv linuxenv
source linuxenv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install numpy pyyaml junit_xml
cmake -S cmake -B build \
-C cmake/presets/gcc.cmake \
-C cmake/presets/most.cmake \
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache \
-D CMAKE_C_COMPILER_LAUNCHER=ccache \
-D BUILD_SHARED_LIBS=off \
-D DOWNLOAD_POTENTIALS=off \
-D PKG_MANIFOLD=on \
-D PKG_ML-PACE=on \
-D PKG_ML-RANN=on \
-D PKG_RHEO=on \
-D PKG_PTM=on \
-D PKG_PYTHON=on \
-D PKG_QTB=on \
-D PKG_SMTBQ=on \
-G Ninja
cmake --build build
ccache -s
- name: Run Regression Tests for Modified Styles
shell: bash
run: |
source linuxenv/bin/activate
python3 tools/regression-tests/run_tests.py \
--lmp-bin=build/lmp \
--config-file=tools/regression-tests/config_quick.yaml \
--examples-top-level=examples \
--quick-reference=tools/regression-tests/reference.yaml \
--quick --quick-branch=origin/develop --quick-max=100 --num-workers=4
if [ -f input-list-${{ matrix.idx }}.txt ]
then \
python3 tools/regression-tests/run_tests.py \
--lmp-bin=build/lmp \
--config-file=tools/regression-tests/config_quick.yaml \
--list-input=input-list-${{ matrix.idx }}.txt \
--output-file=output-${{ matrix.idx }}.xml \
--progress-file=progress-${{ matrix.idx }}.yaml \
--log-file=run-${{ matrix.idx }}.log
fi
tar -cvf quick-regression-test-${{ matrix.idx }}.tar run-${{ matrix.idx }}.log progress-${{ matrix.idx }}.yaml output-${{ matrix.idx }}.xml
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: quick-regression-test-artifact-${{ matrix.idx }}
path: quick-regression-test-${{ matrix.idx }}.tar
merge:
runs-on: ubuntu-latest
needs: build
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: merged-quick-regresssion-artifact
pattern: quick-regression-test-artifact-*

37
.github/workflows/style-check.yml vendored Normal file
View File

@ -0,0 +1,37 @@
# GitHub action to run checks from tools/coding_standard
name: "Check for Programming Style Conformance"
on:
push:
branches:
- develop
pull_request:
branches:
- develop
workflow_dispatch:
concurrency:
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
jobs:
build:
name: Programming Style Conformance
if: ${{ github.repository == 'lammps/lammps' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run Tests
working-directory: src
shell: bash
run: |
make check-whitespace
make check-permissions
make check-homepage
make check-errordocs

86
.github/workflows/unittest-linux.yml vendored Normal file
View File

@ -0,0 +1,86 @@
# GitHub action to build LAMMPS on Linux and run standard unit tests
name: "Unittest for Linux /w LAMMPS_BIGBIG"
on:
push:
branches:
- develop
pull_request:
branches:
- develop
workflow_dispatch:
concurrency:
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
jobs:
build:
name: Linux Unit Test
if: ${{ github.repository == 'lammps/lammps' }}
runs-on: ubuntu-latest
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install extra packages
run: |
sudo apt-get update
sudo apt-get install -y ccache \
libeigen3-dev \
libcurl4-openssl-dev \
mold \
ninja-build \
python3-dev
- name: Create Build Environment
run: mkdir build
- name: Set up ccache
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: linux-unit-ccache-${{ github.sha }}
restore-keys: linux-unit-ccache-
- name: Building LAMMPS via CMake
shell: bash
run: |
ccache -z
python3 -m venv linuxenv
source linuxenv/bin/activate
python3 -m pip install numpy
python3 -m pip install pyyaml
cmake -S cmake -B build \
-C cmake/presets/gcc.cmake \
-C cmake/presets/most.cmake \
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache \
-D CMAKE_C_COMPILER_LAUNCHER=ccache \
-D BUILD_SHARED_LIBS=on \
-D LAMMPS_SIZES=bigbig \
-D DOWNLOAD_POTENTIALS=off \
-D ENABLE_TESTING=on \
-D MLIAP_ENABLE_ACE=on \
-D MLIAP_ENABLE_PYTHON=off \
-D PKG_MANIFOLD=on \
-D PKG_ML-PACE=on \
-D PKG_ML-RANN=on \
-D PKG_RHEO=on \
-D PKG_PTM=on \
-D PKG_PYTHON=on \
-D PKG_QTB=on \
-D PKG_SMTBQ=on \
-G Ninja
cmake --build build
ccache -s
- name: Run Tests
working-directory: build
shell: bash
run: ctest -V

View File

@ -11,17 +11,21 @@ on:
workflow_dispatch:
concurrency:
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
jobs:
build:
name: MacOS Unit Test
if: ${{ github.repository == 'lammps/lammps' }}
runs-on: macos-latest
runs-on: macos-13
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2
@ -32,7 +36,7 @@ jobs:
run: mkdir build
- name: Set up ccache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: macos-ccache-${{ github.sha }}
@ -43,6 +47,8 @@ jobs:
working-directory: build
run: |
ccache -z
python3 -m venv macosenv
source macosenv/bin/activate
python3 -m pip install numpy
python3 -m pip install pyyaml
cmake -C ../cmake/presets/clang.cmake \

14
.gitignore vendored
View File

@ -43,12 +43,12 @@ Thumbs.db
#cmake
/build*
/CMakeCache.txt
/CMakeFiles/
/Testing
CMakeCache.txt
CMakeFiles
/Makefile
/Testing
/cmake_install.cmake
Testing
Temporary
cmake_install.cmake
/lmp
out/Debug
out/RelWithDebInfo
@ -57,3 +57,7 @@ out/x86
out/x64
src/Makefile.package-e
src/Makefile.package.settings-e
/cmake/build/x64-Debug-Clang
/install/x64-GUI-MSVC
/install
.Rhistory

View File

@ -32,17 +32,21 @@ for unicode characters and only all-ASCII source code is accepted.
LAMMPS follows a continuous release development model. We aim to keep
the development version (`develop` branch) always fully functional and
employ a variety of automatic testing procedures to detect failures
of existing functionality from adding or modifying features. Most of
those tests are run on pull requests *before* merging to the `develop`
branch. The `develop` branch is protected, so all changes *must* be
submitted as a pull request and thus cannot avoid the automated tests.
employ a variety of automatic testing procedures to detect failures of
existing functionality from adding or modifying features. Most of those
tests are run on pull requests and must be passed *before* merging to
the `develop` branch. The `develop` branch is protected, so all changes
*must* be submitted as a pull request and thus cannot avoid the
automated tests.
Additional tests are run *after* merging. Before releases are made
*all* tests must have cleared. Then a release tag is applied and the
`release` branch is fast-forwarded to that tag. This is often referred
to as a patch release. Bug fixes and updates are
applied first to the `develop` branch. Later, they appear in the `release`
branch when the next patch release occurs.
For stable releases, selected bug fixes, updates, and new functionality
are pushed to the `stable` branch and a new stable tag is applied.
`release` branch is fast-forwarded to that tag. This is referred to to
as a "feature release". Bug fixes and updates are applied first to the
`develop` branch. Later, they appear in the `release` branch when the
next patch release occurs. For stable releases, backported bug fixes
and infrastructure updates are first applied to the `maintenance` branch
and then merged to `stable` and published as "updates". For a new
stable release the `stable` branch is updated to the corresponding state
of the `release` branch and a new stable tag is applied in addition to
the release tag.

View File

@ -1,25 +1,25 @@
# FENE beadspring benchmark
units lj
atom_style bond
units lj
atom_style bond
special_bonds fene
read_data data.chain
read_data data.chain
neighbor 0.4 bin
neigh_modify every 1 delay 1
neighbor 0.4 bin
neigh_modify every 1 delay 1
bond_style fene
bond_coeff 1 30.0 1.5 1.0 1.0
bond_coeff 1 30.0 1.5 1.0 1.0
pair_style lj/cut 1.12
pair_modify shift yes
pair_coeff 1 1 1.0 1.0 1.12
pair_style lj/cut 1.12
pair_modify shift yes
pair_coeff 1 1 1.0 1.0 1.12
fix 1 all nve
fix 2 all langevin 1.0 1.0 10.0 904297
fix 1 all nve
fix 2 all langevin 1.0 1.0 10.0 904297
thermo 100
timestep 0.012
timestep 0.012
run 100
run 100

View File

@ -1,32 +1,32 @@
# FENE beadspring benchmark
variable x index 1
variable y index 1
variable z index 1
variable x index 1
variable y index 1
variable z index 1
units lj
atom_style bond
atom_modify map hash
units lj
atom_style bond
atom_modify map hash
special_bonds fene
read_data data.chain
read_data data.chain
replicate $x $y $z
replicate $x $y $z
neighbor 0.4 bin
neigh_modify every 1 delay 1
neighbor 0.4 bin
neigh_modify every 1 delay 1
bond_style fene
bond_coeff 1 30.0 1.5 1.0 1.0
bond_coeff 1 30.0 1.5 1.0 1.0
pair_style lj/cut 1.12
pair_modify shift yes
pair_coeff 1 1 1.0 1.0 1.12
pair_style lj/cut 1.12
pair_modify shift yes
pair_coeff 1 1 1.0 1.0 1.12
fix 1 all nve
fix 2 all langevin 1.0 1.0 10.0 904297
fix 1 all nve
fix 2 all langevin 1.0 1.0 10.0 904297
thermo 100
timestep 0.012
timestep 0.012
run 100
run 100

View File

@ -1,33 +1,33 @@
# LAMMPS benchmark of granular flow
# chute flow of 32000 atoms with frozen base at 26 degrees
units lj
atom_style sphere
boundary p p fs
newton off
comm_modify vel yes
units lj
atom_style sphere
boundary p p fs
newton off
comm_modify vel yes
read_data data.chute
read_data data.chute
pair_style gran/hooke/history 200000.0 NULL 50.0 NULL 0.5 0
pair_coeff * *
pair_style gran/hooke/history 200000.0 NULL 50.0 NULL 0.5 0
pair_coeff * *
neighbor 0.1 bin
neigh_modify every 1 delay 0
neighbor 0.1 bin
neigh_modify every 1 delay 0
timestep 0.0001
timestep 0.0001
group bottom type 2
group active subtract all bottom
neigh_modify exclude group bottom bottom
group bottom type 2
group active subtract all bottom
neigh_modify exclude group bottom bottom
fix 1 all gravity 1.0 chute 26.0
fix 2 bottom freeze
fix 3 active nve/sphere
fix 1 all gravity 1.0 chute 26.0
fix 2 bottom freeze
fix 3 active nve/sphere
compute 1 all erotate/sphere
thermo_style custom step atoms ke c_1 vol
thermo_modify norm no
thermo 100
compute 1 all erotate/sphere
thermo_style custom step atoms ke c_1 vol
thermo_modify norm no
thermo 100
run 100
run 100

View File

@ -1,38 +1,38 @@
# LAMMPS benchmark of granular flow
# chute flow of 32000 atoms with frozen base at 26 degrees
variable x index 1
variable y index 1
variable x index 1
variable y index 1
units lj
atom_style sphere
boundary p p fs
newton off
comm_modify vel yes
units lj
atom_style sphere
boundary p p fs
newton off
comm_modify vel yes
read_data data.chute
read_data data.chute
replicate $x $y 1
replicate $x $y 1
pair_style gran/hooke/history 200000.0 NULL 50.0 NULL 0.5 0
pair_coeff * *
pair_style gran/hooke/history 200000.0 NULL 50.0 NULL 0.5 0
pair_coeff * *
neighbor 0.1 bin
neigh_modify every 1 delay 0
neighbor 0.1 bin
neigh_modify every 1 delay 0
timestep 0.0001
timestep 0.0001
group bottom type 2
group active subtract all bottom
neigh_modify exclude group bottom bottom
group bottom type 2
group active subtract all bottom
neigh_modify exclude group bottom bottom
fix 1 all gravity 1.0 chute 26.0
fix 2 bottom freeze
fix 3 active nve/sphere
fix 1 all gravity 1.0 chute 26.0
fix 2 bottom freeze
fix 3 active nve/sphere
compute 1 all erotate/sphere
thermo_style custom step atoms ke c_1 vol
thermo_modify norm no
thermo 100
compute 1 all erotate/sphere
thermo_style custom step atoms ke c_1 vol
thermo_modify norm no
thermo 100
run 100
run 100

View File

@ -1,32 +1,32 @@
# bulk Cu lattice
variable x index 1
variable y index 1
variable z index 1
variable x index 1
variable y index 1
variable z index 1
variable xx equal 20*$x
variable yy equal 20*$y
variable zz equal 20*$z
variable xx equal 20*$x
variable yy equal 20*$y
variable zz equal 20*$z
units metal
atom_style atomic
units metal
atom_style atomic
lattice fcc 3.615
region box block 0 ${xx} 0 ${yy} 0 ${zz}
create_box 1 box
create_atoms 1 box
lattice fcc 3.615
region box block 0 ${xx} 0 ${yy} 0 ${zz}
create_box 1 box
create_atoms 1 box
pair_style eam
pair_coeff 1 1 Cu_u3.eam
pair_style eam
pair_coeff 1 1 Cu_u3.eam
velocity all create 1600.0 376847 loop geom
velocity all create 1600.0 376847 loop geom
neighbor 1.0 bin
neighbor 1.0 bin
neigh_modify every 1 delay 5 check yes
fix 1 all nve
fix 1 all nve
timestep 0.005
thermo 50
timestep 0.005
thermo 50
run 100
run 100

View File

@ -1,30 +1,30 @@
# 3d Lennard-Jones melt
variable x index 1
variable y index 1
variable z index 1
variable x index 1
variable y index 1
variable z index 1
variable xx equal 20*$x
variable yy equal 20*$y
variable zz equal 20*$z
variable xx equal 20*$x
variable yy equal 20*$y
variable zz equal 20*$z
units lj
atom_style atomic
units lj
atom_style atomic
lattice fcc 0.8442
region box block 0 ${xx} 0 ${yy} 0 ${zz}
create_box 1 box
create_atoms 1 box
mass 1 1.0
lattice fcc 0.8442
region box block 0 ${xx} 0 ${yy} 0 ${zz}
create_box 1 box
create_atoms 1 box
mass 1 1.0
velocity all create 1.44 87287 loop geom
velocity all create 1.44 87287 loop geom
pair_style lj/cut 2.5
pair_coeff 1 1 1.0 1.0 2.5
pair_style lj/cut 2.5
pair_coeff 1 1 1.0 1.0 2.5
neighbor 0.3 bin
neigh_modify delay 0 every 20 check no
neighbor 0.3 bin
neigh_modify delay 0 every 20 check no
fix 1 all nve
fix 1 all nve
run 100
run 100

View File

@ -1,27 +1,27 @@
# Rhodopsin model
units real
neigh_modify delay 5 every 1
units real
neigh_modify delay 5 every 1
atom_style full
bond_style harmonic
angle_style charmm
dihedral_style charmm
improper_style harmonic
pair_style lj/charmm/coul/long 8.0 10.0
pair_modify mix arithmetic
kspace_style pppm 1e-4
atom_style full
bond_style harmonic
angle_style charmm
dihedral_style charmm
improper_style harmonic
pair_style lj/charmm/coul/long 8.0 10.0
pair_modify mix arithmetic
kspace_style pppm 1e-4
read_data data.rhodo
fix 1 all shake 0.0001 5 0 m 1.0 a 232
fix 2 all npt temp 300.0 300.0 100.0 &
z 0.0 0.0 1000.0 mtk no pchain 0 tchain 1
z 0.0 0.0 1000.0 mtk no pchain 0 tchain 1
special_bonds charmm
thermo 50
thermo_style multi
thermo_style multi
timestep 2.0
run 100
run 100

View File

@ -1,34 +1,34 @@
# Rhodopsin model
variable x index 1
variable y index 1
variable z index 1
variable x index 1
variable y index 1
variable z index 1
units real
neigh_modify delay 5 every 1
units real
neigh_modify delay 5 every 1
atom_style full
atom_modify map hash
bond_style harmonic
angle_style charmm
dihedral_style charmm
improper_style harmonic
pair_style lj/charmm/coul/long 8.0 10.0
pair_modify mix arithmetic
kspace_style pppm 1e-4
atom_style full
atom_modify map hash
bond_style harmonic
angle_style charmm
dihedral_style charmm
improper_style harmonic
pair_style lj/charmm/coul/long 8.0 10.0
pair_modify mix arithmetic
kspace_style pppm 1e-4
read_data data.rhodo
replicate $x $y $z
replicate $x $y $z
fix 1 all shake 0.0001 5 0 m 1.0 a 232
fix 2 all npt temp 300.0 300.0 100.0 &
z 0.0 0.0 1000.0 mtk no pchain 0 tchain 1
z 0.0 0.0 1000.0 mtk no pchain 0 tchain 1
special_bonds charmm
thermo 50
thermo_style multi
thermo_style multi
timestep 2.0
run 100
run 100

View File

@ -1,615 +0,0 @@
cmake_minimum_required(VERSION 3.10)
# When using CMake 3.4 and later, don't export symbols from executables unless
# the CMAKE_ENABLE_EXPORTS variable is set.
if(POLICY CMP0065)
cmake_policy(SET CMP0065 NEW)
endif()
if (POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()
if(CMAKE_EXECUTABLE_SUFFIX)
set(CMAKE_EXECUTABLE_SUFFIX_TMP ${CMAKE_EXECUTABLE_SUFFIX})
endif()
project(libjpeg-turbo C)
set(VERSION 2.1.3)
set(COPYRIGHT_YEAR "1991-2022")
string(REPLACE "." ";" VERSION_TRIPLET ${VERSION})
list(GET VERSION_TRIPLET 0 VERSION_MAJOR)
list(GET VERSION_TRIPLET 1 VERSION_MINOR)
list(GET VERSION_TRIPLET 2 VERSION_REVISION)
function(pad_number NUMBER OUTPUT_LEN)
string(LENGTH "${${NUMBER}}" INPUT_LEN)
if(INPUT_LEN LESS OUTPUT_LEN)
math(EXPR ZEROES "${OUTPUT_LEN} - ${INPUT_LEN} - 1")
set(NUM ${${NUMBER}})
foreach(C RANGE ${ZEROES})
set(NUM "0${NUM}")
endforeach()
set(${NUMBER} ${NUM} PARENT_SCOPE)
endif()
endfunction()
pad_number(VERSION_MINOR 3)
pad_number(VERSION_REVISION 3)
set(LIBJPEG_TURBO_VERSION_NUMBER ${VERSION_MAJOR}${VERSION_MINOR}${VERSION_REVISION})
# CMake 3.14 and later sets CMAKE_MACOSX_BUNDLE to TRUE by default when
# CMAKE_SYSTEM_NAME is iOS, tvOS, or watchOS, which breaks the libjpeg-turbo
# build. (Specifically, when CMAKE_MACOSX_BUNDLE is TRUE, executables for
# Apple platforms are built as application bundles, which causes CMake to
# complain that our install() directives for executables do not specify a
# BUNDLE DESTINATION. Even if CMake did not complain, building executables as
# application bundles would break our iOS packages.)
set(CMAKE_MACOSX_BUNDLE FALSE)
string(TIMESTAMP DEFAULT_BUILD "%Y%m%d")
set(BUILD ${DEFAULT_BUILD} CACHE STRING "Build string (default: ${DEFAULT_BUILD})")
# NOTE: On Windows, this does nothing except when using MinGW or Cygwin.
# CMAKE_BUILD_TYPE has no meaning in Visual Studio, and it always defaults to
# Debug when using NMake.
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
message(STATUS "CMAKE_BUILD_TYPE = ${CMAKE_BUILD_TYPE}")
message(STATUS "VERSION = ${VERSION}, BUILD = ${BUILD}")
include(cmakescripts/PackageInfo.cmake)
# Detect CPU type and whether we're building 64-bit or 32-bit code
math(EXPR BITS "${CMAKE_SIZEOF_VOID_P} * 8")
string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} CMAKE_SYSTEM_PROCESSOR_LC)
set(COUNT 1)
foreach(ARCH ${CMAKE_OSX_ARCHITECTURES})
if(COUNT GREATER 1)
message(FATAL_ERROR "The libjpeg-turbo build system does not support multiple values in CMAKE_OSX_ARCHITECTURES.")
endif()
math(EXPR COUNT "${COUNT}+1")
endforeach()
if(CMAKE_SYSTEM_PROCESSOR_LC MATCHES "x86_64" OR
CMAKE_SYSTEM_PROCESSOR_LC MATCHES "amd64" OR
CMAKE_SYSTEM_PROCESSOR_LC MATCHES "i[0-9]86" OR
CMAKE_SYSTEM_PROCESSOR_LC MATCHES "x86" OR
CMAKE_SYSTEM_PROCESSOR_LC MATCHES "ia32")
if(BITS EQUAL 64 OR CMAKE_C_COMPILER_ABI MATCHES "ELF X32")
set(CPU_TYPE x86_64)
else()
set(CPU_TYPE i386)
endif()
if(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL ${CPU_TYPE})
set(CMAKE_SYSTEM_PROCESSOR ${CPU_TYPE})
endif()
elseif(CMAKE_SYSTEM_PROCESSOR_LC STREQUAL "aarch64" OR
CMAKE_SYSTEM_PROCESSOR_LC MATCHES "^arm")
if(BITS EQUAL 64)
set(CPU_TYPE arm64)
else()
set(CPU_TYPE arm)
endif()
elseif(CMAKE_SYSTEM_PROCESSOR_LC MATCHES "^ppc" OR
CMAKE_SYSTEM_PROCESSOR_LC MATCHES "^powerpc")
set(CPU_TYPE powerpc)
else()
set(CPU_TYPE ${CMAKE_SYSTEM_PROCESSOR_LC})
endif()
if(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64" OR
CMAKE_OSX_ARCHITECTURES MATCHES "arm64" OR
CMAKE_OSX_ARCHITECTURES MATCHES "i386")
set(CPU_TYPE ${CMAKE_OSX_ARCHITECTURES})
endif()
if(CMAKE_OSX_ARCHITECTURES MATCHES "ppc")
set(CPU_TYPE powerpc)
endif()
if(MSVC_IDE AND CMAKE_GENERATOR_PLATFORM MATCHES "arm64")
set(CPU_TYPE arm64)
endif()
message(STATUS "${BITS}-bit build (${CPU_TYPE})")
macro(report_directory var)
if(CMAKE_INSTALL_${var} STREQUAL CMAKE_INSTALL_FULL_${var})
message(STATUS "CMAKE_INSTALL_${var} = ${CMAKE_INSTALL_${var}}")
else()
message(STATUS "CMAKE_INSTALL_${var} = ${CMAKE_INSTALL_${var}} (${CMAKE_INSTALL_FULL_${var}})")
endif()
mark_as_advanced(CLEAR CMAKE_INSTALL_${var})
endmacro()
set(DIRLIST "BINDIR;DATAROOTDIR;DOCDIR;INCLUDEDIR;LIBDIR")
if(UNIX)
list(APPEND DIRLIST "MANDIR")
endif()
foreach(dir ${DIRLIST})
report_directory(${dir})
endforeach()
###############################################################################
# CONFIGURATION OPTIONS
###############################################################################
macro(boolean_number var)
if(${var})
set(${var} 1 ${ARGN})
else()
set(${var} 0 ${ARGN})
endif()
endmacro()
option(ENABLE_SHARED "Build shared libraries" FALSE)
boolean_number(ENABLE_SHARED)
option(ENABLE_STATIC "Build static libraries" TRUE)
boolean_number(ENABLE_STATIC)
option(REQUIRE_SIMD "Generate a fatal error if SIMD extensions are not available for this platform (default is to fall back to a non-SIMD build)" FALSE)
boolean_number(REQUIRE_SIMD)
option(WITH_12BIT "Encode/decode JPEG images with 12-bit samples (implies WITH_ARITH_DEC=0 WITH_ARITH_ENC=0 WITH_JAVA=0 WITH_SIMD=0 WITH_TURBOJPEG=0 )" FALSE)
boolean_number(WITH_12BIT)
option(WITH_ARITH_DEC "Include arithmetic decoding support when emulating the libjpeg v6b API/ABI" TRUE)
boolean_number(WITH_ARITH_DEC)
option(WITH_ARITH_ENC "Include arithmetic encoding support when emulating the libjpeg v6b API/ABI" TRUE)
boolean_number(WITH_ARITH_ENC)
if(CMAKE_C_COMPILER_ABI MATCHES "ELF X32")
set(WITH_JAVA 0)
else()
option(WITH_JAVA "Build Java wrapper for the TurboJPEG API library (implies ENABLE_SHARED=1)" FALSE)
boolean_number(WITH_JAVA)
endif()
option(WITH_JPEG7 "Emulate libjpeg v7 API/ABI (this makes ${CMAKE_PROJECT_NAME} backward-incompatible with libjpeg v6b)" FALSE)
boolean_number(WITH_JPEG7)
option(WITH_JPEG8 "Emulate libjpeg v8 API/ABI (this makes ${CMAKE_PROJECT_NAME} backward-incompatible with libjpeg v6b)" FALSE)
boolean_number(WITH_JPEG8)
option(WITH_MEM_SRCDST "Include in-memory source/destination manager functions when emulating the libjpeg v6b or v7 API/ABI" TRUE)
boolean_number(WITH_MEM_SRCDST)
option(WITH_SIMD "Include SIMD extensions, if available for this platform" FALSE)
boolean_number(WITH_SIMD)
option(WITH_TURBOJPEG "Include the TurboJPEG API library and associated test programs" FALSE)
boolean_number(WITH_TURBOJPEG)
option(WITH_FUZZ "Build fuzz targets" FALSE)
macro(report_option var desc)
if(${var})
message(STATUS "${desc} enabled (${var} = ${${var}})")
else()
message(STATUS "${desc} disabled (${var} = ${${var}})")
endif()
endmacro()
if(WITH_JAVA)
set(ENABLE_SHARED 1)
endif()
# Explicitly setting CMAKE_POSITION_INDEPENDENT_CODE=FALSE disables PIC for all
# targets, which will cause the shared library builds to fail. Thus, if shared
# libraries are enabled and CMAKE_POSITION_INDEPENDENT_CODE is explicitly set
# to FALSE, we need to unset it, thus restoring the default behavior
# (automatically using PIC for shared library targets.)
if(DEFINED CMAKE_POSITION_INDEPENDENT_CODE AND
NOT CMAKE_POSITION_INDEPENDENT_CODE AND ENABLE_SHARED)
unset(CMAKE_POSITION_INDEPENDENT_CODE CACHE)
endif()
report_option(ENABLE_SHARED "Shared libraries")
report_option(ENABLE_STATIC "Static libraries")
if(ENABLE_SHARED)
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
endif()
if(WITH_JPEG8 OR WITH_JPEG7)
set(WITH_ARITH_ENC 1)
set(WITH_ARITH_DEC 1)
endif()
if(WITH_JPEG8)
set(WITH_MEM_SRCDST 0)
endif()
if(WITH_12BIT)
set(WITH_ARITH_DEC 0)
set(WITH_ARITH_ENC 0)
set(WITH_JAVA 0)
set(WITH_SIMD 0)
set(WITH_TURBOJPEG 0)
set(BITS_IN_JSAMPLE 12)
else()
set(BITS_IN_JSAMPLE 8)
endif()
report_option(WITH_12BIT "12-bit JPEG support")
if(WITH_ARITH_DEC)
set(D_ARITH_CODING_SUPPORTED 1)
endif()
if(NOT WITH_12BIT)
report_option(WITH_ARITH_DEC "Arithmetic decoding support")
endif()
if(WITH_ARITH_ENC)
set(C_ARITH_CODING_SUPPORTED 1)
endif()
if(NOT WITH_12BIT)
report_option(WITH_ARITH_ENC "Arithmetic encoding support")
endif()
if(NOT WITH_12BIT)
report_option(WITH_TURBOJPEG "TurboJPEG API library")
report_option(WITH_JAVA "TurboJPEG Java wrapper")
endif()
if(WITH_MEM_SRCDST)
set(MEM_SRCDST_SUPPORTED 1)
set(MEM_SRCDST_FUNCTIONS "global: jpeg_mem_dest; jpeg_mem_src;")
endif()
if(NOT WITH_JPEG8)
report_option(WITH_MEM_SRCDST "In-memory source/destination managers")
endif()
set(SO_AGE 2)
if(WITH_MEM_SRCDST)
set(SO_AGE 3)
endif()
if(WITH_JPEG8)
set(JPEG_LIB_VERSION 80)
elseif(WITH_JPEG7)
set(JPEG_LIB_VERSION 70)
else()
set(JPEG_LIB_VERSION 62)
endif()
math(EXPR JPEG_LIB_VERSION_DIV10 "${JPEG_LIB_VERSION} / 10")
math(EXPR JPEG_LIB_VERSION_MOD10 "${JPEG_LIB_VERSION} % 10")
if(JPEG_LIB_VERSION STREQUAL "62")
set(DEFAULT_SO_MAJOR_VERSION ${JPEG_LIB_VERSION})
else()
set(DEFAULT_SO_MAJOR_VERSION ${JPEG_LIB_VERSION_DIV10})
endif()
if(JPEG_LIB_VERSION STREQUAL "80")
set(DEFAULT_SO_MINOR_VERSION 2)
else()
set(DEFAULT_SO_MINOR_VERSION 0)
endif()
# This causes SO_MAJOR_VERSION/SO_MINOR_VERSION to reset to defaults if
# WITH_JPEG7 or WITH_JPEG8 has changed.
if((DEFINED WITH_JPEG7_INT AND NOT WITH_JPEG7 EQUAL WITH_JPEG7_INT) OR
(DEFINED WITH_JPEG8_INT AND NOT WITH_JPEG8 EQUAL WITH_JPEG8_INT))
set(FORCE_SO_VERSION "FORCE")
endif()
set(WITH_JPEG7_INT ${WITH_JPEG7} CACHE INTERNAL "")
set(WITH_JPEG8_INT ${WITH_JPEG8} CACHE INTERNAL "")
set(SO_MAJOR_VERSION ${DEFAULT_SO_MAJOR_VERSION} CACHE STRING
"Major version of the libjpeg API shared library (default: ${DEFAULT_SO_MAJOR_VERSION})"
${FORCE_SO_VERSION})
set(SO_MINOR_VERSION ${DEFAULT_SO_MINOR_VERSION} CACHE STRING
"Minor version of the libjpeg API shared library (default: ${DEFAULT_SO_MINOR_VERSION})"
${FORCE_SO_VERSION})
set(JPEG_LIB_VERSION_DECIMAL "${JPEG_LIB_VERSION_DIV10}.${JPEG_LIB_VERSION_MOD10}")
message(STATUS "Emulating libjpeg API/ABI v${JPEG_LIB_VERSION_DECIMAL} (WITH_JPEG7 = ${WITH_JPEG7}, WITH_JPEG8 = ${WITH_JPEG8})")
message(STATUS "libjpeg API shared library version = ${SO_MAJOR_VERSION}.${SO_AGE}.${SO_MINOR_VERSION}")
# Because the TurboJPEG API library uses versioned symbols and changes the
# names of functions whenever they are modified in a backward-incompatible
# manner, it is always backward-ABI-compatible with itself, so the major and
# minor SO versions don't change. However, we increase the middle number (the
# SO "age") whenever functions are added to the API.
set(TURBOJPEG_SO_MAJOR_VERSION 0)
set(TURBOJPEG_SO_AGE 2)
set(TURBOJPEG_SO_VERSION 0.${TURBOJPEG_SO_AGE}.0)
###############################################################################
# COMPILER SETTINGS
###############################################################################
if(MSVC)
option(WITH_CRT_DLL
"Link all ${CMAKE_PROJECT_NAME} libraries and executables with the C run-time DLL (msvcr*.dll) instead of the static C run-time library (libcmt*.lib.) The default is to use the C run-time DLL only with the libraries and executables that need it."
FALSE)
if(NOT WITH_CRT_DLL)
# Use the static C library for all build types
foreach(var CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO)
if(${var} MATCHES "/MD")
string(REGEX REPLACE "/MD" "/MT" ${var} "${${var}}")
endif()
endforeach()
endif()
add_definitions(-D_CRT_NONSTDC_NO_WARNINGS)
endif()
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
# Use the maximum optimization level for release builds
foreach(var CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELWITHDEBINFO)
if(${var} MATCHES "-O2")
string(REGEX REPLACE "-O2" "-O3" ${var} "${${var}}")
endif()
endforeach()
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
if(CMAKE_C_COMPILER_ID MATCHES "SunPro")
# Use the maximum optimization level for release builds
foreach(var CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELWITHDEBINFO)
if(${var} MATCHES "-xO3")
string(REGEX REPLACE "-xO3" "-xO5" ${var} "${${var}}")
endif()
if(${var} MATCHES "-xO2")
string(REGEX REPLACE "-xO2" "-xO5" ${var} "${${var}}")
endif()
endforeach()
endif()
endif()
string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_UC)
set(EFFECTIVE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE_UC}}")
message(STATUS "Compiler flags = ${EFFECTIVE_C_FLAGS}")
set(EFFECTIVE_LD_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_EXE_LINKER_FLAGS_${CMAKE_BUILD_TYPE_UC}}")
message(STATUS "Linker flags = ${EFFECTIVE_LD_FLAGS}")
include(CheckCSourceCompiles)
include(CheckIncludeFiles)
include(CheckTypeSize)
check_type_size("size_t" SIZE_T)
check_type_size("unsigned long" UNSIGNED_LONG)
if(SIZE_T EQUAL UNSIGNED_LONG)
check_c_source_compiles("int main(int argc, char **argv) { unsigned long a = argc; return __builtin_ctzl(a); }"
HAVE_BUILTIN_CTZL)
endif()
if(MSVC)
check_include_files("intrin.h" HAVE_INTRIN_H)
endif()
if(UNIX)
if(CMAKE_CROSSCOMPILING)
set(RIGHT_SHIFT_IS_UNSIGNED 0)
else()
include(CheckCSourceRuns)
check_c_source_runs("
#include <stdio.h>
#include <stdlib.h>
int is_shifting_signed (long arg) {
long res = arg >> 4;
if (res == -0x7F7E80CL)
return 1; /* right shift is signed */
/* see if unsigned-shift hack will fix it. */
/* we can't just test exact value since it depends on width of long... */
res |= (~0L) << (32-4);
if (res == -0x7F7E80CL)
return 0; /* right shift is unsigned */
printf(\"Right shift isn't acting as I expect it to.\\\\n\");
printf(\"I fear the JPEG software will not work at all.\\\\n\\\\n\");
return 0; /* try it with unsigned anyway */
}
int main (void) {
exit(is_shifting_signed(-0x7F7E80B1L));
}" RIGHT_SHIFT_IS_UNSIGNED)
endif()
endif()
if(MSVC)
set(INLINE_OPTIONS "__inline;inline")
else()
set(INLINE_OPTIONS "__inline__;inline")
endif()
option(FORCE_INLINE "Force function inlining" TRUE)
boolean_number(FORCE_INLINE)
if(FORCE_INLINE)
if(MSVC)
list(INSERT INLINE_OPTIONS 0 "__forceinline")
else()
list(INSERT INLINE_OPTIONS 0 "inline __attribute__((always_inline))")
list(INSERT INLINE_OPTIONS 0 "__inline__ __attribute__((always_inline))")
endif()
endif()
foreach(inline ${INLINE_OPTIONS})
check_c_source_compiles("${inline} static int foo(void) { return 0; } int main(void) { return foo(); }"
INLINE_WORKS)
if(INLINE_WORKS)
set(INLINE ${inline})
break()
endif()
endforeach()
if(NOT INLINE_WORKS)
message(FATAL_ERROR "Could not determine how to inline functions.")
endif()
message(STATUS "INLINE = ${INLINE} (FORCE_INLINE = ${FORCE_INLINE})")
if(WITH_TURBOJPEG)
if(MSVC)
set(THREAD_LOCAL "__declspec(thread)")
else()
set(THREAD_LOCAL "__thread")
endif()
check_c_source_compiles("${THREAD_LOCAL} int i; int main(void) { i = 0; return i; }" HAVE_THREAD_LOCAL)
if(HAVE_THREAD_LOCAL)
message(STATUS "THREAD_LOCAL = ${THREAD_LOCAL}")
else()
message(WARNING "Thread-local storage is not available. The TurboJPEG API library's global error handler will not be thread-safe.")
unset(THREAD_LOCAL)
endif()
endif()
if(UNIX AND NOT APPLE)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/conftest.map "VERS_1 { global: *; };")
set(CMAKE_REQUIRED_FLAGS
"-Wl,--version-script,${CMAKE_CURRENT_BINARY_DIR}/conftest.map")
check_c_source_compiles("int main(void) { return 0; }" HAVE_VERSION_SCRIPT)
set(CMAKE_REQUIRED_FLAGS)
file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/conftest.map)
if(HAVE_VERSION_SCRIPT)
message(STATUS "Linker supports GNU-style version scripts")
set(MAPFLAG "-Wl,--version-script,")
set(TJMAPFLAG "-Wl,--version-script,")
else()
message(STATUS "Linker does not support GNU-style version scripts")
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
# The Solaris linker doesn't like our version script for the libjpeg API
# library, but the version script for the TurboJPEG API library should
# still work.
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/conftest.map
"VERS_1 { global: foo; local: *; }; VERS_2 { global: foo2; } VERS_1;")
set(CMAKE_REQUIRED_FLAGS "-Wl,-M,${CMAKE_CURRENT_BINARY_DIR}/conftest.map -shared")
check_c_source_compiles("int foo() { return 0; } int foo2() { return 2; }"
HAVE_MAPFILE)
set(CMAKE_REQUIRED_FLAGS)
file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/conftest.map)
if(HAVE_MAPFILE)
message(STATUS "Linker supports mapfiles")
set(TJMAPFLAG "-Wl,-M,")
else()
message(STATUS "Linker does not support mapfiles")
endif()
endif()
endif()
endif()
# Generate files
if(WIN32)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/win/jconfig.h.in jconfig.h)
else()
configure_file(jconfig.h.in jconfig.h)
endif()
configure_file(jconfigint.h.in jconfigint.h)
configure_file(jversion.h.in jversion.h)
if(UNIX)
configure_file(libjpeg.map.in libjpeg.map)
endif()
# Include directories and compiler definitions
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
###############################################################################
# TARGETS
###############################################################################
if(CMAKE_EXECUTABLE_SUFFIX_TMP)
set(CMAKE_EXECUTABLE_SUFFIX ${CMAKE_EXECUTABLE_SUFFIX_TMP})
endif()
message(STATUS "CMAKE_EXECUTABLE_SUFFIX = ${CMAKE_EXECUTABLE_SUFFIX}")
set(JPEG_SOURCES jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c
jcicc.c jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c
jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c jdatadst.c
jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c jdicc.c jdinput.c
jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c jdpostct.c jdsample.c
jdtrans.c jerror.c jfdctflt.c jfdctfst.c jfdctint.c jidctflt.c jidctfst.c
jidctint.c jidctred.c jquant1.c jquant2.c jutils.c jmemmgr.c jmemnobs.c)
if(WITH_ARITH_ENC OR WITH_ARITH_DEC)
set(JPEG_SOURCES ${JPEG_SOURCES} jaricom.c)
endif()
if(WITH_ARITH_ENC)
set(JPEG_SOURCES ${JPEG_SOURCES} jcarith.c)
endif()
if(WITH_ARITH_DEC)
set(JPEG_SOURCES ${JPEG_SOURCES} jdarith.c)
endif()
if(WITH_SIMD)
add_subdirectory(simd)
if(NEON_INTRINSICS)
add_definitions(-DNEON_INTRINSICS)
endif()
elseif(NOT WITH_12BIT)
message(STATUS "SIMD extensions: None (WITH_SIMD = ${WITH_SIMD})")
endif()
if(WITH_SIMD)
message(STATUS "SIMD extensions: ${CPU_TYPE} (WITH_SIMD = ${WITH_SIMD})")
if(MSVC_IDE OR XCODE)
set_source_files_properties(${SIMD_OBJS} PROPERTIES GENERATED 1)
endif()
else()
add_library(simd OBJECT jsimd_none.c)
if(NOT WIN32 AND (CMAKE_POSITION_INDEPENDENT_CODE OR ENABLE_SHARED))
set_target_properties(simd PROPERTIES POSITION_INDEPENDENT_CODE 1)
endif()
endif()
if(WITH_JAVA)
add_subdirectory(java)
endif()
if(ENABLE_SHARED)
add_subdirectory(sharedlib)
endif()
if(ENABLE_STATIC)
add_library(jpeg-static STATIC ${JPEG_SOURCES} $<TARGET_OBJECTS:simd>
${SIMD_OBJS})
if(NOT MSVC)
set_target_properties(jpeg-static PROPERTIES OUTPUT_NAME jpeg)
endif()
endif()
if(WITH_TURBOJPEG)
if(ENABLE_SHARED)
set(TURBOJPEG_SOURCES ${JPEG_SOURCES} $<TARGET_OBJECTS:simd> ${SIMD_OBJS}
turbojpeg.c transupp.c jdatadst-tj.c jdatasrc-tj.c rdbmp.c rdppm.c
wrbmp.c wrppm.c)
set(TJMAPFILE ${CMAKE_CURRENT_SOURCE_DIR}/turbojpeg-mapfile)
if(WITH_JAVA)
set(TURBOJPEG_SOURCES ${TURBOJPEG_SOURCES} turbojpeg-jni.c)
include_directories(${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH2})
set(TJMAPFILE ${CMAKE_CURRENT_SOURCE_DIR}/turbojpeg-mapfile.jni)
endif()
if(MSVC)
configure_file(${CMAKE_SOURCE_DIR}/win/turbojpeg.rc.in
${CMAKE_BINARY_DIR}/win/turbojpeg.rc)
set(TURBOJPEG_SOURCES ${TURBOJPEG_SOURCES}
${CMAKE_BINARY_DIR}/win/turbojpeg.rc)
endif()
add_library(turbojpeg SHARED ${TURBOJPEG_SOURCES})
set_property(TARGET turbojpeg PROPERTY COMPILE_FLAGS
"-DBMP_SUPPORTED -DPPM_SUPPORTED")
if(WIN32)
set_target_properties(turbojpeg PROPERTIES DEFINE_SYMBOL DLLDEFINE)
endif()
if(MINGW)
set_target_properties(turbojpeg PROPERTIES LINK_FLAGS -Wl,--kill-at)
endif()
if(APPLE AND (NOT CMAKE_OSX_DEPLOYMENT_TARGET OR
CMAKE_OSX_DEPLOYMENT_TARGET VERSION_GREATER 10.4))
if(NOT CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG)
set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
endif()
set_target_properties(turbojpeg PROPERTIES MACOSX_RPATH 1)
endif()
set_target_properties(turbojpeg PROPERTIES
SOVERSION ${TURBOJPEG_SO_MAJOR_VERSION} VERSION ${TURBOJPEG_SO_VERSION})
if(TJMAPFLAG)
set_target_properties(turbojpeg PROPERTIES
LINK_FLAGS "${TJMAPFLAG}${TJMAPFILE}")
endif()
endif()
if(ENABLE_STATIC)
add_library(turbojpeg-static STATIC ${JPEG_SOURCES} $<TARGET_OBJECTS:simd>
${SIMD_OBJS} turbojpeg.c transupp.c jdatadst-tj.c jdatasrc-tj.c rdbmp.c
rdppm.c wrbmp.c wrppm.c)
set_property(TARGET turbojpeg-static PROPERTY COMPILE_FLAGS
"-DBMP_SUPPORTED -DPPM_SUPPORTED")
if(NOT MSVC)
set_target_properties(turbojpeg-static PROPERTIES OUTPUT_NAME turbojpeg)
endif()
endif()
endif()
if(WIN32)
set(USE_SETMODE "-DUSE_SETMODE")
endif()
if(WITH_12BIT)
set(COMPILE_FLAGS "-DGIF_SUPPORTED -DPPM_SUPPORTED ${USE_SETMODE}")
else()
set(COMPILE_FLAGS "-DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED ${USE_SETMODE}")
set(CJPEG_BMP_SOURCES rdbmp.c rdtarga.c)
set(DJPEG_BMP_SOURCES wrbmp.c wrtarga.c)
endif()

View File

@ -1,741 +0,0 @@
# CMakeLists.txt
# Copyright (C) 2018 Cosmin Truta
# Copyright (C) 2007,2009-2018 Glenn Randers-Pehrson
# Written by Christian Ehrlicher, 2007
# Revised by Roger Lowman, 2009-2010
# Revised by Clifford Yapp, 2011-2012,2017
# Revised by Roger Leigh, 2016
# Revised by Andreas Franek, 2016
# Revised by Sam Serrels, 2017
# Revised by Vadim Barkov, 2017
# Revised by Vicky Pfau, 2018
# Revised by Cameron Cawley, 2018
# Revised by Cosmin Truta, 2018
# Revised by Kyle Bentley, 2018
# This code is released under the libpng license.
# For conditions of distribution and use, see the disclaimer
# and license in png.h
cmake_minimum_required(VERSION 3.10)
cmake_policy(VERSION 3.1)
# When using CMake 3.4 and later, don't export symbols from executables unless
# the CMAKE_ENABLE_EXPORTS variable is set.
if(POLICY CMP0065)
cmake_policy(SET CMP0065 NEW)
endif()
if (POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
project(libpng C ASM)
enable_testing()
set(PNGLIB_MAJOR 1)
set(PNGLIB_MINOR 6)
set(PNGLIB_RELEASE 37)
set(PNGLIB_NAME libpng${PNGLIB_MAJOR}${PNGLIB_MINOR})
set(PNGLIB_VERSION ${PNGLIB_MAJOR}.${PNGLIB_MINOR}.${PNGLIB_RELEASE})
include(GNUInstallDirs)
# needed packages
# Allow users to specify location of Zlib.
# Useful if zlib is being built alongside this as a sub-project.
option(PNG_BUILD_ZLIB "Custom zlib Location, else find_package is used" ON)
if(NOT PNG_BUILD_ZLIB)
find_package(ZLIB REQUIRED)
include_directories(${ZLIB_INCLUDE_DIR})
endif()
if(UNIX AND NOT APPLE AND NOT BEOS AND NOT HAIKU)
find_library(M_LIBRARY m)
else()
# libm is not needed and/or not available
set(M_LIBRARY "")
endif()
# COMMAND LINE OPTIONS
option(PNG_SHARED "Build shared lib" OFF)
option(PNG_STATIC "Build static lib" ON)
option(PNG_TESTS "Build libpng tests" OFF)
# Many more configuration options could be added here
option(PNG_FRAMEWORK "Build OS X framework" OFF)
option(PNG_DEBUG "Build with debug output" OFF)
option(PNG_HARDWARE_OPTIMIZATIONS "Enable hardware optimizations" OFF)
set(PNG_PREFIX "" CACHE STRING "Prefix to add to the API function names")
set(DFA_XTRA "" CACHE FILEPATH "File containing extra configuration settings")
if(PNG_HARDWARE_OPTIMIZATIONS)
# set definitions and sources for arm
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64")
set(PNG_ARM_NEON_POSSIBLE_VALUES check on off)
set(PNG_ARM_NEON "check" CACHE STRING "Enable ARM NEON optimizations:
check: (default) use internal checking code;
off: disable the optimizations;
on: turn on unconditionally.")
set_property(CACHE PNG_ARM_NEON PROPERTY STRINGS
${PNG_ARM_NEON_POSSIBLE_VALUES})
list(FIND PNG_ARM_NEON_POSSIBLE_VALUES ${PNG_ARM_NEON} index)
if(index EQUAL -1)
message(FATAL_ERROR
"PNG_ARM_NEON must be one of [${PNG_ARM_NEON_POSSIBLE_VALUES}]")
elseif(NOT ${PNG_ARM_NEON} STREQUAL "off")
set(libpng_arm_sources
arm/arm_init.c
arm/filter_neon.S
arm/filter_neon_intrinsics.c
arm/palette_neon_intrinsics.c)
if(${PNG_ARM_NEON} STREQUAL "on")
add_definitions(-DPNG_ARM_NEON_OPT=2)
elseif(${PNG_ARM_NEON} STREQUAL "check")
add_definitions(-DPNG_ARM_NEON_CHECK_SUPPORTED)
endif()
else()
add_definitions(-DPNG_ARM_NEON_OPT=0)
endif()
endif()
# set definitions and sources for powerpc
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^powerpc*" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "^ppc64*")
set(PNG_POWERPC_VSX_POSSIBLE_VALUES on off)
set(PNG_POWERPC_VSX "on" CACHE STRING "Enable POWERPC VSX optimizations:
off: disable the optimizations.")
set_property(CACHE PNG_POWERPC_VSX PROPERTY STRINGS
${PNG_POWERPC_VSX_POSSIBLE_VALUES})
list(FIND PNG_POWERPC_VSX_POSSIBLE_VALUES ${PNG_POWERPC_VSX} index)
if(index EQUAL -1)
message(FATAL_ERROR
"PNG_POWERPC_VSX must be one of [${PNG_POWERPC_VSX_POSSIBLE_VALUES}]")
elseif(NOT ${PNG_POWERPC_VSX} STREQUAL "off")
set(libpng_powerpc_sources
powerpc/powerpc_init.c
powerpc/filter_vsx_intrinsics.c)
if(${PNG_POWERPC_VSX} STREQUAL "on")
add_definitions(-DPNG_POWERPC_VSX_OPT=2)
endif()
else()
add_definitions(-DPNG_POWERPC_VSX_OPT=0)
endif()
endif()
# set definitions and sources for intel
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^i?86" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "^x86_64*")
set(PNG_INTEL_SSE_POSSIBLE_VALUES on off)
set(PNG_INTEL_SSE "on" CACHE STRING "Enable INTEL_SSE optimizations:
off: disable the optimizations")
set_property(CACHE PNG_INTEL_SSE PROPERTY STRINGS
${PNG_INTEL_SSE_POSSIBLE_VALUES})
list(FIND PNG_INTEL_SSE_POSSIBLE_VALUES ${PNG_INTEL_SSE} index)
if(index EQUAL -1)
message(FATAL_ERROR
"PNG_INTEL_SSE must be one of [${PNG_INTEL_SSE_POSSIBLE_VALUES}]")
elseif(NOT ${PNG_INTEL_SSE} STREQUAL "off")
set(libpng_intel_sources
intel/intel_init.c
intel/filter_sse2_intrinsics.c)
if(${PNG_INTEL_SSE} STREQUAL "on")
add_definitions(-DPNG_INTEL_SSE_OPT=1)
endif()
else()
add_definitions(-DPNG_INTEL_SSE_OPT=0)
endif()
endif()
# set definitions and sources for MIPS
if(CMAKE_SYSTEM_PROCESSOR MATCHES "mipsel*" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "mips64el*")
set(PNG_MIPS_MSA_POSSIBLE_VALUES on off)
set(PNG_MIPS_MSA "on" CACHE STRING "Enable MIPS_MSA optimizations:
off: disable the optimizations")
set_property(CACHE PNG_MIPS_MSA PROPERTY STRINGS
${PNG_MIPS_MSA_POSSIBLE_VALUES})
list(FIND PNG_MIPS_MSA_POSSIBLE_VALUES ${PNG_MIPS_MSA} index)
if(index EQUAL -1)
message(FATAL_ERROR
"PNG_MIPS_MSA must be one of [${PNG_MIPS_MSA_POSSIBLE_VALUES}]")
elseif(NOT ${PNG_MIPS_MSA} STREQUAL "off")
set(libpng_mips_sources
mips/mips_init.c
mips/filter_msa_intrinsics.c)
if(${PNG_MIPS_MSA} STREQUAL "on")
add_definitions(-DPNG_MIPS_MSA_OPT=2)
endif()
else()
add_definitions(-DPNG_MIPS_MSA_OPT=0)
endif()
endif()
else(PNG_HARDWARE_OPTIMIZATIONS)
# set definitions and sources for arm
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64")
add_definitions(-DPNG_ARM_NEON_OPT=0)
endif()
# set definitions and sources for powerpc
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^powerpc*" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "^ppc64*")
add_definitions(-DPNG_POWERPC_VSX_OPT=0)
endif()
# set definitions and sources for intel
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^i?86" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "^x86_64*")
add_definitions(-DPNG_INTEL_SSE_OPT=0)
endif()
# set definitions and sources for MIPS
if(CMAKE_SYSTEM_PROCESSOR MATCHES "mipsel*" OR
CMAKE_SYSTEM_PROCESSOR MATCHES "mips64el*")
add_definitions(-DPNG_MIPS_MSA_OPT=0)
endif()
endif(PNG_HARDWARE_OPTIMIZATIONS)
# SET LIBNAME
set(PNG_LIB_NAME png${PNGLIB_MAJOR}${PNGLIB_MINOR})
# to distinguish between debug and release lib
set(CMAKE_DEBUG_POSTFIX "d")
include(CheckCSourceCompiles)
option(ld-version-script "Enable linker version script" ON)
if(ld-version-script AND NOT APPLE)
# Check if LD supports linker scripts.
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/conftest.map" "VERS_1 {
global: sym;
local: *;
};
VERS_2 {
global: sym2;
main;
} VERS_1;
")
set(CMAKE_REQUIRED_FLAGS_SAVE ${CMAKE_REQUIRED_FLAGS})
set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} "-Wl,--version-script='${CMAKE_CURRENT_BINARY_DIR}/conftest.map'")
check_c_source_compiles("void sym(void) {}
void sym2(void) {}
int main(void) {return 0;}
" HAVE_LD_VERSION_SCRIPT)
if(NOT HAVE_LD_VERSION_SCRIPT)
set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS_SAVE} "-Wl,-M -Wl,${CMAKE_CURRENT_BINARY_DIR}/conftest.map")
check_c_source_compiles("void sym(void) {}
void sym2(void) {}
int main(void) {return 0;}
" HAVE_SOLARIS_LD_VERSION_SCRIPT)
endif()
set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS_SAVE})
file(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/conftest.map")
endif()
# Find symbol prefix. Likely obsolete and unnecessary with recent
# toolchains (it's not done in many other projects).
function(symbol_prefix)
set(SYMBOL_PREFIX)
execute_process(COMMAND "${CMAKE_C_COMPILER}" "-E" "-"
INPUT_FILE /dev/null
OUTPUT_VARIABLE OUT
RESULT_VARIABLE STATUS)
if(CPP_FAIL)
message(WARNING "Failed to run the C preprocessor")
endif()
string(REPLACE "\n" ";" OUT "${OUT}")
foreach(line ${OUT})
string(REGEX MATCH "^PREFIX=" found_match "${line}")
if(found_match)
string(REGEX REPLACE "^PREFIX=(.*\)" "\\1" prefix "${line}")
string(REGEX MATCH "__USER_LABEL_PREFIX__" found_match "${prefix}")
if(found_match)
string(REGEX REPLACE "(.*)__USER_LABEL_PREFIX__(.*)" "\\1\\2" prefix "${prefix}")
endif()
set(SYMBOL_PREFIX "${prefix}")
endif()
endforeach()
message(STATUS "Symbol prefix: ${SYMBOL_PREFIX}")
set(SYMBOL_PREFIX "${SYMBOL_PREFIX}" PARENT_SCOPE)
endfunction()
if(UNIX)
symbol_prefix()
endif()
find_program(AWK NAMES gawk awk)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
if(NOT AWK OR ANDROID)
# No awk available to generate sources; use pre-built pnglibconf.h
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/pnglibconf.h.prebuilt
${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h)
add_custom_target(genfiles) # Dummy
else()
include(CMakeParseArguments)
# Generate .chk from .out with awk
# generate_chk(INPUT inputfile OUTPUT outputfile [DEPENDS dep1 [dep2...]])
function(generate_chk)
set(options)
set(oneValueArgs INPUT OUTPUT)
set(multiValueArgs DEPENDS)
cmake_parse_arguments(_GC "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
if(NOT _GC_INPUT)
message(FATAL_ERROR "generate_chk: Missing INPUT argument")
endif()
if(NOT _GC_OUTPUT)
message(FATAL_ERROR "generate_chk: Missing OUTPUT argument")
endif()
add_custom_command(OUTPUT "${_GC_OUTPUT}"
COMMAND "${CMAKE_COMMAND}"
"-DINPUT=${_GC_INPUT}"
"-DOUTPUT=${_GC_OUTPUT}"
-P "${CMAKE_CURRENT_BINARY_DIR}/scripts/genchk.cmake"
DEPENDS "${_GC_INPUT}" ${_GC_DEPENDS}
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
endfunction()
# Generate .out from .c with awk
# generate_out(INPUT inputfile OUTPUT outputfile [DEPENDS dep1 [dep2...]])
function(generate_out)
set(options)
set(oneValueArgs INPUT OUTPUT)
set(multiValueArgs DEPENDS)
cmake_parse_arguments(_GO "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
if(NOT _GO_INPUT)
message(FATAL_ERROR "generate_out: Missing INPUT argument")
endif()
if(NOT _GO_OUTPUT)
message(FATAL_ERROR "generate_out: Missing OUTPUT argument")
endif()
add_custom_command(OUTPUT "${_GO_OUTPUT}"
COMMAND "${CMAKE_COMMAND}"
"-DINPUT=${_GO_INPUT}"
"-DOUTPUT=${_GO_OUTPUT}"
-P "${CMAKE_CURRENT_BINARY_DIR}/scripts/genout.cmake"
DEPENDS "${_GO_INPUT}" ${_GO_DEPENDS}
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
endfunction()
# Generate specific source file with awk
# generate_source(OUTPUT outputfile [DEPENDS dep1 [dep2...]])
function(generate_source)
set(options)
set(oneValueArgs OUTPUT)
set(multiValueArgs DEPENDS)
cmake_parse_arguments(_GSO "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
if(NOT _GSO_OUTPUT)
message(FATAL_ERROR "generate_source: Missing OUTPUT argument")
endif()
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${_GSO_OUTPUT}"
COMMAND "${CMAKE_COMMAND}"
"-DOUTPUT=${_GSO_OUTPUT}"
-P "${CMAKE_CURRENT_BINARY_DIR}/scripts/gensrc.cmake"
DEPENDS ${_GSO_DEPENDS}
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
endfunction()
# Copy file
function(generate_copy source destination)
add_custom_command(OUTPUT "${destination}"
COMMAND "${CMAKE_COMMAND}" -E remove "${destination}"
COMMAND "${CMAKE_COMMAND}" -E copy "${source}"
"${destination}"
DEPENDS "${source}")
endfunction()
# Generate scripts/pnglibconf.h
generate_source(OUTPUT "scripts/pnglibconf.c"
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/scripts/pnglibconf.dfa"
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/options.awk"
"${CMAKE_CURRENT_SOURCE_DIR}/pngconf.h")
# Generate pnglibconf.c
generate_source(OUTPUT "pnglibconf.c"
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/scripts/pnglibconf.dfa"
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/options.awk"
"${CMAKE_CURRENT_SOURCE_DIR}/pngconf.h")
if(PNG_PREFIX)
set(PNGLIBCONF_H_EXTRA_DEPENDS
"${CMAKE_CURRENT_BINARY_DIR}/scripts/prefix.out"
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/macro.lst")
set(PNGPREFIX_H_EXTRA_DEPENDS
"${CMAKE_CURRENT_BINARY_DIR}/scripts/intprefix.out")
endif()
generate_out(INPUT "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.c"
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.out")
# Generate pnglibconf.h
generate_source(OUTPUT "pnglibconf.h"
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.out"
${PNGLIBCONF_H_EXTRA_DEPENDS})
generate_out(INPUT "${CMAKE_CURRENT_SOURCE_DIR}/scripts/intprefix.c"
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/scripts/intprefix.out"
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h")
generate_out(INPUT "${CMAKE_CURRENT_SOURCE_DIR}/scripts/prefix.c"
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/scripts/prefix.out"
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/png.h"
"${CMAKE_CURRENT_SOURCE_DIR}/pngconf.h"
"${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.out")
# Generate pngprefix.h
generate_source(OUTPUT "pngprefix.h"
DEPENDS ${PNGPREFIX_H_EXTRA_DEPENDS})
generate_out(INPUT "${CMAKE_CURRENT_SOURCE_DIR}/scripts/sym.c"
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/scripts/sym.out"
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h")
generate_out(INPUT "${CMAKE_CURRENT_SOURCE_DIR}/scripts/symbols.c"
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.out"
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/png.h"
"${CMAKE_CURRENT_SOURCE_DIR}/pngconf.h"
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/pnglibconf.h.prebuilt")
generate_out(INPUT "${CMAKE_CURRENT_SOURCE_DIR}/scripts/vers.c"
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/scripts/vers.out"
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/png.h"
"${CMAKE_CURRENT_SOURCE_DIR}/pngconf.h"
"${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h")
generate_chk(INPUT "${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.out"
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.chk"
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/scripts/checksym.awk"
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/symbols.def")
add_custom_target(symbol-check DEPENDS
"${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.chk")
generate_copy("${CMAKE_CURRENT_BINARY_DIR}/scripts/sym.out"
"${CMAKE_CURRENT_BINARY_DIR}/libpng.sym")
generate_copy("${CMAKE_CURRENT_BINARY_DIR}/scripts/vers.out"
"${CMAKE_CURRENT_BINARY_DIR}/libpng.vers")
add_custom_target(genvers DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libpng.vers")
add_custom_target(gensym DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/libpng.sym")
add_custom_target("genprebuilt"
COMMAND "${CMAKE_COMMAND}"
"-DOUTPUT=scripts/pnglibconf.h.prebuilt"
-P "${CMAKE_CURRENT_BINARY_DIR}/scripts/gensrc.cmake"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
# A single target handles generation of all generated files. If
# they are depended upon separately by multiple targets, this
# confuses parallel make (it would require a separate top-level
# target for each file to track the dependencies properly).
add_custom_target(genfiles DEPENDS
"${CMAKE_CURRENT_BINARY_DIR}/libpng.sym"
"${CMAKE_CURRENT_BINARY_DIR}/libpng.vers"
"${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.c"
"${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h"
"${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.out"
"${CMAKE_CURRENT_BINARY_DIR}/pngprefix.h"
"${CMAKE_CURRENT_BINARY_DIR}/scripts/intprefix.out"
"${CMAKE_CURRENT_BINARY_DIR}/scripts/pnglibconf.c"
"${CMAKE_CURRENT_BINARY_DIR}/scripts/prefix.out"
"${CMAKE_CURRENT_BINARY_DIR}/scripts/sym.out"
"${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.chk"
"${CMAKE_CURRENT_BINARY_DIR}/scripts/symbols.out"
"${CMAKE_CURRENT_BINARY_DIR}/scripts/vers.out")
endif(NOT AWK OR ANDROID)
# OUR SOURCES
set(libpng_public_hdrs
png.h
pngconf.h
"${CMAKE_CURRENT_BINARY_DIR}/pnglibconf.h"
)
set(libpng_private_hdrs
pngpriv.h
pngdebug.h
pnginfo.h
pngstruct.h
)
if(AWK AND NOT ANDROID)
list(APPEND libpng_private_hdrs "${CMAKE_CURRENT_BINARY_DIR}/pngprefix.h")
endif()
set(libpng_sources
${libpng_public_hdrs}
${libpng_private_hdrs}
png.c
pngerror.c
pngget.c
pngmem.c
pngpread.c
pngread.c
pngrio.c
pngrtran.c
pngrutil.c
pngset.c
pngtrans.c
pngwio.c
pngwrite.c
pngwtran.c
pngwutil.c
${libpng_arm_sources}
${libpng_intel_sources}
${libpng_mips_sources}
${libpng_powerpc_sources}
)
set(pngtest_sources
pngtest.c
)
set(pngvalid_sources
contrib/libtests/pngvalid.c
)
set(pngstest_sources
contrib/libtests/pngstest.c
)
set(pngunknown_sources
contrib/libtests/pngunknown.c
)
set(pngimage_sources
contrib/libtests/pngimage.c
)
set(pngfix_sources
contrib/tools/pngfix.c
)
set(png_fix_itxt_sources
contrib/tools/png-fix-itxt.c
)
if(MSVC)
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
endif()
if(PNG_DEBUG)
add_definitions(-DPNG_DEBUG)
endif()
# NOW BUILD OUR TARGET
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${ZLIB_INCLUDE_DIR})
unset(PNG_LIB_TARGETS)
if(PNG_STATIC)
# does not work without changing name
set(PNG_LIB_NAME_STATIC png_static)
add_library(png_static STATIC ${libpng_sources})
add_dependencies(png_static genfiles)
# MSVC doesn't use a different file extension for shared vs. static
# libs. We are able to change OUTPUT_NAME to remove the _static
# for all other platforms.
if(NOT MSVC)
set_target_properties(png_static PROPERTIES
OUTPUT_NAME "${PNG_LIB_NAME}"
CLEAN_DIRECT_OUTPUT 1)
else()
set_target_properties(png_static PROPERTIES
OUTPUT_NAME "${PNG_LIB_NAME}_static"
CLEAN_DIRECT_OUTPUT 1)
endif()
list(APPEND PNG_LIB_TARGETS png_static)
if(MSVC)
# msvc does not append 'lib' - do it here to have consistent name
set_target_properties(png_static PROPERTIES PREFIX "lib")
endif()
target_link_libraries(png_static ${M_LIBRARY})
endif()
if(NOT PNG_LIB_TARGETS)
message(SEND_ERROR
"No library variant selected to build. "
"Please enable at least one of the following options: "
"PNG_STATIC, PNG_SHARED, PNG_FRAMEWORK")
endif()
# Set a variable with CMake code which:
# Creates a symlink from src to dest (if possible) or alternatively
# copies if different.
include(CMakeParseArguments)
function(create_symlink DEST_FILE)
cmake_parse_arguments(S "" "FILE;TARGET" "" ${ARGN})
if(NOT S_TARGET AND NOT S_FILE)
message(FATAL_ERROR "create_symlink: Missing TARGET or FILE argument")
endif()
if(S_TARGET AND S_FILE)
message(FATAL_ERROR "create_symlink: Both source file ${S_FILE} and build target ${S_TARGET} arguments are present; can only have one.")
endif()
if(S_FILE)
# If we don't need to symlink something that's coming from a build target,
# we can go ahead and symlink/copy at configure time.
if(CMAKE_HOST_WIN32 AND NOT CYGWIN)
execute_process(
COMMAND "${CMAKE_COMMAND}" -E copy_if_different ${S_FILE} ${DEST_FILE}
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
else()
execute_process(
COMMAND ${CMAKE_COMMAND} -E create_symlink ${S_FILE} ${DEST_FILE}
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
endif()
endif()
if(S_TARGET)
# We need to use generator expressions, which can be a bit tricky, so for
# simplicity make the symlink a POST_BUILD step and use the TARGET
# signature of add_custom_command.
if(CMAKE_HOST_WIN32 AND NOT CYGWIN)
add_custom_command(TARGET ${S_TARGET} POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy_if_different $<TARGET_LINKER_FILE_NAME:${S_TARGET}> $<TARGET_LINKER_FILE_DIR:${S_TARGET}>/${DEST_FILE})
else()
add_custom_command(TARGET ${S_TARGET} POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E create_symlink $<TARGET_LINKER_FILE_NAME:${S_TARGET}> $<TARGET_LINKER_FILE_DIR:${S_TARGET}>/${DEST_FILE})
endif()
endif()
endfunction()
# Create source generation scripts.
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/genchk.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/scripts/genchk.cmake @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/genout.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/scripts/genout.cmake @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/gensrc.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/scripts/gensrc.cmake @ONLY)
# libpng is a library so default to 'lib'
if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
set(CMAKE_INSTALL_LIBDIR lib)
endif()
# CREATE PKGCONFIG FILES
# We use the same files like ./configure, so we have to set its vars.
# Only do this on Windows for Cygwin - the files don't make much sense outside
# of a UNIX look-alike.
if(NOT WIN32 OR CYGWIN OR MINGW)
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${CMAKE_INSTALL_PREFIX})
set(libdir ${CMAKE_INSTALL_FULL_LIBDIR})
set(includedir ${CMAKE_INSTALL_FULL_INCLUDEDIR})
set(LIBS "-lz -lm")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpng.pc.in
${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}.pc @ONLY)
create_symlink(libpng.pc FILE ${PNGLIB_NAME}.pc)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpng-config.in
${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}-config @ONLY)
create_symlink(libpng-config FILE ${PNGLIB_NAME}-config)
endif()
# SET UP LINKS
if(PNG_SHARED)
set_target_properties(png PROPERTIES
# VERSION 16.${PNGLIB_RELEASE}.1.6.37
VERSION 16.${PNGLIB_RELEASE}.0
SOVERSION 16
CLEAN_DIRECT_OUTPUT 1)
endif()
# INSTALL
if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
install(TARGETS ${PNG_LIB_TARGETS}
EXPORT libpng
RUNTIME DESTINATION bin
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR})
if(PNG_SHARED)
# Create a symlink for libpng.dll.a => libpng16.dll.a on Cygwin
if(CYGWIN OR MINGW)
create_symlink(libpng${CMAKE_IMPORT_LIBRARY_SUFFIX} TARGET png)
install(FILES $<TARGET_LINKER_FILE_DIR:png>/libpng${CMAKE_IMPORT_LIBRARY_SUFFIX}
DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
if(NOT WIN32)
create_symlink(libpng${CMAKE_SHARED_LIBRARY_SUFFIX} TARGET png)
install(FILES $<TARGET_LINKER_FILE_DIR:png>/libpng${CMAKE_SHARED_LIBRARY_SUFFIX}
DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
endif()
if(PNG_STATIC)
if(NOT WIN32 OR CYGWIN OR MINGW)
create_symlink(libpng${CMAKE_STATIC_LIBRARY_SUFFIX} TARGET png_static)
install(FILES $<TARGET_LINKER_FILE_DIR:png_static>/libpng${CMAKE_STATIC_LIBRARY_SUFFIX}
DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
endif()
endif()
if(NOT SKIP_INSTALL_HEADERS AND NOT SKIP_INSTALL_ALL)
install(FILES ${libpng_public_hdrs} DESTINATION include)
install(FILES ${libpng_public_hdrs} DESTINATION include/${PNGLIB_NAME})
endif()
if(NOT SKIP_INSTALL_EXECUTABLES AND NOT SKIP_INSTALL_ALL)
if(NOT WIN32 OR CYGWIN OR MINGW)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libpng-config DESTINATION bin)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}-config DESTINATION bin)
endif()
endif()
if(NOT SKIP_INSTALL_PROGRAMS AND NOT SKIP_INSTALL_ALL)
install(TARGETS ${PNG_BIN_TARGETS}
RUNTIME DESTINATION bin)
endif()
if(NOT SKIP_INSTALL_FILES AND NOT SKIP_INSTALL_ALL)
# Install man pages
if(NOT PNG_MAN_DIR)
set(PNG_MAN_DIR "share/man")
endif()
install(FILES libpng.3 libpngpf.3 DESTINATION ${PNG_MAN_DIR}/man3)
install(FILES png.5 DESTINATION ${PNG_MAN_DIR}/man5)
# Install pkg-config files
if(NOT CMAKE_HOST_WIN32 OR CYGWIN OR MINGW)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libpng-config
DESTINATION bin)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}-config
DESTINATION bin)
endif()
endif()
# Create an export file that CMake users can include() to import our targets.
if(NOT SKIP_INSTALL_EXPORT AND NOT SKIP_INSTALL_ALL)
install(EXPORT libpng DESTINATION lib/libpng FILE lib${PNG_LIB_NAME}.cmake)
endif()
# what's with libpng-manual.txt and all the extra files?
# UNINSTALL
# do we need this?
# DIST
# do we need this?
# to create msvc import lib for mingw compiled shared lib
# pexports libpng.dll > libpng.def
# lib /def:libpng.def /machine:x86

View File

@ -1,8 +1,11 @@
# -*- CMake -*- master configuration file for building LAMMPS
########################################
# CMake build system
# This file is part of LAMMPS
# Created by Christoph Junghans and Richard Berger
cmake_minimum_required(VERSION 3.10)
cmake_minimum_required(VERSION 3.16)
if(CMAKE_VERSION VERSION_LESS 3.20)
message(WARNING "LAMMPS is planning to require at least CMake version 3.20 by Summer 2025. Please upgrade!")
endif()
########################################
# set policy to silence warnings about ignoring <PackageName>_ROOT but use it
if(POLICY CMP0074)
@ -12,8 +15,8 @@ endif()
if(POLICY CMP0075)
cmake_policy(SET CMP0075 NEW)
endif()
# set policy to silence warnings about missing executable permissions in
# pythonx.y-config when cross-compiling. review occasionally if it may be set to NEW
# set policy to silence warnings about requiring execute permission for find_program
# we use OLD because the python-config script for the Fedora MinGW cross-compiler requires it currently
if(POLICY CMP0109)
cmake_policy(SET CMP0109 OLD)
endif()
@ -21,19 +24,14 @@ endif()
if(POLICY CMP0135)
cmake_policy(SET CMP0135 OLD)
endif()
########################################
# Use CONFIGURE_DEPENDS as option for file(GLOB...) when available
if(CMAKE_VERSION VERSION_LESS 3.12)
unset(CONFIGURE_DEPENDS)
else()
set(CONFIGURE_DEPENDS CONFIGURE_DEPENDS)
endif()
########################################
project(lammps CXX)
set(SOVERSION 0)
get_property(BUILD_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
include(GNUInstallDirs)
get_filename_component(LAMMPS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/.. ABSOLUTE)
get_filename_component(LAMMPS_LIB_BINARY_DIR ${CMAKE_BINARY_DIR}/lib ABSOLUTE)
# collect all executables and shared libs in the top level build folder
@ -100,30 +98,27 @@ check_for_autogen_files(${LAMMPS_SOURCE_DIR})
#####################################################################
include(CheckIncludeFileCXX)
# set required compiler flags and compiler/CPU arch specific optimizations
# set required compiler flags, apply checks, and compiler/CPU arch specific optimizations
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
# Intel classic compilers version 19 are broken and fail to compile the embedded fmtlib
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 20.0)
message(ERROR "Intel classic compiler version ${CMAKE_CXX_COMPILER_VERSION} is too old")
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Qrestrict")
endif()
if(CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 17.3 OR CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 17.4)
set(CMAKE_TUNE_DEFAULT "/QxCOMMON-AVX512")
else()
set(CMAKE_TUNE_DEFAULT "/QxHost")
endif()
set(CMAKE_TUNE_DEFAULT "/QxHost")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -restrict")
if(CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 17.3 OR CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 17.4)
set(CMAKE_TUNE_DEFAULT "-xCOMMON-AVX512")
else()
set(CMAKE_TUNE_DEFAULT "-xHost -fp-model fast=2 -no-prec-div -qoverride-limits -diag-disable=10441 -diag-disable=2196")
endif()
set(CMAKE_TUNE_DEFAULT "-xHost -fp-model fast=2 -no-prec-div -qoverride-limits -diag-disable=10441 -diag-disable=11074 -diag-disable=11076 -diag-disable=2196")
endif()
endif()
# silence excessive warnings for new Intel Compilers
if(CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM")
set(CMAKE_TUNE_DEFAULT "-Wno-tautological-constant-compare -Wno-unused-command-line-argument")
set(CMAKE_TUNE_DEFAULT "-fp-model precise -Wno-tautological-constant-compare -Wno-unused-command-line-argument")
endif()
# silence excessive warnings for PGI/NVHPC compilers
@ -131,20 +126,45 @@ if((CMAKE_CXX_COMPILER_ID STREQUAL "NVHPC") OR (CMAKE_CXX_COMPILER_ID STREQUAL "
set(CMAKE_TUNE_DEFAULT "-Minform=severe")
endif()
# silence nvcc warnings
if((PKG_KOKKOS) AND (Kokkos_ENABLE_CUDA) AND NOT (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
set(CMAKE_TUNE_DEFAULT "${CMAKE_TUNE_DEFAULT} -Xcudafe --diag_suppress=unrecognized_pragma")
# this hack is required to compile fmt lib with CrayClang version 15.0.2
# CrayClang is only directly recognized by version 3.28 and later
if(CMAKE_VERSION VERSION_LESS 3.28)
get_filename_component(_exe "${CMAKE_CXX_COMPILER}" NAME)
if((CMAKE_CXX_COMPILER_ID STREQUAL "Clang") AND (_exe STREQUAL "crayCC"))
set(CMAKE_TUNE_DEFAULT "-DFMT_STATIC_THOUSANDS_SEPARATOR")
endif()
else()
if(CMAKE_CXX_COMPILER_ID STREQUAL "CrayClang")
set(CMAKE_TUNE_DEFAULT "-DFMT_STATIC_THOUSANDS_SEPARATOR")
endif()
endif()
# we require C++11 without extensions. Kokkos requires at least C++14 (currently)
# silence nvcc warnings
if((PKG_KOKKOS) AND (Kokkos_ENABLE_CUDA) AND NOT (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
set(CMAKE_TUNE_DEFAULT "${CMAKE_TUNE_DEFAULT}" "-Xcudafe --diag_suppress=unrecognized_pragma,--diag_suppress=128")
endif()
# we *require* C++11 without extensions but prefer C++17.
# Kokkos requires at least C++17 (currently)
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 11)
if(cxx_std_17 IN_LIST CMAKE_CXX_COMPILE_FEATURES)
set(CMAKE_CXX_STANDARD 17)
else()
set(CMAKE_CXX_STANDARD 11)
endif()
endif()
if(CMAKE_CXX_STANDARD LESS 11)
message(FATAL_ERROR "C++ standard must be set to at least 11")
endif()
if(PKG_KOKKOS AND (CMAKE_CXX_STANDARD LESS 14))
set(CMAKE_CXX_STANDARD 14)
if(CMAKE_CXX_STANDARD LESS 17)
message(WARNING "Selecting C++17 standard is preferred over C++${CMAKE_CXX_STANDARD}")
endif()
if(PKG_KOKKOS AND (CMAKE_CXX_STANDARD LESS 17))
set(CMAKE_CXX_STANDARD 17)
endif()
# turn off C++17 check in lmptype.h
if(LAMMPS_CXX11)
add_compile_definitions(LAMMPS_CXX11)
endif()
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF CACHE BOOL "Use compiler extensions")
@ -155,11 +175,29 @@ if(MSVC)
add_compile_options(/Zc:__cplusplus)
add_compile_options(/wd4244)
add_compile_options(/wd4267)
add_compile_options(/wd4250)
add_compile_options(/EHsc)
add_compile_options(/utf-8)
endif()
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
endif()
# warn about potentially problematic GCC compiler versions
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if (CMAKE_CXX_STANDARD GREATER_EQUAL 17)
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
message(WARNING "Using ${CMAKE_CXX_COMPILER_ID} compiler version ${CMAKE_CXX_COMPILER_VERSION} "
"with C++17 is not recommended. Please use ${CMAKE_CXX_COMPILER_ID} compiler version 9.x or later")
endif()
endif()
if (CMAKE_CXX_STANDARD GREATER_EQUAL 11)
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
message(WARNING "Using ${CMAKE_CXX_COMPILER_ID} compiler version ${CMAKE_CXX_COMPILER_VERSION} "
"with C++11 is not recommended. Please use ${CMAKE_CXX_COMPILER_ID} compiler version 5.x or later")
endif()
endif()
endif()
# export all symbols when building a .dll file on windows
if((CMAKE_SYSTEM_NAME STREQUAL "Windows") AND BUILD_SHARED_LIBS)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
@ -168,17 +206,20 @@ endif()
########################################################################
# User input options #
########################################################################
# set path to python interpreter and thus enforcing python version when
# in a virtual environment and PYTHON_EXECUTABLE is not set on command line
if(DEFINED ENV{VIRTUAL_ENV} AND NOT PYTHON_EXECUTABLE)
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
set(PYTHON_EXECUTABLE "$ENV{VIRTUAL_ENV}/Scripts/python.exe")
else()
set(PYTHON_EXECUTABLE "$ENV{VIRTUAL_ENV}/bin/python")
endif()
# backward compatibility with CMake before 3.12 and older LAMMPS documentation
if (PYTHON_EXECUTABLE)
set(Python_EXECUTABLE "${PYTHON_EXECUTABLE}")
endif()
# set path to python interpreter and thus enforcing python version when
# in a virtual environment and Python_EXECUTABLE is not set on command line
if(DEFINED ENV{VIRTUAL_ENV} AND NOT Python_EXECUTABLE)
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
set(Python_EXECUTABLE "$ENV{VIRTUAL_ENV}/Scripts/python.exe")
else()
set(Python_EXECUTABLE "$ENV{VIRTUAL_ENV}/bin/python")
endif()
message(STATUS "Running in virtual environment: $ENV{VIRTUAL_ENV}\n"
" Setting Python interpreter to: ${PYTHON_EXECUTABLE}")
" Setting Python interpreter to: ${Python_EXECUTABLE}")
endif()
set(LAMMPS_MACHINE "" CACHE STRING "Suffix to append to lmp binary (WON'T enable any features automatically")
@ -191,19 +232,19 @@ set(LAMMPS_BINARY lmp${LAMMPS_MACHINE})
option(BUILD_SHARED_LIBS "Build shared library" OFF)
option(CMAKE_POSITION_INDEPENDENT_CODE "Create object compatible with shared libraries" ON)
option(BUILD_TOOLS "Build and install LAMMPS tools (msi2lmp, binary2txt, chain)" OFF)
option(BUILD_LAMMPS_SHELL "Build and install the LAMMPS shell" OFF)
option(BUILD_LAMMPS_GUI "Build and install the LAMMPS GUI" OFF)
# Support using clang-tidy for C++ files with selected options
set(ENABLE_CLANG_TIDY OFF CACHE BOOL "Include clang-tidy processing when compiling")
if(ENABLE_CLANG_TIDY)
set(CMAKE_CXX_CLANG_TIDY "clang-tidy;-checks=-*,performance-trivially-destructible,performance-unnecessary-copy-initialization,performance-unnecessary-value-param,readability-redundant-control-flow,readability-redundant-declaration,readability-redundant-function-ptr-dereference,readability-redundant-member-init,readability-redundant-string-cstr,readability-redundant-string-init,readability-simplify-boolean-expr,readability-static-accessed-through-instance,readability-static-definition-in-anonymous-namespace,modernize-use-override,modernize-use-bool-literals,modernize-use-emplace,modernize-return-braced-init-list,modernize-use-equals-default,modernize-use-equals-delete,modernize-replace-random-shuffle,modernize-deprecated-headers,modernize-use-nullptr,modernize-use-noexcept,modernize-redundant-void-arg;-fix;-header-filter=.*,header-filter=library.h,header-filter=fmt/*.h" CACHE STRING "clang-tidy settings")
set(CMAKE_CXX_CLANG_TIDY "clang-tidy;-checks=-*,performance-trivially-destructible,performance-unnecessary-copy-initialization,performance-unnecessary-value-param,readability-redundant-control-flow,readability-redundant-declaration,readability-redundant-function-ptr-dereference,readability-redundant-member-init,readability-redundant-string-cstr,readability-redundant-string-init,readability-simplify-boolean-expr,readability-static-accessed-through-instance,readability-static-definition-in-anonymous-namespace,readability-qualified-auto,misc-unused-parameters,modernize-deprecated-ios-base-aliases,modernize-loop-convert,modernize-shrink-to-fit,modernize-use-auto,modernize-use-using,modernize-use-override,modernize-use-bool-literals,modernize-use-emplace,modernize-return-braced-init-list,modernize-use-equals-default,modernize-use-equals-delete,modernize-replace-random-shuffle,modernize-deprecated-headers,modernize-use-nullptr,modernize-use-noexcept,modernize-redundant-void-arg;-fix;-header-filter=.*,header-filter=library.h,header-filter=fmt/*.h" CACHE STRING "clang-tidy settings")
else()
unset(CMAKE_CXX_CLANG_TIDY CACHE)
endif()
include(GNUInstallDirs)
file(GLOB ALL_SOURCES ${CONFIGURE_DEPENDS} ${LAMMPS_SOURCE_DIR}/[^.]*.cpp)
file(GLOB MAIN_SOURCES ${CONFIGURE_DEPENDS} ${LAMMPS_SOURCE_DIR}/main.cpp)
file(GLOB ALL_SOURCES CONFIGURE_DEPENDS ${LAMMPS_SOURCE_DIR}/[^.]*.cpp)
file(GLOB MAIN_SOURCES CONFIGURE_DEPENDS ${LAMMPS_SOURCE_DIR}/main.cpp)
list(REMOVE_ITEM ALL_SOURCES ${MAIN_SOURCES})
add_library(lammps ${ALL_SOURCES})
@ -215,6 +256,10 @@ endif()
add_executable(lmp ${MAIN_SOURCES})
target_link_libraries(lmp PRIVATE lammps)
set_target_properties(lmp PROPERTIES OUTPUT_NAME ${LAMMPS_BINARY})
# re-export all symbols for plugins
if(PKG_PLUGIN AND (NOT ((CMAKE_SYSTEM_NAME STREQUAL "Windows"))))
set_target_properties(lmp PROPERTIES ENABLE_EXPORTS TRUE)
endif()
install(TARGETS lmp EXPORT LAMMPS_Targets DESTINATION ${CMAKE_INSTALL_BINDIR})
option(CMAKE_VERBOSE_MAKEFILE "Generate verbose Makefiles" OFF)
@ -245,6 +290,7 @@ set(STANDARD_PACKAGES
DRUDE
EFF
ELECTRODE
EXTRA-COMMAND
EXTRA-COMPUTE
EXTRA-DUMP
EXTRA-FIX
@ -257,7 +303,6 @@ set(STANDARD_PACKAGES
KIM
KSPACE
LATBOLTZ
LATTE
LEPTON
MACHDYN
MANIFOLD
@ -271,15 +316,14 @@ set(STANDARD_PACKAGES
ML-HDNNP
ML-IAP
ML-PACE
ML-POD
ML-QUIP
ML-RANN
ML-SNAP
ML-POD
ML-UF3
MOFFF
MOLECULE
MOLFILE
MPIIO
MSCG
NETCDF
ORIENT
PERI
@ -295,6 +339,7 @@ set(STANDARD_PACKAGES
REACTION
REAXFF
REPLICA
RHEO
RIGID
SCAFACOS
SHOCK
@ -314,6 +359,17 @@ foreach(PKG ${STANDARD_PACKAGES} ${SUFFIX_PACKAGES})
option(PKG_${PKG} "Build ${PKG} Package" OFF)
endforeach()
set(DEPRECATED_PACKAGES AWPMD ATC POEMS)
foreach(PKG ${DEPRECATED_PACKAGES})
if(PKG_${PKG})
message(WARNING
"The ${PKG} package will be removed from LAMMPS in Summer 2025 due to lack of "
"maintenance and use of code constructs that conflict with modern C++ compilers "
"and standards. Please contact developers@lammps.org if you have any concerns "
"about this step.")
endif()
endforeach()
######################################################
# packages with special compiler needs or external libs
######################################################
@ -385,15 +441,9 @@ if(NOT ${LAMMPS_MEMALIGN} STREQUAL "0")
target_compile_definitions(lammps PRIVATE -DLAMMPS_MEMALIGN=${LAMMPS_MEMALIGN})
endif()
option(LAMMPS_EXCEPTIONS "enable the use of C++ exceptions for error messages (useful for library interface)" ${ENABLE_TESTING})
if(LAMMPS_EXCEPTIONS)
target_compile_definitions(lammps PUBLIC -DLAMMPS_EXCEPTIONS)
endif()
# "hard" dependencies between packages resulting
# in an error instead of skipping over files
pkg_depends(ML-IAP ML-SNAP)
pkg_depends(MPIIO MPI)
pkg_depends(ATC MANYBODY)
pkg_depends(LATBOLTZ MPI)
pkg_depends(SCAFACOS MPI)
@ -404,6 +454,8 @@ pkg_depends(CG-DNA MOLECULE)
pkg_depends(CG-DNA ASPHERE)
pkg_depends(ELECTRODE KSPACE)
pkg_depends(EXTRA-MOLECULE MOLECULE)
pkg_depends(MESONT MOLECULE)
pkg_depends(RHEO BPM)
# detect if we may enable OpenMP support by default
set(BUILD_OMP_DEFAULT OFF)
@ -429,6 +481,7 @@ if(BUILD_OMP)
(CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM") OR (CMAKE_CXX_COMPILER_ID STREQUAL "XLClang") OR
((CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 10.0)) OR
((CMAKE_CXX_COMPILER_ID STREQUAL "Clang") AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 10.0)) OR
((CMAKE_CXX_COMPILER_ID STREQUAL "CrayClang") AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 10.0)) OR
((CMAKE_CXX_COMPILER_ID STREQUAL "Intel") AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.0)))
# GCC 9.x and later plus Clang 10.x and later implement strict OpenMP 4.0 semantics for consts.
# Intel 18.0 was tested to support both, so we switch to OpenMP 4+ from 19.x onward to be safe.
@ -439,16 +492,43 @@ if(BUILD_OMP)
target_compile_definitions(lammps PRIVATE -DLAMMPS_OMP_COMPAT=${LAMMPS_OMP_COMPAT_LEVEL})
target_link_libraries(lammps PRIVATE OpenMP::OpenMP_CXX)
target_link_libraries(lmp PRIVATE OpenMP::OpenMP_CXX)
# this hack is required to correctly link with OpenMP support when using CrayClang version 15.0.2
# CrayClang is only directly recognized by version 3.28 and later
if(CMAKE_VERSION VERSION_LESS 3.28)
get_filename_component(_exe "${CMAKE_CXX_COMPILER}" NAME)
if((CMAKE_CXX_COMPILER_ID STREQUAL "Clang") AND (_exe STREQUAL "crayCC"))
set(CMAKE_SHARED_LINKER_FLAGS_${BTYPE} "${CMAKE_SHARED_LINKER_FLAGS_${BTYPE}} -fopenmp")
set(CMAKE_STATIC_LINKER_FLAGS_${BTYPE} "${CMAKE_STATIC_LINKER_FLAGS_${BTYPE}} -fopenmp")
endif()
else()
if(CMAKE_CXX_COMPILER_ID STREQUAL "CrayClang")
set(CMAKE_SHARED_LINKER_FLAGS_${BTYPE} "${CMAKE_SHARED_LINKER_FLAGS_${BTYPE}} -fopenmp")
set(CMAKE_STATIC_LINKER_FLAGS_${BTYPE} "${CMAKE_STATIC_LINKER_FLAGS_${BTYPE}} -fopenmp")
endif()
endif()
endif()
if(PKG_MSCG OR PKG_ATC OR PKG_AWPMD OR PKG_ML-QUIP OR PKG_ML-POD OR PKG_LATTE OR PKG_ELECTRODE)
# lower C++ standard for fmtlib sources when using Intel classic compiler
if((CMAKE_CXX_COMPILER_ID STREQUAL "Intel") AND (CMAKE_CXX_STANDARD GREATER_EQUAL 17)
AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 2021.10))
message(STATUS "Lowering C++ standard for compiling fmtlib sources with Intel Classic compiler")
get_filename_component(LMP_UTILS_SRC "${LAMMPS_SOURCE_DIR}/utils.cpp" ABSOLUTE)
get_filename_component(LMP_VARIABLE_SRC "${LAMMPS_SOURCE_DIR}/variable.cpp" ABSOLUTE)
get_filename_component(FMT_FORMAT_SRC "${LAMMPS_SOURCE_DIR}/fmtlib_format.cpp" ABSOLUTE)
get_filename_component(FMT_OS_SRC "${LAMMPS_SOURCE_DIR}/fmtlib_os.cpp" ABSOLUTE)
set_source_files_properties("${FMT_FORMAT_SRC}" "${FMT_OS_SRC}" "${LMP_VARIABLE_SRC}" "${LMP_UTILS_SRC}"
PROPERTIES COMPILE_OPTIONS "-std=c++14")
endif()
if(PKG_ATC OR PKG_AWPMD OR PKG_ML-QUIP OR PKG_ML-POD OR PKG_ELECTRODE OR PKG_RHEO OR BUILD_TOOLS)
enable_language(C)
if (NOT USE_INTERNAL_LINALG)
find_package(LAPACK)
find_package(BLAS)
endif()
if(NOT LAPACK_FOUND OR NOT BLAS_FOUND OR USE_INTERNAL_LINALG)
file(GLOB LINALG_SOURCES ${CONFIGURE_DEPENDS} ${LAMMPS_LIB_SOURCE_DIR}/linalg/[^.]*.cpp)
file(GLOB LINALG_SOURCES CONFIGURE_DEPENDS ${LAMMPS_LIB_SOURCE_DIR}/linalg/[^.]*.cpp)
add_library(linalg STATIC ${LINALG_SOURCES})
set_target_properties(linalg PROPERTIES OUTPUT_NAME lammps_linalg${LAMMPS_MACHINE})
set(BLAS_LIBRARIES "$<TARGET_FILE:linalg>")
@ -466,12 +546,7 @@ option(WITH_JPEG "Enable JPEG support" ${JPEG_FOUND})
if(WITH_JPEG)
find_package(JPEG REQUIRED)
target_compile_definitions(lammps PRIVATE -DLAMMPS_JPEG)
if(CMAKE_VERSION VERSION_LESS 3.12)
target_include_directories(lammps PRIVATE ${JPEG_INCLUDE_DIRS})
target_link_libraries(lammps PRIVATE ${JPEG_LIBRARIES})
else()
target_link_libraries(lammps PRIVATE JPEG::JPEG)
endif()
target_link_libraries(lammps PRIVATE JPEG::JPEG)
endif()
find_package(PNG QUIET)
@ -521,12 +596,22 @@ else()
endif()
foreach(PKG_WITH_INCL KSPACE PYTHON ML-IAP VORONOI COLVARS ML-HDNNP MDI MOLFILE NETCDF
PLUMED QMMM ML-QUIP SCAFACOS MACHDYN VTK KIM LATTE MSCG COMPRESS ML-PACE LEPTON)
PLUMED QMMM ML-QUIP SCAFACOS MACHDYN VTK KIM COMPRESS ML-PACE LEPTON EXTRA-COMMAND)
if(PKG_${PKG_WITH_INCL})
include(Packages/${PKG_WITH_INCL})
endif()
endforeach()
# settings for misc packages and styles
if(PKG_MISC)
option(LAMMPS_ASYNC_IMD "Asynchronous IMD processing" OFF)
mark_as_advanced(LAMMPS_ASYNC_IMD)
if(LAMMPS_ASYNC_IMD)
target_compile_definitions(lammps PRIVATE -DLAMMPS_ASYNC_IMD)
message(STATUS "Using IMD in asynchronous mode")
endif()
endif()
# optionally enable building script wrappers using swig
option(WITH_SWIG "Build scripting language wrappers with SWIG" OFF)
if(WITH_SWIG)
@ -536,19 +621,17 @@ endif()
set(CMAKE_TUNE_FLAGS "${CMAKE_TUNE_DEFAULT}" CACHE STRING "Compiler and machine specific optimization flags (compilation only)")
separate_arguments(CMAKE_TUNE_FLAGS)
foreach(_FLAG ${CMAKE_TUNE_FLAGS})
target_compile_options(lammps PRIVATE ${_FLAG})
target_compile_options(lmp PRIVATE ${_FLAG})
endforeach()
target_compile_options(lammps PRIVATE ${CMAKE_TUNE_FLAGS})
target_compile_options(lmp PRIVATE ${CMAKE_TUNE_FLAGS})
########################################################################
# Basic system tests (standard libraries, headers, functions, types) #
########################################################################
foreach(HEADER cmath)
check_include_file_cxx(${HEADER} FOUND_${HEADER})
if(NOT FOUND_${HEADER})
message(FATAL_ERROR "Could not find needed header - ${HEADER}")
endif(NOT FOUND_${HEADER})
endforeach(HEADER)
if (NOT ((CMAKE_CXX_COMPILER_ID STREQUAL "Intel") OR (CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM")))
check_include_file_cxx(cmath FOUND_CMATH)
if(NOT FOUND_CMATH)
message(FATAL_ERROR "Could not find the required 'cmath' header")
endif(NOT FOUND_CMATH)
endif()
# make the standard math library overrideable and autodetected (for systems that don't have it)
find_library(STANDARD_MATH_LIB m DOC "Standard Math library")
@ -580,8 +663,8 @@ endforeach()
foreach(PKG ${STANDARD_PACKAGES})
set(${PKG}_SOURCES_DIR ${LAMMPS_SOURCE_DIR}/${PKG})
file(GLOB ${PKG}_SOURCES ${CONFIGURE_DEPENDS} ${${PKG}_SOURCES_DIR}/[^.]*.cpp)
file(GLOB ${PKG}_HEADERS ${CONFIGURE_DEPENDS} ${${PKG}_SOURCES_DIR}/[^.]*.h)
file(GLOB ${PKG}_SOURCES CONFIGURE_DEPENDS ${${PKG}_SOURCES_DIR}/[^.]*.cpp)
file(GLOB ${PKG}_HEADERS CONFIGURE_DEPENDS ${${PKG}_SOURCES_DIR}/[^.]*.h)
# check for package files in src directory due to old make system
DetectBuildSystemConflict(${LAMMPS_SOURCE_DIR} ${${PKG}_SOURCES} ${${PKG}_HEADERS})
@ -597,19 +680,12 @@ foreach(PKG ${STANDARD_PACKAGES})
RegisterPackages(${${PKG}_SOURCES_DIR})
endforeach()
# packages that need defines set
foreach(PKG MPIIO)
if(PKG_${PKG})
target_compile_definitions(lammps PRIVATE -DLMP_${PKG})
endif()
endforeach()
# dedicated check for entire contents of accelerator packages
foreach(PKG ${SUFFIX_PACKAGES})
set(${PKG}_SOURCES_DIR ${LAMMPS_SOURCE_DIR}/${PKG})
file(GLOB ${PKG}_SOURCES ${CONFIGURE_DEPENDS} ${${PKG}_SOURCES_DIR}/[^.]*.cpp)
file(GLOB ${PKG}_HEADERS ${CONFIGURE_DEPENDS} ${${PKG}_SOURCES_DIR}/[^.]*.h)
file(GLOB ${PKG}_SOURCES CONFIGURE_DEPENDS ${${PKG}_SOURCES_DIR}/[^.]*.cpp)
file(GLOB ${PKG}_HEADERS CONFIGURE_DEPENDS ${${PKG}_SOURCES_DIR}/[^.]*.h)
# check for package files in src directory due to old make system
DetectBuildSystemConflict(${LAMMPS_SOURCE_DIR} ${${PKG}_SOURCES} ${${PKG}_HEADERS})
@ -623,7 +699,7 @@ endforeach()
foreach(PKG_LIB POEMS ATC AWPMD H5MD)
if(PKG_${PKG_LIB})
string(TOLOWER "${PKG_LIB}" PKG_LIB)
file(GLOB_RECURSE ${PKG_LIB}_SOURCES ${CONFIGURE_DEPENDS}
file(GLOB_RECURSE ${PKG_LIB}_SOURCES CONFIGURE_DEPENDS
${LAMMPS_LIB_SOURCE_DIR}/${PKG_LIB}/[^.]*.c ${LAMMPS_LIB_SOURCE_DIR}/${PKG_LIB}/[^.]*.cpp)
add_library(${PKG_LIB} STATIC ${${PKG_LIB}_SOURCES})
set_target_properties(${PKG_LIB} PROPERTIES OUTPUT_NAME lammps_${PKG_LIB}${LAMMPS_MACHINE})
@ -667,7 +743,7 @@ endif()
# packages which selectively include variants based on enabled styles
# e.g. accelerator packages
######################################################################
foreach(PKG_WITH_INCL CORESHELL DPD-SMOOTH MC MISC PHONON QEQ OPENMP KOKKOS OPT INTEL GPU)
foreach(PKG_WITH_INCL CORESHELL DPD-BASIC DPD-SMOOTH MC MISC PHONON QEQ OPENMP KOKKOS OPT INTEL GPU)
if(PKG_${PKG_WITH_INCL})
include(Packages/${PKG_WITH_INCL})
endif()
@ -775,9 +851,15 @@ foreach(_DEF ${LAMMPS_DEFINES})
set(LAMMPS_API_DEFINES "${LAMMPS_API_DEFINES} -D${_DEF}")
endforeach()
if(BUILD_SHARED_LIBS)
install(TARGETS lammps EXPORT LAMMPS_Targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(TARGETS lammps EXPORT LAMMPS_Targets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
if(NOT BUILD_MPI)
install(TARGETS mpi_stubs EXPORT LAMMPS_Targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(TARGETS mpi_stubs EXPORT LAMMPS_Targets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
configure_file(pkgconfig/liblammps.pc.in ${CMAKE_CURRENT_BINARY_DIR}/liblammps${LAMMPS_MACHINE}.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/liblammps${LAMMPS_MACHINE}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
@ -793,9 +875,11 @@ include(Tools)
include(Documentation)
###############################################################################
# Install potential and force field files in data directory
# Install bench, potential and force field files in data directory
###############################################################################
set(LAMMPS_INSTALL_DATADIR ${CMAKE_INSTALL_FULL_DATADIR}/lammps)
set(LAMMPS_INSTALL_DATADIR ${CMAKE_INSTALL_DATADIR}/lammps)
install(DIRECTORY ${LAMMPS_DIR}/bench DESTINATION ${LAMMPS_INSTALL_DATADIR})
install(DIRECTORY ${LAMMPS_POTENTIALS_DIR} DESTINATION ${LAMMPS_INSTALL_DATADIR})
if(BUILD_TOOLS)
install(DIRECTORY ${LAMMPS_TOOLS_DIR}/msi2lmp/frc_files DESTINATION ${LAMMPS_INSTALL_DATADIR})
@ -816,20 +900,8 @@ install(
# This is primarily for people that only want to use the Python wrapper.
###############################################################################
if(BUILD_SHARED_LIBS)
if(CMAKE_VERSION VERSION_LESS 3.12)
# adjust so we find Python 3 versions before Python 2 on old systems with old CMake
set(Python_ADDITIONAL_VERSIONS 3.12 3.11 3.10 3.9 3.8 3.7 3.6)
find_package(PythonInterp) # Deprecated since version 3.12
if(PYTHONINTERP_FOUND)
set(Python_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()
else()
# backward compatibility
if(PYTHON_EXECUTABLE)
set(Python_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()
find_package(Python COMPONENTS Interpreter)
endif()
# backward compatibility
find_package(Python COMPONENTS Interpreter)
if(BUILD_IS_MULTI_CONFIG)
set(MY_BUILD_DIR ${CMAKE_BINARY_DIR}/$<CONFIG>)
else()
@ -838,9 +910,8 @@ if(BUILD_SHARED_LIBS)
set(LIBLAMMPS_SHARED_BINARY ${MY_BUILD_DIR}/liblammps${LAMMPS_MACHINE}${CMAKE_SHARED_LIBRARY_SUFFIX})
if(Python_EXECUTABLE)
add_custom_target(
install-python ${CMAKE_COMMAND} -E remove_directory build
COMMAND ${Python_EXECUTABLE} ${LAMMPS_PYTHON_DIR}/install.py -p ${LAMMPS_PYTHON_DIR}/lammps
-l ${LIBLAMMPS_SHARED_BINARY} -w ${MY_BUILD_DIR}
install-python ${Python_EXECUTABLE} ${LAMMPS_PYTHON_DIR}/install.py -p ${LAMMPS_PYTHON_DIR}/lammps
-l ${LIBLAMMPS_SHARED_BINARY} -w ${MY_BUILD_DIR} -v ${LAMMPS_SOURCE_DIR}/version.h
COMMENT "Installing LAMMPS Python module")
else()
add_custom_target(
@ -853,39 +924,10 @@ else()
${CMAKE_COMMAND} -E echo "Must build LAMMPS as a shared library to use the Python module")
endif()
###############################################################################
# Add LAMMPS python module to "install" target. This is taylored for building
# LAMMPS for package managers and with different prefix settings.
# This requires either a shared library or that the PYTHON package is included.
###############################################################################
if(BUILD_SHARED_LIBS OR PKG_PYTHON)
if(CMAKE_VERSION VERSION_LESS 3.12)
# adjust so we find Python 3 versions before Python 2 on old systems with old CMake
set(Python_ADDITIONAL_VERSIONS 3.12 3.11 3.10 3.9 3.8 3.7 3.6)
find_package(PythonInterp) # Deprecated since version 3.12
if(PYTHONINTERP_FOUND)
set(Python_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()
else()
# backward compatibility
if(PYTHON_EXECUTABLE)
set(Python_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()
find_package(Python COMPONENTS Interpreter)
endif()
if(Python_EXECUTABLE)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/python/lib)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/python/src)
file(COPY ${LAMMPS_SOURCE_DIR}/version.h DESTINATION ${CMAKE_BINARY_DIR}/python/src)
file(COPY ${LAMMPS_PYTHON_DIR}/README ${LAMMPS_PYTHON_DIR}/pyproject.toml ${LAMMPS_PYTHON_DIR}/setup.py ${LAMMPS_PYTHON_DIR}/lammps DESTINATION ${CMAKE_BINARY_DIR}/python/lib)
install(CODE "if(\"\$ENV{DESTDIR}\" STREQUAL \"\")\n execute_process(COMMAND ${Python_EXECUTABLE} -m pip install -v ${CMAKE_BINARY_DIR}/python/lib --prefix=${CMAKE_INSTALL_PREFIX})\n else()\n execute_process(COMMAND ${Python_EXECUTABLE} -m pip install -v ${CMAKE_BINARY_DIR}/python/lib --prefix=${CMAKE_INSTALL_PREFIX} --root=\$ENV{DESTDIR})\n endif()")
endif()
endif()
include(Testing)
include(CodeCoverage)
include(CodingStandard)
find_package(ClangFormat 8.0)
find_package(ClangFormat 11.0)
if(ClangFormat_FOUND)
add_custom_target(format-src
@ -918,13 +960,23 @@ else()
endif()
include(FeatureSummary)
feature_summary(DESCRIPTION "The following tools and libraries have been found and configured:" WHAT PACKAGES_FOUND)
if(GIT_FOUND AND EXISTS ${LAMMPS_DIR}/.git)
execute_process(COMMAND ${GIT_EXECUTABLE} describe --dirty=-modified --always
OUTPUT_VARIABLE GIT_DESCRIBE
ERROR_QUIET
WORKING_DIRECTORY ${LAMMPS_DIR}
OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
message(STATUS "<<< Build configuration >>>
LAMMPS Version: ${PROJECT_VERSION}
LAMMPS Version: ${PROJECT_VERSION} ${GIT_DESCRIBE}
Operating System: ${CMAKE_SYSTEM_NAME} ${CMAKE_LINUX_DISTRO} ${CMAKE_DISTRO_VERSION}
CMake Version: ${CMAKE_VERSION}
Build type: ${LAMMPS_BUILD_TYPE}
Install path: ${CMAKE_INSTALL_PREFIX}
Generator: ${CMAKE_GENERATOR} using ${CMAKE_MAKE_PROGRAM}")
if(CMAKE_CROSSCOMPILING)
message(STATUS "Cross compiling on ${CMAKE_HOST_SYSTEM}")
endif()
###############################################################################
# Print package summary
###############################################################################
@ -945,8 +997,12 @@ message(STATUS "<<< Compilers and Flags: >>>
-- C++ Compiler: ${CMAKE_CXX_COMPILER}
Type: ${CMAKE_CXX_COMPILER_ID}
Version: ${CMAKE_CXX_COMPILER_VERSION}
C++ Standard: ${CMAKE_CXX_STANDARD}
C++ Flags: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${BTYPE}}
Defines: ${DEFINES}")
if(CMAKE_CXX_COMPILER_LAUNCHER)
message(STATUS " Launcher: ${CMAKE_CXX_COMPILER_LAUNCHER}")
endif()
get_target_property(OPTIONS lammps COMPILE_OPTIONS)
if(OPTIONS)
message(" Options: ${OPTIONS}")
@ -965,14 +1021,15 @@ if(_index GREATER -1)
Type: ${CMAKE_C_COMPILER_ID}
Version: ${CMAKE_C_COMPILER_VERSION}
C Flags: ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${BTYPE}}")
if(CMAKE_C_COMPILER_LAUNCHER)
message(STATUS " Launcher: ${CMAKE_C_COMPILER_LAUNCHER}")
endif()
endif()
message(STATUS "<<< Linker flags: >>>")
message(STATUS "Executable name: ${LAMMPS_BINARY}")
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13)
get_target_property(OPTIONS lammps LINK_OPTIONS)
if(OPTIONS)
message(STATUS "Linker options: ${OPTIONS}")
endif()
get_target_property(OPTIONS lammps LINK_OPTIONS)
if(OPTIONS)
message(STATUS "Linker options: ${OPTIONS}")
endif()
if(CMAKE_EXE_LINKER_FLAGS)
message(STATUS "Executable linker flags: ${CMAKE_EXE_LINKER_FLAGS}")
@ -1014,34 +1071,37 @@ if(PKG_KOKKOS)
endif()
endif()
if(PKG_KSPACE)
message(STATUS "<<< FFT settings >>>
if (FFT_USE_HEFFTE)
message(STATUS "<<< FFT settings >>>
-- Primary FFT lib: heFFTe")
if (FFT_HEFFTE_BACKEND)
message(STATUS "heFFTe backend: ${FFT_HEFFTE_BACKEND}")
else()
message(STATUS "heFFTe backend: stock (builtin FFT implementation, tested for corrected but not optimized for production)")
endif()
message(STATUS "Using distributed FFT algorithms from heFTTe")
if(FFT_SINGLE)
message(STATUS "Using single precision FFTs")
else()
message(STATUS "Using double precision FFTs")
endif()
else()
message(STATUS "<<< FFT settings >>>
-- Primary FFT lib: ${FFT}")
if(FFT_SINGLE)
message(STATUS "Using single precision FFTs")
else()
message(STATUS "Using double precision FFTs")
endif()
if(FFT_FFTW_THREADS OR FFT_MKL_THREADS)
message(STATUS "Using threaded FFTs")
else()
message(STATUS "Using non-threaded FFTs")
if(FFT_SINGLE)
message(STATUS "Using single precision FFTs")
else()
message(STATUS "Using double precision FFTs")
endif()
if(FFT_FFTW_THREADS OR FFT_MKL_THREADS)
message(STATUS "Using threaded FFTs")
else()
message(STATUS "Using non-threaded FFTs")
endif()
message(STATUS "Using builtin distributed FFT algorithms")
endif()
if(PKG_KOKKOS)
if(Kokkos_ENABLE_CUDA)
if(FFT STREQUAL "KISS")
message(STATUS "Kokkos FFT: KISS")
else()
message(STATUS "Kokkos FFT: cuFFT")
endif()
elseif(Kokkos_ENABLE_HIP)
if(FFT STREQUAL "KISS")
message(STATUS "Kokkos FFT: KISS")
else()
message(STATUS "Kokkos FFT: hipFFT")
endif()
else()
message(STATUS "Kokkos FFT: ${FFT}")
endif()
message(STATUS "Kokkos FFT: ${FFT_KOKKOS}")
endif()
endif()
if(BUILD_DOC)
@ -1050,8 +1110,16 @@ endif()
if(BUILD_TOOLS)
message(STATUS "<<< Building Tools >>>")
endif()
if(BUILD_LAMMPS_SHELL)
message(STATUS "<<< Building LAMMPS Shell >>>")
if(BUILD_LAMMPS_GUI)
message(STATUS "<<< Building LAMMPS-GUI >>>")
if(LAMMPS_GUI_USE_PLUGIN)
message(STATUS "Loading LAMMPS library as plugin at run time")
else()
message(STATUS "Linking LAMMPS library at compile time")
endif()
if(BUILD_WHAM)
message(STATUS "<<< Building WHAM >>>")
endif()
endif()
if(ENABLE_TESTING)
message(STATUS "<<< Building Unit Tests >>>")

View File

@ -1,195 +0,0 @@
cmake_minimum_required(VERSION 3.10)
# When using CMake 3.4 and later, don't export symbols from executables unless
# the CMAKE_ENABLE_EXPORTS variable is set.
if(POLICY CMP0065)
cmake_policy(SET CMP0065 NEW)
endif()
if (POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)
project(zlib C)
set(VERSION "1.2.11")
option(ASM686 "Enable building i686 assembly implementation" OFF)
option(AMD64 "Enable building amd64 assembly implementation" OFF)
set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation directory for executables")
set(INSTALL_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation directory for libraries")
set(INSTALL_INC_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "Installation directory for headers")
set(INSTALL_MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man" CACHE PATH "Installation directory for manual pages")
set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/share/pkgconfig" CACHE PATH "Installation directory for pkgconfig (.pc) files")
include(CheckTypeSize)
include(CheckFunctionExists)
include(CheckIncludeFile)
include(CheckCSourceCompiles)
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
check_include_file(stdint.h HAVE_STDINT_H)
check_include_file(stddef.h HAVE_STDDEF_H)
#
# Check to see if we have large file support
#
set(CMAKE_REQUIRED_DEFINITIONS -D_LARGEFILE64_SOURCE=1)
# We add these other definitions here because CheckTypeSize.cmake
# in CMake 2.4.x does not automatically do so and we want
# compatibility with CMake 2.4.x.
if(HAVE_SYS_TYPES_H)
list(APPEND CMAKE_REQUIRED_DEFINITIONS -DHAVE_SYS_TYPES_H)
endif()
if(HAVE_STDINT_H)
list(APPEND CMAKE_REQUIRED_DEFINITIONS -DHAVE_STDINT_H)
endif()
if(HAVE_STDDEF_H)
list(APPEND CMAKE_REQUIRED_DEFINITIONS -DHAVE_STDDEF_H)
endif()
check_type_size(off64_t OFF64_T)
check_type_size(off64_t OFF64_T)
if(HAVE_OFF64_T)
add_definitions(-D_LARGEFILE64_SOURCE=1)
endif()
set(CMAKE_REQUIRED_DEFINITIONS) # clear variable
#
# Check for fseeko
#
check_function_exists(fseeko HAVE_FSEEKO)
if(NOT HAVE_FSEEKO)
add_definitions(-DNO_FSEEKO)
endif()
#
# Check for unistd.h
#
check_include_file(unistd.h Z_HAVE_UNISTD_H)
if(MSVC)
set(CMAKE_DEBUG_POSTFIX "d")
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
endif()
if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
# If we're doing an out of source build and the user has a zconf.h
# in their source tree...
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h)
file(RENAME ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h.included)
endif()
endif()
set(ZLIB_PC ${CMAKE_CURRENT_BINARY_DIR}/zlib.pc)
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/zlib.pc.cmakein
${ZLIB_PC} @ONLY)
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h.cmakein
${CMAKE_CURRENT_BINARY_DIR}/zconf.h @ONLY)
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR})
#============================================================================
# zlib
#============================================================================
set(ZLIB_PUBLIC_HDRS
${CMAKE_CURRENT_BINARY_DIR}/zconf.h
zlib.h
)
set(ZLIB_PRIVATE_HDRS
crc32.h
deflate.h
gzguts.h
inffast.h
inffixed.h
inflate.h
inftrees.h
trees.h
zutil.h
)
set(ZLIB_SRCS
adler32.c
compress.c
crc32.c
deflate.c
gzclose.c
gzlib.c
gzread.c
gzwrite.c
inflate.c
infback.c
inftrees.c
inffast.c
trees.c
uncompr.c
zutil.c
)
if(NOT MINGW)
set(ZLIB_DLL_SRCS
win32/zlib1.rc # If present will override custom build rule below.
)
endif()
if(CMAKE_COMPILER_IS_GNUCC)
if(ASM686)
set(ZLIB_ASMS contrib/asm686/match.S)
elseif (AMD64)
set(ZLIB_ASMS contrib/amd64/amd64-match.S)
endif ()
if(ZLIB_ASMS)
add_definitions(-DASMV)
set_source_files_properties(${ZLIB_ASMS} PROPERTIES LANGUAGE C COMPILE_FLAGS -DNO_UNDERLINE)
endif()
endif()
if(MSVC)
if(ASM686)
ENABLE_LANGUAGE(ASM_MASM)
set(ZLIB_ASMS
contrib/masmx86/inffas32.asm
contrib/masmx86/match686.asm
)
elseif (AMD64)
ENABLE_LANGUAGE(ASM_MASM)
set(ZLIB_ASMS
contrib/masmx64/gvmat64.asm
contrib/masmx64/inffasx64.asm
)
endif()
if(ZLIB_ASMS)
add_definitions(-DASMV -DASMINF)
endif()
endif()
# parse the full version number from zlib.h and include in ZLIB_FULL_VERSION
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/zlib.h _zlib_h_contents)
string(REGEX REPLACE ".*#define[ \t]+ZLIB_VERSION[ \t]+\"([-0-9A-Za-z.]+)\".*"
"\\1" ZLIB_FULL_VERSION ${_zlib_h_contents})
if(MINGW)
# This gets us DLL resource information when compiling on MinGW.
if(NOT CMAKE_RC_COMPILER)
set(CMAKE_RC_COMPILER windres.exe)
endif()
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj
COMMAND ${CMAKE_RC_COMPILER}
-D GCC_WINDRES
-I ${CMAKE_CURRENT_SOURCE_DIR}
-I ${CMAKE_CURRENT_BINARY_DIR}
-o ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj
-i ${CMAKE_CURRENT_SOURCE_DIR}/win32/zlib1.rc)
set(ZLIB_DLL_SRCS ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj)
endif(MINGW)
add_library(zlibstatic STATIC ${ZLIB_SRCS} ${ZLIB_ASMS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
if(UNIX)
# On unix-like platforms the library is almost always called libz
set_target_properties(zlibstatic PROPERTIES OUTPUT_NAME z)
endif()

View File

@ -63,6 +63,11 @@
"name": "ENABLE_TESTING",
"value": "True",
"type": "BOOL"
},
{
"name": "BUILD_LAMMPS_GUI",
"value": "False",
"type": "BOOL"
}
]
},
@ -303,6 +308,54 @@
"type": "STRING"
}
]
},
{
"name": "x64-GUI-MSVC",
"generator": "Ninja",
"configurationType": "Release",
"buildRoot": "${workspaceRoot}\\build\\${name}",
"installRoot": "${workspaceRoot}\\install\\${name}",
"cmakeCommandArgs": "-C ${workspaceRoot}\\cmake\\presets\\windows.cmake -D QT_DIR=C:\\Qt\\5.15.2\\msvc2019_64\\lib\\cmake\\Qt5 -D Qt5_DIR=C:\\Qt\\5.15.2\\msvc2019_64\\lib\\cmake\\Qt5",
"buildCommandArgs": "",
"ctestCommandArgs": "-V",
"inheritEnvironments": [ "msvc_x64_x64" ],
"variables": [
{
"name": "BUILD_SHARED_LIBS",
"value": "True",
"type": "BOOL"
},
{
"name": "BUILD_TOOLS",
"value": "True",
"type": "BOOL"
},
{
"name": "LAMMPS_EXCEPTIONS",
"value": "True",
"type": "BOOL"
},
{
"name": "ENABLE_TESTING",
"value": "False",
"type": "BOOL"
},
{
"name": "BUILD_MPI",
"value": "False",
"type": "BOOL"
},
{
"name": "WITH_PNG",
"value": "False",
"type": "BOOL"
},
{
"name": "BUILD_LAMMPS_GUI",
"value": "True",
"type": "BOOL"
}
]
}
]
}

View File

@ -1,15 +1,11 @@
if(CMAKE_VERSION VERSION_LESS 3.12)
find_package(PythonInterp 3.5 QUIET) # Deprecated since version 3.12
if(PYTHONINTERP_FOUND)
set(Python3_EXECUTABLE ${PYTHON_EXECUTABLE})
set(Python3_VERSION ${PYTHON_VERSION_STRING})
endif()
else()
find_package(Python3 COMPONENTS Interpreter QUIET)
# use default (or custom) Python executable, if version is sufficient
if(Python_VERSION VERSION_GREATER_EQUAL 3.6)
set(Python3_EXECUTABLE ${Python_EXECUTABLE})
endif()
find_package(Python3 COMPONENTS Interpreter)
if(Python3_EXECUTABLE)
if(Python3_VERSION VERSION_GREATER_EQUAL 3.5)
if(Python3_VERSION VERSION_GREATER_EQUAL 3.6)
add_custom_target(
check-whitespace
${Python3_EXECUTABLE} ${LAMMPS_TOOLS_DIR}/coding_standard/whitespace.py .

View File

@ -0,0 +1,8 @@
if(NOT DEFINED ROCM_PATH)
if(NOT DEFINED ENV{ROCM_PATH})
set(ROCM_PATH "/opt/rocm" CACHE PATH "Path to ROCm installation")
else()
set(ROCM_PATH $ENV{ROCM_PATH} CACHE PATH "Path to ROCm installation")
endif()
endif()
list(APPEND CMAKE_PREFIX_PATH ${ROCM_PATH})

View File

@ -4,29 +4,21 @@
option(BUILD_DOC "Build LAMMPS HTML documentation" OFF)
if(BUILD_DOC)
# Sphinx 3.x requires at least Python 3.5
if(CMAKE_VERSION VERSION_LESS 3.12)
find_package(PythonInterp 3.5 REQUIRED)
set(VIRTUALENV ${PYTHON_EXECUTABLE} -m venv)
else()
find_package(Python3 REQUIRED COMPONENTS Interpreter)
if(Python3_VERSION VERSION_LESS 3.5)
message(FATAL_ERROR "Python 3.5 and up is required to build the HTML documentation")
endif()
set(VIRTUALENV ${Python3_EXECUTABLE} -m venv)
option(BUILD_DOC_VENV "Build LAMMPS documentation virtual environment" ON)
mark_as_advanced(BUILD_DOC_VENV)
# Current Sphinx versions require at least Python 3.8
# use default (or custom) Python executable, if version is sufficient
if(Python_VERSION VERSION_GREATER_EQUAL 3.8)
set(Python3_EXECUTABLE ${Python_EXECUTABLE})
endif()
find_package(Python3 REQUIRED COMPONENTS Interpreter)
if(Python3_VERSION VERSION_LESS 3.8)
message(FATAL_ERROR "Python 3.8 and up is required to build the HTML documentation")
endif()
set(VIRTUALENV ${Python3_EXECUTABLE} -m venv)
find_package(Doxygen 1.8.10 REQUIRED)
file(GLOB DOC_SOURCES ${CONFIGURE_DEPENDS} ${LAMMPS_DOC_DIR}/src/[^.]*.rst)
add_custom_command(
OUTPUT docenv
COMMAND ${VIRTUALENV} docenv
)
set(DOCENV_BINARY_DIR ${CMAKE_BINARY_DIR}/docenv/bin)
set(DOCENV_REQUIREMENTS_FILE ${LAMMPS_DOC_DIR}/utils/requirements.txt)
file(GLOB DOC_SOURCES CONFIGURE_DEPENDS ${LAMMPS_DOC_DIR}/src/[^.]*.rst)
set(SPHINX_CONFIG_DIR ${LAMMPS_DOC_DIR}/utils/sphinx-config)
set(SPHINX_CONFIG_FILE_TEMPLATE ${SPHINX_CONFIG_DIR}/conf.py.in)
@ -46,14 +38,32 @@ if(BUILD_DOC)
# configure paths in conf.py, since relative paths change when file is copied
configure_file(${SPHINX_CONFIG_FILE_TEMPLATE} ${DOC_BUILD_CONFIG_FILE})
add_custom_command(
OUTPUT ${DOC_BUILD_DIR}/requirements.txt
DEPENDS docenv ${DOCENV_REQUIREMENTS_FILE}
COMMAND ${CMAKE_COMMAND} -E copy ${DOCENV_REQUIREMENTS_FILE} ${DOC_BUILD_DIR}/requirements.txt
COMMAND ${DOCENV_BINARY_DIR}/pip $ENV{PIP_OPTIONS} install --upgrade pip
COMMAND ${DOCENV_BINARY_DIR}/pip $ENV{PIP_OPTIONS} install --upgrade ${LAMMPS_DOC_DIR}/utils/converters
COMMAND ${DOCENV_BINARY_DIR}/pip $ENV{PIP_OPTIONS} install -r ${DOC_BUILD_DIR}/requirements.txt --upgrade
)
if(BUILD_DOC_VENV)
add_custom_command(
OUTPUT docenv
COMMAND ${VIRTUALENV} docenv
)
set(DOCENV_BINARY_DIR ${CMAKE_BINARY_DIR}/docenv/bin)
set(DOCENV_REQUIREMENTS_FILE ${LAMMPS_DOC_DIR}/utils/requirements.txt)
add_custom_command(
OUTPUT ${DOC_BUILD_DIR}/requirements.txt
DEPENDS docenv ${DOCENV_REQUIREMENTS_FILE}
COMMAND ${CMAKE_COMMAND} -E copy ${DOCENV_REQUIREMENTS_FILE} ${DOC_BUILD_DIR}/requirements.txt
COMMAND ${DOCENV_BINARY_DIR}/pip $ENV{PIP_OPTIONS} install --upgrade pip
COMMAND ${DOCENV_BINARY_DIR}/pip $ENV{PIP_OPTIONS} install --upgrade ${LAMMPS_DOC_DIR}/utils/converters
COMMAND ${DOCENV_BINARY_DIR}/pip $ENV{PIP_OPTIONS} install -r ${DOC_BUILD_DIR}/requirements.txt --upgrade
)
set(DOCENV_DEPS docenv ${DOC_BUILD_DIR}/requirements.txt)
if(NOT TARGET Sphinx::sphinx-build)
add_executable(Sphinx::sphinx-build IMPORTED GLOBAL)
set_target_properties(Sphinx::sphinx-build PROPERTIES IMPORTED_LOCATION "${DOCENV_BINARY_DIR}/sphinx-build")
endif()
else()
find_package(Sphinx)
endif()
set(MATHJAX_URL "https://github.com/mathjax/MathJax/archive/3.1.3.tar.gz" CACHE STRING "URL for MathJax tarball")
set(MATHJAX_MD5 "b81661c6e6ba06278e6ae37b30b0c492" CACHE STRING "MD5 checksum of MathJax tarball")
@ -76,7 +86,7 @@ if(BUILD_DOC)
message(STATUS "Using already downloaded archive ${CMAKE_BINARY_DIR}/libpace.tar.gz")
endif()
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzf mathjax.tar.gz WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
file(GLOB MATHJAX_VERSION_DIR ${CONFIGURE_DEPENDS} ${CMAKE_CURRENT_BINARY_DIR}/MathJax-*)
file(GLOB MATHJAX_VERSION_DIR CONFIGURE_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/MathJax-*)
execute_process(COMMAND ${CMAKE_COMMAND} -E rename ${MATHJAX_VERSION_DIR} ${DOC_BUILD_STATIC_DIR}/mathjax)
endif()
@ -99,8 +109,9 @@ if(BUILD_DOC)
endif()
add_custom_command(
OUTPUT html
DEPENDS ${DOC_SOURCES} docenv ${DOC_BUILD_DIR}/requirements.txt ${DOXYGEN_XML_DIR}/index.xml ${BUILD_DOC_CONFIG_FILE}
COMMAND ${DOCENV_BINARY_DIR}/sphinx-build ${SPHINX_EXTRA_OPTS} -b html -c ${DOC_BUILD_DIR} -d ${DOC_BUILD_DIR}/doctrees ${LAMMPS_DOC_DIR}/src ${DOC_BUILD_DIR}/html
DEPENDS ${DOC_SOURCES} ${DOCENV_DEPS} ${DOXYGEN_XML_DIR}/index.xml ${BUILD_DOC_CONFIG_FILE}
COMMAND ${Python3_EXECUTABLE} ${LAMMPS_DOC_DIR}/utils/make-globbed-tocs.py -d ${LAMMPS_DOC_DIR}/src
COMMAND Sphinx::sphinx-build ${SPHINX_EXTRA_OPTS} -b html -c ${DOC_BUILD_DIR} -d ${DOC_BUILD_DIR}/doctrees ${LAMMPS_DOC_DIR}/src ${DOC_BUILD_DIR}/html
COMMAND ${CMAKE_COMMAND} -E create_symlink Manual.html ${DOC_BUILD_DIR}/html/index.html
COMMAND ${CMAKE_COMMAND} -E copy_directory ${LAMMPS_DOC_DIR}/src/PDF ${DOC_BUILD_DIR}/html/PDF
COMMAND ${CMAKE_COMMAND} -E remove -f ${DOXYGEN_XML_DIR}/run.stamp

View File

@ -43,5 +43,5 @@ function(ExternalCMakeProject target url hash basedir cmakedir cmakefile)
"${CMAKE_BINARY_DIR}/_deps/${target}-src/${cmakedir}/CMakeLists.txt")
endif()
add_subdirectory("${CMAKE_BINARY_DIR}/_deps/${target}-src/${cmakedir}"
"${CMAKE_BINARY_DIR}/_deps/${target}-build")
"${CMAKE_BINARY_DIR}/_deps/${target}-build" EXCLUDE_FROM_ALL)
endfunction(ExternalCMakeProject)

View File

@ -1,5 +1,10 @@
# Find clang-format
find_program(ClangFormat_EXECUTABLE NAMES clang-format
clang-format-20.0
clang-format-19.0
clang-format-18.0
clang-format-17.0
clang-format-16.0
clang-format-15.0
clang-format-14.0
clang-format-13.0
@ -19,7 +24,7 @@ if(ClangFormat_EXECUTABLE)
OUTPUT_VARIABLE clang_format_version
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
if(clang_format_version MATCHES "^(Ubuntu |)clang-format version .*")
if(clang_format_version MATCHES "^(Ubuntu |Debian |)clang-format version .*")
# Arch Linux output:
# clang-format version 10.0.0
#
@ -32,9 +37,15 @@ if(ClangFormat_EXECUTABLE)
# Ubuntu 22.04 LTS output:
# Ubuntu clang-format version 14.0.0-1ubuntu1
#
# Debian 11 output:
# Debian clang-format version 11.0.1-2
#
# Debian 12 output:
# Debian clang-format version 14.0.6
#
# Fedora 36 output:
# clang-format version 14.0.5 (Fedora 14.0.5-1.fc36)
string(REGEX REPLACE "^(Ubuntu |)clang-format version ([0-9.]+).*"
string(REGEX REPLACE "^(Ubuntu |Debian |)clang-format version ([0-9.]+).*"
"\\2"
ClangFormat_VERSION
"${clang_format_version}")

View File

@ -7,15 +7,7 @@
# adapted from https://github.com/cmarshall108/cython-cmake-example/blob/master/cmake/FindCython.cmake
#=============================================================================
if(CMAKE_VERSION VERSION_LESS 3.12)
set(Python_ADDITIONAL_VERSIONS 3.12 3.11 3.10 3.9 3.8 3.7 3.6)
find_package(PythonInterp 3.6 QUIET) # Deprecated since version 3.12
if(PYTHONINTERP_FOUND)
set(Python_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()
else()
find_package(Python 3.6 COMPONENTS Interpreter QUIET)
endif()
find_package(Python 3.6 COMPONENTS Interpreter QUIET)
# Use the Cython executable that lives next to the Python executable
# if it is a local installation.

View File

@ -0,0 +1,29 @@
# Find sphinx-build
find_program(Sphinx_EXECUTABLE NAMES sphinx-build
PATH_SUFFIXES bin
DOC "Sphinx documenation build executable")
mark_as_advanced(Sphinx_EXECUTABLE)
if(Sphinx_EXECUTABLE)
execute_process(COMMAND ${Sphinx_EXECUTABLE} --version
OUTPUT_VARIABLE sphinx_version
OUTPUT_STRIP_TRAILING_WHITESPACE
RESULT_VARIABLE _sphinx_version_result)
if(_sphinx_version_result)
message(WARNING "Unable to determine sphinx-build verison: ${_sphinx_version_result}")
else()
string(REGEX REPLACE "sphinx-build ([0-9.]+).*"
"\\1"
Sphinx_VERSION
"${sphinx_version}")
endif()
if(NOT TARGET Sphinx::sphinx-build)
add_executable(Sphinx::sphinx-build IMPORTED GLOBAL)
set_target_properties(Sphinx::sphinx-build PROPERTIES IMPORTED_LOCATION "${Sphinx_EXECUTABLE}")
endif()
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Sphinx REQUIRED_VARS Sphinx_EXECUTABLE VERSION_VAR Sphinx_VERSION)

View File

@ -21,9 +21,9 @@ if(VORO_FOUND)
set(VORO_LIBRARIES ${VORO_LIBRARY})
set(VORO_INCLUDE_DIRS ${VORO_INCLUDE_DIR})
if(NOT TARGET VORO::VORO)
add_library(VORO::VORO UNKNOWN IMPORTED)
set_target_properties(VORO::VORO PROPERTIES
if(NOT TARGET VORO::voro++)
add_library(VORO::voro++ UNKNOWN IMPORTED)
set_target_properties(VORO::voro++ PROPERTIES
IMPORTED_LOCATION "${VORO_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${VORO_INCLUDE_DIR}")
endif()

View File

@ -28,9 +28,8 @@ if(MSVC)
add_compile_options(/Zc:__cplusplus)
add_compile_options(/wd4244)
add_compile_options(/wd4267)
if(LAMMPS_EXCEPTIONS)
add_compile_options(/EHsc)
endif()
add_compile_options(/wd4250)
add_compile_options(/EHsc)
endif()
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
endif()
@ -65,7 +64,7 @@ endfunction(validate_option)
# helper function for getting the most recently modified file or folder from a glob pattern
function(get_newest_file path variable)
file(GLOB _dirs ${CONFIGURE_DEPENDS} ${path})
file(GLOB _dirs CONFIGURE_DEPENDS ${path})
set(_besttime 2000-01-01T00:00:00)
set(_bestfile "<unknown>")
foreach(_dir ${_dirs})
@ -88,6 +87,18 @@ function(get_lammps_version version_header variable)
set(${variable} "${date}" PARENT_SCOPE)
endfunction()
# determine canonical URL for downloading backup copy from download.lammps.org/thirdparty
function(GetFallbackURL input output)
string(REPLACE "_URL" "" _tmp ${input})
string(TOLOWER ${_tmp} libname)
string(REGEX REPLACE "^https://.*/([^/]+gz)" "${LAMMPS_THIRDPARTY_URL}/${libname}-\\1" newurl "${${input}}")
if ("${newurl}" STREQUAL "${${input}}")
set(${output} "" PARENT_SCOPE)
else()
set(${output} ${newurl} PARENT_SCOPE)
endif()
endfunction(GetFallbackURL)
#################################################################################
# LAMMPS C++ interface. We only need the header related parts except on windows.
add_library(lammps INTERFACE)

View File

@ -32,7 +32,13 @@ function(check_omp_h_include)
set(CMAKE_REQUIRED_INCLUDES ${OpenMP_CXX_INCLUDE_DIRS})
set(CMAKE_REQUIRED_LINK_OPTIONS ${OpenMP_CXX_FLAGS})
set(CMAKE_REQUIRED_LIBRARIES ${OpenMP_CXX_LIBRARIES})
check_include_file_cxx(omp.h _have_omp_h)
# there are all kinds of problems with finding omp.h
# for Clang and derived compilers so we pretend it is there.
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(_have_omp_h TRUE)
else()
check_include_file_cxx(omp.h _have_omp_h)
endif()
else()
set(_have_omp_h FALSE)
endif()
@ -41,7 +47,7 @@ endfunction()
# helper function for getting the most recently modified file or folder from a glob pattern
function(get_newest_file path variable)
file(GLOB _dirs ${CONFIGURE_DEPENDS} ${path})
file(GLOB _dirs CONFIGURE_DEPENDS ${path})
set(_besttime 2000-01-01T00:00:00)
set(_bestfile "<unknown>")
foreach(_dir ${_dirs})
@ -80,20 +86,20 @@ endfunction()
function(check_for_autogen_files source_dir)
message(STATUS "Running check for auto-generated files from make-based build system")
file(GLOB SRC_AUTOGEN_FILES ${CONFIGURE_DEPENDS} ${source_dir}/style_*.h)
file(GLOB SRC_AUTOGEN_PACKAGES ${CONFIGURE_DEPENDS} ${source_dir}/packages_*.h)
file(GLOB SRC_AUTOGEN_FILES CONFIGURE_DEPENDS ${source_dir}/style_*.h)
file(GLOB SRC_AUTOGEN_PACKAGES CONFIGURE_DEPENDS ${source_dir}/packages_*.h)
list(APPEND SRC_AUTOGEN_FILES ${SRC_AUTOGEN_PACKAGES} ${source_dir}/lmpinstalledpkgs.h ${source_dir}/lmpgitversion.h)
list(APPEND SRC_AUTOGEN_FILES ${SRC_AUTOGEN_PACKAGES} ${source_dir}/mliap_model_python_couple.h ${source_dir}/mliap_model_python_couple.cpp)
list(APPEND SRC_AUTOGEN_FILES ${source_dir}/mliap_model_python_couple.h ${source_dir}/mliap_model_python_couple.cpp)
foreach(_SRC ${SRC_AUTOGEN_FILES})
get_filename_component(FILENAME "${_SRC}" NAME)
if(EXISTS ${source_dir}/${FILENAME})
message(FATAL_ERROR "\n########################################################################\n"
"Found header file(s) generated by the make-based build system\n"
"\n"
"Please run\n"
"make -C ${source_dir} purge\n"
"to remove\n"
"########################################################################")
"Found header file ${source_dir}/${FILENAME} generated by the make-based build system\n"
"\n"
"Please run\n"
"make -C ${source_dir} purge\n"
"to remove\n"
"########################################################################")
endif()
endforeach()
endfunction()
@ -152,13 +158,14 @@ endfunction(FetchPotentials)
# set CMAKE_LINUX_DISTRO and CMAKE_DISTRO_VERSION on Linux
if((CMAKE_SYSTEM_NAME STREQUAL "Linux") AND (EXISTS /etc/os-release))
file(STRINGS /etc/os-release distro REGEX "^NAME=")
string(REGEX REPLACE "NAME=\"?([^\"]*)\"?" "\\1" distro "${distro}")
string(REGEX REPLACE "NAME=\"?([^ ]+).*\"?" "\\1" distro "${distro}")
file(STRINGS /etc/os-release disversion REGEX "^VERSION_ID=")
string(REGEX REPLACE "VERSION_ID=\"?([^\"]*)\"?" "\\1" disversion "${disversion}")
set(CMAKE_LINUX_DISTRO ${distro})
set(CMAKE_DISTRO_VERSION ${disversion})
endif()
# determine canonical URL for downloading backup copy from download.lammps.org/thirdparty
function(GetFallbackURL input output)
string(REPLACE "_URL" "" _tmp ${input})
string(TOLOWER ${_tmp} libname)

View File

@ -1,6 +1,6 @@
message(STATUS "Downloading and building OpenCL loader library")
set(OPENCL_LOADER_URL "${LAMMPS_THIRDPARTY_URL}/opencl-loader-2022.01.04.tar.gz" CACHE STRING "URL for OpenCL loader tarball")
set(OPENCL_LOADER_MD5 "8d3a801e87a2c6653bf0e27707063914" CACHE STRING "MD5 checksum of OpenCL loader tarball")
set(OPENCL_LOADER_URL "${LAMMPS_THIRDPARTY_URL}/opencl-loader-2024.05.09.tar.gz" CACHE STRING "URL for OpenCL loader tarball")
set(OPENCL_LOADER_MD5 "e7796826b21c059224fabe997e0f2075" CACHE STRING "MD5 checksum of OpenCL loader tarball")
mark_as_advanced(OPENCL_LOADER_URL)
mark_as_advanced(OPENCL_LOADER_MD5)
@ -8,4 +8,3 @@ set(INSTALL_LIBOPENCL OFF CACHE BOOL "" FORCE)
include(ExternalCMakeProject)
ExternalCMakeProject(opencl_loader ${OPENCL_LOADER_URL} ${OPENCL_LOADER_MD5} opencl-loader . "")
add_library(OpenCL::OpenCL ALIAS OpenCL)

View File

@ -1,6 +1,6 @@
set(COLVARS_SOURCE_DIR ${LAMMPS_LIB_SOURCE_DIR}/colvars)
file(GLOB COLVARS_SOURCES ${CONFIGURE_DEPENDS} ${COLVARS_SOURCE_DIR}/[^.]*.cpp)
file(GLOB COLVARS_SOURCES CONFIGURE_DEPENDS ${COLVARS_SOURCE_DIR}/[^.]*.cpp)
option(COLVARS_DEBUG "Enable debugging messages for Colvars (quite verbose)" OFF)
@ -24,6 +24,12 @@ target_include_directories(colvars PUBLIC ${LAMMPS_LIB_SOURCE_DIR}/colvars)
target_include_directories(colvars PRIVATE ${LAMMPS_SOURCE_DIR})
target_link_libraries(lammps PRIVATE colvars)
if(BUILD_OMP)
# Enable OpenMP for Colvars as well
target_compile_options(colvars PRIVATE ${OpenMP_CXX_FLAGS})
target_link_libraries(colvars PRIVATE OpenMP::OpenMP_CXX)
endif()
if(COLVARS_DEBUG)
# Need to export the define publicly to be valid in interface code
target_compile_definitions(colvars PUBLIC -DCOLVARS_DEBUG)

View File

@ -0,0 +1,9 @@
# pair style dpd/coul/slater/long may only be installed if also KSPACE is installed
if(NOT PKG_KSPACE)
get_property(LAMMPS_PAIR_HEADERS GLOBAL PROPERTY PAIR)
list(REMOVE_ITEM LAMMPS_PAIR_HEADERS ${LAMMPS_SOURCE_DIR}/DPD-BASIC/pair_dpd_coul_slater_long.h)
set_property(GLOBAL PROPERTY PAIR "${LAMMPS_PAIR_HEADERS}")
get_target_property(LAMMPS_SOURCES lammps SOURCES)
list(REMOVE_ITEM LAMMPS_SOURCES ${LAMMPS_SOURCE_DIR}/DPD-BASIC/pair_dpd_coul_slater_long.cpp)
set_property(TARGET lammps PROPERTY SOURCES "${LAMMPS_SOURCES}")
endif()

View File

@ -0,0 +1,10 @@
# the geturl command needs libcurl
find_package(CURL QUIET COMPONENTS HTTP HTTPS)
option(WITH_CURL "Enable libcurl support" ${CURL_FOUND})
if(WITH_CURL)
find_package(CURL REQUIRED COMPONENTS HTTP HTTPS)
target_compile_definitions(lammps PRIVATE -DLAMMPS_CURL)
target_link_libraries(lammps PRIVATE CURL::libcurl)
endif()

View File

@ -1,3 +1,10 @@
# Silence CMake warnings about FindCUDA being obsolete.
# We may need to eventually rewrite this section to use enable_language(CUDA)
if(POLICY CMP0146)
cmake_policy(SET CMP0146 OLD)
endif()
set(GPU_SOURCES_DIR ${LAMMPS_SOURCE_DIR}/GPU)
set(GPU_SOURCES ${GPU_SOURCES_DIR}/gpu_extra.h
${GPU_SOURCES_DIR}/fix_gpu.h
@ -39,7 +46,7 @@ if (PKG_AMOEBA)
${GPU_SOURCES_DIR}/amoeba_convolution_gpu.cpp)
endif()
file(GLOB GPU_LIB_SOURCES ${CONFIGURE_DEPENDS} ${LAMMPS_LIB_SOURCE_DIR}/gpu/[^.]*.cpp)
file(GLOB GPU_LIB_SOURCES CONFIGURE_DEPENDS ${LAMMPS_LIB_SOURCE_DIR}/gpu/[^.]*.cpp)
file(MAKE_DIRECTORY ${LAMMPS_LIB_BINARY_DIR}/gpu)
if(GPU_API STREQUAL "CUDA")
@ -60,15 +67,17 @@ if(GPU_API STREQUAL "CUDA")
option(CUDA_MPS_SUPPORT "Enable tweaks to support CUDA Multi-process service (MPS)" OFF)
if(CUDA_MPS_SUPPORT)
if(CUDPP_OPT)
message(FATAL_ERROR "Must use -DCUDPP_OPT=OFF with -DGPU_CUDA_MPS_SUPPORT=ON")
message(FATAL_ERROR "Must use -DCUDPP_OPT=OFF with -DCUDA_MPS_SUPPORT=ON")
endif()
set(GPU_CUDA_MPS_FLAGS "-DCUDA_PROXY")
set(GPU_CUDA_MPS_FLAGS "-DCUDA_MPS_SUPPORT")
endif()
option(CUDA_BUILD_MULTIARCH "Enable building CUDA kernels for all supported GPU architectures" ON)
mark_as_advanced(GPU_BUILD_MULTIARCH)
set(GPU_ARCH "sm_50" CACHE STRING "LAMMPS GPU CUDA SM primary architecture (e.g. sm_60)")
# ensure that no *cubin.h files exist from a compile in the lib/gpu folder
file(GLOB GPU_LIB_OLD_CUBIN_HEADERS ${CONFIGURE_DEPENDS} ${LAMMPS_LIB_SOURCE_DIR}/gpu/*_cubin.h)
file(GLOB GPU_LIB_OLD_CUBIN_HEADERS CONFIGURE_DEPENDS ${LAMMPS_LIB_SOURCE_DIR}/gpu/*_cubin.h)
if(GPU_LIB_OLD_CUBIN_HEADERS)
message(FATAL_ERROR "########################################################################\n"
"Found file(s) generated by the make-based build system in lib/gpu\n"
@ -78,77 +87,81 @@ if(GPU_API STREQUAL "CUDA")
"########################################################################")
endif()
file(GLOB GPU_LIB_CU ${CONFIGURE_DEPENDS} ${LAMMPS_LIB_SOURCE_DIR}/gpu/[^.]*.cu ${CMAKE_CURRENT_SOURCE_DIR}/gpu/[^.]*.cu)
file(GLOB GPU_LIB_CU CONFIGURE_DEPENDS ${LAMMPS_LIB_SOURCE_DIR}/gpu/[^.]*.cu ${CMAKE_CURRENT_SOURCE_DIR}/gpu/[^.]*.cu)
list(REMOVE_ITEM GPU_LIB_CU ${LAMMPS_LIB_SOURCE_DIR}/gpu/lal_pppm.cu)
cuda_include_directories(${LAMMPS_LIB_SOURCE_DIR}/gpu ${LAMMPS_LIB_BINARY_DIR}/gpu)
if(CUDPP_OPT)
cuda_include_directories(${LAMMPS_LIB_SOURCE_DIR}/gpu/cudpp_mini)
file(GLOB GPU_LIB_CUDPP_SOURCES ${CONFIGURE_DEPENDS} ${LAMMPS_LIB_SOURCE_DIR}/gpu/cudpp_mini/[^.]*.cpp)
file(GLOB GPU_LIB_CUDPP_CU ${CONFIGURE_DEPENDS} ${LAMMPS_LIB_SOURCE_DIR}/gpu/cudpp_mini/[^.]*.cu)
file(GLOB GPU_LIB_CUDPP_SOURCES CONFIGURE_DEPENDS ${LAMMPS_LIB_SOURCE_DIR}/gpu/cudpp_mini/[^.]*.cpp)
file(GLOB GPU_LIB_CUDPP_CU CONFIGURE_DEPENDS ${LAMMPS_LIB_SOURCE_DIR}/gpu/cudpp_mini/[^.]*.cu)
endif()
# build arch/gencode commands for nvcc based on CUDA toolkit version and use choice
# --arch translates directly instead of JIT, so this should be for the preferred or most common architecture
set(GPU_CUDA_GENCODE "-arch=${GPU_ARCH}")
# apply the following to build "fat" CUDA binaries only for known CUDA toolkits since version 8.0
# only the Kepler achitecture and beyond is supported
# comparison chart according to: https://en.wikipedia.org/wiki/CUDA#GPUs_supported
if(CUDA_VERSION VERSION_LESS 8.0)
message(FATAL_ERROR "CUDA Toolkit version 8.0 or later is required")
elseif(CUDA_VERSION VERSION_GREATER_EQUAL "12.0")
message(WARNING "Untested CUDA Toolkit version ${CUDA_VERSION}. Use at your own risk")
set(GPU_CUDA_GENCODE "-arch=all")
else()
# Kepler (GPU Arch 3.0) is supported by CUDA 5 to CUDA 10.2
if((CUDA_VERSION VERSION_GREATER_EQUAL "5.0") AND (CUDA_VERSION VERSION_LESS "11.0"))
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_30,code=[sm_30,compute_30] ")
endif()
# Kepler (GPU Arch 3.5) is supported by CUDA 5 to CUDA 11
if((CUDA_VERSION VERSION_GREATER_EQUAL "5.0") AND (CUDA_VERSION VERSION_LESS "12.0"))
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_35,code=[sm_35,compute_35]")
endif()
# Maxwell (GPU Arch 5.x) is supported by CUDA 6 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "6.0")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_50,code=[sm_50,compute_50] -gencode arch=compute_52,code=[sm_52,compute_52]")
endif()
# Pascal (GPU Arch 6.x) is supported by CUDA 8 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "8.0")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_60,code=[sm_60,compute_60] -gencode arch=compute_61,code=[sm_61,compute_61]")
endif()
# Volta (GPU Arch 7.0) is supported by CUDA 9 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "9.0")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_70,code=[sm_70,compute_70]")
endif()
# Turing (GPU Arch 7.5) is supported by CUDA 10 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "10.0")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_75,code=[sm_75,compute_75]")
endif()
# Ampere (GPU Arch 8.0) is supported by CUDA 11 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "11.0")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_80,code=[sm_80,compute_80]")
endif()
# Ampere (GPU Arch 8.6) is supported by CUDA 11.1 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "11.1")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_86,code=[sm_86,compute_86]")
endif()
# Lovelace (GPU Arch 8.9) is supported by CUDA 11.8 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "11.8")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_90,code=[sm_90,compute_90]")
endif()
# Hopper (GPU Arch 9.0) is supported by CUDA 12.0 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "12.0")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_90,code=[sm_90,compute_90]")
if(CUDA_BUILD_MULTIARCH)
# apply the following to build "fat" CUDA binaries only for known CUDA toolkits since version 8.0
# only the Kepler achitecture and beyond is supported
# comparison chart according to: https://en.wikipedia.org/wiki/CUDA#GPUs_supported
if(CUDA_VERSION VERSION_LESS 8.0)
message(FATAL_ERROR "CUDA Toolkit version 8.0 or later is required")
elseif(CUDA_VERSION VERSION_GREATER_EQUAL "13.0")
message(WARNING "Untested CUDA Toolkit version ${CUDA_VERSION}. Use at your own risk")
set(GPU_CUDA_GENCODE "-arch=all")
elseif(CUDA_VERSION VERSION_GREATER_EQUAL "12.0")
set(GPU_CUDA_GENCODE "-arch=all")
else()
# Kepler (GPU Arch 3.0) is supported by CUDA 5 to CUDA 10.2
if((CUDA_VERSION VERSION_GREATER_EQUAL "5.0") AND (CUDA_VERSION VERSION_LESS "11.0"))
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_30,code=[sm_30,compute_30] ")
endif()
# Kepler (GPU Arch 3.5) is supported by CUDA 5 to CUDA 11
if((CUDA_VERSION VERSION_GREATER_EQUAL "5.0") AND (CUDA_VERSION VERSION_LESS "12.0"))
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_35,code=[sm_35,compute_35]")
endif()
# Maxwell (GPU Arch 5.x) is supported by CUDA 6 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "6.0")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_50,code=[sm_50,compute_50] -gencode arch=compute_52,code=[sm_52,compute_52]")
endif()
# Pascal (GPU Arch 6.x) is supported by CUDA 8 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "8.0")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_60,code=[sm_60,compute_60] -gencode arch=compute_61,code=[sm_61,compute_61]")
endif()
# Volta (GPU Arch 7.0) is supported by CUDA 9 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "9.0")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_70,code=[sm_70,compute_70]")
endif()
# Turing (GPU Arch 7.5) is supported by CUDA 10 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "10.0")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_75,code=[sm_75,compute_75]")
endif()
# Ampere (GPU Arch 8.0) is supported by CUDA 11 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "11.0")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_80,code=[sm_80,compute_80]")
endif()
# Ampere (GPU Arch 8.6) is supported by CUDA 11.1 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "11.1")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_86,code=[sm_86,compute_86]")
endif()
# Lovelace (GPU Arch 8.9) is supported by CUDA 11.8 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "11.8")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_90,code=[sm_90,compute_90]")
endif()
# Hopper (GPU Arch 9.0) is supported by CUDA 12.0 and later
if(CUDA_VERSION VERSION_GREATER_EQUAL "12.0")
string(APPEND GPU_CUDA_GENCODE " -gencode arch=compute_90,code=[sm_90,compute_90]")
endif()
endif()
endif()
cuda_compile_fatbin(GPU_GEN_OBJS ${GPU_LIB_CU} OPTIONS ${CUDA_REQUEST_PIC}
-DUNIX -O3 --use_fast_math -Wno-deprecated-gpu-targets -DNV_KERNEL -DUCL_CUDADR ${GPU_CUDA_GENCODE} -D_${GPU_PREC_SETTING} -DLAMMPS_${LAMMPS_SIZES})
-DUNIX -O3 --use_fast_math -Wno-deprecated-gpu-targets -allow-unsupported-compiler -DNV_KERNEL -DUCL_CUDADR ${GPU_CUDA_GENCODE} -D_${GPU_PREC_SETTING} -DLAMMPS_${LAMMPS_SIZES})
cuda_compile(GPU_OBJS ${GPU_LIB_CUDPP_CU} OPTIONS ${CUDA_REQUEST_PIC}
-DUNIX -O3 --use_fast_math -Wno-deprecated-gpu-targets -DUCL_CUDADR ${GPU_CUDA_GENCODE} -D_${GPU_PREC_SETTING} -DLAMMPS_${LAMMPS_SIZES})
-DUNIX -O3 --use_fast_math -Wno-deprecated-gpu-targets -allow-unsupported-compiler -DUCL_CUDADR ${GPU_CUDA_GENCODE} -D_${GPU_PREC_SETTING} -DLAMMPS_${LAMMPS_SIZES})
foreach(CU_OBJ ${GPU_GEN_OBJS})
get_filename_component(CU_NAME ${CU_OBJ} NAME_WE)
@ -175,8 +188,6 @@ if(GPU_API STREQUAL "CUDA")
target_compile_definitions(gpu PRIVATE -DUSE_CUDPP)
endif()
target_link_libraries(lammps PRIVATE gpu)
add_executable(nvc_get_devices ${LAMMPS_LIB_SOURCE_DIR}/gpu/geryon/ucl_get_devices.cpp)
target_compile_definitions(nvc_get_devices PRIVATE -DUCL_CUDADR)
target_link_libraries(nvc_get_devices PRIVATE ${CUDA_LIBRARIES} ${CUDA_CUDA_LIBRARY})
@ -201,7 +212,7 @@ elseif(GPU_API STREQUAL "OPENCL")
include(OpenCLUtils)
set(OCL_COMMON_HEADERS ${LAMMPS_LIB_SOURCE_DIR}/gpu/lal_preprocessor.h ${LAMMPS_LIB_SOURCE_DIR}/gpu/lal_aux_fun1.h)
file(GLOB GPU_LIB_CU ${CONFIGURE_DEPENDS} ${LAMMPS_LIB_SOURCE_DIR}/gpu/[^.]*.cu)
file(GLOB GPU_LIB_CU CONFIGURE_DEPENDS ${LAMMPS_LIB_SOURCE_DIR}/gpu/[^.]*.cu)
list(REMOVE_ITEM GPU_LIB_CU
${LAMMPS_LIB_SOURCE_DIR}/gpu/lal_gayberne.cu
${LAMMPS_LIB_SOURCE_DIR}/gpu/lal_gayberne_lj.cu
@ -249,29 +260,14 @@ elseif(GPU_API STREQUAL "OPENCL")
else()
target_compile_definitions(gpu PRIVATE -DMPI_GERYON -DGERYON_NUMA_FISSION -DUCL_NO_EXIT)
endif()
target_link_libraries(lammps PRIVATE gpu)
add_executable(ocl_get_devices ${LAMMPS_LIB_SOURCE_DIR}/gpu/geryon/ucl_get_devices.cpp)
target_compile_definitions(ocl_get_devices PRIVATE -DUCL_OPENCL)
target_link_libraries(ocl_get_devices PRIVATE OpenCL::OpenCL)
add_dependencies(ocl_get_devices OpenCL::OpenCL)
elseif(GPU_API STREQUAL "HIP")
if(NOT DEFINED HIP_PATH)
if(NOT DEFINED ENV{HIP_PATH})
message(FATAL_ERROR "GPU_API=HIP requires HIP_PATH to be defined.\n"
"Either pass the HIP_PATH as a CMake option via -DHIP_PATH=... or set the HIP_PATH environment variable.")
else()
set(HIP_PATH $ENV{HIP_PATH} CACHE PATH "Path to HIP installation")
endif()
endif()
if(NOT DEFINED ROCM_PATH)
if(NOT DEFINED ENV{ROCM_PATH})
set(ROCM_PATH "/opt/rocm" CACHE PATH "Path to ROCm installation")
else()
set(ROCM_PATH $ENV{ROCM_PATH} CACHE PATH "Path to ROCm installation")
endif()
endif()
list(APPEND CMAKE_PREFIX_PATH ${HIP_PATH} ${ROCM_PATH})
include(DetectHIPInstallation)
find_package(hip REQUIRED)
option(HIP_USE_DEVICE_SORT "Use GPU sorting" ON)
@ -285,7 +281,7 @@ elseif(GPU_API STREQUAL "HIP")
set(ENV{HIP_PLATFORM} ${HIP_PLATFORM})
if(HIP_PLATFORM STREQUAL "hcc" OR HIP_PLATFORM STREQUAL "amd")
if(HIP_PLATFORM STREQUAL "amd")
set(HIP_ARCH "gfx906" CACHE STRING "HIP target architecture")
elseif(HIP_PLATFORM STREQUAL "spirv")
set(HIP_ARCH "spirv" CACHE STRING "HIP target architecture")
@ -346,7 +342,7 @@ elseif(GPU_API STREQUAL "HIP")
endif()
endif()
file(GLOB GPU_LIB_CU ${CONFIGURE_DEPENDS} ${LAMMPS_LIB_SOURCE_DIR}/gpu/[^.]*.cu ${CMAKE_CURRENT_SOURCE_DIR}/gpu/[^.]*.cu)
file(GLOB GPU_LIB_CU CONFIGURE_DEPENDS ${LAMMPS_LIB_SOURCE_DIR}/gpu/[^.]*.cu ${CMAKE_CURRENT_SOURCE_DIR}/gpu/[^.]*.cu)
list(REMOVE_ITEM GPU_LIB_CU ${LAMMPS_LIB_SOURCE_DIR}/gpu/lal_pppm.cu)
set(GPU_LIB_CU_HIP "")
@ -358,7 +354,7 @@ elseif(GPU_API STREQUAL "HIP")
set(CUBIN_FILE "${LAMMPS_LIB_BINARY_DIR}/gpu/${CU_NAME}.cubin")
set(CUBIN_H_FILE "${LAMMPS_LIB_BINARY_DIR}/gpu/${CU_NAME}_cubin.h")
if(HIP_PLATFORM STREQUAL "hcc" OR HIP_PLATFORM STREQUAL "amd")
if(HIP_PLATFORM STREQUAL "amd")
configure_file(${CU_FILE} ${CU_CPP_FILE} COPYONLY)
if(HIP_COMPILER STREQUAL "clang")
@ -412,7 +408,8 @@ elseif(GPU_API STREQUAL "HIP")
set_property(TARGET gpu PROPERTY CXX_STANDARD 14)
endif()
# add hipCUB
target_include_directories(gpu PRIVATE ${HIP_ROOT_DIR}/../include)
find_package(hipcub REQUIRED)
target_link_libraries(gpu PRIVATE hip::hipcub)
target_compile_definitions(gpu PRIVATE -DUSE_HIP_DEVICE_SORT)
if(HIP_PLATFORM STREQUAL "nvcc")
@ -461,35 +458,25 @@ elseif(GPU_API STREQUAL "HIP")
add_executable(hip_get_devices ${LAMMPS_LIB_SOURCE_DIR}/gpu/geryon/ucl_get_devices.cpp)
target_compile_definitions(hip_get_devices PRIVATE -DUCL_HIP)
target_link_libraries(hip_get_devices hip::host)
target_link_libraries(hip_get_devices PRIVATE hip::host)
if(HIP_PLATFORM STREQUAL "nvcc")
target_compile_definitions(gpu PRIVATE -D__HIP_PLATFORM_NVCC__)
target_include_directories(gpu PRIVATE ${HIP_ROOT_DIR}/../include)
target_include_directories(gpu PRIVATE ${CUDA_INCLUDE_DIRS})
target_link_libraries(gpu PRIVATE ${CUDA_LIBRARIES} ${CUDA_CUDA_LIBRARY})
target_compile_definitions(hip_get_devices PRIVATE -D__HIP_PLATFORM_NVCC__)
target_include_directories(hip_get_devices PRIVATE ${HIP_ROOT_DIR}/include)
target_include_directories(hip_get_devices PRIVATE ${CUDA_INCLUDE_DIRS})
target_link_libraries(hip_get_devices PRIVATE ${CUDA_LIBRARIES} ${CUDA_CUDA_LIBRARY})
elseif(HIP_PLATFORM STREQUAL "hcc")
target_compile_definitions(gpu PRIVATE -D__HIP_PLATFORM_HCC__)
target_include_directories(gpu PRIVATE ${HIP_ROOT_DIR}/../include)
target_compile_definitions(hip_get_devices PRIVATE -D__HIP_PLATFORM_HCC__)
target_include_directories(hip_get_devices PRIVATE ${HIP_ROOT_DIR}/../include)
elseif(HIP_PLATFORM STREQUAL "amd")
target_compile_definitions(gpu PRIVATE -D__HIP_PLATFORM_AMD__)
target_include_directories(gpu PRIVATE ${HIP_ROOT_DIR}/../include)
target_compile_definitions(hip_get_devices PRIVATE -D__HIP_PLATFORM_AMD__)
target_include_directories(hip_get_devices PRIVATE ${HIP_ROOT_DIR}/../include)
endif()
target_link_libraries(lammps PRIVATE gpu)
endif()
if(BUILD_OMP)
find_package(OpenMP COMPONENTS CXX REQUIRED)
target_link_libraries(gpu PRIVATE OpenMP::OpenMP_CXX)
endif()
target_link_libraries(lammps PRIVATE gpu)
set_property(GLOBAL PROPERTY "GPU_SOURCES" "${GPU_SOURCES}")
# detect styles which have a GPU version
RegisterStylesExt(${GPU_SOURCES_DIR} gpu GPU_SOURCES)

View File

@ -3,7 +3,7 @@ enable_language(C)
# we don't use the parallel i/o interface.
set(HDF5_PREFER_PARALLEL FALSE)
find_package(HDF5 REQUIRED)
find_package(HDF5 COMPONENTS C REQUIRED)
# parallel HDF5 will import incompatible MPI headers with a serial build
if((NOT BUILD_MPI) AND HDF5_IS_PARALLEL)

View File

@ -111,6 +111,9 @@ if(PKG_KSPACE)
list(APPEND INTEL_SOURCES ${INTEL_SOURCES_DIR}/verlet_lrt_intel.cpp)
RegisterIntegrateStyle(${INTEL_SOURCES_DIR}/verlet_lrt_intel.h)
endif()
if(PKG_ML-SNAP)
list(APPEND INTEL_SOURCES ${INTEL_SOURCES_DIR}/sna_intel.cpp)
endif()
target_sources(lammps PRIVATE ${INTEL_SOURCES})
target_include_directories(lammps PRIVATE ${INTEL_SOURCES_DIR})

View File

@ -1,12 +1,7 @@
set(KIM-API_MIN_VERSION 2.1.3)
find_package(CURL)
if(CURL_FOUND)
if(CMAKE_VERSION VERSION_LESS 3.12)
target_include_directories(lammps PRIVATE ${CURL_INCLUDE_DIRS})
target_link_libraries(lammps PRIVATE ${CURL_LIBRARIES})
else()
target_link_libraries(lammps PRIVATE CURL::libcurl)
endif()
target_link_libraries(lammps PRIVATE CURL::libcurl)
target_compile_definitions(lammps PRIVATE -DLMP_KIM_CURL)
set(LMP_DEBUG_CURL OFF CACHE STRING "Set libcurl verbose mode on/off. If on, it displays a lot of verbose information about its operations.")
mark_as_advanced(LMP_DEBUG_CURL)
@ -19,7 +14,7 @@ if(CURL_FOUND)
target_compile_definitions(lammps PRIVATE -DLMP_NO_SSL_CHECK)
endif()
endif()
set(KIM_EXTRA_UNITTESTS OFF CACHE STRING "Set extra unit tests verbose mode on/off. If on, extra tests are included.")
option(KIM_EXTRA_UNITTESTS "Enable extra unit tests for the KIM package." OFF)
mark_as_advanced(KIM_EXTRA_UNITTESTS)
find_package(PkgConfig QUIET)
set(DOWNLOAD_KIM_DEFAULT ON)

View File

@ -1,25 +1,33 @@
########################################################################
# As of version 3.3.0 Kokkos requires C++14
if(CMAKE_CXX_STANDARD LESS 14)
message(FATAL_ERROR "The KOKKOS package requires the C++ standard to be set to at least C++14")
# As of version 4.0.0 Kokkos requires C++17
if(CMAKE_CXX_STANDARD LESS 17)
message(FATAL_ERROR "The KOKKOS package requires the C++ standard to
be set to at least C++17")
endif()
########################################################################
# consistency checks and Kokkos options/settings required by LAMMPS
if(Kokkos_ENABLE_CUDA)
message(STATUS "KOKKOS: Enabling CUDA LAMBDA function support")
set(Kokkos_ENABLE_CUDA_LAMBDA ON CACHE BOOL "" FORCE)
if(Kokkos_ENABLE_HIP)
option(Kokkos_ENABLE_HIP_MULTIPLE_KERNEL_INSTANTIATIONS "Enable multiple kernel instantiations with HIP" ON)
mark_as_advanced(Kokkos_ENABLE_HIP_MULTIPLE_KERNEL_INSTANTIATIONS)
option(Kokkos_ENABLE_ROCTHRUST "Use RoCThrust library" ON)
mark_as_advanced(Kokkos_ENABLE_ROCTHRUST)
endif()
# Adding OpenMP compiler flags without the checks done for
# BUILD_OMP can result in compile failures. Enforce consistency.
if(Kokkos_ENABLE_OPENMP)
if(NOT BUILD_OMP)
message(FATAL_ERROR "Must enable BUILD_OMP with Kokkos_ENABLE_OPENMP")
else()
# NVHPC does not seem to provide a detectable OpenMP version, but is far beyond version 3.1
if((OpenMP_CXX_VERSION VERSION_LESS 3.1) AND NOT (CMAKE_CXX_COMPILER_ID STREQUAL "NVHPC"))
message(FATAL_ERROR "Compiler must support OpenMP 3.1 or later with Kokkos_ENABLE_OPENMP")
endif()
endif()
endif()
if(Kokkos_ENABLE_SERIAL)
if(NOT (Kokkos_ENABLE_OPENMP OR Kokkos_ENABLE_THREADS OR
Kokkos_ENABLE_CUDA OR Kokkos_ENABLE_HIP OR Kokkos_ENABLE_SYCL
OR Kokkos_ENABLE_OPENMPTARGET))
option(Kokkos_ENABLE_ATOMICS_BYPASS "Disable atomics for Kokkos Serial Backend" ON)
mark_as_advanced(Kokkos_ENABLE_ATOMICS_BYPASS)
endif()
endif()
########################################################################
@ -49,8 +57,8 @@ if(DOWNLOAD_KOKKOS)
list(APPEND KOKKOS_LIB_BUILD_ARGS "-DCMAKE_CXX_EXTENSIONS=${CMAKE_CXX_EXTENSIONS}")
list(APPEND KOKKOS_LIB_BUILD_ARGS "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")
include(ExternalProject)
set(KOKKOS_URL "https://github.com/kokkos/kokkos/archive/3.7.01.tar.gz" CACHE STRING "URL for KOKKOS tarball")
set(KOKKOS_MD5 "f140e02b826223b1045207d9bc10d404" CACHE STRING "MD5 checksum of KOKKOS tarball")
set(KOKKOS_URL "https://github.com/kokkos/kokkos/archive/4.5.01.tar.gz" CACHE STRING "URL for KOKKOS tarball")
set(KOKKOS_MD5 "4d832aa0284169d9e3fbae3165286bc6" CACHE STRING "MD5 checksum of KOKKOS tarball")
mark_as_advanced(KOKKOS_URL)
mark_as_advanced(KOKKOS_MD5)
GetFallbackURL(KOKKOS_URL KOKKOS_FALLBACK)
@ -72,13 +80,11 @@ if(DOWNLOAD_KOKKOS)
set_target_properties(LAMMPS::KOKKOSCONTAINERS PROPERTIES
IMPORTED_LOCATION "${INSTALL_DIR}/lib/libkokkoscontainers.a")
target_link_libraries(lammps PRIVATE LAMMPS::KOKKOSCORE LAMMPS::KOKKOSCONTAINERS)
target_link_libraries(lmp PRIVATE LAMMPS::KOKKOSCORE LAMMPS::KOKKOSCONTAINERS)
add_dependencies(LAMMPS::KOKKOSCORE kokkos_build)
add_dependencies(LAMMPS::KOKKOSCONTAINERS kokkos_build)
elseif(EXTERNAL_KOKKOS)
find_package(Kokkos 3.7.01 REQUIRED CONFIG)
find_package(Kokkos 4.5.01 REQUIRED CONFIG)
target_link_libraries(lammps PRIVATE Kokkos::kokkos)
target_link_libraries(lmp PRIVATE Kokkos::kokkos)
else()
set(LAMMPS_LIB_KOKKOS_SRC_DIR ${LAMMPS_LIB_SOURCE_DIR}/kokkos)
set(LAMMPS_LIB_KOKKOS_BIN_DIR ${LAMMPS_LIB_BINARY_DIR}/kokkos)
@ -90,7 +96,7 @@ else()
if(CMAKE_REQUEST_PIC)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()
add_subdirectory(${LAMMPS_LIB_KOKKOS_SRC_DIR} ${LAMMPS_LIB_KOKKOS_BIN_DIR})
add_subdirectory(${LAMMPS_LIB_KOKKOS_SRC_DIR} ${LAMMPS_LIB_KOKKOS_BIN_DIR} EXCLUDE_FROM_ALL)
set(Kokkos_INCLUDE_DIRS ${LAMMPS_LIB_KOKKOS_SRC_DIR}/core/src
${LAMMPS_LIB_KOKKOS_SRC_DIR}/containers/src
@ -98,7 +104,6 @@ else()
${LAMMPS_LIB_KOKKOS_BIN_DIR})
target_include_directories(lammps PRIVATE ${Kokkos_INCLUDE_DIRS})
target_link_libraries(lammps PRIVATE kokkos)
target_link_libraries(lmp PRIVATE kokkos)
if(BUILD_SHARED_LIBS_WAS_ON)
set(BUILD_SHARED_LIBS ON)
endif()
@ -112,6 +117,7 @@ set(KOKKOS_PKG_SOURCES ${KOKKOS_PKG_SOURCES_DIR}/kokkos.cpp
${KOKKOS_PKG_SOURCES_DIR}/atom_vec_kokkos.cpp
${KOKKOS_PKG_SOURCES_DIR}/comm_kokkos.cpp
${KOKKOS_PKG_SOURCES_DIR}/comm_tiled_kokkos.cpp
${KOKKOS_PKG_SOURCES_DIR}/group_kokkos.cpp
${KOKKOS_PKG_SOURCES_DIR}/min_kokkos.cpp
${KOKKOS_PKG_SOURCES_DIR}/min_linesearch_kokkos.cpp
${KOKKOS_PKG_SOURCES_DIR}/neighbor_kokkos.cpp
@ -124,21 +130,54 @@ set(KOKKOS_PKG_SOURCES ${KOKKOS_PKG_SOURCES_DIR}/kokkos.cpp
${KOKKOS_PKG_SOURCES_DIR}/domain_kokkos.cpp
${KOKKOS_PKG_SOURCES_DIR}/modify_kokkos.cpp)
# fix wall/gran has been refactored in an incompatible way. Use old version of base class for now
if(PKG_GRANULAR)
list(APPEND KOKKOS_PKG_SOURCES ${KOKKOS_PKG_SOURCES_DIR}/fix_wall_gran_old.cpp)
endif()
if(PKG_KSPACE)
list(APPEND KOKKOS_PKG_SOURCES ${KOKKOS_PKG_SOURCES_DIR}/fft3d_kokkos.cpp
${KOKKOS_PKG_SOURCES_DIR}/grid3d_kokkos.cpp
${KOKKOS_PKG_SOURCES_DIR}/remap_kokkos.cpp)
set(FFT_KOKKOS "KISS" CACHE STRING "FFT library for Kokkos-enabled KSPACE package")
set(FFT_KOKKOS_VALUES KISS FFTW3 MKL NVPL HIPFFT CUFFT MKL_GPU)
set_property(CACHE FFT_KOKKOS PROPERTY STRINGS ${FFT_KOKKOS_VALUES})
validate_option(FFT_KOKKOS FFT_KOKKOS_VALUES)
string(TOUPPER ${FFT_KOKKOS} FFT_KOKKOS)
if(Kokkos_ENABLE_CUDA)
if(NOT (FFT STREQUAL "KISS"))
target_compile_definitions(lammps PRIVATE -DFFT_CUFFT)
target_link_libraries(lammps PRIVATE cufft)
if(NOT ((FFT_KOKKOS STREQUAL "KISS") OR (FFT_KOKKOS STREQUAL "CUFFT")))
message(FATAL_ERROR "The CUDA backend of Kokkos requires either KISS FFT or CUFFT.")
elseif(FFT_KOKKOS STREQUAL "KISS")
message(WARNING "Using KISS FFT with the CUDA backend of Kokkos may be sub-optimal.")
elseif(FFT_KOKKOS STREQUAL "CUFFT")
find_package(CUDAToolkit REQUIRED)
target_link_libraries(lammps PRIVATE CUDA::cufft)
endif()
elseif(Kokkos_ENABLE_HIP)
if(NOT (FFT STREQUAL "KISS"))
target_compile_definitions(lammps PRIVATE -DFFT_HIPFFT)
target_link_libraries(lammps PRIVATE hipfft)
if(NOT ((FFT_KOKKOS STREQUAL "KISS") OR (FFT_KOKKOS STREQUAL "HIPFFT")))
message(FATAL_ERROR "The HIP backend of Kokkos requires either KISS FFT or HIPFFT.")
elseif(FFT_KOKKOS STREQUAL "KISS")
message(WARNING "Using KISS FFT with the HIP backend of Kokkos may be sub-optimal.")
target_compile_definitions(lammps PRIVATE -DFFT_KOKKOS_KISS)
elseif(FFT_KOKKOS STREQUAL "HIPFFT")
include(DetectHIPInstallation)
find_package(hipfft REQUIRED)
target_link_libraries(lammps PRIVATE hip::hipfft)
endif()
elseif(FFT_KOKKOS STREQUAL "MKL_GPU")
if(NOT Kokkos_ENABLE_SYCL)
message(FATAL_ERROR "Using MKL_GPU FFT currently requires the SYCL backend of Kokkos.")
endif()
find_package(MKL REQUIRED)
target_link_libraries(lammps PRIVATE mkl_sycl_dft mkl_intel_ilp64 mkl_tbb_thread mkl_core tbb)
elseif(FFT_KOKKOS STREQUAL "MKL")
find_package(MKL REQUIRED)
elseif(FFT_KOKKOS STREQUAL "NVPL")
find_package(nvpl_fft REQUIRED)
target_link_libraries(lammps PRIVATE nvpl::fftw)
endif()
target_compile_definitions(lammps PRIVATE -DFFT_KOKKOS_${FFT_KOKKOS})
endif()
if(PKG_ML-IAP)
@ -151,7 +190,7 @@ if(PKG_ML-IAP)
# Add KOKKOS version of ML-IAP Python coupling if non-KOKKOS version is included
if(MLIAP_ENABLE_PYTHON AND Cythonize_EXECUTABLE)
file(GLOB MLIAP_KOKKOS_CYTHON_SRC ${CONFIGURE_DEPENDS} ${LAMMPS_SOURCE_DIR}/KOKKOS/*.pyx)
file(GLOB MLIAP_KOKKOS_CYTHON_SRC CONFIGURE_DEPENDS ${LAMMPS_SOURCE_DIR}/KOKKOS/*.pyx)
foreach(MLIAP_CYTHON_FILE ${MLIAP_KOKKOS_CYTHON_SRC})
get_filename_component(MLIAP_CYTHON_BASE ${MLIAP_CYTHON_FILE} NAME_WE)
add_custom_command(OUTPUT ${MLIAP_BINARY_DIR}/${MLIAP_CYTHON_BASE}.cpp ${MLIAP_BINARY_DIR}/${MLIAP_CYTHON_BASE}.h

View File

@ -10,7 +10,7 @@ if(${FFTW}_FOUND)
else()
set(FFT "KISS" CACHE STRING "FFT library for KSPACE package")
endif()
set(FFT_VALUES KISS FFTW3 MKL)
set(FFT_VALUES KISS FFTW3 MKL NVPL)
set_property(CACHE FFT PROPERTY STRINGS ${FFT_VALUES})
validate_option(FFT FFT_VALUES)
string(TOUPPER ${FFT} FFT)
@ -41,11 +41,70 @@ elseif(FFT STREQUAL "MKL")
target_compile_definitions(lammps PRIVATE -DFFT_MKL_THREADS)
endif()
target_link_libraries(lammps PRIVATE MKL::MKL)
elseif(FFT STREQUAL "NVPL")
find_package(nvpl_fft REQUIRED)
target_compile_definitions(lammps PRIVATE -DFFT_NVPL)
target_link_libraries(lammps PRIVATE nvpl::fftw)
else()
# last option is KISSFFT
target_compile_definitions(lammps PRIVATE -DFFT_KISS)
endif()
option(FFT_USE_HEFFTE "Use heFFTe as the distributed FFT engine, overrides the FFT option." OFF)
if(FFT_USE_HEFFTE)
# if FFT_HEFFTE is enabled, use the heFFTe parallel engine instead of the builtin fftMPI engine
# map standard FFT choices to available heFFTe backends: FFTW3 -> FFTW, KISS -> BUILTIN
set(FFT_HEFFTE_BACKEND_VALUES FFTW MKL BUILTIN)
string(REPLACE FFTW3 FFTW FFT_HEFFTE_BACKEND_DEFAULT ${FFT})
string(REPLACE KISS BUILTIN FFT_HEFFTE_BACKEND_DEFAULT ${FFT_HEFFTE_BACKEND_DEFAULT})
set(FFT_HEFFTE_BACKEND "${FFT_HEFFTE_BACKEND_DEFAULT}" CACHE STRING "Select heFFTe backend, e.g., FFTW or MKL")
set_property(CACHE FFT_HEFFTE_BACKEND PROPERTY STRINGS ${FFT_HEFFTE_BACKEND_VALUES})
validate_option(FFT_HEFFTE_BACKEND FFT_HEFFTE_BACKEND_VALUES)
if(FFT_HEFFTE_BACKEND STREQUAL "FFTW") # respect the backend choice, FFTW or MKL
set(HEFFTE_COMPONENTS "FFTW")
set(Heffte_ENABLE_FFTW "ON" CACHE BOOL "Enables FFTW backend for heFFTe")
elseif(FFT_HEFFTE_BACKEND STREQUAL "MKL")
set(HEFFTE_COMPONENTS "MKL")
set(Heffte_ENABLE_MKL "ON" CACHE BOOL "Enables MKL backend for heFFTe")
else()
set(HEFFTE_COMPONENTS "BUILTIN")
message(WARNING "FFT_HEFFTE_BACKEND not selected, defaulting to the builtin 'stock' backend, which is intended for testing and is not optimized for production runs")
endif()
find_package(Heffte 2.4.0 QUIET COMPONENTS ${HEFFTE_COMPONENTS})
if (NOT Heffte_FOUND) # download and build
if(BUILD_SHARED_LIBS)
set(BUILD_SHARED_LIBS_WAS_ON YES)
set(BUILD_SHARED_LIBS OFF)
endif()
if(CMAKE_REQUEST_PIC)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()
set(Heffte_ENABLE_${FFT_HEFFTE_BACKEND} ON)
include(FetchContent)
FetchContent_Declare(HEFFTE_PROJECT # using v2.4.0
URL "https://github.com/icl-utk-edu/heffte/archive/refs/tags/v2.4.0.tar.gz"
URL_HASH SHA256=02310fb4f9688df02f7181667e61c3adb7e38baf79611d80919d47452ff7881d
)
FetchContent_Populate(HEFFTE_PROJECT)
# fixup git hash to show "(unknown)" to avoid compilation failures.
file(READ ${heffte_project_SOURCE_DIR}/include/heffte_config.cmake.h HEFFTE_CFG_FILE_TEXT)
string(REPLACE "@Heffte_GIT_HASH@" "(unknown)" HEFFTE_CFG_FILE_TEXT "${HEFFTE_CFG_FILE_TEXT}")
file(WRITE ${heffte_project_SOURCE_DIR}/include/heffte_config.cmake.h "${HEFFTE_CFG_FILE_TEXT}")
add_subdirectory(${heffte_project_SOURCE_DIR} ${heffte_project_BINARY_DIR} EXCLUDE_FROM_ALL)
add_library(Heffte::Heffte ALIAS Heffte)
if(BUILD_SHARED_LIBS_WAS_ON)
set(BUILD_SHARED_LIBS ON)
endif()
endif()
target_compile_definitions(lammps PRIVATE -DFFT_HEFFTE "-DFFT_HEFFTE_${FFT_HEFFTE_BACKEND}")
target_link_libraries(lammps PRIVATE Heffte::Heffte)
endif()
set(FFT_PACK "array" CACHE STRING "Optimization for FFT")
set(FFT_PACK_VALUES array pointer memcpy)
set_property(CACHE FFT_PACK PROPERTY STRINGS ${FFT_PACK_VALUES})

View File

@ -1,54 +0,0 @@
enable_language(Fortran)
# using lammps in a super-build setting
if(TARGET LATTE::latte)
target_link_libraries(lammps PRIVATE LATTE::latte)
return()
endif()
find_package(LATTE 1.2.2 CONFIG)
if(LATTE_FOUND)
set(DOWNLOAD_LATTE_DEFAULT OFF)
else()
set(DOWNLOAD_LATTE_DEFAULT ON)
endif()
option(DOWNLOAD_LATTE "Download the LATTE library instead of using an already installed one" ${DOWNLOAD_LATTE_DEFAULT})
if(DOWNLOAD_LATTE)
message(STATUS "LATTE download requested - we will build our own")
set(LATTE_URL "https://github.com/lanl/LATTE/archive/v1.2.2.tar.gz" CACHE STRING "URL for LATTE tarball")
set(LATTE_MD5 "820e73a457ced178c08c71389a385de7" CACHE STRING "MD5 checksum of LATTE tarball")
mark_as_advanced(LATTE_URL)
mark_as_advanced(LATTE_MD5)
GetFallbackURL(LATTE_URL LATTE_FALLBACK)
# CMake cannot pass BLAS or LAPACK library variable to external project if they are a list
list(LENGTH BLAS_LIBRARIES} NUM_BLAS)
list(LENGTH LAPACK_LIBRARIES NUM_LAPACK)
if((NUM_BLAS GREATER 1) OR (NUM_LAPACK GREATER 1) AND NOT USE_INTERNAL_LINALG)
message(FATAL_ERROR "Cannot compile downloaded LATTE library due to a technical limitation. "
"Try to configure LAMMPS with '-D USE_INTERNAL_LINALG=on' added as a workaround.")
endif()
include(ExternalProject)
ExternalProject_Add(latte_build
URL ${LATTE_URL} ${LATTE_FALLBACK}
URL_MD5 ${LATTE_MD5}
SOURCE_SUBDIR cmake
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> ${CMAKE_REQUEST_PIC} -DCMAKE_INSTALL_LIBDIR=lib
-DBLAS_LIBRARIES=${BLAS_LIBRARIES} -DLAPACK_LIBRARIES=${LAPACK_LIBRARIES}
-DCMAKE_Fortran_COMPILER=${CMAKE_Fortran_COMPILER} -DCMAKE_Fortran_FLAGS=${CMAKE_Fortran_FLAGS}
-DCMAKE_Fortran_FLAGS_${BTYPE}=${CMAKE_Fortran_FLAGS_${BTYPE}} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
BUILD_BYPRODUCTS <INSTALL_DIR>/lib/liblatte.a
)
ExternalProject_get_property(latte_build INSTALL_DIR)
add_library(LAMMPS::LATTE UNKNOWN IMPORTED)
set_target_properties(LAMMPS::LATTE PROPERTIES
IMPORTED_LOCATION "${INSTALL_DIR}/lib/liblatte.a"
INTERFACE_LINK_LIBRARIES "${LAPACK_LIBRARIES}")
target_link_libraries(lammps PRIVATE LAMMPS::LATTE)
add_dependencies(LAMMPS::LATTE latte_build)
else()
find_package(LATTE 1.2.2 REQUIRED CONFIG)
target_link_libraries(lammps PRIVATE LATTE::latte)
endif()

View File

@ -4,7 +4,7 @@ if(LEPTON_SOURCE_DIR)
endif()
set(LEPTON_SOURCE_DIR ${LAMMPS_LIB_SOURCE_DIR}/lepton)
file(GLOB LEPTON_SOURCES ${CONFIGURE_DEPENDS} ${LEPTON_SOURCE_DIR}/src/[^.]*.cpp)
file(GLOB LEPTON_SOURCES CONFIGURE_DEPENDS ${LEPTON_SOURCE_DIR}/src/[^.]*.cpp)
if((CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "amd64") OR
(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "AMD64") OR
@ -15,7 +15,7 @@ else()
endif()
if(LEPTON_ENABLE_JIT)
file(GLOB ASMJIT_SOURCES ${CONFIGURE_DEPENDS} ${LEPTON_SOURCE_DIR}/asmjit/*/[^.]*.cpp)
file(GLOB ASMJIT_SOURCES CONFIGURE_DEPENDS ${LEPTON_SOURCE_DIR}/asmjit/*/[^.]*.cpp)
endif()
add_library(lepton STATIC ${LEPTON_SOURCES} ${ASMJIT_SOURCES})

View File

@ -8,8 +8,8 @@ option(DOWNLOAD_MDI "Download and compile the MDI library instead of using an al
if(DOWNLOAD_MDI)
message(STATUS "MDI download requested - we will build our own")
set(MDI_URL "https://github.com/MolSSI-MDI/MDI_Library/archive/v1.4.12.tar.gz" CACHE STRING "URL for MDI tarball")
set(MDI_MD5 "7a222353ae8e03961d5365e6cd48baee" CACHE STRING "MD5 checksum for MDI tarball")
set(MDI_URL "https://github.com/MolSSI-MDI/MDI_Library/archive/v1.4.26.tar.gz" CACHE STRING "URL for MDI tarball")
set(MDI_MD5 "3124bb85259471e2a53a891f04bf697a" CACHE STRING "MD5 checksum for MDI tarball")
mark_as_advanced(MDI_URL)
mark_as_advanced(MDI_MD5)
GetFallbackURL(MDI_URL MDI_FALLBACK)
@ -26,29 +26,9 @@ if(DOWNLOAD_MDI)
# detect if we have python development support and thus can enable python plugins
set(MDI_USE_PYTHON_PLUGINS OFF)
if(CMAKE_VERSION VERSION_LESS 3.12)
if(NOT PYTHON_VERSION_STRING)
set(Python_ADDITIONAL_VERSIONS 3.12 3.11 3.10 3.9 3.8 3.7 3.6)
# search for interpreter first, so we have a consistent library
find_package(PythonInterp) # Deprecated since version 3.12
if(PYTHONINTERP_FOUND)
set(Python_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()
endif()
# search for the library matching the selected interpreter
set(Python_ADDITIONAL_VERSIONS ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})
find_package(PythonLibs QUIET) # Deprecated since version 3.12
if(PYTHONLIBS_FOUND)
if(NOT (PYTHON_VERSION_STRING STREQUAL PYTHONLIBS_VERSION_STRING))
message(FATAL_ERROR "Python Library version ${PYTHONLIBS_VERSION_STRING} does not match Interpreter version ${PYTHON_VERSION_STRING}")
endif()
set(MDI_USE_PYTHON_PLUGINS ON)
endif()
else()
find_package(Python QUIET COMPONENTS Development)
if(Python_Development_FOUND)
set(MDI_USE_PYTHON_PLUGINS ON)
endif()
find_package(Python QUIET COMPONENTS Development)
if(Python_Development_FOUND)
set(MDI_USE_PYTHON_PLUGINS ON)
endif()
# python plugins are not supported and thus must be always off on Windows
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
@ -102,13 +82,9 @@ if(DOWNLOAD_MDI)
# if compiling with python plugins we need
# to add python libraries as dependency.
if(MDI_USE_PYTHON_PLUGINS)
if(CMAKE_VERSION VERSION_LESS 3.12)
list(APPEND MDI_DEP_LIBS ${PYTHON_LIBRARIES})
else()
list(APPEND MDI_DEP_LIBS Python::Python)
endif()
list(APPEND MDI_DEP_LIBS Python::Python)
endif()
# need to add support for dlopen/dlsym, except when compiling for Windows.
if(NOT (CMAKE_SYSTEM_NAME STREQUAL "Windows"))
list(APPEND MDI_DEP_LIBS "${CMAKE_DL_LIBS}")

View File

@ -2,12 +2,7 @@
set(MLIAP_ENABLE_PYTHON_DEFAULT OFF)
if(PKG_PYTHON)
find_package(Cythonize QUIET)
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.14)
find_package(Python COMPONENTS NumPy QUIET)
else()
# assume we have NumPy
set(Python_NumPy_FOUND ON)
endif()
find_package(Python COMPONENTS NumPy QUIET)
if(Cythonize_FOUND AND Python_NumPy_FOUND)
set(MLIAP_ENABLE_PYTHON_DEFAULT ON)
endif()
@ -15,26 +10,26 @@ endif()
option(MLIAP_ENABLE_PYTHON "Build ML-IAP package with Python support" ${MLIAP_ENABLE_PYTHON_DEFAULT})
# if ML-PACE package *and* MLIAP with Python is enabled is included we may also include ML-PACE support in ML-IAP
set(MLIAP_ENABLE_ACE_DEFAULT OFF)
if(PKG_ML-PACE)
set(MLIAP_ENABLE_ACE_DEFAULT ON)
endif()
option(MLIAP_ENABLE_ACE "Build ML-IAP package with ACE support" ${MLIAP_ENABLE_ACE_DEFAULT})
if(MLIAP_ENABLE_PYTHON)
find_package(Cythonize REQUIRED)
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.14)
find_package(Python COMPONENTS NumPy REQUIRED)
endif()
find_package(Python COMPONENTS NumPy REQUIRED)
if(NOT PKG_PYTHON)
message(FATAL_ERROR "Must enable PYTHON package for including Python support in ML-IAP")
endif()
if(CMAKE_VERSION VERSION_LESS 3.12)
if(PYTHONLIBS_VERSION_STRING VERSION_LESS 3.6)
message(FATAL_ERROR "Python support in ML-IAP requires Python 3.6 or later")
endif()
else()
if(Python_VERSION VERSION_LESS 3.6)
message(FATAL_ERROR "Python support in ML-IAP requires Python 3.6 or later")
endif()
if(Python_VERSION VERSION_LESS 3.6)
message(FATAL_ERROR "Python support in ML-IAP requires Python 3.6 or later")
endif()
set(MLIAP_BINARY_DIR ${CMAKE_BINARY_DIR}/cython)
file(GLOB MLIAP_CYTHON_SRC ${CONFIGURE_DEPENDS} ${LAMMPS_SOURCE_DIR}/ML-IAP/*.pyx)
file(GLOB MLIAP_CYTHON_SRC CONFIGURE_DEPENDS ${LAMMPS_SOURCE_DIR}/ML-IAP/*.pyx)
file(MAKE_DIRECTORY ${MLIAP_BINARY_DIR})
foreach(MLIAP_CYTHON_FILE ${MLIAP_CYTHON_SRC})
get_filename_component(MLIAP_CYTHON_BASE ${MLIAP_CYTHON_FILE} NAME_WE)
@ -49,3 +44,10 @@ if(MLIAP_ENABLE_PYTHON)
target_compile_definitions(lammps PRIVATE -DMLIAP_PYTHON)
target_include_directories(lammps PRIVATE ${MLIAP_BINARY_DIR})
endif()
if(MLIAP_ENABLE_ACE)
if(NOT PKG_ML-PACE)
message(FATAL_ERROR "Must enable ML-PACE package for including ACE support in ML-IAP")
endif()
target_compile_definitions(lammps PRIVATE -DMLIAP_ACE)
endif()

View File

@ -1,37 +1,62 @@
set(PACELIB_URL "https://github.com/ICAMS/lammps-user-pace/archive/refs/tags/v.2023.01.3.fix.tar.gz" CACHE STRING "URL for PACE evaluator library sources")
# PACE library support for ML-PACE package
find_package(pace QUIET)
set(PACELIB_MD5 "4f0b3b5b14456fe9a73b447de3765caa" CACHE STRING "MD5 checksum of PACE evaluator library tarball")
mark_as_advanced(PACELIB_URL)
mark_as_advanced(PACELIB_MD5)
GetFallbackURL(PACELIB_URL PACELIB_FALLBACK)
# download library sources to build folder
if(EXISTS ${CMAKE_BINARY_DIR}/libpace.tar.gz)
file(MD5 ${CMAKE_BINARY_DIR}/libpace.tar.gz DL_MD5)
endif()
if(NOT "${DL_MD5}" STREQUAL "${PACELIB_MD5}")
message(STATUS "Downloading ${PACELIB_URL}")
file(DOWNLOAD ${PACELIB_URL} ${CMAKE_BINARY_DIR}/libpace.tar.gz STATUS DL_STATUS SHOW_PROGRESS)
file(MD5 ${CMAKE_BINARY_DIR}/libpace.tar.gz DL_MD5)
if((NOT DL_STATUS EQUAL 0) OR (NOT "${DL_MD5}" STREQUAL "${PACELIB_MD5}"))
message(WARNING "Download from primary URL ${PACELIB_URL} failed\nTrying fallback URL ${PACELIB_FALLBACK}")
file(DOWNLOAD ${PACELIB_FALLBACK} ${CMAKE_BINARY_DIR}/libpace.tar.gz EXPECTED_HASH MD5=${PACELIB_MD5} SHOW_PROGRESS)
endif()
if(pace_FOUND)
find_package(pace)
target_link_libraries(lammps PRIVATE pace::pace)
else()
message(STATUS "Using already downloaded archive ${CMAKE_BINARY_DIR}/libpace.tar.gz")
endif()
# uncompress downloaded sources
execute_process(
COMMAND ${CMAKE_COMMAND} -E remove_directory lammps-user-pace*
COMMAND ${CMAKE_COMMAND} -E tar xzf libpace.tar.gz
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
get_newest_file(${CMAKE_BINARY_DIR}/lammps-user-pace-* lib-pace)
add_subdirectory(${lib-pace} build-pace)
set_target_properties(pace PROPERTIES CXX_EXTENSIONS ON OUTPUT_NAME lammps_pace${LAMMPS_MACHINE})
if(CMAKE_PROJECT_NAME STREQUAL "lammps")
target_link_libraries(lammps PRIVATE pace)
# set policy to silence warnings about timestamps of downloaded files. review occasionally if it may be set to NEW
if(POLICY CMP0135)
cmake_policy(SET CMP0135 OLD)
endif()
set(PACELIB_URL "https://github.com/ICAMS/lammps-user-pace/archive/refs/tags/v.2023.11.25.fix2.tar.gz" CACHE STRING "URL for PACE evaluator library sources")
set(PACELIB_MD5 "a53bd87cfee8b07d9f44bc17aad69c3f" CACHE STRING "MD5 checksum of PACE evaluator library tarball")
mark_as_advanced(PACELIB_URL)
mark_as_advanced(PACELIB_MD5)
GetFallbackURL(PACELIB_URL PACELIB_FALLBACK)
# LOCAL_ML-PACE points to top-level dir with local lammps-user-pace repo,
# to make it easier to check local build without going through the public github releases
if(LOCAL_ML-PACE)
set(lib-pace "${LOCAL_ML-PACE}")
else()
# download library sources to build folder
if(EXISTS ${CMAKE_BINARY_DIR}/libpace.tar.gz)
file(MD5 ${CMAKE_BINARY_DIR}/libpace.tar.gz DL_MD5)
endif()
if(NOT "${DL_MD5}" STREQUAL "${PACELIB_MD5}")
message(STATUS "Downloading ${PACELIB_URL}")
file(DOWNLOAD ${PACELIB_URL} ${CMAKE_BINARY_DIR}/libpace.tar.gz STATUS DL_STATUS SHOW_PROGRESS)
file(MD5 ${CMAKE_BINARY_DIR}/libpace.tar.gz DL_MD5)
if((NOT DL_STATUS EQUAL 0) OR (NOT "${DL_MD5}" STREQUAL "${PACELIB_MD5}"))
message(WARNING "Download from primary URL ${PACELIB_URL} failed\nTrying fallback URL ${PACELIB_FALLBACK}")
file(DOWNLOAD ${PACELIB_FALLBACK} ${CMAKE_BINARY_DIR}/libpace.tar.gz EXPECTED_HASH MD5=${PACELIB_MD5} SHOW_PROGRESS)
endif()
else()
message(STATUS "Using already downloaded archive ${CMAKE_BINARY_DIR}/libpace.tar.gz")
endif()
# uncompress downloaded sources
execute_process(
COMMAND ${CMAKE_COMMAND} -E remove_directory lammps-user-pace*
COMMAND ${CMAKE_COMMAND} -E tar xzf libpace.tar.gz
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
get_newest_file(${CMAKE_BINARY_DIR}/lammps-user-pace-* lib-pace)
endif()
# some preinstalled yaml-cpp versions don't provide a namespaced target
find_package(yaml-cpp QUIET)
if(TARGET yaml-cpp AND NOT TARGET yaml-cpp::yaml-cpp)
add_library(yaml-cpp::yaml-cpp ALIAS yaml-cpp)
endif()
add_subdirectory(${lib-pace} build-pace)
set_target_properties(pace PROPERTIES CXX_EXTENSIONS ON OUTPUT_NAME lammps_pace${LAMMPS_MACHINE})
if(CMAKE_PROJECT_NAME STREQUAL "lammps")
target_link_libraries(lammps PRIVATE pace)
endif()
endif()

View File

@ -18,14 +18,16 @@ if(DOWNLOAD_QUIP)
set(temp "${temp}F77FLAGS += -fpp -fixed -fPIC\n")
set(temp "${temp}F95_PRE_FILENAME_FLAG = -Tf\n")
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
set(temp "${temp}FPP=${CMAKE_Fortran_COMPILER} -E -x f95-cpp-input\nOPTIM=${CMAKE_Fortran_FLAGS_${BTYPE}}\n")
# quip library uses GNU fortran extensions. If any more restrictive standards are set, reset them
string(REGEX REPLACE -std=f[0-9]+ -std=gnu _fopt "${CMAKE_Fortran_FLAGS_${BTYPE}}")
set(temp "${temp}FPP=${CMAKE_Fortran_COMPILER} -E -x f95-cpp-input\nOPTIM=${_fopt} -fmax-stack-var-size=6553600\n")
set(temp "${temp}DEFINES += -DGETARG_F2003 -DGETENV_F2003 -DGFORTRAN -DFORTRAN_UNDERSCORE\n")
set(temp "${temp}F95FLAGS += -x f95-cpp-input -ffree-line-length-none -ffree-form -fno-second-underscore -fPIC\n")
set(temp "${temp}F77FLAGS += -x f77-cpp-input -fno-second-underscore -fPIC\n")
else()
message(FATAL_ERROR "The ${CMAKE_Fortran_COMPILER_ID} Fortran compiler is not (yet) supported for building QUIP")
endif()
set(temp "${temp}CFLAGS += -fPIC \nCPLUSPLUSFLAGS += -fPIC\nAR_ADD=src\n")
set(temp "${temp}CFLAGS += -fPIC -Wno-return-mismatch \nCPLUSPLUSFLAGS += -fPIC -Wno-return-mismatch\nAR_ADD=src\n")
set(temp "${temp}MATH_LINKOPTS=")
foreach(flag ${BLAS_LIBRARIES})
set(temp "${temp} ${flag}")
@ -56,7 +58,7 @@ if(DOWNLOAD_QUIP)
GIT_SUBMODULES "src/fox;src/GAP"
PATCH_COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_BINARY_DIR}/quip.config <SOURCE_DIR>/arch/Makefile.lammps
CONFIGURE_COMMAND env QUIP_ARCH=lammps make config
BUILD_COMMAND env QUIP_ARCH=lammps make libquip
BUILD_COMMAND env QUIP_ARCH=lammps make -j1 libquip
INSTALL_COMMAND ""
BUILD_IN_SOURCE YES
BUILD_BYPRODUCTS <SOURCE_DIR>/build/lammps/${CMAKE_STATIC_LIBRARY_PREFIX}quip${CMAKE_STATIC_LIBRARY_SUFFIX}

View File

@ -1,28 +0,0 @@
find_package(GSL REQUIRED)
find_package(MSCG QUIET)
if(MSGC_FOUND)
set(DOWNLOAD_MSCG_DEFAULT OFF)
else()
set(DOWNLOAD_MSCG_DEFAULT ON)
endif()
option(DOWNLOAD_MSCG "Download MSCG library instead of using an already installed one)" ${DOWNLOAD_MSCG_DEFAULT})
if(DOWNLOAD_MSCG)
set(MSCG_URL "https://github.com/uchicago-voth/MSCG-release/archive/1.7.3.1.tar.gz" CACHE STRING "URL for MSCG tarball")
set(MSCG_MD5 "8c45e269ee13f60b303edd7823866a91" CACHE STRING "MD5 checksum of MSCG tarball")
mark_as_advanced(MSCG_URL)
mark_as_advanced(MSCG_MD5)
include(ExternalCMakeProject)
ExternalCMakeProject(mscg ${MSCG_URL} ${MSCG_MD5} MSCG-release src/CMake "")
# set include and link library
target_include_directories(lammps PRIVATE "${CMAKE_BINARY_DIR}/_deps/mscg-src/src")
target_link_libraries(lammps PRIVATE mscg)
else()
find_package(MSCG)
if(NOT MSCG_FOUND)
message(FATAL_ERROR "MSCG not found, help CMake to find it by setting MSCG_LIBRARY and MSCG_INCLUDE_DIR, or set DOWNLOAD_MSCG=ON to download it")
endif()
target_link_libraries(lammps PRIVATE MSCG::MSCG)
endif()
target_link_libraries(lammps PRIVATE GSL::gsl ${LAPACK_LIBRARIES})

View File

@ -1,106 +1,188 @@
set(PLUMED_MODE "static" CACHE STRING "Linkage mode for Plumed2 library")
set(PLUMED_MODE_VALUES static shared runtime)
set_property(CACHE PLUMED_MODE PROPERTY STRINGS ${PLUMED_MODE_VALUES})
validate_option(PLUMED_MODE PLUMED_MODE_VALUES)
string(TOUPPER ${PLUMED_MODE} PLUMED_MODE)
# Plumed2 support for PLUMED package
set(PLUMED_LINK_LIBS)
if(PLUMED_MODE STREQUAL "STATIC")
find_package(LAPACK REQUIRED)
find_package(BLAS REQUIRED)
find_package(GSL REQUIRED)
list(APPEND PLUMED_LINK_LIBS ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} GSL::gsl)
find_package(ZLIB QUIET)
if(ZLIB_FOUND)
list(APPEND PLUMED_LINK_LIBS ZLIB::ZLIB)
endif()
find_package(FFTW3 QUIET)
if(FFTW3_FOUND)
list(APPEND PLUMED_LINK_LIBS FFTW3::FFTW3)
endif()
# set policy to silence warnings about timestamps of downloaded files. review occasionally if it may be set to NEW
if(POLICY CMP0135)
cmake_policy(SET CMP0135 OLD)
endif()
find_package(PkgConfig QUIET)
set(DOWNLOAD_PLUMED_DEFAULT ON)
if(PKG_CONFIG_FOUND)
pkg_check_modules(PLUMED QUIET plumed)
if(PLUMED_FOUND)
set(DOWNLOAD_PLUMED_DEFAULT OFF)
endif()
# for supporting multiple concurrent plumed2 installations for debugging and testing
set(PLUMED_SUFFIX "" CACHE STRING "Suffix for Plumed2 library")
mark_as_advanced(PLUMED_SUFFIX)
if(BUILD_MPI)
set(PLUMED_CONFIG_MPI "--enable-mpi")
set(PLUMED_CONFIG_CC ${CMAKE_MPI_C_COMPILER})
set(PLUMED_CONFIG_CXX ${CMAKE_MPI_CXX_COMPILER})
set(PLUMED_CONFIG_CPP "-I ${MPI_CXX_INCLUDE_PATH}")
set(PLUMED_CONFIG_LIB "${MPI_CXX_LIBRARIES}")
set(PLUMED_CONFIG_DEP "mpi4win_build")
else()
set(PLUMED_CONFIG_MPI "--disable-mpi")
set(PLUMED_CONFIG_CC ${CMAKE_C_COMPILER})
set(PLUMED_CONFIG_CXX ${CMAKE_CXX_COMPILER})
set(PLUMED_CONFIG_CPP "")
set(PLUMED_CONFIG_LIB "")
set(PLUMED_CONFIG_DEP "")
endif()
if(BUILD_OMP)
set(PLUMED_CONFIG_OMP "--enable-openmp")
else()
set(PLUMED_CONFIG_OMP "--disable-openmp")
endif()
option(DOWNLOAD_PLUMED "Download Plumed package instead of using an already installed one" ${DOWNLOAD_PLUMED_DEFAULT})
if(DOWNLOAD_PLUMED)
if(BUILD_MPI)
set(PLUMED_CONFIG_MPI "--enable-mpi")
set(PLUMED_CONFIG_CC ${CMAKE_MPI_C_COMPILER})
set(PLUMED_CONFIG_CXX ${CMAKE_MPI_CXX_COMPILER})
# Note: must also adjust check for supported API versions in
# fix_plumed.cpp when version changes from v2.n.x to v2.n+1.y
set(PLUMED_URL "https://github.com/plumed/plumed2/releases/download/v2.9.2/plumed-src-2.9.2.tgz"
CACHE STRING "URL for PLUMED tarball")
set(PLUMED_MD5 "04862602a372c1013bdfee2d6d03bace" CACHE STRING "MD5 checksum of PLUMED tarball")
mark_as_advanced(PLUMED_URL)
mark_as_advanced(PLUMED_MD5)
GetFallbackURL(PLUMED_URL PLUMED_FALLBACK)
if((CMAKE_SYSTEM_NAME STREQUAL "Windows") AND (CMAKE_CROSSCOMPILING))
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
set(CROSS_CONFIGURE mingw64-configure)
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86")
set(CROSS_CONFIGURE mingw32-configure)
else()
set(PLUMED_CONFIG_MPI "--disable-mpi")
set(PLUMED_CONFIG_CC ${CMAKE_C_COMPILER})
set(PLUMED_CONFIG_CXX ${CMAKE_CXX_COMPILER})
message(FATAL_ERROR "Unsupported target system: ${CMAKE_SYSTEM_NAME}/${CMAKE_SYSTEM_PROCESSOR}")
endif()
if(BUILD_OMP)
set(PLUMED_CONFIG_OMP "--enable-openmp")
else()
set(PLUMED_CONFIG_OMP "--disable-openmp")
endif()
message(STATUS "PLUMED download requested - we will build our own")
if(PLUMED_MODE STREQUAL "STATIC")
set(PLUMED_BUILD_BYPRODUCTS "<INSTALL_DIR>/lib/${CMAKE_STATIC_LIBRARY_PREFIX}plumed${CMAKE_STATIC_LIBRARY_SUFFIX}")
elseif(PLUMED_MODE STREQUAL "SHARED")
set(PLUMED_BUILD_BYPRODUCTS "<INSTALL_DIR>/lib/${CMAKE_SHARED_LIBRARY_PREFIX}plumed${CMAKE_SHARED_LIBRARY_SUFFIX};<INSTALL_DIR>/lib/${CMAKE_SHARED_LIBRARY_PREFIX}plumedKernel${CMAKE_SHARED_LIBRARY_SUFFIX}")
elseif(PLUMED_MODE STREQUAL "RUNTIME")
set(PLUMED_BUILD_BYPRODUCTS "<INSTALL_DIR>/lib/${CMAKE_STATIC_LIBRARY_PREFIX}plumedWrapper${CMAKE_STATIC_LIBRARY_PREFIX}")
endif()
set(PLUMED_URL "https://github.com/plumed/plumed2/releases/download/v2.8.1/plumed-src-2.8.1.tgz" CACHE STRING "URL for PLUMED tarball")
set(PLUMED_MD5 "6bfe72ebdae63dc38a9ca27d9b0e08f8" CACHE STRING "MD5 checksum of PLUMED tarball")
mark_as_advanced(PLUMED_URL)
mark_as_advanced(PLUMED_MD5)
GetFallbackURL(PLUMED_URL PLUMED_FALLBACK)
message(STATUS "Downloading and cross-compiling Plumed2 for ${CMAKE_SYSTEM_NAME}/${CMAKE_SYSTEM_PROCESSOR} with ${CROSS_CONFIGURE}")
include(ExternalProject)
ExternalProject_Add(plumed_build
URL ${PLUMED_URL} ${PLUMED_FALLBACK}
URL_MD5 ${PLUMED_MD5}
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR>
CONFIGURE_COMMAND ${CROSS_CONFIGURE} --disable-shared --disable-bsymbolic
--disable-python --enable-cxx=11
--enable-modules=-adjmat:+crystallization:-dimred:+drr:+eds:-fisst:+funnel:+logmfd:+manyrestraints:+maze:+opes:+multicolvar:-pamm:-piv:+s2cm:-sasa:-ves
${PLUMED_CONFIG_OMP}
${PLUMED_CONFIG_MPI}
CXX=${PLUMED_CONFIG_CXX}
CC=${PLUMED_CONFIG_CC}
CPPFLAGS=${PLUMED_CONFIG_CPP}
LIBS=${PLUMED_CONFIG_LIB}
INSTALL_COMMAND ""
BUILD_BYPRODUCTS "<SOURCE_DIR>/src/lib/install/libplumed.a" "<SOURCE_DIR>/src/lib/install/plumed.exe"
DEPENDS "${PLUMED_MPI_CONFIG_DEP}"
)
ExternalProject_Get_Property(plumed_build SOURCE_DIR)
set(PLUMED_BUILD_DIR ${SOURCE_DIR})
set(PLUMED_INSTALL_DIR ${PLUMED_BUILD_DIR}/src/lib/install)
file(MAKE_DIRECTORY ${PLUMED_BUILD_DIR}/src/include)
add_library(LAMMPS::PLUMED UNKNOWN IMPORTED)
add_dependencies(LAMMPS::PLUMED plumed_build)
set_target_properties(LAMMPS::PLUMED PROPERTIES
IMPORTED_LOCATION "${PLUMED_INSTALL_DIR}/libplumed.a"
INTERFACE_LINK_LIBRARIES "-Wl,--image-base -Wl,0x10000000 -lfftw3 -lz -fstack-protector -lssp -fopenmp"
INTERFACE_INCLUDE_DIRECTORIES "${PLUMED_BUILD_DIR}/src/include")
add_custom_target(plumed_copy ALL ${CMAKE_COMMAND} -E rm -rf ${CMAKE_BINARY_DIR}/plumed.exe ${CMAKE_BINARY_DIR}/plumed_patches
COMMAND ${CMAKE_COMMAND} -E copy ${PLUMED_INSTALL_DIR}/plumed.exe ${CMAKE_BINARY_DIR}/plumed.exe
COMMAND ${CMAKE_COMMAND} -E copy_directory ${PLUMED_BUILD_DIR}/patches ${CMAKE_BINARY_DIR}/patches
BYPRODUCTS ${CMAKE_BINARY_DIR}/plumed.exe ${CMAKE_BINARY_DIR}/patches
DEPENDS plumed_build
COMMENT "Copying Plumed files"
)
if(CMAKE_PROJECT_NAME STREQUAL "lammps")
target_link_libraries(lammps INTERFACE LAMMPS::PLUMED)
endif()
else()
set(PLUMED_MODE "static" CACHE STRING "Linkage mode for Plumed2 library")
set(PLUMED_MODE_VALUES static shared runtime)
set_property(CACHE PLUMED_MODE PROPERTY STRINGS ${PLUMED_MODE_VALUES})
validate_option(PLUMED_MODE PLUMED_MODE_VALUES)
string(TOUPPER ${PLUMED_MODE} PLUMED_MODE)
set(PLUMED_LINK_LIBS)
if(PLUMED_MODE STREQUAL "STATIC")
find_package(LAPACK REQUIRED)
find_package(BLAS REQUIRED)
find_package(GSL REQUIRED)
list(APPEND PLUMED_LINK_LIBS ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} GSL::gsl)
find_package(ZLIB QUIET)
if(ZLIB_FOUND)
list(APPEND PLUMED_LINK_LIBS ZLIB::ZLIB)
endif()
find_package(FFTW3 QUIET)
if(FFTW3_FOUND)
list(APPEND PLUMED_LINK_LIBS FFTW3::FFTW3)
endif()
endif()
find_package(PkgConfig QUIET)
set(DOWNLOAD_PLUMED_DEFAULT ON)
if(PKG_CONFIG_FOUND)
pkg_check_modules(PLUMED QUIET plumed)
if(PLUMED_FOUND)
set(DOWNLOAD_PLUMED_DEFAULT OFF)
endif()
endif()
option(DOWNLOAD_PLUMED "Download Plumed package instead of using an already installed one" ${DOWNLOAD_PLUMED_DEFAULT})
if(DOWNLOAD_PLUMED)
message(STATUS "PLUMED download requested - we will build our own")
if(PLUMED_MODE STREQUAL "STATIC")
set(PLUMED_BUILD_BYPRODUCTS "<INSTALL_DIR>/lib/${CMAKE_STATIC_LIBRARY_PREFIX}plumed${CMAKE_STATIC_LIBRARY_SUFFIX}")
elseif(PLUMED_MODE STREQUAL "SHARED")
set(PLUMED_BUILD_BYPRODUCTS "<INSTALL_DIR>/lib/${CMAKE_SHARED_LIBRARY_PREFIX}plumed${CMAKE_SHARED_LIBRARY_SUFFIX};<INSTALL_DIR>/lib/${CMAKE_SHARED_LIBRARY_PREFIX}plumedKernel${CMAKE_SHARED_LIBRARY_SUFFIX}")
elseif(PLUMED_MODE STREQUAL "RUNTIME")
set(PLUMED_BUILD_BYPRODUCTS "<INSTALL_DIR>/lib/${CMAKE_STATIC_LIBRARY_PREFIX}plumedWrapper${CMAKE_STATIC_LIBRARY_PREFIX}")
endif()
include(ExternalProject)
ExternalProject_Add(plumed_build
URL ${PLUMED_URL} ${PLUMED_FALLBACK}
URL_MD5 ${PLUMED_MD5}
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR>
${CONFIGURE_REQUEST_PIC}
--enable-modules=all
--enable-cxx=11
--disable-python
${PLUMED_CONFIG_MPI}
${PLUMED_CONFIG_OMP}
CXX=${PLUMED_CONFIG_CXX}
CC=${PLUMED_CONFIG_CC}
BUILD_BYPRODUCTS ${PLUMED_BUILD_BYPRODUCTS}
)
ExternalProject_get_property(plumed_build INSTALL_DIR)
add_library(LAMMPS::PLUMED UNKNOWN IMPORTED)
add_dependencies(LAMMPS::PLUMED plumed_build)
if(PLUMED_MODE STREQUAL "STATIC")
set_target_properties(LAMMPS::PLUMED PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}plumed${CMAKE_STATIC_LIBRARY_SUFFIX} INTERFACE_LINK_LIBRARIES "${PLUMED_LINK_LIBS};${CMAKE_DL_LIBS}")
elseif(PLUMED_MODE STREQUAL "SHARED")
set_target_properties(LAMMPS::PLUMED PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}plumed${CMAKE_SHARED_LIBRARY_SUFFIX} INTERFACE_LINK_LIBRARIES "${INSTALL_DIR}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}plumedKernel${CMAKE_SHARED_LIBRARY_SUFFIX};${CMAKE_DL_LIBS}")
elseif(PLUMED_MODE STREQUAL "RUNTIME")
set_target_properties(LAMMPS::PLUMED PROPERTIES INTERFACE_COMPILE_DEFINITIONS "__PLUMED_DEFAULT_KERNEL=${INSTALL_DIR}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}plumedKernel${CMAKE_SHARED_LIBRARY_SUFFIX}")
set_target_properties(LAMMPS::PLUMED PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}plumedWrapper${CMAKE_STATIC_LIBRARY_SUFFIX} INTERFACE_LINK_LIBRARIES "${CMAKE_DL_LIBS}")
BUILD_BYPRODUCTS ${PLUMED_BUILD_BYPRODUCTS}
)
ExternalProject_get_property(plumed_build INSTALL_DIR)
add_library(LAMMPS::PLUMED UNKNOWN IMPORTED)
add_dependencies(LAMMPS::PLUMED plumed_build)
if(PLUMED_MODE STREQUAL "STATIC")
set_target_properties(LAMMPS::PLUMED PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}plumed${CMAKE_STATIC_LIBRARY_SUFFIX} INTERFACE_LINK_LIBRARIES "${PLUMED_LINK_LIBS};${CMAKE_DL_LIBS}")
elseif(PLUMED_MODE STREQUAL "SHARED")
set_target_properties(LAMMPS::PLUMED PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}plumed${CMAKE_SHARED_LIBRARY_SUFFIX} INTERFACE_LINK_LIBRARIES "${INSTALL_DIR}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}plumedKernel${CMAKE_SHARED_LIBRARY_SUFFIX};${CMAKE_DL_LIBS}")
elseif(PLUMED_MODE STREQUAL "RUNTIME")
set_target_properties(LAMMPS::PLUMED PROPERTIES INTERFACE_COMPILE_DEFINITIONS "__PLUMED_DEFAULT_KERNEL=${INSTALL_DIR}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}plumedKernel${CMAKE_SHARED_LIBRARY_SUFFIX}")
set_target_properties(LAMMPS::PLUMED PROPERTIES IMPORTED_LOCATION ${INSTALL_DIR}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}plumedWrapper${CMAKE_STATIC_LIBRARY_SUFFIX} INTERFACE_LINK_LIBRARIES "${CMAKE_DL_LIBS}")
endif()
set_target_properties(LAMMPS::PLUMED PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include)
file(MAKE_DIRECTORY ${INSTALL_DIR}/include)
if(CMAKE_PROJECT_NAME STREQUAL "lammps")
target_link_libraries(lammps PRIVATE LAMMPS::PLUMED)
endif()
else()
find_package(PkgConfig REQUIRED)
pkg_check_modules(PLUMED REQUIRED plumed${PLUMED_SUFFIX})
add_library(LAMMPS::PLUMED INTERFACE IMPORTED)
if(PLUMED_MODE STREQUAL "STATIC")
include(${PLUMED_LIBDIR}/plumed${PLUMED_SUFFIX}/src/lib/Plumed.cmake.static)
elseif(PLUMED_MODE STREQUAL "SHARED")
include(${PLUMED_LIBDIR}/plumed${PLUMED_SUFFIX}/src/lib/Plumed.cmake.shared)
elseif(PLUMED_MODE STREQUAL "RUNTIME")
set_target_properties(LAMMPS::PLUMED PROPERTIES INTERFACE_COMPILE_DEFINITIONS "__PLUMED_DEFAULT_KERNEL=${PLUMED_LIBDIR}/${CMAKE_SHARED_LIBRARY_PREFIX}plumed${PLUMED_SUFFIX}Kernel${CMAKE_SHARED_LIBRARY_SUFFIX}")
include(${PLUMED_LIBDIR}/plumed${PLUMED_SUFFIX}/src/lib/Plumed.cmake.runtime)
endif()
set_target_properties(LAMMPS::PLUMED PROPERTIES INTERFACE_LINK_LIBRARIES "${PLUMED_LOAD}")
set_target_properties(LAMMPS::PLUMED PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${PLUMED_INCLUDE_DIRS}")
if(CMAKE_PROJECT_NAME STREQUAL "lammps")
target_link_libraries(lammps PUBLIC LAMMPS::PLUMED)
endif()
endif()
set_target_properties(LAMMPS::PLUMED PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include)
file(MAKE_DIRECTORY ${INSTALL_DIR}/include)
else()
find_package(PkgConfig REQUIRED)
pkg_check_modules(PLUMED REQUIRED plumed)
add_library(LAMMPS::PLUMED INTERFACE IMPORTED)
if(PLUMED_MODE STREQUAL "STATIC")
include(${PLUMED_LIBDIR}/plumed/src/lib/Plumed.cmake.static)
elseif(PLUMED_MODE STREQUAL "SHARED")
include(${PLUMED_LIBDIR}/plumed/src/lib/Plumed.cmake.shared)
elseif(PLUMED_MODE STREQUAL "RUNTIME")
set_target_properties(LAMMPS::PLUMED PROPERTIES INTERFACE_COMPILE_DEFINITIONS "__PLUMED_DEFAULT_KERNEL=${PLUMED_LIBDIR}/${CMAKE_SHARED_LIBRARY_PREFIX}plumedKernel${CMAKE_SHARED_LIBRARY_SUFFIX}")
include(${PLUMED_LIBDIR}/plumed/src/lib/Plumed.cmake.runtime)
endif()
set_target_properties(LAMMPS::PLUMED PROPERTIES INTERFACE_LINK_LIBRARIES "${PLUMED_LOAD}")
set_target_properties(LAMMPS::PLUMED PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${PLUMED_INCLUDE_DIRS}")
endif()
target_link_libraries(lammps PRIVATE LAMMPS::PLUMED)

View File

@ -1,29 +1,11 @@
if(CMAKE_VERSION VERSION_LESS 3.12)
if(NOT PYTHON_VERSION_STRING)
set(Python_ADDITIONAL_VERSIONS 3.12 3.11 3.10 3.9 3.8 3.7 3.6)
# search for interpreter first, so we have a consistent library
find_package(PythonInterp) # Deprecated since version 3.12
if(PYTHONINTERP_FOUND)
set(Python_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()
if(NOT Python_INTERPRETER)
# backward compatibility with CMake before 3.12 and older LAMMPS documentation
if(PYTHON_EXECUTABLE)
set(Python_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()
# search for the library matching the selected interpreter
set(Python_ADDITIONAL_VERSIONS ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})
find_package(PythonLibs REQUIRED) # Deprecated since version 3.12
if(NOT (PYTHON_VERSION_STRING STREQUAL PYTHONLIBS_VERSION_STRING))
message(FATAL_ERROR "Python Library version ${PYTHONLIBS_VERSION_STRING} does not match Interpreter version ${PYTHON_VERSION_STRING}")
endif()
target_include_directories(lammps PRIVATE ${PYTHON_INCLUDE_DIRS})
target_link_libraries(lammps PRIVATE ${PYTHON_LIBRARIES})
else()
if(NOT Python_INTERPRETER)
# backward compatibility
if(PYTHON_EXECUTABLE)
set(Python_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()
find_package(Python COMPONENTS Interpreter)
endif()
find_package(Python REQUIRED COMPONENTS Interpreter Development)
target_link_libraries(lammps PRIVATE Python::Python)
find_package(Python COMPONENTS Interpreter)
endif()
find_package(Python REQUIRED COMPONENTS Interpreter Development)
target_link_libraries(lammps PRIVATE Python::Python)
target_compile_definitions(lammps PRIVATE -DLMP_PYTHON)

View File

@ -54,5 +54,5 @@ else()
if(NOT VORO_FOUND)
message(FATAL_ERROR "Voro++ library not found. Help CMake to find it by setting VORO_LIBRARY and VORO_INCLUDE_DIR, or set DOWNLOAD_VORO=ON to download it")
endif()
target_link_libraries(lammps PRIVATE VORO::VORO)
target_link_libraries(lammps PRIVATE VORO::voro++)
endif()

View File

@ -1,3 +1,5 @@
# FindVTK requires that C support is enabled when looking for MPI support
enable_language(C)
find_package(VTK REQUIRED NO_MODULE)
target_compile_definitions(lammps PRIVATE -DLAMMPS_VTK)
if (VTK_MAJOR_VERSION VERSION_LESS 9.0)

View File

@ -1,5 +1,5 @@
function(FindStyleHeaders path style_class file_pattern headers)
file(GLOB files ${CONFIGURE_DEPENDS} "${path}/${file_pattern}*.h")
file(GLOB files CONFIGURE_DEPENDS "${path}/${file_pattern}*.h")
get_property(hlist GLOBAL PROPERTY ${headers})
foreach(file_name ${files})
@ -95,73 +95,76 @@ function(RegisterIntegrateStyle path)
endfunction(RegisterIntegrateStyle)
function(RegisterStyles search_path)
FindStyleHeaders(${search_path} ANGLE_CLASS angle_ ANGLE ) # angle ) # force
FindStyleHeaders(${search_path} ATOM_CLASS atom_vec_ ATOM_VEC ) # atom ) # atom atom_vec_hybrid
FindStyleHeaders(${search_path} BODY_CLASS body_ BODY ) # body ) # atom_vec_body
FindStyleHeaders(${search_path} BOND_CLASS bond_ BOND ) # bond ) # force
FindStyleHeaders(${search_path} COMMAND_CLASS "[^.]" COMMAND ) # command ) # input
FindStyleHeaders(${search_path} COMPUTE_CLASS compute_ COMPUTE ) # compute ) # modify
FindStyleHeaders(${search_path} DIHEDRAL_CLASS dihedral_ DIHEDRAL ) # dihedral ) # force
FindStyleHeaders(${search_path} DUMP_CLASS dump_ DUMP ) # dump ) # output write_dump
FindStyleHeaders(${search_path} FIX_CLASS fix_ FIX ) # fix ) # modify
FindStyleHeaders(${search_path} IMPROPER_CLASS improper_ IMPROPER ) # improper ) # force
FindStyleHeaders(${search_path} INTEGRATE_CLASS "[^.]" INTEGRATE ) # integrate ) # update
FindStyleHeaders(${search_path} KSPACE_CLASS "[^.]" KSPACE ) # kspace ) # force
FindStyleHeaders(${search_path} MINIMIZE_CLASS min_ MINIMIZE ) # minimize ) # update
FindStyleHeaders(${search_path} NBIN_CLASS nbin_ NBIN ) # nbin ) # neighbor
FindStyleHeaders(${search_path} NPAIR_CLASS npair_ NPAIR ) # npair ) # neighbor
FindStyleHeaders(${search_path} NSTENCIL_CLASS nstencil_ NSTENCIL ) # nstencil ) # neighbor
FindStyleHeaders(${search_path} NTOPO_CLASS ntopo_ NTOPO ) # ntopo ) # neighbor
FindStyleHeaders(${search_path} PAIR_CLASS pair_ PAIR ) # pair ) # force
FindStyleHeaders(${search_path} READER_CLASS reader_ READER ) # reader ) # read_dump
FindStyleHeaders(${search_path} REGION_CLASS region_ REGION ) # region ) # domain
FindStyleHeaders(${search_path} ANGLE_CLASS angle_ ANGLE ) # angle ) # force
FindStyleHeaders(${search_path} ATOM_CLASS atom_vec_ ATOM_VEC ) # atom ) # atom atom_vec_hybrid
FindStyleHeaders(${search_path} BODY_CLASS body_ BODY ) # body ) # atom_vec_body
FindStyleHeaders(${search_path} BOND_CLASS bond_ BOND ) # bond ) # force
FindStyleHeaders(${search_path} COMMAND_CLASS "[^.]" COMMAND ) # command ) # input
FindStyleHeaders(${search_path} COMPUTE_CLASS compute_ COMPUTE ) # compute ) # modify
FindStyleHeaders(${search_path} DIHEDRAL_CLASS dihedral_ DIHEDRAL ) # dihedral ) # force
FindStyleHeaders(${search_path} DUMP_CLASS dump_ DUMP ) # dump ) # output write_dump
FindStyleHeaders(${search_path} FIX_CLASS fix_ FIX ) # fix ) # modify
FindStyleHeaders(${search_path} GRAN_SUB_MOD_CLASS gran_sub_mod_ GRAN_SUB_MOD ) # gran_sub_mod ) # granular_model
FindStyleHeaders(${search_path} IMPROPER_CLASS improper_ IMPROPER ) # improper ) # force
FindStyleHeaders(${search_path} INTEGRATE_CLASS "[^.]" INTEGRATE ) # integrate ) # update
FindStyleHeaders(${search_path} KSPACE_CLASS "[^.]" KSPACE ) # kspace ) # force
FindStyleHeaders(${search_path} MINIMIZE_CLASS min_ MINIMIZE ) # minimize ) # update
FindStyleHeaders(${search_path} NBIN_CLASS nbin_ NBIN ) # nbin ) # neighbor
FindStyleHeaders(${search_path} NPAIR_CLASS npair_ NPAIR ) # npair ) # neighbor
FindStyleHeaders(${search_path} NSTENCIL_CLASS nstencil_ NSTENCIL ) # nstencil ) # neighbor
FindStyleHeaders(${search_path} NTOPO_CLASS ntopo_ NTOPO ) # ntopo ) # neighbor
FindStyleHeaders(${search_path} PAIR_CLASS pair_ PAIR ) # pair ) # force
FindStyleHeaders(${search_path} READER_CLASS reader_ READER ) # reader ) # read_dump
FindStyleHeaders(${search_path} REGION_CLASS region_ REGION ) # region ) # domain
endfunction(RegisterStyles)
function(RegisterStylesExt search_path extension sources)
FindStyleHeadersExt(${search_path} ANGLE_CLASS ${extension} ANGLE ${sources})
FindStyleHeadersExt(${search_path} ATOM_CLASS ${extension} ATOM_VEC ${sources})
FindStyleHeadersExt(${search_path} BODY_CLASS ${extension} BODY ${sources})
FindStyleHeadersExt(${search_path} BOND_CLASS ${extension} BOND ${sources})
FindStyleHeadersExt(${search_path} COMMAND_CLASS ${extension} COMMAND ${sources})
FindStyleHeadersExt(${search_path} COMPUTE_CLASS ${extension} COMPUTE ${sources})
FindStyleHeadersExt(${search_path} DIHEDRAL_CLASS ${extension} DIHEDRAL ${sources})
FindStyleHeadersExt(${search_path} DUMP_CLASS ${extension} DUMP ${sources})
FindStyleHeadersExt(${search_path} FIX_CLASS ${extension} FIX ${sources})
FindStyleHeadersExt(${search_path} IMPROPER_CLASS ${extension} IMPROPER ${sources})
FindStyleHeadersExt(${search_path} INTEGRATE_CLASS ${extension} INTEGRATE ${sources})
FindStyleHeadersExt(${search_path} KSPACE_CLASS ${extension} KSPACE ${sources})
FindStyleHeadersExt(${search_path} MINIMIZE_CLASS ${extension} MINIMIZE ${sources})
FindStyleHeadersExt(${search_path} NBIN_CLASS ${extension} NBIN ${sources})
FindStyleHeadersExt(${search_path} NPAIR_CLASS ${extension} NPAIR ${sources})
FindStyleHeadersExt(${search_path} NSTENCIL_CLASS ${extension} NSTENCIL ${sources})
FindStyleHeadersExt(${search_path} NTOPO_CLASS ${extension} NTOPO ${sources})
FindStyleHeadersExt(${search_path} PAIR_CLASS ${extension} PAIR ${sources})
FindStyleHeadersExt(${search_path} READER_CLASS ${extension} READER ${sources})
FindStyleHeadersExt(${search_path} REGION_CLASS ${extension} REGION ${sources})
FindStyleHeadersExt(${search_path} ANGLE_CLASS ${extension} ANGLE ${sources})
FindStyleHeadersExt(${search_path} ATOM_CLASS ${extension} ATOM_VEC ${sources})
FindStyleHeadersExt(${search_path} BODY_CLASS ${extension} BODY ${sources})
FindStyleHeadersExt(${search_path} BOND_CLASS ${extension} BOND ${sources})
FindStyleHeadersExt(${search_path} COMMAND_CLASS ${extension} COMMAND ${sources})
FindStyleHeadersExt(${search_path} COMPUTE_CLASS ${extension} COMPUTE ${sources})
FindStyleHeadersExt(${search_path} DIHEDRAL_CLASS ${extension} DIHEDRAL ${sources})
FindStyleHeadersExt(${search_path} DUMP_CLASS ${extension} DUMP ${sources})
FindStyleHeadersExt(${search_path} FIX_CLASS ${extension} FIX ${sources})
FindStyleHeadersExt(${search_path} GRAN_SUB_MOD_CLASS ${extension} GRAN_SUB_MOD ${sources})
FindStyleHeadersExt(${search_path} IMPROPER_CLASS ${extension} IMPROPER ${sources})
FindStyleHeadersExt(${search_path} INTEGRATE_CLASS ${extension} INTEGRATE ${sources})
FindStyleHeadersExt(${search_path} KSPACE_CLASS ${extension} KSPACE ${sources})
FindStyleHeadersExt(${search_path} MINIMIZE_CLASS ${extension} MINIMIZE ${sources})
FindStyleHeadersExt(${search_path} NBIN_CLASS ${extension} NBIN ${sources})
FindStyleHeadersExt(${search_path} NPAIR_CLASS ${extension} NPAIR ${sources})
FindStyleHeadersExt(${search_path} NSTENCIL_CLASS ${extension} NSTENCIL ${sources})
FindStyleHeadersExt(${search_path} NTOPO_CLASS ${extension} NTOPO ${sources})
FindStyleHeadersExt(${search_path} PAIR_CLASS ${extension} PAIR ${sources})
FindStyleHeadersExt(${search_path} READER_CLASS ${extension} READER ${sources})
FindStyleHeadersExt(${search_path} REGION_CLASS ${extension} REGION ${sources})
endfunction(RegisterStylesExt)
function(GenerateStyleHeaders output_path)
message(STATUS "Generating style headers...")
GenerateStyleHeader(${output_path} ANGLE angle ) # force
GenerateStyleHeader(${output_path} ATOM_VEC atom ) # atom atom_vec_hybrid
GenerateStyleHeader(${output_path} BODY body ) # atom_vec_body
GenerateStyleHeader(${output_path} BOND bond ) # force
GenerateStyleHeader(${output_path} COMMAND command ) # input
GenerateStyleHeader(${output_path} COMPUTE compute ) # modify
GenerateStyleHeader(${output_path} DIHEDRAL dihedral ) # force
GenerateStyleHeader(${output_path} DUMP dump ) # output write_dump
GenerateStyleHeader(${output_path} FIX fix ) # modify
GenerateStyleHeader(${output_path} IMPROPER improper ) # force
GenerateStyleHeader(${output_path} INTEGRATE integrate ) # update
GenerateStyleHeader(${output_path} KSPACE kspace ) # force
GenerateStyleHeader(${output_path} MINIMIZE minimize ) # update
GenerateStyleHeader(${output_path} NBIN nbin ) # neighbor
GenerateStyleHeader(${output_path} NPAIR npair ) # neighbor
GenerateStyleHeader(${output_path} NSTENCIL nstencil ) # neighbor
GenerateStyleHeader(${output_path} NTOPO ntopo ) # neighbor
GenerateStyleHeader(${output_path} PAIR pair ) # force
GenerateStyleHeader(${output_path} READER reader ) # read_dump
GenerateStyleHeader(${output_path} REGION region ) # domain
GenerateStyleHeader(${output_path} ANGLE angle ) # force
GenerateStyleHeader(${output_path} ATOM_VEC atom ) # atom atom_vec_hybrid
GenerateStyleHeader(${output_path} BODY body ) # atom_vec_body
GenerateStyleHeader(${output_path} BOND bond ) # force
GenerateStyleHeader(${output_path} COMMAND command ) # input
GenerateStyleHeader(${output_path} COMPUTE compute ) # modify
GenerateStyleHeader(${output_path} DIHEDRAL dihedral ) # force
GenerateStyleHeader(${output_path} DUMP dump ) # output write_dump
GenerateStyleHeader(${output_path} FIX fix ) # modify
GenerateStyleHeader(${output_path} GRAN_SUB_MOD gran_sub_mod ) # granular_model
GenerateStyleHeader(${output_path} IMPROPER improper ) # force
GenerateStyleHeader(${output_path} INTEGRATE integrate ) # update
GenerateStyleHeader(${output_path} KSPACE kspace ) # force
GenerateStyleHeader(${output_path} MINIMIZE minimize ) # update
GenerateStyleHeader(${output_path} NBIN nbin ) # neighbor
GenerateStyleHeader(${output_path} NPAIR npair ) # neighbor
GenerateStyleHeader(${output_path} NSTENCIL nstencil ) # neighbor
GenerateStyleHeader(${output_path} NTOPO ntopo ) # neighbor
GenerateStyleHeader(${output_path} PAIR pair ) # force
GenerateStyleHeader(${output_path} READER reader ) # read_dump
GenerateStyleHeader(${output_path} REGION region ) # domain
endfunction(GenerateStyleHeaders)
function(DetectBuildSystemConflict lammps_src_dir)
@ -184,7 +187,7 @@ endfunction(DetectBuildSystemConflict)
function(FindPackagesHeaders path style_class file_pattern headers)
file(GLOB files ${CONFIGURE_DEPENDS} "${path}/${file_pattern}*.h")
file(GLOB files CONFIGURE_DEPENDS "${path}/${file_pattern}*.h")
get_property(plist GLOBAL PROPERTY ${headers})
foreach(file_name ${files})

View File

@ -6,7 +6,7 @@ if(ENABLE_TESTING)
find_program(VALGRIND_BINARY NAMES valgrind)
# generate custom suppression file
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/lammps.supp "\n")
file(GLOB VALGRIND_SUPPRESSION_FILES ${CONFIGURE_DEPENDS} ${LAMMPS_TOOLS_DIR}/valgrind/[^.]*.supp)
file(GLOB VALGRIND_SUPPRESSION_FILES CONFIGURE_DEPENDS ${LAMMPS_TOOLS_DIR}/valgrind/[^.]*.supp)
foreach(SUPP ${VALGRIND_SUPPRESSION_FILES})
file(READ ${SUPP} SUPPRESSIONS)
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/lammps.supp "${SUPPRESSIONS}")
@ -18,29 +18,33 @@ if(ENABLE_TESTING)
# we need to build and link a LOT of tester executables, so it is worth checking if
# a faster linker is available. requires GNU or Clang compiler, newer CMake.
# also only verified with Fedora Linux > 30 and Ubuntu <= 18.04 (Ubuntu 20.04 fails)
if((CMAKE_SYSTEM_NAME STREQUAL "Linux") AND (CMAKE_VERSION VERSION_GREATER_EQUAL 3.13)
AND ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")))
if(((CMAKE_LINUX_DISTRO STREQUAL "Ubuntu") AND (CMAKE_DISTRO_VERSION VERSION_LESS_EQUAL 18.04))
# also only verified with Fedora Linux > 30 and Ubuntu 18.04 or 22.04+(Ubuntu 20.04 fails)
if((CMAKE_SYSTEM_NAME STREQUAL "Linux")
AND ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")))
if(((CMAKE_LINUX_DISTRO STREQUAL "Ubuntu") AND
((CMAKE_DISTRO_VERSION VERSION_LESS_EQUAL 18.04) OR (CMAKE_DISTRO_VERSION VERSION_GREATER_EQUAL 22.04)))
OR ((CMAKE_LINUX_DISTRO STREQUAL "Fedora") AND (CMAKE_DISTRO_VERSION VERSION_GREATER 30)))
include(CheckCXXCompilerFlag)
set(CMAKE_CUSTOM_LINKER_DEFAULT default)
check_cxx_compiler_flag(-fuse-ld=mold HAVE_MOLD_LINKER_FLAG)
check_cxx_compiler_flag(-fuse-ld=lld HAVE_LLD_LINKER_FLAG)
check_cxx_compiler_flag(-fuse-ld=gold HAVE_GOLD_LINKER_FLAG)
check_cxx_compiler_flag(-fuse-ld=bfd HAVE_BFD_LINKER_FLAG)
find_program(HAVE_MOLD_LINKER_BIN ld.mold)
find_program(HAVE_LLD_LINKER_BIN lld ld.lld)
find_program(HAVE_GOLD_LINKER_BIN ld.gold)
find_program(HAVE_BFD_LINKER_BIN ld.bfd)
if(HAVE_LLD_LINKER_FLAG AND HAVE_LLD_LINKER_BIN)
if(HAVE_MOLD_LINKER_FLAG AND HAVE_MOLD_LINKER_BIN)
set(CMAKE_CUSTOM_LINKER_DEFAULT mold)
elseif(HAVE_LLD_LINKER_FLAG AND HAVE_LLD_LINKER_BIN)
set(CMAKE_CUSTOM_LINKER_DEFAULT lld)
elseif(HAVE_GOLD_LINKER_FLAG AND HAVE_GOLD_LINKER_BIN)
set(CMAKE_CUSTOM_LINKER_DEFAULT gold)
elseif(HAVE_BFD_LINKER_FLAG AND HAVE_BFD_LINKER_BIN)
set(CMAKE_CUSTOM_LINKER_DEFAULT bfd)
endif()
set(CMAKE_CUSTOM_LINKER_VALUES lld gold bfd default)
set(CMAKE_CUSTOM_LINKER ${CMAKE_CUSTOM_LINKER_DEFAULT} CACHE STRING "Choose a custom linker for faster linking (lld, gold, bfd, default)")
set(CMAKE_CUSTOM_LINKER_VALUES mold lld gold bfd default)
set(CMAKE_CUSTOM_LINKER ${CMAKE_CUSTOM_LINKER_DEFAULT} CACHE STRING "Choose a custom linker for faster linking (mold, lld, gold, bfd, default)")
validate_option(CMAKE_CUSTOM_LINKER CMAKE_CUSTOM_LINKER_VALUES)
mark_as_advanced(CMAKE_CUSTOM_LINKER)
if(NOT "${CMAKE_CUSTOM_LINKER}" STREQUAL "default")
@ -62,16 +66,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
option(ENABLE_COVERAGE "Enable collecting code coverage data" OFF)
mark_as_advanced(ENABLE_COVERAGE)
if(ENABLE_COVERAGE)
if(CMAKE_VERSION VERSION_LESS 3.13)
if(CMAKE_CXX_FLAGS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_${CMAKE_BUILD_TYPE}_FLAGS} --coverage")
endif()
else()
target_compile_options(lammps PUBLIC --coverage)
target_link_options(lammps PUBLIC --coverage)
endif()
target_compile_options(lammps PUBLIC --coverage)
target_link_options(lammps PUBLIC --coverage)
endif()
endif()
@ -106,24 +102,16 @@ endif()
#######################################
# select code sanitizer options
#######################################
set(ENABLE_SANITIZER "none" CACHE STRING "Select a code sanitizer option (none (default), address, leak, thread, undefined)")
set(ENABLE_SANITIZER "none" CACHE STRING "Select a code sanitizer option (none (default), address, hwaddress, leak, thread, undefined)")
mark_as_advanced(ENABLE_SANITIZER)
set(ENABLE_SANITIZER_VALUES none address leak thread undefined)
set(ENABLE_SANITIZER_VALUES none address hwaddress leak thread undefined)
set_property(CACHE ENABLE_SANITIZER PROPERTY STRINGS ${ENABLE_SANITIZER_VALUES})
validate_option(ENABLE_SANITIZER ENABLE_SANITIZER_VALUES)
string(TOLOWER ${ENABLE_SANITIZER} ENABLE_SANITIZER)
if(NOT ENABLE_SANITIZER STREQUAL "none")
if((${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") OR (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang"))
if(CMAKE_VERSION VERSION_LESS 3.13)
if(CMAKE_CXX_FLAGS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=${ENABLE_SANITIZER}")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_${CMAKE_BUILD_TYPE}_FLAGS} -fsanitize=${ENABLE_SANITIZER}")
endif()
else()
target_compile_options(lammps PUBLIC -fsanitize=${ENABLE_SANITIZER})
target_link_options(lammps PUBLIC -fsanitize=${ENABLE_SANITIZER})
endif()
target_compile_options(lammps PUBLIC -fsanitize=${ENABLE_SANITIZER})
target_link_options(lammps PUBLIC -fsanitize=${ENABLE_SANITIZER})
else()
message(WARNING "ENABLE_SANITIZER option not supported by ${CMAKE_CXX_COMPILER_ID} compilers. Ignoring.")
set(ENABLE_SANITIZER "none")

View File

@ -26,43 +26,19 @@ if(BUILD_TOOLS)
enable_language(C)
get_filename_component(MSI2LMP_SOURCE_DIR ${LAMMPS_TOOLS_DIR}/msi2lmp/src ABSOLUTE)
file(GLOB MSI2LMP_SOURCES ${CONFIGURE_DEPENDS} ${MSI2LMP_SOURCE_DIR}/[^.]*.c)
file(GLOB MSI2LMP_SOURCES CONFIGURE_DEPENDS ${MSI2LMP_SOURCE_DIR}/[^.]*.c)
add_executable(msi2lmp ${MSI2LMP_SOURCES})
if(STANDARD_MATH_LIB)
target_link_libraries(msi2lmp PRIVATE ${STANDARD_MATH_LIB})
endif()
install(TARGETS msi2lmp DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES ${LAMMPS_DOC_DIR}/msi2lmp.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
add_subdirectory(${LAMMPS_TOOLS_DIR}/phonon ${CMAKE_BINARY_DIR}/phana_build)
endif()
if(BUILD_LAMMPS_SHELL)
find_package(PkgConfig REQUIRED)
pkg_check_modules(READLINE IMPORTED_TARGET REQUIRED readline)
if(NOT LAMMPS_EXCEPTIONS)
message(WARNING "The LAMMPS shell needs LAMMPS_EXCEPTIONS enabled for full functionality")
endif()
# include resource compiler to embed icons into the executable on Windows
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
enable_language(RC)
set(ICON_RC_FILE ${LAMMPS_TOOLS_DIR}/lammps-shell/lmpicons.rc)
endif()
add_executable(lammps-shell ${LAMMPS_TOOLS_DIR}/lammps-shell/lammps-shell.cpp ${ICON_RC_FILE})
target_include_directories(lammps-shell PRIVATE ${LAMMPS_TOOLS_DIR}/lammps-shell)
target_link_libraries(lammps-shell PRIVATE lammps PkgConfig::READLINE)
# workaround for broken readline pkg-config file on FreeBSD
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
target_include_directories(lammps-shell PRIVATE /usr/local/include)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "LinuxMUSL")
pkg_check_modules(TERMCAP IMPORTED_TARGET REQUIRED termcap)
target_link_libraries(lammps-shell PRIVATE lammps PkgConfig::TERMCAP)
endif()
install(TARGETS lammps-shell EXPORT LAMMPS_Targets DESTINATION ${CMAKE_INSTALL_BINDIR})
install(DIRECTORY ${LAMMPS_TOOLS_DIR}/lammps-shell/icons DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/)
install(FILES ${LAMMPS_TOOLS_DIR}/lammps-shell/lammps-shell.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/)
if(BUILD_LAMMPS_GUI)
get_filename_component(LAMMPS_GUI_DIR ${LAMMPS_SOURCE_DIR}/../tools/lammps-gui ABSOLUTE)
get_filename_component(LAMMPS_GUI_BIN ${CMAKE_BINARY_DIR}/lammps-gui-build ABSOLUTE)
add_subdirectory(${LAMMPS_GUI_DIR} ${LAMMPS_GUI_BIN})
endif()

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en-US</string>
<key>CFBundleExecutable</key>
<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
<key>CFBundleDisplayName</key>
<string>The LAMMPS Molecular Dynamics Software</string>
<key>CFBundleIconFile</key>
<string>lammps</string>
<key>CFBundleIdentifier</key>
<string>org.lammps.gui</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLongVersionString</key>
<string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
<key>CFBundleName</key>
<string>LAMMPS_GUI</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
</dict>
</plist>

View File

@ -0,0 +1,69 @@
LAMMPS and LAMMPS GUI universal binaries for macOS (arm64/x86_64)
=================================================================
This package provides universal binaries of LAMMPS and LAMMPS GUI that should
run on macOS systems running running macOS version 11 (Big Sur) or newer. Note
the binaries are compiled without MPI support and contain a compatible subset
of the available packages.
The following individual commands are included:
binary2txt lammps-gui lmp msi2lmp phana stl_bin2txt
After copying the LAMMPS_GUI folder into your Applications folder, please follow
these steps:
1. Open the Terminal app
2. Type the following command and press ENTER:
open ~/.zprofile
This will open a text editor for modifying the .zprofile file in your home
directory.
3. Add the following lines to the end of the file, save it, and close the editor
LAMMPS_INSTALL_DIR=/Applications/LAMMPS_GUI.app/Contents
LAMMPS_POTENTIALS=${LAMMPS_INSTALL_DIR}/share/lammps/potentials
LAMMPS_BENCH_DIR=${LAMMPS_INSTALL_DIR}/share/lammps/bench
MSI2LMP_LIBRARY=${LAMMPS_INSTALL_DIR}/share/lammps/frc_files
PATH=${LAMMPS_INSTALL_DIR}/bin:$PATH
export LAMMPS_POTENTIALS LAMMPS_BENCH_DIR PATH
4. In your existing terminal, type the following command make the settings active
source ~/.zprofile
Note, you don't have to type this in new terminals, since they will apply
the changes from .zprofile automatically.
Note: the above assumes you use the default shell (zsh) that comes with
MacOS. If you customized MacOS to use a different shell, you'll need to
modify that shell's init file (.cshrc, .bashrc, etc.) instead with
appropiate commands to modify the same environment variables.
5. Try running LAMMPS (which might fail, see step 7)
lmp -in ${LAMMPS_BENCH_DIR}/in.lj
6. Try running the LAMMPS GUI
lammps-gui ${LAMMPS_BENCH_DIR}/in.rhodo
Depending on the size and resolution of your screen, the fonts may be too
small to read. This can be adjusted by setting the environment variable
QT_FONT_DPI. The default value would be 72, so to increase the fonts by a
third, one can add to the .zprofile file the line
export QT_FONT_DPI=96
and reload as shown above.
7. Give permission to execute the commands (lmp, lammps-gui, msi2lmp, binary2txt, phana, stl_bin2txt)
MacOS will likely block the initial run of the executables, since they were
downloaded from the internet and are missing a known signature from an
identified developer. Go to "Settings" and search for "Security settings".
It should display a message that an executable like "lmp" was blocked. Press
"Open anyway", which might prompt you for your admin credentials. Afterwards
"lmp" and the other executables should work as expected.

View File

@ -0,0 +1,80 @@
#!/bin/bash
APP_NAME=lammps-gui
DESTDIR=${PWD}/../LAMMPS_GUI
VERSION="$1"
echo "Delete old files, if they exist"
rm -rf ${DESTDIR} ../LAMMPS_GUI-Linux-amd64*.tar.gz
echo "Create staging area for deployment and populate"
DESTDIR=${DESTDIR} cmake --install . --prefix "/"
echo "Remove debug info"
for s in ${DESTDIR}/bin/* ${DESTDIR}/lib/liblammps*
do \
test -f $s && strip --strip-debug $s
done
echo "Remove libc, gcc, and X11 related shared libs"
rm -f ${DESTDIR}/lib/ld*.so ${DESTDIR}/lib/ld*.so.[0-9]
rm -f ${DESTDIR}/lib/lib{c,dl,rt,m,pthread}.so.?
rm -f ${DESTDIR}/lib/lib{c,dl,rt,m,pthread}-[0-9].[0-9]*.so
rm -f ${DESTDIR}/lib/libX* ${DESTDIR}/lib/libxcb*
rm -f ${DESTDIR}/lib/libgcc_s*
rm -f ${DESTDIR}/lib/libstdc++*
# get qt dir
QTDIR=$(ldd ${DESTDIR}/bin/lammps-gui | grep libQt5Core | sed -e 's/^.*=> *//' -e 's/libQt5Core.so.*$/qt5/')
cat > ${DESTDIR}/bin/qt.conf <<EOF
[Paths]
Plugins = ../qt5plugins
EOF
# platform plugin
mkdir -p ${DESTDIR}/qt5plugins/platforms
cp ${QTDIR}/plugins/platforms/libqxcb.so ${DESTDIR}/qt5plugins/platforms
# get platform plugin dependencies
QTDEPS=$(LD_LIBRARY_PATH=${DESTDIR}/lib ldd ${QTDIR}/plugins/platforms/libqxcb.so | grep -v ${DESTDIR} | grep libQt5 | sed -e 's/^.*=> *//' -e 's/\(libQt5.*.so.*\) .*$/\1/')
for dep in ${QTDEPS}
do \
cp ${dep} ${DESTDIR}/lib
done
echo "Add additional plugins for Qt"
for dir in styles imageformats
do \
cp -r ${QTDIR}/plugins/${dir} ${DESTDIR}/qt5plugins/
done
# get imageplugin dependencies
for s in ${DESTDIR}/qt5plugins/imageformats/*.so
do \
QTDEPS=$(LD_LIBRARY_PATH=${DESTDIR}/lib ldd $s | grep -v ${DESTDIR} | grep -E '(libQt5|jpeg)' | sed -e 's/^.*=> *//' -e 's/\(lib.*.so.*\) .*$/\1/')
for dep in ${QTDEPS}
do \
cp ${dep} ${DESTDIR}/lib
done
done
echo "Set up wrapper script"
MYDIR=$(dirname "$0")
cp ${MYDIR}/xdg-open ${DESTDIR}/bin
cp ${MYDIR}/linux_wrapper.sh ${DESTDIR}/bin
for s in ${DESTDIR}/bin/*
do \
EXE=$(basename $s)
test ${EXE} = linux_wrapper.sh && continue
test ${EXE} = qt.conf && continue
test ${EXE} = xdg-open && continue
ln -s bin/linux_wrapper.sh ${DESTDIR}/${EXE}
done
pushd ..
tar -czvvf LAMMPS_GUI-Linux-amd64-${VERSION}.tar.gz LAMMPS_GUI
popd
echo "Cleanup dir"
rm -r ${DESTDIR}
exit 0

View File

@ -0,0 +1,112 @@
#!/bin/bash
APP_NAME=lammps-gui
VERSION="$1"
echo "Delete old files, if they exist"
rm -f ${APP_NAME}.dmg ${APP_NAME}-rw.dmg LAMMPS_GUI-macOS-multiarch*.dmg
echo "Create initial dmg file with macdeployqt"
macdeployqt lammps-gui.app -dmg
echo "Create writable dmg file"
hdiutil convert ${APP_NAME}.dmg -format UDRW -o ${APP_NAME}-rw.dmg
echo "Mount writeable DMG file in read-write mode. Keep track of device and volume names"
DEVICE=$(hdiutil attach -readwrite -noverify ${APP_NAME}-rw.dmg | grep '^/dev/' | sed 1q | awk '{print $1}')
VOLUME=$(df | grep ${DEVICE} | sed -e 's/^.*\(\/Volumes\/\)/\1/')
sleep 2
echo "Create link to Application folder and move README and background image files"
pushd "${VOLUME}"
ln -s /Applications .
mv ${APP_NAME}.app/Contents/Resources/README.txt .
mkdir .background
mv ${APP_NAME}.app/Contents/Resources/LAMMPS_DMG_Background.png .background/background.png
mv ${APP_NAME}.app LAMMPS_GUI.app
cd LAMMPS_GUI.app/Contents
echo "Attach icons to LAMMPS console and GUI executables"
echo "read 'icns' (-16455) \"Resources/lammps.icns\";" > icon.rsrc
Rez -a icon.rsrc -o bin/lmp
SetFile -a C bin/lmp
Rez -a icon.rsrc -o MacOS/lammps-gui
SetFile -a C MacOS/lammps-gui
rm icon.rsrc
popd
echo 'Tell the Finder to resize the window, set the background,'
echo 'change the icon size, place the icons in the right position, etc.'
echo '
tell application "Finder"
tell disk "'${APP_NAME}'"
-- wait for the image to finish mounting
set open_attempts to 0
repeat while open_attempts < 4
try
open
delay 1
set open_attempts to 5
close
on error errStr number errorNumber
set open_attempts to open_attempts + 1
delay 10
end try
end repeat
delay 5
-- open the image the first time and save a .DS_Store
-- just the background and icon setup
open
set current view of container window to icon view
set theViewOptions to the icon view options of container window
set background picture of theViewOptions to file ".background:background.png"
set arrangement of theViewOptions to not arranged
set icon size of theViewOptions to 64
delay 5
close
-- next set up the position of the app and Applications symlink
-- plus hide all window decorations
open
update without registering applications
tell container window
set sidebar width to 0
set statusbar visible to false
set toolbar visible to false
set the bounds to { 100, 40, 868, 640 }
set position of item "'LAMMPS_GUI'.app" to { 190, 216 }
set position of item "Applications" to { 576, 216 }
set position of item "README.txt" to { 190, 400 }
end tell
update without registering applications
delay 5
close
-- one last open and close to check the results
open
delay 5
close
end tell
delay 1
end tell
' | osascript
sync
echo "Unmount modified disk image and convert to compressed read-only image"
hdiutil detach "${DEVICE}"
hdiutil convert "${APP_NAME}-rw.dmg" -format UDZO -o "LAMMPS_GUI-macOS-multiarch-${VERSION}.dmg"
echo "Attach icon to .dmg file"
echo "read 'icns' (-16455) \"lammps-gui.app/Contents/Resources/lammps.icns\";" > icon.rsrc
Rez -a icon.rsrc -o LAMMPS_GUI-macOS-multiarch-${VERSION}.dmg
SetFile -a C LAMMPS_GUI-macOS-multiarch-${VERSION}.dmg
rm icon.rsrc
echo "Delete temporary disk images"
rm -f "${APP_NAME}-rw.dmg"
rm -f "${APP_NAME}.dmg"
exit 0

View File

@ -0,0 +1,65 @@
#!/bin/bash
APP_NAME=lammps-gui
DESTDIR=${PWD}/LAMMPS_GUI
SYSROOT="$1"
VERSION="$2"
echo "Delete old files, if they exist"
rm -rvf ${DESTDIR}/LAMMPS_GUI ${DESTDIR}/LAMMPS-Win10-amd64*.zip
echo "Create staging area for deployment and populate"
DESTDIR=${DESTDIR} cmake --install . --prefix "/"
# no static libs needed
rm -rvf ${DESTDIR}/lib
# but the LAMMPS lib
echo "Copying required DLL files"
for dll in $(objdump -p *.exe *.dll | sed -n -e '/DLL Name:/s/^.*DLL Name: *//p' | sort | uniq)
do \
doskip=0
for skip in ADVAPI32 CFGMGR32 GDI32 KERNEL32 MPR NETAPI32 PSAPI SHELL32 USER32 USERENV UxTheme VERSION WS2_32 WSOCK32 d3d11 dwmapi liblammps msvcrt_ole32
do \
test ${dll} = ${skip}.dll && doskip=1
done
test ${doskip} -eq 1 && continue
test -f ${DESTDIR}/bin/${dll} || cp -v ${SYSROOT}/bin/${dll} ${DESTDIR}/bin
done
echo "Copy required Qt plugins"
mkdir -p ${DESTDIR}/qt5plugins
for plugin in imageformats platforms styles
do \
cp -r ${SYSROOT}/lib/qt5/plugins/${plugin} ${DESTDIR}/qt5plugins/
done
echo "Check dependencies of DLL files"
for dll in $(objdump -p ${DESTDIR}/bin/*.dll ${DESTDIR}/qt5plugins/*/*.dll | sed -n -e '/DLL Name:/s/^.*DLL Name: *//p' | sort | uniq)
do \
doskip=0
for skip in ADVAPI32 CFGMGR32 GDI32 KERNEL32 MPR NETAPI32 PSAPI SHELL32 USER32 USERENV UxTheme VERSION WS2_32 WSOCK32 d3d11 dwmapi liblammps msvcrt_ole32
do \
test ${dll} = ${skip}.dll && doskip=1
done
test ${doskip} -eq 1 && continue
test -f ${DESTDIR}/bin/${dll} || cp -v ${SYSROOT}/bin/${dll} ${DESTDIR}/bin
done
for dll in $(objdump -p ${DESTDIR}/bin/*.dll ${DESTDIR}/qt5plugins/*/*.dll | sed -n -e '/DLL Name:/s/^.*DLL Name: *//p' | sort | uniq)
do \
doskip=0
for skip in ADVAPI32 CFGMGR32 GDI32 KERNEL32 MPR NETAPI32 PSAPI SHELL32 USER32 USERENV UxTheme VERSION WS2_32 WSOCK32 d3d11 dwmapi liblammps msvcrt_ole32
do \
test ${dll} = ${skip}.dll && doskip=1
done
test ${doskip} -eq 1 && continue
test -f ${DESTDIR}/bin/${dll} || cp -v ${SYSROOT}/bin/${dll} ${DESTDIR}/bin
done
cat > ${DESTDIR}/bin/qt.conf <<EOF
[Paths]
Plugins = ../qt5plugins
EOF
zip -9rvD LAMMPS-Win10-amd64-${VERSION}.zip LAMMPS_GUI

View File

@ -0,0 +1,35 @@
# CMake script to be run post installation to build zipped package
# clean up old zipfile and deployment tree
file(REMOVE LAMMPS_GUI-Win10-amd64.zip)
file(REMOVE_RECURSE LAMMPS_GUI)
file(RENAME ${INSTNAME} LAMMPS_GUI)
# move all executables and dlls to main folder and delete bin folder
file(GLOB BINFILES LIST_DIRECTORIES FALSE LAMMPS_GUI/bin/*.exe LAMMPS_GUI/bin/*.dll)
foreach(bin ${BINFILES})
get_filename_component(exe ${bin} NAME)
file(RENAME ${bin} LAMMPS_GUI/${exe})
endforeach()
file(REMOVE_RECURSE LAMMPS_GUI/bin)
# create qt.conf so Qt will find its plugins
file(WRITE LAMMPS_GUI/qt.conf "[Paths]\r\nPlugins = qt5plugins\r\n")
# initialize environment and then run windeployqt to populate folder with missing dependencies and Qt plugins
file(WRITE qtdeploy.bat "@ECHO OFF\r\nset VSCMD_DEBUG=0\r\nCALL ${VC_INIT} x64\r\nset PATH=${QT5_BIN_DIR};%PATH%\r\nwindeployqt --plugindir LAMMPS_GUI/qt5plugins --release LAMMPS_GUI/lammps-gui.exe --no-quick-import --no-webkit2 --no-translations --no-system-d3d-compiler --no-angle --no-opengl-sw\r\n")
execute_process(COMMAND cmd.exe /c qtdeploy.bat COMMAND_ECHO STDERR)
file(REMOVE qtdeploy.bat)
# download and uncompress static FFMpeg and gzip binaries
file(DOWNLOAD "https://download.lammps.org/thirdparty/ffmpeg-gzip.zip" ffmpeg-gzip.zip)
file(WRITE unpackzip.ps1 "Expand-Archive -Path ffmpeg-gzip.zip -DestinationPath LAMMPS_GUI")
execute_process(COMMAND powershell -ExecutionPolicy Bypass -File unpackzip.ps1)
file(REMOVE unpackzip.ps1)
file(REMOVE ffmpeg-gzip.zip)
# create zip archive
file(WRITE makearchive.ps1 "Compress-Archive -Path LAMMPS_GUI -CompressionLevel Optimal -DestinationPath LAMMPS_GUI-Win10-amd64.zip")
execute_process(COMMAND powershell -ExecutionPolicy Bypass -File makearchive.ps1)
file(REMOVE makearchive.ps1)
file(REMOVE_RECURSE LAMMPS_GUI)

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 KiB

BIN
cmake/packaging/lammps.icns Normal file

Binary file not shown.

View File

@ -0,0 +1,20 @@
#!/bin/sh
# wrapper for bundled executables
# reset locale to avoid problems with decimal numbers
export LC_ALL=C
BASEDIR="$(dirname "$0")"
EXENAME="$(basename "$0")"
PATH="${BASEDIR}/bin:${PATH}"
# append to LD_LIBRARY_PATH to prefer local (newer) libs
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${BASEDIR}/lib"
# set some environment variables for LAMMPS etc.
LAMMPS_POTENTIALS="${BASEDIR}/share/lammps/potentials"
MSI2LMP_LIBRARY="${BASEDIR}/share/lammps/frc_files"
export LD_LIBRARY_PATH LAMMPS_POTENTIALS MSI2LMP_LIBRARY PATH
exec "${BASEDIR}/bin/${EXENAME}" "$@"

30
cmake/packaging/png2iconset.sh Executable file
View File

@ -0,0 +1,30 @@
#!/bin/sh
if [ $# != 2 ]
then
echo "usage: $0 <pngfile> <iconset name>"
exit 1
fi
png="$1"
ico="$2"
if [ ! -f ${png} ]
then
echo "PNG Image $1 not found"
fi
rm -rf ${ico}.iconset
mkdir ${ico}.iconset
sips -z 16 16 ${png} --out ${ico}.iconset/icon_16x16.png
sips -z 32 32 ${png} --out ${ico}.iconset/icon_16x16@2x.png
sips -z 32 32 ${png} --out ${ico}.iconset/icon_32x32.png
sips -z 64 64 ${png} --out ${ico}.iconset/icon_32x32@2x.png
sips -z 128 128 ${png} --out ${ico}.iconset/icon_128x128.png
sips -z 256 256 ${png} --out ${ico}.iconset/icon_128x128@2x.png
sips -z 256 256 ${png} --out ${ico}.iconset/icon_256x256.png
sips -z 512 512 ${png} --out ${ico}.iconset/icon_256x256@2x.png
sips -z 512 512 ${png} --out ${ico}.iconset/icon_512x512.png
sips -z 1024 1024 ${png} --out ${ico}.iconset/icon_512x512@2x.png
iconutil -c icns ${ico}.iconset
rm -rf ${ico}.iconset

1074
cmake/packaging/xdg-open Executable file

File diff suppressed because it is too large Load Diff

View File

@ -26,8 +26,9 @@ set(ALL_PACKAGES
DPD-REACT
DPD-SMOOTH
DRUDE
ELECTRODE
EFF
ELECTRODE
EXTRA-COMMAND
EXTRA-COMPUTE
EXTRA-DUMP
EXTRA-FIX
@ -43,7 +44,6 @@ set(ALL_PACKAGES
KOKKOS
KSPACE
LATBOLTZ
LATTE
LEPTON
MACHDYN
MANIFOLD
@ -61,11 +61,10 @@ set(ALL_PACKAGES
ML-QUIP
ML-RANN
ML-SNAP
ML-UF3
MOFFF
MOLECULE
MOLFILE
MPIIO
MSCG
NETCDF
OPENMP
OPT
@ -83,6 +82,7 @@ set(ALL_PACKAGES
REACTION
REAXFF
REPLICA
RHEO
RIGID
SCAFACOS
SHOCK

View File

@ -28,8 +28,9 @@ set(ALL_PACKAGES
DPD-REACT
DPD-SMOOTH
DRUDE
ELECTRODE
EFF
ELECTRODE
EXTRA-COMMAND
EXTRA-COMPUTE
EXTRA-DUMP
EXTRA-FIX
@ -45,7 +46,6 @@ set(ALL_PACKAGES
KOKKOS
KSPACE
LATBOLTZ
LATTE
LEPTON
MACHDYN
MANIFOLD
@ -63,11 +63,10 @@ set(ALL_PACKAGES
ML-QUIP
ML-RANN
ML-SNAP
ML-UF3
MOFFF
MOLECULE
MOLFILE
MPIIO
MSCG
NETCDF
OPENMP
OPT
@ -85,6 +84,7 @@ set(ALL_PACKAGES
REACTION
REAXFF
REPLICA
RHEO
RIGID
SCAFACOS
SHOCK

View File

@ -1,10 +1,10 @@
# preset that will enable clang/clang++ with support for MPI and OpenMP (on Linux boxes)
# prefer flang over gfortran, if available
find_program(CLANG_FORTRAN NAMES flang gfortran f95)
find_program(CLANG_FORTRAN NAMES flang-new flang gfortran f95)
set(ENV{OMPI_FC} ${CLANG_FORTRAN})
get_filename_component(_tmp_fc ${CLANG_FORTRAN} NAME)
if (_tmp_fc STREQUAL "flang")
if ((_tmp_fc STREQUAL "flang") OR (_tmp_fc STREQUAL "flang-new"))
set(FC_STD_VERSION "-std=f2018")
set(BUILD_MPI OFF)
else()

View File

@ -1,16 +1,14 @@
# Preset that turns on packages with automatic downloads of sources or potentials.
# Compilation of libraries like Plumed or ScaFaCoS can take a considerable amount of time.
set(ALL_PACKAGES KIM LATTE MSCG VORONOI PLUMED SCAFACOS MACHDYN MESONT MDI ML-PACE)
set(ALL_PACKAGES KIM MSCG VORONOI PLUMED SCAFACOS MACHDYN MESONT MDI ML-PACE)
foreach(PKG ${ALL_PACKAGES})
set(PKG_${PKG} ON CACHE BOOL "" FORCE)
endforeach()
set(DOWNLOAD_KIM ON CACHE BOOL "" FORCE)
set(DOWNLOAD_LATTE ON CACHE BOOL "" FORCE)
set(DOWNLOAD_MDI ON CACHE BOOL "" FORCE)
set(DOWNLOAD_MSCG ON CACHE BOOL "" FORCE)
set(DOWNLOAD_VORO ON CACHE BOOL "" FORCE)
set(DOWNLOAD_EIGEN3 ON CACHE BOOL "" FORCE)
set(DOWNLOAD_PACE ON CACHE BOOL "" FORCE)

View File

@ -0,0 +1,11 @@
# preset that enables GPU and selects CUDA API
set(PKG_GPU ON CACHE BOOL "Build GPU package" FORCE)
set(GPU_API "cuda" CACHE STRING "APU used by GPU package" FORCE)
set(GPU_PREC "mixed" CACHE STRING "" FORCE)
set(CUDA_NVCC_FLAGS "-allow-unsupported-compiler" CACHE STRING "" FORCE)
set(CUDA_NVCC_FLAGS_DEBUG "-allow-unsupported-compiler" CACHE STRING "" FORCE)
set(CUDA_NVCC_FLAGS_MINSIZEREL "-allow-unsupported-compiler" CACHE STRING "" FORCE)
set(CUDA_NVCC_FLAGS_RELWITHDEBINFO "-allow-unsupported-compiler" CACHE STRING "" FORCE)
set(CUDA_NVCC_FLAGS_RELEASE "-allow-unsupported-compiler" CACHE STRING "" FORCE)

View File

@ -6,6 +6,11 @@ set(Kokkos_ENABLE_SERIAL ON CACHE BOOL "" FORCE)
set(Kokkos_ENABLE_CUDA ON CACHE BOOL "" FORCE)
set(Kokkos_ARCH_PASCAL60 ON CACHE BOOL "" FORCE)
set(BUILD_OMP ON CACHE BOOL "" FORCE)
get_filename_component(NVCC_WRAPPER_CMD ${CMAKE_CURRENT_SOURCE_DIR}/../lib/kokkos/bin/nvcc_wrapper ABSOLUTE)
set(CMAKE_CXX_COMPILER ${NVCC_WRAPPER_CMD} CACHE FILEPATH "" FORCE)
# If KSPACE is also enabled, use CUFFT for FFTs
set(FFT_KOKKOS "CUFFT" CACHE STRING "" FORCE)
# hide deprecation warnings temporarily for stable release
set(Kokkos_ENABLE_DEPRECATION_WARNINGS OFF CACHE BOOL "" FORCE)

View File

@ -12,6 +12,9 @@ set(BUILD_OMP ON CACHE BOOL "" FORCE)
set(CMAKE_CXX_COMPILER hipcc CACHE STRING "" FORCE)
set(CMAKE_TUNE_FLAGS "-munsafe-fp-atomics" CACHE STRING "" FORCE)
# If KSPACE is also enabled, use CUFFT for FFTs
set(FFT_KOKKOS "HIPFFT" CACHE STRING "" FORCE)
# hide deprecation warnings temporarily for stable release
set(Kokkos_ENABLE_DEPRECATION_WARNINGS OFF CACHE BOOL "" FORCE)

View File

@ -0,0 +1,29 @@
# preset that enables KOKKOS and selects SYCL compilation with OpenMP
# enabled as well. Also sets some performance related compiler flags.
set(PKG_KOKKOS ON CACHE BOOL "" FORCE)
set(Kokkos_ENABLE_SERIAL ON CACHE BOOL "" FORCE)
set(Kokkos_ENABLE_OPENMP ON CACHE BOOL "" FORCE)
set(Kokkos_ENABLE_CUDA OFF CACHE BOOL "" FORCE)
set(Kokkos_ENABLE_SYCL ON CACHE BOOL "" FORCE)
set(FFT "MKL" CACHE STRING "" FORCE)
set(FFT_KOKKOS "MKL_GPU" CACHE STRING "" FORCE)
unset(USE_INTERNAL_LINALG)
unset(USE_INTERNAL_LINALG CACHE)
set(BLAS_VENDOR "Intel10_64_dyn")
# hide deprecation warnings temporarily for stable release
set(Kokkos_ENABLE_DEPRECATION_WARNINGS OFF CACHE BOOL "" FORCE)
set(CMAKE_CXX_COMPILER icpx CACHE STRING "" FORCE)
set(CMAKE_C_COMPILER icx CACHE STRING "" FORCE)
set(CMAKE_Fortran_COMPILER "" CACHE STRING "" FORCE)
set(MPI_CXX_COMPILER "mpicxx" CACHE STRING "" FORCE)
set(CMAKE_CXX_STANDARD 17 CACHE STRING "" FORCE)
# Silence everything
set(CMAKE_CXX_FLAGS "-w" CACHE STRING "" FORCE)
#set(CMAKE_EXE_LINKER_FLAGS "-fsycl -flink-huge-device-code -fsycl-targets=spir64_gen " CACHE STRING "" FORCE)
#set(CMAKE_TUNE_FLAGS "-O3 -fsycl -fsycl-device-code-split=per_kernel -fsycl-targets=spir64_gen" CACHE STRING "" FORCE)
set(CMAKE_EXE_LINKER_FLAGS "-fsycl -flink-huge-device-code " CACHE STRING "" FORCE)
set(CMAKE_TUNE_FLAGS "-O3 -fsycl -fsycl-device-code-split=per_kernel " CACHE STRING "" FORCE)

View File

@ -0,0 +1,12 @@
# preset that will build portable multi-arch binaries on macOS without MPI
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
set(CMAKE_OSX_DEPLOYMENT_TARGET 11.0 CACHE STRING "" FORCE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "" FORCE)
set(CMAKE_CXX_COMPILER "clang++" CACHE STRING "" FORCE)
set(CMAKE_C_COMPILER "clang" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "" FORCE)
set(BUILD_MPI FALSE CACHE BOOL "" FORCE)

View File

@ -22,8 +22,9 @@ set(WIN_PACKAGES
DPD-REACT
DPD-SMOOTH
DRUDE
ELECTRODE
EFF
ELECTRODE
EXTRA-COMMAND
EXTRA-COMPUTE
EXTRA-DUMP
EXTRA-FIX
@ -32,10 +33,8 @@ set(WIN_PACKAGES
FEP
GPU
GRANULAR
INTEL
INTERLAYER
KSPACE
LATTE
LEPTON
MACHDYN
MANIFOLD
@ -51,6 +50,7 @@ set(WIN_PACKAGES
ML-POD
ML-RANN
ML-SNAP
ML-UF3
MOFFF
MOLECULE
MOLFILE
@ -67,6 +67,7 @@ set(WIN_PACKAGES
REACTION
REAXFF
REPLICA
RHEO
RIGID
SHOCK
SMTBQ
@ -84,7 +85,6 @@ endforeach()
# these two packages require a full MPI implementation
if(BUILD_MPI)
set(PKG_MPIIO ON CACHE BOOL "" FORCE)
set(PKG_LATBOLTZ ON CACHE BOOL "" FORCE)
endif()

View File

@ -24,8 +24,9 @@ set(ALL_PACKAGES
DPD-REACT
DPD-SMOOTH
DRUDE
ELECTRODE
EFF
ELECTRODE
EXTRA-COMMAND
EXTRA-COMPUTE
EXTRA-DUMP
EXTRA-FIX
@ -45,6 +46,7 @@ set(ALL_PACKAGES
ML-IAP
ML-POD
ML-SNAP
ML-UF3
MOFFF
MOLECULE
OPENMP
@ -58,6 +60,7 @@ set(ALL_PACKAGES
REACTION
REAXFF
REPLICA
RHEO
RIGID
SHOCK
SPH

View File

@ -12,7 +12,6 @@ set(PACKAGES_WITH_LIB
KIM
KOKKOS
LATBOLTZ
LATTE
LEPTON
MACHDYN
MDI
@ -20,8 +19,6 @@ set(PACKAGES_WITH_LIB
ML-PACE
ML-QUIP
MOLFILE
MPIIO
MSCG
NETCDF
PLUMED
PYTHON

View File

@ -3,26 +3,9 @@
set(CMAKE_CXX_COMPILER "icpx" CACHE STRING "" FORCE)
set(CMAKE_C_COMPILER "icx" CACHE STRING "" FORCE)
set(CMAKE_Fortran_COMPILER "ifx" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -Wextra -g" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-Wall -Wextra -g -O2 -DNDEBUG" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS_DEBUG "-Wall -Wextra -g" CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS_RELWITHDEBINFO "-Wall -Wextra -g -O2 -DNDEBUG" CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS_DEBUG "-Wall -Wextra -g" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-Wall -Wextra -g -O2 -DNDEBUG" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "" FORCE)
set(MPI_CXX "icpx" CACHE STRING "" FORCE)
set(MPI_CXX_COMPILER "mpicxx" CACHE STRING "" FORCE)
unset(HAVE_OMP_H_INCLUDE CACHE)
set(OpenMP_C "icx" CACHE STRING "" FORCE)
set(OpenMP_C_FLAGS "-qopenmp -qopenmp-simd" CACHE STRING "" FORCE)
set(OpenMP_C_LIB_NAMES "omp" CACHE STRING "" FORCE)
set(OpenMP_CXX "icpx" CACHE STRING "" FORCE)
set(OpenMP_CXX_FLAGS "-qopenmp -qopenmp-simd" CACHE STRING "" FORCE)
set(OpenMP_CXX_LIB_NAMES "omp" CACHE STRING "" FORCE)
set(OpenMP_Fortran_FLAGS "-qopenmp -qopenmp-simd" CACHE STRING "" FORCE)
set(OpenMP_omp_LIBRARY "libiomp5.so" CACHE PATH "" FORCE)
# force using internal BLAS/LAPCK since external ones may not be ABI compatible
set(USE_INTERNAL_LINALG ON CACHE BOOL "" FORCE)

View File

@ -22,6 +22,7 @@ set(WIN_PACKAGES
DRUDE
EFF
ELECTRODE
EXTRA-COMMAND
EXTRA-COMPUTE
EXTRA-DUMP
EXTRA-FIX
@ -32,6 +33,7 @@ set(WIN_PACKAGES
INTERLAYER
KSPACE
LEPTON
MACHDYN
MANIFOLD
MANYBODY
MC
@ -41,21 +43,24 @@ set(WIN_PACKAGES
ML-IAP
ML-POD
ML-SNAP
ML-UF3
MOFFF
MOLECULE
MOLFILE
OPENMP
OPT
ORIENT
PERI
PHONON
POEMS
PLUGIN
POEMS
PTM
QEQ
QTB
REACTION
REAXFF
REPLICA
RHEO
RIGID
SHOCK
SMTBQ

7
doc/.gitignore vendored
View File

@ -17,3 +17,10 @@
*.el
/utils/sphinx-config/_static/mathjax
/utils/sphinx-config/_static/polyfill.js
/src/pairs.rst
/src/bonds.rst
/src/angles.rst
/src/dihedrals.rst
/src/impropers.rst
/src/computes.rst
/src/fixes.rst

View File

@ -63,6 +63,7 @@ help:
@echo " anchor_check scan for duplicate anchor labels"
@echo " style_check check for complete and consistent style lists"
@echo " package_check check for complete and consistent package lists"
@echo " role_check check for misformatted role keywords"
@echo " spelling spell-check the manual"
# ------------------------------------------
@ -82,7 +83,10 @@ $(SPHINXCONFIG)/conf.py: $(SPHINXCONFIG)/conf.py.in
-e 's,@LAMMPS_PYTHON_DIR@,$(BUILDDIR)/../python,g' \
-e 's,@LAMMPS_DOC_DIR@,$(BUILDDIR),g' $< > $@
html: xmlgen $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK) $(MATHJAX)
globbed-tocs:
$(PYTHON) $(BUILDDIR)/utils/make-globbed-tocs.py -d $(RSTDIR)
html: xmlgen globbed-tocs $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK) $(MATHJAX)
@if [ "$(HAS_BASH)" == "NO" ] ; then echo "bash was not found at $(OSHELL)! Please use: $(MAKE) SHELL=/path/to/bash" 1>&2; exit 1; fi
@$(MAKE) $(MFLAGS) -C graphviz all
@(\
@ -94,10 +98,13 @@ html: xmlgen $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK) $(MATHJAX)
rm -f $(BUILDDIR)/doxygen/xml/run.stamp;\
echo "############################################" ; env PYTHONWARNINGS= PYTHONDONTWRITEBYTECODE=1 \
rst_anchor_check src/*.rst ;\
python $(BUILDDIR)/utils/check-packages.py -s ../src -d src ;\
$(PYTHON) $(BUILDDIR)/utils/check-packages.py -s ../src -d src ;\
env LC_ALL=C grep -n '[^ -~]' $(RSTDIR)/*.rst ;\
env LC_ALL=C grep -n ' :[a-z]\+`' $(RSTDIR)/*.rst ;\
python $(BUILDDIR)/utils/check-styles.py -s ../src -d src ;\
env LC_ALL=C grep -n ' `[^`]\+<[a-z][^`]\+`[^_]' $(RSTDIR)/*.rst ;\
env LC_ALL=C grep -n ':\(ref\|doc\):[^`]' $(RSTDIR)/*.rst ;\
env LC_ALL=C grep -n '\(ref\|doc\)`[^`]' $(RSTDIR)/*.rst ;\
$(PYTHON) $(BUILDDIR)/utils/check-styles.py -s ../src -d src ;\
echo "############################################" ;\
deactivate ;\
)
@ -109,7 +116,7 @@ html: xmlgen $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK) $(MATHJAX)
@rm -rf html/PDF/.[sg]*
@echo "Build finished. The HTML pages are in doc/html."
fasthtml: xmlgen $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK) $(MATHJAX)
fasthtml: xmlgen globbed-tocs $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK) $(MATHJAX)
@if [ "$(HAS_BASH)" == "NO" ] ; then echo "bash was not found at $(OSHELL)! Please use: $(MAKE) SHELL=/path/to/bash" 1>&2; exit 1; fi
@$(MAKE) $(MFLAGS) -C graphviz all
@mkdir -p fasthtml
@ -128,7 +135,7 @@ fasthtml: xmlgen $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK) $(MATHJAX)
@rm -rf fasthtml/PDF/.[sg]*
@echo "Fast HTML build finished. The HTML pages are in doc/fasthtml."
spelling: xmlgen $(SPHINXCONFIG)/conf.py $(VENV) $(SPHINXCONFIG)/false_positives.txt
spelling: xmlgen globbed-tocs $(SPHINXCONFIG)/conf.py $(VENV) $(SPHINXCONFIG)/false_positives.txt
@if [ "$(HAS_BASH)" == "NO" ] ; then echo "bash was not found at $(OSHELL)! Please use: $(MAKE) SHELL=/path/to/bash" 1>&2; exit 1; fi
@(\
. $(VENV)/bin/activate ; \
@ -139,7 +146,7 @@ spelling: xmlgen $(SPHINXCONFIG)/conf.py $(VENV) $(SPHINXCONFIG)/false_positives
)
@echo "Spell check finished."
epub: xmlgen $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK)
epub: xmlgen globbed-tocs $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK)
@if [ "$(HAS_BASH)" == "NO" ] ; then echo "bash was not found at $(OSHELL)! Please use: $(MAKE) SHELL=/path/to/bash" 1>&2; exit 1; fi
@$(MAKE) $(MFLAGS) -C graphviz all
@mkdir -p epub/JPG
@ -162,7 +169,7 @@ mobi: epub
@ebook-convert LAMMPS.epub LAMMPS.mobi
@echo "Conversion finished. The MOBI manual file is created."
pdf: xmlgen $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK)
pdf: xmlgen globbed-tocs $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK)
@if [ "$(HAS_BASH)" == "NO" ] ; then echo "bash was not found at $(OSHELL)! Please use: $(MAKE) SHELL=/path/to/bash" 1>&2; exit 1; fi
@$(MAKE) $(MFLAGS) -C graphviz all
@if [ "$(HAS_PDFLATEX)" == "NO" ] ; then echo "PDFLaTeX or latexmk were not found! Please check README for further instructions" 1>&2; exit 1; fi
@ -174,10 +181,13 @@ pdf: xmlgen $(VENV) $(SPHINXCONFIG)/conf.py $(ANCHORCHECK)
rm -f $(BUILDDIR)/doxygen/xml/run.stamp;\
echo "############################################" ; env PYTHONWARNINGS= PYTHONDONTWRITEBYTECODE=1 \
rst_anchor_check src/*.rst ;\
python utils/check-packages.py -s ../src -d src ;\
$(PYTHON) utils/check-packages.py -s ../src -d src ;\
env LC_ALL=C grep -n '[^ -~]' $(RSTDIR)/*.rst ;\
env LC_ALL=C grep -n ' :[a-z]\+`' $(RSTDIR)/*.rst ;\
python utils/check-styles.py -s ../src -d src ;\
env LC_ALL=C grep -n ' `[^`]\+<[a-z][^`]\+`[^_]' $(RSTDIR)/*.rst ;\
env LC_ALL=C grep -n ':\(ref\|doc\):[^`]' $(RSTDIR)/*.rst ;\
env LC_ALL=C grep -n '\(ref\|doc\)`[^`]' $(RSTDIR)/*.rst ;\
$(PYTHON) utils/check-styles.py -s ../src -d src ;\
echo "############################################" ;\
deactivate ;\
)
@ -208,14 +218,14 @@ anchor_check : $(ANCHORCHECK)
style_check : $(VENV)
@(\
. $(VENV)/bin/activate ; env PYTHONWARNINGS= PYTHONDONTWRITEBYTECODE=1 \
python utils/check-styles.py -s ../src -d src ;\
$(PYTHON) utils/check-styles.py -s ../src -d src ;\
deactivate ;\
)
package_check : $(VENV)
@(\
. $(VENV)/bin/activate ; env PYTHONWARNINGS= PYTHONDONTWRITEBYTECODE=1 \\
python utils/check-packages.py -s ../src -d src ;\
. $(VENV)/bin/activate ; env PYTHONWARNINGS= PYTHONDONTWRITEBYTECODE=1 \
$(PYTHON) utils/check-packages.py -s ../src -d src ;\
deactivate ;\
)
@ -224,6 +234,16 @@ char_check :
role_check :
@( env LC_ALL=C grep -n ' :[a-z]\+`' $(RSTDIR)/*.rst && exit 1 || : )
@( env LC_ALL=C grep -n ' `[^`]\+<[a-z][^`]\+`[^_]' $(RSTDIR)/*.rst && exit 1 || : )
@( env LC_ALL=C grep -n ':\(ref\|doc\):[^`]' $(RSTDIR)/*.rst && exit 1 || : )
@( env LC_ALL=C grep -n '\(ref\|doc\)`[^`]' $(RSTDIR)/*.rst && exit 1 || : )
link_check : $(VENV) html
@(\
. $(VENV)/bin/activate ; env PYTHONWARNINGS= PYTHONDONTWRITEBYTECODE=1 \
linkchecker -F html --check-extern html/Manual.html ;\
deactivate ;\
)
xmlgen : doxygen/xml/index.xml

View File

@ -10,7 +10,7 @@ Last change: 2022-12-30
In fall 2019, the LAMMPS documentation file format has changed from a
home grown markup designed to generate HTML format files only, to
[reStructuredText](https://docutils.sourceforge.io/rst.html>. For a
[reStructuredText](https://docutils.sourceforge.io/rst.html>). For a
transition period all files in the old .txt format were transparently
converted to .rst and then processed. The `txt2rst tool` is still
included in the distribution to obtain an initial .rst file for legacy
@ -45,8 +45,7 @@ what kind of information and sections are needed.
## Formatting conventions
For headlines we try to follow the conventions posted here:
https://documentation-style-guide-sphinx.readthedocs.io/en/latest/style-guide.html#headings
For headlines we try to follow the conventions posted [here](https://documentation-style-guide-sphinx.readthedocs.io/en/latest/style-guide.html#headings).
It seems to be sufficient to have this consistent only within
any single file and it is not (yet) enforced strictly, but making
this globally consistent makes it easier to move sections around.
@ -64,7 +63,7 @@ Groups of shell commands or LAMMPS input script or C/C++/Python source
code should be typeset into a `.. code-block::` section. A syntax
highlighting extension for LAMMPS input scripts is provided, so `LAMMPS`
can be used to indicate the language in the code block in addition to
`bash`, `c`, `c++`, `console`, `csh`, `diff', `fortran`, `json`, `make`,
`bash`, `c`, `c++`, `console`, `csh`, `diff`, `fortran`, `json`, `make`,
`perl`, `powershell`, `python`, `sh`, or `tcl`, `text`, or `yaml`. When
no syntax style is indicated, no syntax highlighting is performed. When
typesetting commands executed on the shell, please do not prefix
@ -84,7 +83,7 @@ block can be used, followed by multiple `.. tab::` blocks, one
for each alternative. This is only used for HTML output. For other
outputs, the `.. tabs::` directive is transparently removed and
the individual `.. tab::` blocks will be replaced with an
`.. admonition::`` block. Thus in PDF and ePUB output those will
`.. admonition::` block. Thus in PDF and ePUB output those will
be realized as sequential and plain notes.
Special remarks can be highlighted with a `.. note::` block and

View File

@ -2,7 +2,7 @@
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "LAMMPS Programmer's Guide"
PROJECT_NUMBER = "4 May 2022"
PROJECT_NUMBER = "19 November 2024"
PROJECT_BRIEF = "Documentation of the LAMMPS library interface and Python wrapper"
PROJECT_LOGO = lammps-logo.png
CREATE_SUBDIRS = NO

View File

@ -1,12 +1,14 @@
# Outline of the GitHub Development Workflow
This purpose of this document is to provide a point of reference for the
The purpose of this document is to provide a point of reference for the
core LAMMPS developers and other LAMMPS contributors to understand the
choices the LAMMPS developers have agreed on. Git and GitHub provide the
tools, but do not set policies, so it is up to the developers to come to
an agreement as to how to define and interpret policies. This document
is likely to change as our experiences and needs change and we try to
adapt accordingly. Last change 2021-09-02.
is likely to change as our experiences and needs change, and we try to
adapt it accordingly.
Last change: 2023-02-10
## Table of Contents
@ -22,80 +24,84 @@ adapt accordingly. Last change 2021-09-02.
## GitHub Merge Management
In the interest of consistency, ONLY ONE of the core LAMMPS developers
should doing the merging itself. This is currently
should do the merging. This is currently
[@akohlmey](https://github.com/akohlmey) (Axel Kohlmeyer). If this
assignment needs to be changed, it shall be done right after a stable
release. If the currently assigned developer cannot merge outstanding
pull requests in a timely manner, or in other extenuating circumstances,
other core LAMMPS developers with merge rights can merge pull requests,
when necessary.
other core LAMMPS developers with merge permission may merge pull
requests.
## Pull Requests
ALL changes to the LAMMPS code and documentation, however trivial, MUST
be submitted as a pull request to GitHub. All changes to the "develop"
branch must be made exclusively through merging pull requests. The
"release" and "stable" branches, respectively are only to be updated
upon patch or stable releases with fast-forward merges based on the
associated tags. Pull requests may also be submitted to (long-running)
feature branches created by LAMMPS developers inside the LAMMPS project,
if needed. Those are not subject to the merge and review restrictions
discussed in this document, though, but get managed as needed on a
case-by-case basis.
*ALL* changes to the LAMMPS code and documentation, however trivial,
MUST be submitted as a pull request to GitHub. All changes to the
"develop" branch must be made exclusively through merging pull requests.
The "release" and "stable" branches, respectively, are only to be
updated upon "feature releases" or "stable releases" based on the
associated tags. Updates to the stable release in between stable releases
(for example, back-ported bug fixes) are first merged into the "maintenance"
branch and then into the "stable" branch as "stable update releases".
Pull requests may also be submitted to (long-running) feature branches
created by LAMMPS developers inside the LAMMPS project, if needed. Those
are not subject to the merge and review restrictions discussed in this
document, though, but get managed as needed on a case-by-case basis.
### Pull Request Assignments
Pull requests can be "chaperoned" by one of the LAMMPS core developers.
This is indicated by who the pull request is assigned to. LAMMPS core
developers can self-assign or they can decide to assign a pull request
This is indicated by whom the pull request is assigned to. LAMMPS core
developers can self-assign, or they can decide to assign a pull request
to a different LAMMPS developer. Being assigned to a pull request means,
that this pull request may need some work and the assignee is tasked to
determine whether this might be needed or not, and may either implement
the required changes or ask the submitter of the pull request to implement
them. Even though, all LAMMPS developers may have write access to pull
requests (if enabled by the submitter, which is the default), only the
submitter or the assignee of a pull request may do so. During this
period the `work_in_progress` label may be applied to the pull
request. The assignee gets to decide what happens to the pull request
next, e.g. whether it should be assigned to a different developer for
additional checks and changes, or is recommended to be merged. Removing
the `work_in_progress` label and assigning the pull request to the
developer tasked with merging signals that a pull request is ready to be
merged. In addition, a `ready_for_merge` label may also be assigned
to signal urgency to merge this pull request quickly.
determine whether this might be needed or not. The assignee may either
choose to implement required changes or ask the submitter of the pull
request to implement them. Even though, all LAMMPS developers may have
write access to pull requests (if enabled by the submitter, which is the
default), only the submitter or the assignee of a pull request should do
so. During this period, the `work_in_progress` label may be applied to
the pull request. The assignee gets to decide what happens to the pull
request next, e.g. whether it should be assigned to a different
developer for additional checks and changes, or is recommended to be
merged. Removing the `work_in_progress` label and assigning the pull
request to the developer tasked with merging signals that a pull request
is ready to be merged. In addition, a `ready_for_merge` label may also
be assigned to signal urgency to merge this pull request quickly.
### Pull Request Reviews
People can be assigned to review a pull request in two ways:
* They can be assigned manually to review a pull request
by the submitter or a LAMMPS developer
* They can be automatically assigned, because a developers matches
a file pattern in the `.github/CODEOWNERS` file, which associates
developers with the code they contributed and maintain.
by the submitter or a LAMMPS developer.
* They can be automatically assigned, because a developer's GitHub
handle matches a file pattern in the `.github/CODEOWNERS` file,
which associates developers with the code they contributed and
maintain.
Reviewers are requested to state their appraisal of the proposed changes
and either approve or request changes. People may unassign themselves
from review, if they feel not competent about the changes proposed. At
least two approvals from LAMMPS developers with write access are required
before merging in addition to the automated compilation tests.
Merging counts as implicit approval, so does submission of a pull request
(by a LAMMPS developer). So the person doing the merge may not also submit
an approving review. The feature, that reviews from code owners are "hard"
reviews (i.e. they must all be approved before merging is allowed), is
currently disabled and it is in the discretion of the merge maintainer to
assess when a sufficient degree of approval, especially from external
contributors, has been reached in these cases. Reviews may be
(automatically) dismissed, when the reviewed code has been changed,
and then approval is required a second time.
least two approvals from LAMMPS developers with write access are
required before merging, in addition to passing all automated
compilation and unit tests. Merging counts as implicit approval, so
does submission of a pull request (by a LAMMPS developer). So the person
doing the merge may not also submit an approving review. The GitHub
feature that reviews from code owners are "hard" reviews (i.e. they
must all approve before merging is allowed) is currently disabled.
It is at the discretion of the merge maintainer to assess when a
sufficient degree of approval has been reached, especially from external
collaborators. Reviews may be (automatically) dismissed, when the
reviewed code has been changed. Review may be requested a second time.
### Pull Request Discussions
All discussions about a pull request should be kept as much as possible
on the pull request discussion page on GitHub, so that other developers
can later review the entire discussion after the fact and understand the
rationale behind choices made. Exceptions to this policy are technical
discussions, that are centered on tools or policies themselves
rationale behind choices that were made. Exceptions to this policy are
technical discussions, that are centered on tools or policies themselves
(git, GitHub, c++) rather than on the content of the pull request.
## GitHub Issues
@ -109,39 +115,48 @@ marker in the subject. This is automatically done when using the
corresponding template for submitting an issue. Issues may be assigned
to one or more developers, if they are working on this feature or
working to resolve an issue. Issues that have nobody working
on them at the moment or in the near future, have the label
on them at the moment, or in the near future, have the label
`volunteer needed` attached.
When an issue, say `#125` is resolved by a specific pull request,
the comment for the pull request shall contain the text `closes #125`
or `fixes #125`, so that the issue is automatically deleted when
the pull request is merged. The template for pull requests includes
a header where connections between pull requests and issues can be listed
and thus were this comment should be placed.
When an issue, say `#125` is resolved by a specific pull request, the
comment for the pull request shall contain the text `closes #125` or
`fixes #125`, so that the issue is automatically deleted when the pull
request is merged. The template for pull requests includes a header
where connections between pull requests and issues can be listed, and
thus where this comment should be placed.
## Milestones and Release Planning
## Release Planning
LAMMPS uses a continuous release development model with incremental
changes, i.e. significant effort is made - including automated pre-merge
testing - that the code in the branch "develop" does not get easily
changes, i.e. significant effort is made -- including automated pre-merge
testing -- that the code in the branch "develop" does not get easily
broken. These tests are run after every update to a pull request. More
extensive and time consuming tests (including regression testing) are
performed after code is merged to the "develop" branch. There are patch
releases of LAMMPS every 3-5 weeks at a point, when the LAMMPS
developers feel, that a sufficient amount of changes have happened, and
the post-merge testing has been successful. These patch releases are
extensive and time-consuming tests (including regression testing) are
performed after code is merged to the "develop" branch. There are feature
releases of LAMMPS made about every 4-8 weeks at a point, when the LAMMPS
developers feel, that a sufficient number of changes have been included
and all post-merge testing has been successful. These feature releases are
marked with a `patch_<version date>` tag and the "release" branch
follows only these versions (and thus is always supposed to be of
production quality, unlike "develop", which may be temporary broken, in
the case of larger change sets or unexpected incompatibilities or side
effects.
follows only these versions with fast-forward merges. While "develop" may
be temporarily broken through issues only detected by the post-merge tests,
The "release" branch is always supposed to be of production quality.
About 1-2 times each year, there are going to be "stable" releases of
LAMMPS. These have seen additional, manual testing and review of
results from testing with instrumented code and static code analysis.
Also, the last 1-3 patch releases before a stable release are "release
candidate" versions which only contain bugfixes and documentation
updates. For release planning and the information of code contributors,
issues and pull requests being actively worked on are assigned a
"milestone", which corresponds to the next stable release or the stable
release after that, with a tentative release date.
About once each year, there is a "stable" release of LAMMPS. These have
seen additional, manual testing and review of results from testing with
instrumented code and static code analysis. Also, the last few feature
releases before a stable release are "release candidate" versions which
only contain bug fixes, feature additions to peripheral functionality,
and documentation updates. In between stable releases, bug fixes and
infrastructure updates are back-ported from the "develop" branch to the
"maintenance" branch and occasionally merged into "stable" and published
as update releases. Further explanation of LAMMPS versions can be found
[in the documentation](https://docs.lammps.org/Manual_version.html).
## Project Management
For release planning and the information of code contributors, issues
and pull requests are being managed with GitHub Project Boards. There
are currently three boards: LAMMPS Feature Requests, LAMMPS Bug Reports,
and LAMMPS Pull Requests. Each board is organized in columns where
submissions are categorized. Within each column the entries are
(manually) sorted according their priority.

View File

@ -16,8 +16,11 @@ clean:
rm -f $(IMGSVG) $(IMGPDF) $(IMGPNG) *~
ifeq ($(HAS_DOT),YES)
$(IMGDIR)/%.png: %.dot
$(IMGDIR)/lammps-classes.png : lammps-classes.dot
dot -Tpng -Kneato -o $@ $<
$(IMGDIR)/%.png: %.dot
dot -Tpng -Kdot -o $@ $<
endif
ifeq ($(HAS_DOT),NO)

View File

@ -0,0 +1,34 @@
// LAMMPS branches and releases
digraph releases {
rankdir="LR";
github [shape="box" label="Pull Requests\non GitHub" height=0.75];
github -> develop [label="Merge commits"];
{
rank = "same";
work [shape="none" label="Development branches:"]
develop [label="'develop' branch" height=0.75];
maintenance [label="'maintenance' branch" height=0.75];
};
{
rank = "same";
upload [shape="none" label="Release branches:"]
release [label="'release' branch" height=0.75];
stable [label="'stable' branch" height=0.75];
};
develop -> release [label="Feature release\n(every 4-8 weeks)"];
release -> stable [label="Stable release\n(once per year)"];
stable -> maintenance [label="Reset on stable release" style="setlinewidth(2)"];
develop -> maintenance [label="Backports of bugfixes" style="dashed"];
maintenance -> stable [label="Updates to stable release"];
{
rank = "same";
tag [shape="none" label="Applied tags:"];
patchtag [shape="box" label="patch_<date>"];
stabletag [shape="box" label="stable_<date>"];
updatetag [shape="box" label="stable_<date>_update<num>"];
};
release -> patchtag [label="feature release" style="dotted"];
stable -> stabletag [label="stable release" style="dotted"];
stable -> updatetag [label="update release" style="dotted"];
}

View File

@ -1,7 +1,7 @@
.TH LAMMPS "1" "8 February 2023" "2023-02-08"
.TH LAMMPS "1" "19 November 2024" "2024-11-19"
.SH NAME
.B LAMMPS
\- Molecular Dynamics Simulator. Version 8 February 2023
\- Molecular Dynamics Simulator. Version 19 November 2024
.SH SYNOPSIS
.B lmp
@ -226,6 +226,20 @@ arguments of the "dump" command. See the
.B LAMMPS
manual for details on either of the two commands.
.TP
\fB\-r2info <restart file> <keyword> ...\fR or
\fB\-restart2info <restart file> <keyword> ...\fR
Write information about the <restart file> previously written by
.B LAMMPS
to the screen and immediately exit. Following <restart file>
argument, additional keywords for the
.B LAMMPS
"info" command may be added to increase the amount of information
written. By default "system" "group" "fix" "compute" are already
set. See the
.B LAMMPS
manual for details on the "info" command.
.TP
.TP
\fB\-sc <file name>\fR or \fB\-screen <file name>\fR
Specify a file for
.B LAMMPS
@ -297,7 +311,7 @@ the chapter on errors in the
manual gives some additional information about error messages, if possible.
.SH COPYRIGHT
© 2003--2022 Sandia Corporation
© 2003--2024 Sandia Corporation
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as

Some files were not shown because too many files have changed in this diff Show More