Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New features for the ML-POD package #13

Closed
wants to merge 718 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
718 commits
Select commit Hold shift + click to select a range
c684fa0
Merge branch 'lammps:develop' into patch-1
GenieTim Mar 29, 2024
7137290
Follow requested changes to patch
GenieTim Mar 29, 2024
30f3307
more consistent error checks on variable length global vecs and arrays
sjplimp Mar 29, 2024
b79bcce
Merge pull request #4098 from GenieTim/patch-1
akohlmey Mar 30, 2024
f48677c
Merge branch 'develop' into restricted-angle
akohlmey Mar 30, 2024
b712e46
doc fixes
akohlmey Mar 30, 2024
66a1e01
gitignore
akohlmey Mar 30, 2024
428e226
add unit test inputs for new styles
akohlmey Mar 30, 2024
d73aec6
add OpenMP version of angle style cosine/squared/restricted
akohlmey Mar 30, 2024
dcc7916
reorder header
akohlmey Mar 30, 2024
a017a77
Merge pull request #4108 from MightyHelper/develop
akohlmey Mar 30, 2024
f6bdc05
alternate fix to PR #4116
akohlmey Mar 30, 2024
ae6247d
remove xdr_compat.h include and pimplify XDR struct, silence compiler…
akohlmey Mar 31, 2024
0cdbcc8
switch to BSD 3-clause licensed XDR version, use c++11 portability, c…
akohlmey Mar 31, 2024
ff91728
reduce XDR compatibility code to only those routines that are used by…
akohlmey Mar 31, 2024
0296ca7
remove tabs
akohlmey Mar 31, 2024
3da6a7b
eliminate compatibility typedefs
akohlmey Mar 31, 2024
051c818
enable and apply clang-format
akohlmey Mar 31, 2024
4eaf257
small cleanups
akohlmey Mar 31, 2024
2ddd940
minor cosmetic changes
akohlmey Apr 1, 2024
05562ad
testing 2d rigid changes
sjplimp Apr 2, 2024
dfc68fb
Merge remote-tracking branch 'github/develop' into collected-small-fixes
akohlmey Apr 2, 2024
ed0cff9
Merge remote-tracking branch 'github/develop' into general-triclinic
akohlmey Apr 2, 2024
2174553
Revert "change ordering of eigenvalues in jacobi3() function. update …
akohlmey Apr 3, 2024
78a3a7b
add optional argument to enable overriding sort order or eigenvalues/…
akohlmey Apr 3, 2024
c0abefe
update links in manual to jacobi3() docs
akohlmey Apr 3, 2024
d06b869
more debugging
sjplimp Apr 3, 2024
4329c4c
changes to rigid and rigid/small
sjplimp Apr 3, 2024
39d12e4
must always return nfaces=0 for less than 3 vertices
akohlmey Apr 3, 2024
ecd8fe7
cosmetic
akohlmey Apr 3, 2024
4c99249
modify access to fixes
akohlmey Apr 3, 2024
1529a61
Merge pull request #4111 from akohlmey/collected-small-fixes
akohlmey Apr 3, 2024
3db1e5f
mliap kk snap unittest back on only disable mliap kk for ACE
jmgoff Apr 3, 2024
ef3d255
Merge branch 'develop' into pace-mliap
akohlmey Apr 4, 2024
972d412
flag false positives
akohlmey Apr 4, 2024
f637299
Added symmetrization of cutoff in init_one() and fixed a print
maitane-muba Apr 4, 2024
8254d20
Removing unnecessary comm calls fix heat/flow
jtclemm Apr 4, 2024
58d6f9b
Removing hrate from fix deform/pressure restart
jtclemm Apr 4, 2024
506bf88
merge in develop branch
sjplimp Apr 4, 2024
65cdc76
final changes for 2d rigid bodies with jacobi
sjplimp Apr 4, 2024
03711c1
clean up
sjplimp Apr 4, 2024
99e82f9
Merge pull request #4120 from maitane-muba/develop
akohlmey Apr 4, 2024
6a2bcc7
merge in current develop
sjplimp Apr 4, 2024
2c26586
clean up
sjplimp Apr 4, 2024
66d042a
make checks for exceeding length of variable-length vectors more cons…
sjplimp Apr 4, 2024
c45f266
clean-up whitespace
sjplimp Apr 4, 2024
ec7b764
fix spelling error
sjplimp Apr 4, 2024
72d7ba8
call alternate minimum image code from @stanmoore1 from fix rigid/small
akohlmey Apr 5, 2024
a51174f
update unit test reference data for rigid fixes
akohlmey Apr 5, 2024
4401179
Merge pull request #4122 from lammps/variable-length-vectors-arrays
akohlmey Apr 5, 2024
f5a595d
Merge branch 'develop' into test-rigid
akohlmey Apr 5, 2024
2927471
Merge pull request #4121 from lammps/test-rigid
akohlmey Apr 5, 2024
f382eac
Update Kokkos library in LAMMPS to v4.3.0
stanmoore1 Apr 5, 2024
84b6c6a
Added prefactors and errors for incorrect combinations.
dhairyaiitb Apr 5, 2024
1b71576
Update CMake and docs
stanmoore1 Apr 5, 2024
0344b6a
updated the associated example file
dhairyaiitb Apr 5, 2024
905ceb9
merge in current develop
sjplimp Apr 5, 2024
f0c1ebe
Merge pull request #4123 from akohlmey/rigid-image-fix
akohlmey Apr 5, 2024
6a8354f
Fix bug in MDI time integration logic
taylor-a-barnes Apr 5, 2024
d615d80
support for general tri edge vectors in thermo output
sjplimp Apr 5, 2024
7e8be88
Merge pull request #4124 from stanmoore1/kk_update_4.3.0
akohlmey Apr 5, 2024
af88cec
relax error check on fixes that produce variable size vectors/arrays
sjplimp Apr 5, 2024
7122a85
remove some debug info
sjplimp Apr 5, 2024
4a36053
Merge branch 'develop' into general-triclinic
sjplimp Apr 5, 2024
0f5221a
Improve Kokkos sorting
stanmoore1 Apr 5, 2024
1a01988
more doc page and thermo edge vector modifications
sjplimp Apr 5, 2024
069919d
Merge pull request #4125 from taylor-a-barnes/mdi
akohlmey Apr 5, 2024
c2b91cc
better documention and error checking for 2d general triclinic
sjplimp Apr 8, 2024
d1b571c
spell check
sjplimp Apr 8, 2024
877d6e7
remove whitespace
sjplimp Apr 8, 2024
e40a152
one more doc page
sjplimp Apr 8, 2024
74a0d22
first stab at non-coulomb pedone potential
akohlmey Apr 8, 2024
f1c2a22
more tweaks
sjplimp Apr 8, 2024
e6f4c49
add simple general triclinic example files
sjplimp Apr 8, 2024
81ce8ec
tweak README
sjplimp Apr 8, 2024
21512df
update doc for dump_modify triclinic/general keyword
sjplimp Apr 8, 2024
41f518e
repulsive is r^12 not r^6
akohlmey Apr 9, 2024
0021042
add test
akohlmey Apr 9, 2024
67faeb0
correct sign for repulsive term
akohlmey Apr 9, 2024
a2ee2d5
add OPENMP version and apply clang-format
akohlmey Apr 9, 2024
aeec608
partial docs also for future pedone/coul/long implementation
akohlmey Apr 9, 2024
4159182
update 2 doc pages for DIELECTRIC package
sjplimp Apr 9, 2024
7ac84e1
remove references to non-existing pedone/coul/long, complete description
akohlmey Apr 10, 2024
01917cd
add example for Ca-O with Pedone
akohlmey Apr 10, 2024
b4fa1b0
add version tag
akohlmey Apr 10, 2024
e979e8d
spelling add false positives
akohlmey Apr 10, 2024
9f88867
update parsing of file and atomfile variable files
akohlmey Apr 10, 2024
06d579e
improve atomfile variable docs
akohlmey Apr 10, 2024
83cd20d
Merge branch 'develop' into general-triclinic
akohlmey Apr 10, 2024
7ca4bf0
change radthresh initialization
akohlmey Apr 10, 2024
e180527
fix typo
akohlmey Apr 10, 2024
7a80a74
Merge branch 'develop' into jake_replicate
sjplimp Apr 10, 2024
120b861
correct typos and remove duplicate text
sjplimp Apr 10, 2024
3bfe8b8
Merge branch 'general-triclinic' of github.com:lammps/lammps into gen…
sjplimp Apr 10, 2024
c3be4fa
Merge pull request #4130 from akohlmey/update-file-variable-parsing
akohlmey Apr 10, 2024
dbb23b6
Merge branch 'develop' into pedone-potentials
akohlmey Apr 10, 2024
9d3e9c6
whitespace
akohlmey Apr 10, 2024
b36f49c
adjust epsilon for arm64 platform
akohlmey Apr 10, 2024
9ca47a3
Merge pull request #4129 from akohlmey/pedone-potentials
akohlmey Apr 10, 2024
9f2cc1e
Add two-level sort to simplify algorithm
stanmoore1 Apr 10, 2024
f557dfd
mention typelabel paper
akohlmey Apr 12, 2024
441a521
initialize all class pointers to null
akohlmey Apr 12, 2024
4bd983c
make warnings in scatter/gather into errors
akohlmey Apr 12, 2024
7f68620
add example with more compact initialization for scatter
akohlmey Apr 13, 2024
5fbd21e
Merge pull request #4127 from stanmoore1/kk_sort_by_key
akohlmey Apr 13, 2024
a40b97d
Merge remote-tracking branch 'github/develop' into collected-small-ch…
akohlmey Apr 13, 2024
95779b3
add versionadded tags
akohlmey Apr 13, 2024
17d04ce
Merge remote-tracking branch 'github/develop' into restricted-angle
akohlmey Apr 13, 2024
23ce978
cosmetic
akohlmey Apr 13, 2024
b5c5b8e
remove dead code and related comment
akohlmey Apr 13, 2024
5af3626
adjust test coeffs to be numerically stable
akohlmey Apr 13, 2024
1346be4
Merge pull request #4126 from lammps/global-vector-access
akohlmey Apr 13, 2024
db1598f
pylammps: fix get atom.mass by atom.type
yuhldr Apr 14, 2024
cc72181
pylammps: append_cmd_history
yuhldr Apr 14, 2024
18d45d1
pylammps: fix get atom.mass by atom.type
yuhldr Apr 14, 2024
962219a
make PyLammps mass property compatible with per-atom masses.
akohlmey Apr 14, 2024
90c8c3c
doc: py:meth:PyLammps.append_cmd_history()
yuhldr Apr 15, 2024
bad5fcc
doc: 2 py:meth:PyLammps.append_cmd_history()
yuhldr Apr 15, 2024
f6992c0
doc: 3 py:meth:PyLammps.append_cmd_history()
yuhldr Apr 15, 2024
e4a7b19
whitespace
akohlmey Apr 15, 2024
a9b9f7f
correct fix ttm/mod example input
akohlmey Apr 15, 2024
3a94e4d
print single warning when some rho[i] exceeded rhomax of the current …
akohlmey Apr 15, 2024
b2fded3
restore missing line
akohlmey Apr 15, 2024
d34a9bd
Merge pull request #4113 from evoyiatzis/restricted-angle
akohlmey Apr 15, 2024
de8b1b4
Merge pull request #4135 from yuhldr/develop
akohlmey Apr 15, 2024
1924a06
Merge branch 'develop' into collected-small-changes
akohlmey Apr 15, 2024
16e5fce
adjust error messaging for rho[i] > rhomax in EAM
sjplimp Apr 15, 2024
8dd1d12
apply clang-format and whitespace cleanup
akohlmey Apr 16, 2024
28620a6
propagate changes to other EAM implementations
akohlmey Apr 16, 2024
a810f1e
Update Howto_type_labels.rst
jrgissing Apr 16, 2024
49b5361
Update labelmap.rst
jrgissing Apr 16, 2024
c855e44
small doc fixes
akohlmey Apr 16, 2024
89d9878
small doc formatting and spelling fixes
akohlmey Apr 16, 2024
88f2ca6
update version tags for feature release
akohlmey Apr 16, 2024
9aceecd
breathe is currently not compatible with sphinx 7.3
akohlmey Apr 16, 2024
1245160
breathe is currently not compatible with sphinx 7.3
akohlmey Apr 16, 2024
fe57f88
breathe is currently not compatible with sphinx 7.3
akohlmey Apr 16, 2024
95e4364
breathe is currently not compatible with sphinx 7.3
akohlmey Apr 16, 2024
98eb345
small tweak
akohlmey Apr 17, 2024
27266e7
Merge pull request #3984 from lammps/general-triclinic
akohlmey Apr 17, 2024
329d546
Merge pull request #4078 from jmgoff/pace-mliap
akohlmey Apr 17, 2024
94a95b5
Merge remote-tracking branch 'github/develop' into collected-small-ch…
akohlmey Apr 17, 2024
7f269c4
Merge branch 'collected-small-changes' of github.com:akohlmey/lammps …
akohlmey Apr 17, 2024
101a937
rephrase warning about EAM deansity exceeding tabulated embedding term
akohlmey Apr 17, 2024
3a555c8
Merge pull request #4134 from akohlmey/collected-small-changes
akohlmey Apr 17, 2024
e80954a
Merge branch 'develop' into next_release
akohlmey Apr 17, 2024
d45a000
update a couple more pending version strings
akohlmey Apr 17, 2024
db9e8aa
last minute fix for https://matsci.org/t/errors-encountered-in-the-py…
akohlmey Apr 17, 2024
09680a3
use MPI_SUM instead of MPI_MAX to work around OpenMPI bug on macOS wi…
akohlmey Apr 17, 2024
cf0dc2a
Merge pull request #4138 from akohlmey/next_release
akohlmey Apr 17, 2024
1b88adf
move communication for eam/omp warning outside the threaded region. u…
akohlmey Apr 17, 2024
6836bca
Merge pull request #4139 from akohlmey/eam-warning-bugfix
akohlmey Apr 17, 2024
c5ecef8
Updating BPM reference information
jtclemm Apr 18, 2024
931417d
always return integers for counts
jrgissing Apr 18, 2024
97d8ecb
Improvements & bug fixes to fix def/press
jtclemm Apr 19, 2024
14dc82a
Adding periodicity check
jtclemm Apr 19, 2024
38c7d7a
Added a vectorstyle variable check for fix_ave_histo.cpp
Bibobu Apr 20, 2024
baaea82
Merge branch 'develop' of github.com:lammps/lammps into ave_histo_vec…
Bibobu Apr 20, 2024
48600cd
Merge branch 'develop' of github.com:lammps/lammps into develop
Bibobu Apr 20, 2024
6bd57cd
fix atom/swap reports value as intensive
jrgissing Apr 22, 2024
26c8a3a
fix gcmc and widom also report 'intensively'
jrgissing Apr 22, 2024
a50192a
mol/swap also flags output as intensive value!
jrgissing Apr 22, 2024
e15f7a1
clarify that sgcmc output is intensive
jrgissing Apr 22, 2024
761cfda
switch markdown formatting to restructured text
akohlmey Apr 22, 2024
3ab6997
fix broken link
akohlmey Apr 22, 2024
628531d
Merge pull request #4144 from Bibobu/ave_histo_vector_bug
stanmoore1 Apr 22, 2024
d896f30
Update fix_hyper_local.rst
jrgissing Apr 22, 2024
25a9bf1
Merge branch 'develop' into jake_replicate
sjplimp Apr 22, 2024
a88e875
guard against not setting extscalar, extvector, or extarray when requ…
akohlmey Apr 22, 2024
3ce628c
fix extscalar bugs in fix shake and fix sprint/rg
akohlmey Apr 22, 2024
44bfcff
Fixing variable pmean in deform/press
jtclemm Apr 23, 2024
dc04a2e
for vectors we have to check for either extvector or extlist
akohlmey Apr 23, 2024
f66ae5c
output verbose info
akohlmey Apr 23, 2024
400070d
catch command errors
akohlmey Apr 23, 2024
f815ded
add a few more intensive vs. externsive settings
akohlmey Apr 23, 2024
f6eeaae
Update compute_count_type.rst
jrgissing Apr 23, 2024
80a0c58
Fix coeff parsing classic gran model
jtclemm Apr 24, 2024
3dbfe26
Extra D2min options/checks for undercoord particles
jtclemm Apr 24, 2024
6de19ec
Tweaking doc text
jtclemm Apr 24, 2024
b2aed19
Update doc/src/compute_count_type.rst
jrgissing Apr 24, 2024
8073cec
make pip install packages in user area
akohlmey Apr 24, 2024
b993dad
try virtual environment instead of user installation
akohlmey Apr 24, 2024
fc20b8c
make pip install packages in virtual environment
akohlmey Apr 24, 2024
83643de
flag development
akohlmey Apr 24, 2024
4437891
catch command errors
akohlmey Apr 23, 2024
a85b060
downgrade macOS to version 13
akohlmey Apr 24, 2024
cfc811a
downgrade macOS to version 13
akohlmey Apr 24, 2024
0f3a8d6
Adding warning for singular matrix
jtclemm Apr 25, 2024
da7de9c
Merge branch 'develop' of github.com:lammps/lammps into develop
Bibobu Apr 26, 2024
99ff5b2
Changed alpha_init initialization to avoid infinite loop with 0 starting
Bibobu Apr 26, 2024
1f9c33e
make pip install packages in virtual environment
akohlmey Apr 24, 2024
69e9483
downgrade macOS to version 13
akohlmey Apr 24, 2024
74b49b4
make pip install packages in virtual environment
akohlmey Apr 24, 2024
a394fcb
downgrade macOS to version 13
akohlmey Apr 24, 2024
e34aa0d
meam/c is no longer an alias for meam
akohlmey Apr 28, 2024
b1e1b05
Match dump_modify syntax for atom and custom dump styles
nnn911 Apr 29, 2024
e9d22ec
Clarify error message
nnn911 Apr 30, 2024
149ffbb
Clarify error message
nnn911 Apr 30, 2024
39f0397
QEq requires charges
akohlmey May 2, 2024
541680c
Make compute stress/mop compatible with 2D systems
evoyiatzis May 4, 2024
e42aff5
Make compute stress/mop/profile compatible with 2D systems
evoyiatzis May 4, 2024
46a4414
Update compute_stress_mop.rst
evoyiatzis May 4, 2024
daedaac
add missing false positive
akohlmey May 5, 2024
3d4bb44
Minor rearrangements to CoR, fix bug in granular single
jtclemm May 6, 2024
a4449fb
modified doc page, added examples
sjplimp May 6, 2024
1c11de8
comment tweak
sjplimp May 6, 2024
3028b6f
clean up of docs and code
sjplimp May 7, 2024
33525de
fix incomplete header info on command syntax
sjplimp May 8, 2024
887ffa5
Merge branch 'develop' into create_atoms-overlap_w_mol
jrgissing May 8, 2024
05438d2
Update create_atoms.rst
jrgissing May 8, 2024
ada61d9
Update fix_reaxff_species.rst
jrgissing May 8, 2024
8e6a232
Update fix_reaxff_species.rst
jrgissing May 9, 2024
b4f1870
Update fix_reaxff_species.h
jrgissing May 9, 2024
a261663
update OpenCL ICD loader source to latest release
akohlmey May 9, 2024
7b007d8
Make compute stress/mop compatible with triclinic boxes
evoyiatzis May 9, 2024
e2984c9
Delete pos1 variable from compute_stress_mop.h
evoyiatzis May 9, 2024
9aefa04
Update compute_stress_mop.rst
evoyiatzis May 9, 2024
ac0513b
whitespace in compute_stress_mop.rst
evoyiatzis May 9, 2024
46b4c09
simplify xmol comm
jrgissing May 10, 2024
74b3d15
improve fix_modify error messages
akohlmey May 10, 2024
b65e41e
Update version to development
stanmoore1 May 13, 2024
eb0640f
Merge pull request #4146 from akohlmey/collected-small-changes
stanmoore1 May 13, 2024
20a2df0
Merge pull request #4152 from nnn911/modify_triclinic
stanmoore1 May 13, 2024
cd82af6
Merge pull request #4148 from jtclemm/small-patches
stanmoore1 May 13, 2024
fd1aa73
Merge pull request #3118 from jrgissing/replicate_periodic_box
stanmoore1 May 13, 2024
00d8c66
Merge pull request #3810 from jrgissing/create_atoms-overlap_w_mol
stanmoore1 May 13, 2024
f747bb9
Merge pull request #3824 from jrgissing/fix_reaxff/species-fixes
stanmoore1 May 13, 2024
84f06aa
Merge branch 'develop' into doc-write-data
akohlmey May 13, 2024
d4d4c48
spelling fixes
akohlmey May 13, 2024
67b6c36
Merge pull request #4150 from Bibobu/cg_stuck_bug
stanmoore1 May 13, 2024
d0f8d9e
Merge branch 'develop' into dhairyaiitb/develop
akohlmey May 13, 2024
af540be
Merge pull request #4142 from jrgissing/count/types-return_integer_fo…
stanmoore1 May 13, 2024
4e7bdda
remove unused variables
akohlmey May 13, 2024
74f29ba
update example
akohlmey May 13, 2024
0a389bf
Merge branch 'develop' of github.com:lammps/lammps into patch-1
stanmoore1 May 13, 2024
4330530
Merge pull request #4068 from dhairyaiitb/develop
stanmoore1 May 13, 2024
ed507dc
revert changes in compute_stress_mop.h
evoyiatzis May 13, 2024
86103fa
revert changes for triclinic boxes in compute_stress_mop.cpp
evoyiatzis May 13, 2024
47c86cd
Update compute_stress_mop.rst
evoyiatzis May 13, 2024
ada53dc
Merge pull request #4161 from lammps/doc-write-data
stanmoore1 May 13, 2024
f05a551
Update compute_stress_mop.cpp
evoyiatzis May 13, 2024
c882160
Merge branch 'develop' into patch-1
akohlmey May 14, 2024
83a4ff0
fix segfault
akohlmey May 14, 2024
008a8fc
Merge pull request #4159 from evoyiatzis/patch-1
stanmoore1 May 14, 2024
feae228
New force calculation
exapde May 17, 2024
b434c4d
Merge branch 'lammps:develop' into kokkospod
exapde May 17, 2024
b5fe3d5
update kokkospod
exapde May 18, 2024
83d5edb
Merge branch 'kokkospod' of https://github.com/cesmix-mit/lammps into…
exapde May 18, 2024
44ef81e
documentation and examples
exapde May 21, 2024
4104e73
Delete InP training data
exapde May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 5 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ 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/MOFFF/* @hheenen
src/MOLFILE/* @akohlmey
src/NETCDF/* @pastewka
Expand Down Expand Up @@ -65,9 +65,12 @@ src/MANYBODY/pair_nb3b_screened.* @flodesani
src/REPLICA/*_grem.* @dstelter92
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

# core LAMMPS classes
Expand All @@ -80,7 +83,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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/unittest-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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

Expand Down Expand Up @@ -43,6 +43,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 \
Expand Down
32 changes: 26 additions & 6 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,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)
Expand Down Expand Up @@ -428,6 +432,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.
Expand All @@ -438,6 +443,21 @@ 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()

# lower C++ standard for fmtlib sources when using Intel classic compiler
Expand Down Expand Up @@ -552,12 +572,12 @@ endforeach()
########################################################################
# 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")
Expand Down
4 changes: 2 additions & 2 deletions cmake/Modules/OpenCLLoader.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
message(STATUS "Downloading and building OpenCL loader library")
set(OPENCL_LOADER_URL "${LAMMPS_THIRDPARTY_URL}/opencl-loader-2024.02.09.tar.gz" CACHE STRING "URL for OpenCL loader tarball")
set(OPENCL_LOADER_MD5 "f3573cf9daa3558ba46fd5866517f38f" 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)

Expand Down
3 changes: 3 additions & 0 deletions cmake/Modules/Packages/INTEL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
9 changes: 5 additions & 4 deletions cmake/Modules/Packages/KOKKOS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,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/4.2.00.tar.gz" CACHE STRING "URL for KOKKOS tarball")
set(KOKKOS_MD5 "731647b61a4233f568d583702e9cd6d1" CACHE STRING "MD5 checksum of KOKKOS tarball")
set(KOKKOS_URL "https://github.com/kokkos/kokkos/archive/4.3.00.tar.gz" CACHE STRING "URL for KOKKOS tarball")
set(KOKKOS_MD5 "889dcea2b5ced3debdc5b0820044bdc4" CACHE STRING "MD5 checksum of KOKKOS tarball")
mark_as_advanced(KOKKOS_URL)
mark_as_advanced(KOKKOS_MD5)
GetFallbackURL(KOKKOS_URL KOKKOS_FALLBACK)
Expand All @@ -71,7 +71,7 @@ if(DOWNLOAD_KOKKOS)
add_dependencies(LAMMPS::KOKKOSCORE kokkos_build)
add_dependencies(LAMMPS::KOKKOSCONTAINERS kokkos_build)
elseif(EXTERNAL_KOKKOS)
find_package(Kokkos 4.2.00 REQUIRED CONFIG)
find_package(Kokkos 4.3.00 REQUIRED CONFIG)
target_link_libraries(lammps PRIVATE Kokkos::kokkos)
else()
set(LAMMPS_LIB_KOKKOS_SRC_DIR ${LAMMPS_LIB_SOURCE_DIR}/kokkos)
Expand Down Expand Up @@ -139,8 +139,9 @@ if(PKG_KSPACE)
message(WARNING "Using KISS FFT with the CUDA backend of Kokkos may be sub-optimal.")
target_compile_definitions(lammps PRIVATE -DFFT_KOKKOS_KISS)
elseif(FFT_KOKKOS STREQUAL "CUFFT")
find_package(CUDAToolkit REQUIRED)
target_compile_definitions(lammps PRIVATE -DFFT_KOKKOS_CUFFT)
target_link_libraries(lammps PRIVATE cufft)
target_link_libraries(lammps PRIVATE CUDA::cufft)
endif()
elseif(Kokkos_ENABLE_HIP)
if(NOT ((FFT_KOKKOS STREQUAL "KISS") OR (FFT_KOKKOS STREQUAL "HIPFFT")))
Expand Down
15 changes: 15 additions & 0 deletions cmake/Modules/Packages/ML-IAP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ 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)
find_package(Python COMPONENTS NumPy REQUIRED)
Expand All @@ -36,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()
2 changes: 1 addition & 1 deletion cmake/presets/kokkos-cuda.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ get_filename_component(NVCC_WRAPPER_CMD ${CMAKE_CURRENT_SOURCE_DIR}/../lib/kokko
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)
set(FFT_KOKKOS "CUFFT" CACHE STRING "" FORCE)

# hide deprecation warnings temporarily for stable release
set(Kokkos_ENABLE_DEPRECATION_WARNINGS OFF CACHE BOOL "" FORCE)
2 changes: 1 addition & 1 deletion cmake/presets/kokkos-hip.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ 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)
set(FFT_KOKKOS "HIPFFT" CACHE STRING "" FORCE)

# hide deprecation warnings temporarily for stable release
set(Kokkos_ENABLE_DEPRECATION_WARNINGS OFF CACHE BOOL "" FORCE)
Expand Down
6 changes: 3 additions & 3 deletions doc/lammps.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.TH LAMMPS "1" "7 February 2024" "2024-02-07"
.TH LAMMPS "1" "17 April 2024" "2024-04-17"
.SH NAME
.B LAMMPS
\- Molecular Dynamics Simulator. Version 7 February 2024
\- Molecular Dynamics Simulator. Version 17 April 2024

.SH SYNOPSIS
.B lmp
Expand Down Expand Up @@ -297,7 +297,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
Expand Down
3 changes: 3 additions & 0 deletions doc/src/Bibliography.rst
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,9 @@ Bibliography
**(PLUMED)**
G.A. Tribello, M. Bonomi, D. Branduardi, C. Camilloni and G. Bussi, Comp. Phys. Comm 185, 604 (2014)

**(Pavlov)**
D Pavlov, V Galigerov, D Kolotinskii, V Nikolskiy, V Stegailov, International Journal of High Performance Computing Applications, 38, 34-49 (2024).

**(Paquay)**
Paquay and Kusters, Biophys. J., 110, 6, (2016). preprint available at `arXiv:1411.3019 <https://arxiv.org/abs/1411.3019/>`_.

Expand Down
14 changes: 4 additions & 10 deletions doc/src/Build_extras.rst
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,6 @@ They must be specified in uppercase.
* - A64FX
- HOST
- ARMv8.2 with SVE Support
* - WSM
- HOST
- Intel Westmere CPU (SSE 4.2)
* - SNB
- HOST
- Intel Sandy/Ivy Bridge CPU (AVX 1)
Expand Down Expand Up @@ -566,18 +563,15 @@ They must be specified in uppercase.
* - KNL
- HOST
- Intel Knights Landing Xeon Phi
* - BGQ
- HOST
- IBM Blue Gene/Q CPU
* - POWER7
- HOST
- IBM POWER7 CPU
* - POWER8
- HOST
- IBM POWER8 CPU
* - POWER9
- HOST
- IBM POWER9 CPU
* - RISCV_SG2042
- HOST
- SG2042 (RISC-V) CPU
* - KEPLER30
- GPU
- NVIDIA Kepler generation CC 3.0 GPU
Expand Down Expand Up @@ -666,7 +660,7 @@ They must be specified in uppercase.
- GPU
- Intel GPU Ponte Vecchio

This list was last updated for version 4.2 of the Kokkos library.
This list was last updated for version 4.3.0 of the Kokkos library.

.. tabs::

Expand Down
2 changes: 2 additions & 0 deletions doc/src/Commands_bond.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ OPT.
* :doc:`cosine/shift (o) <angle_cosine_shift>`
* :doc:`cosine/shift/exp (o) <angle_cosine_shift_exp>`
* :doc:`cosine/squared (o) <angle_cosine_squared>`
* :doc:`cosine/squared/restricted (o) <angle_cosine_squared_restricted>`
* :doc:`cross <angle_cross>`
* :doc:`dipole (o) <angle_dipole>`
* :doc:`fourier (o) <angle_fourier>`
Expand Down Expand Up @@ -127,6 +128,7 @@ OPT.
* :doc:`charmmfsw (k) <dihedral_charmm>`
* :doc:`class2 (ko) <dihedral_class2>`
* :doc:`cosine/shift/exp (o) <dihedral_cosine_shift_exp>`
* :doc:`cosine/squared/restricted <dihedral_cosine_squared_restricted>`
* :doc:`fourier (io) <dihedral_fourier>`
* :doc:`harmonic (iko) <dihedral_harmonic>`
* :doc:`helix (o) <dihedral_helix>`
Expand Down
4 changes: 4 additions & 0 deletions doc/src/Commands_compute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ KOKKOS, o = OPENMP, t = OPT.
* :doc:`pe/mol/tally <compute_tally>`
* :doc:`pe/tally <compute_tally>`
* :doc:`plasticity/atom <compute_plasticity_atom>`
* :doc:`pod/atom <compute_pod_atom>`
* :doc:`podd/atom <compute_pod_atom>`
* :doc:`pod/ldd <compute_pod_atom>`
* :doc:`pod/gdd <compute_pod_atom>`
* :doc:`pressure <compute_pressure>`
* :doc:`pressure/alchemy <compute_pressure_alchemy>`
* :doc:`pressure/uef <compute_pressure_uef>`
Expand Down
2 changes: 2 additions & 0 deletions doc/src/Commands_fix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ OPT.
* :doc:`controller <fix_controller>`
* :doc:`damping/cundall <fix_damping_cundall>`
* :doc:`deform (k) <fix_deform>`
* :doc:`deform/pressure <fix_deform_pressure>`
* :doc:`deposit <fix_deposit>`
* :doc:`dpd/energy (k) <fix_dpd_energy>`
* :doc:`drag <fix_drag>`
Expand Down Expand Up @@ -262,6 +263,7 @@ OPT.
* :doc:`wall/body/polyhedron <fix_wall_body_polyhedron>`
* :doc:`wall/colloid <fix_wall>`
* :doc:`wall/ees <fix_wall_ees>`
* :doc:`wall/flow (k) <fix_wall_flow>`
* :doc:`wall/gran (k) <fix_wall_gran>`
* :doc:`wall/gran/region <fix_wall_gran_region>`
* :doc:`wall/harmonic <fix_wall>`
Expand Down
2 changes: 2 additions & 0 deletions doc/src/Commands_pair.rst
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ OPT.
* :doc:`oxrna2/coaxstk <pair_oxrna2>`
* :doc:`pace (k) <pair_pace>`
* :doc:`pace/extrapolation (k) <pair_pace>`
* :doc:`pedone (o) <pair_pedone>`
* :doc:`pod <pair_pod>`
* :doc:`peri/eps <pair_peri>`
* :doc:`peri/lps (o) <pair_peri>`
Expand All @@ -256,6 +257,7 @@ OPT.
* :doc:`rann <pair_rann>`
* :doc:`reaxff (ko) <pair_reaxff>`
* :doc:`rebo (io) <pair_airebo>`
* :doc:`rebomos (o) <pair_rebomos>`
* :doc:`resquared (go) <pair_resquared>`
* :doc:`saip/metal (t) <pair_saip_metal>`
* :doc:`sdpd/taitwater/isothermal <pair_sdpd_taitwater_isothermal>`
Expand Down
47 changes: 42 additions & 5 deletions doc/src/Developer_updating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Available topics in mostly chronological order are:
- `Setting flags in the constructor`_
- `Rename of pack/unpack_comm() to pack/unpack_forward_comm()`_
- `Use ev_init() to initialize variables derived from eflag and vflag`_
- `Use utils::count_words() functions instead of atom->count_words()`_
- `Use utils::numeric() functions instead of force->numeric()`_
- `Use utils::open_potential() function to open potential files`_
- `Use symbolic Atom and AtomVec constants instead of numerical values`_
Expand Down Expand Up @@ -130,18 +131,54 @@ Not applying this change will not cause a compilation error, but
can lead to inconsistent behavior and incorrect tallying of
energy or virial.

Use utils::count_words() functions instead of atom->count_words()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. versionchanged:: 2Jun2020

The "count_words()" functions for parsing text have been moved from the
Atom class to the :doc:`utils namespace <Developer_utils>`. The
"count_words()" function in "utils" uses the Tokenizer class internally
to split a line into words and count them, thus it will not modify the
argument string as the function in the Atoms class did and thus had a
variant using a copy buffer. Unlike the old version, the new version
does not remove comments. For that you can use the
:cpp:func:`utils::trim_comment() function
<LAMMPS_NS::utils::trim_comment>` as shown in the example below.

Old:

.. code-block:: c++

nwords = atom->count_words(line);
int nwords = atom->count_words(buf);

New:

.. code-block:: c++

nwords = utils::count_words(line);
int nwords = utils::count_words(utils::trim_comment(buf));

.. seealso::

:cpp:func:`utils::count_words() <LAMMPS_NS::utils::count_words>`,
:cpp:func:`utils::trim_comments() <LAMMPS_NS::utils::trim_comments>`


Use utils::numeric() functions instead of force->numeric()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. versionchanged:: 18Sep2020

The "numeric()" conversion functions (including "inumeric()",
"bnumeric()", and "tnumeric()") have been moved from the Force class to
the utils namespace. Also they take an additional argument that selects
whether the ``Error::all()`` or ``Error::one()`` function should be
called in case of an error. The former should be used when *all* MPI
processes call the conversion function and the latter *must* be used
when they are called from only one or a subset of the MPI processes.
the :doc:`utils namespace <Developer_utils>`. Also they take an
additional argument that selects whether the ``Error::all()`` or
``Error::one()`` function should be called in case of an error. The
former should be used when *all* MPI processes call the conversion
function and the latter *must* be used when they are called from only
one or a subset of the MPI processes.

Old:

Expand Down
Loading