Skip to content

Commit

Permalink
try half neigh list flag (still use full neighbor list)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjohan committed Oct 10, 2024
1 parent df717ee commit e316519
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
- name: Run LAMMPS tests with Kokkos
run: |
export lmp="$(pwd)/lammps/build/lmp -k on t 4 -sf kk -pk kokkos newton on neigh full"
export lmp="$(pwd)/lammps/build/lmp -k on t 4 -sf kk -pk kokkos newton on neigh half"
cd tests
pytest test_lammps.py
Expand Down
2 changes: 1 addition & 1 deletion lammps_plugins/kokkos/pair_flare_kokkos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ void PairFLAREKokkos<DeviceType>::init_style()

// always request a full neighbor list

if (neighflag != FULL) {
if (neighflag != HALF) {
error->all(FLERR,"Cannot use chosen neighbor list style with pair flare/kk");
}

Expand Down
2 changes: 1 addition & 1 deletion lammps_plugins/pair_flare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void PairFLARE::coeff(int narg, char **arg) {
void PairFLARE::init_style() {
// Require newton on.
if (force->newton_pair == 0)
error->all(FLERR, "Pair style requires newton pair on");
error->all(FLERR, "Pair style flare requires newton pair on");

// Request a full neighbor list.
neighbor->add_request(this, NeighConst::REQ_FULL);
Expand Down

0 comments on commit e316519

Please sign in to comment.