Skip to content

Commit

Permalink
change neighflag requests, LAMMPS now requires 'newton on neigh half'…
Browse files Browse the repository at this point in the history
…. Still using full neigh list
  • Loading branch information
anjohan committed Oct 18, 2024
1 parent 10fc99b commit d5cb250
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pair_allegro_kokkos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,8 @@ void PairAllegroKokkos<nequip_mode>::init_style()
request->set_kokkos_device(std::is_same<DeviceType,LMPDeviceType>::value);

neighflag = this->lmp->kokkos->neighflag;
if (neighflag != FULL) {
this->error->all(FLERR,"Needs full neighbor list style with pair_allegro/kk");
if (neighflag == FULL) {
this->error->all(FLERR,"pair style allegro/kk requires the 'neigh half' flag due to 'newton on'");
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_python_repro.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_repro(deployed_model, kokkos: bool, openmp: bool):
else OMP_NUM_THREADS
),
"-pk",
"kokkos newton on neigh full",
"kokkos newton on neigh half",
]
if kokkos
else []
Expand Down

0 comments on commit d5cb250

Please sign in to comment.