Fix bug in Kokkos minimize + fix deform

This commit is contained in:
Stan Gerald Moore
2023-11-13 14:53:45 -07:00
committed by Axel Kohlmeyer
parent 08eae40f9a
commit a716df7e59

View File

@ -113,7 +113,7 @@ void NPairKokkos<DeviceType,HALF,NEWTON,GHOST,TRI,SIZE>::copy_stencil_info()
NPair::copy_stencil_info();
nstencil = ns->nstencil;
if (ns->last_stencil != last_stencil_old) {
if (ns->last_stencil != last_stencil_old || ns->last_stencil == update->ntimestep) {
// copy stencil to device as it may have changed
last_stencil_old = ns->last_stencil;