Update fix_efield_kokkos.cpp

This commit is contained in:
alphataubio
2024-10-09 18:32:38 -04:00
parent 315ac762cc
commit bc2267c9c8

View File

@ -106,7 +106,7 @@ void FixEfieldKokkos<DeviceType>::post_force(int vflag)
// update region if necessary
if (region) {
if (!utils::strmatch(region->style, "^block"))
if (!(utils::strmatch(region->style, "^block") || utils::strmatch(region->style, "^sphere")))
error->all(FLERR,"Cannot (yet) use {}-style region with fix efield/kk",region->style);
region->prematch();
DAT::tdual_int_1d k_match = DAT::tdual_int_1d("efield:k_match",nlocal);