cleanup
This commit is contained in:
@ -118,15 +118,11 @@ void FixWallRegionKokkos<DeviceType>::post_force(int vflag)
|
||||
copymode = 1;
|
||||
|
||||
if(auto *regionKK = dynamic_cast<RegBlockKokkos<DeviceType>*>(region)) {
|
||||
|
||||
FixWallRegionKokkosFunctor<DeviceType,class RegBlockKokkos<DeviceType>> functor(this,regionKK);
|
||||
Kokkos::parallel_reduce(nlocal,functor,result);
|
||||
|
||||
} else if (auto *regionKK = dynamic_cast<RegSphereKokkos<DeviceType>*>(region)){
|
||||
|
||||
FixWallRegionKokkosFunctor<DeviceType,class RegSphereKokkos<DeviceType>> functor(this,regionKK);
|
||||
Kokkos::parallel_reduce(nlocal,functor,result);
|
||||
|
||||
}
|
||||
|
||||
copymode = 0;
|
||||
|
||||
@ -31,9 +31,6 @@ FixStyle(wall/region/kk/host,FixWallRegionKokkos<LMPHostType>);
|
||||
|
||||
namespace LAMMPS_NS {
|
||||
|
||||
//template<class T>
|
||||
//struct TagFixWallRegionKokkos{};
|
||||
|
||||
template <class DeviceType>
|
||||
class FixWallRegionKokkos : public FixWallRegion {
|
||||
public:
|
||||
@ -49,12 +46,6 @@ class FixWallRegionKokkos : public FixWallRegion {
|
||||
KOKKOS_INLINE_FUNCTION
|
||||
void wall_particle(T, const int, value_type) const;
|
||||
|
||||
//template<class T>
|
||||
//KOKKOS_INLINE_FUNCTION
|
||||
//void operator()(TagFixWallRegionKokkos<T>(const int&, double&, double&, double&, double&) const;
|
||||
|
||||
//regionKK
|
||||
|
||||
private:
|
||||
|
||||
typename AT::t_x_array d_x;
|
||||
@ -110,7 +101,6 @@ struct FixWallRegionKokkosFunctor {
|
||||
void operator()(const int i, value_type result) const {
|
||||
c.wall_particle(regionKK,i,result);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@ -59,8 +59,6 @@ int RegBlockKokkos<DeviceType>::surface_kokkos(double x, double y, double z, dou
|
||||
double xs, ys, zs;
|
||||
double xnear[3], xorig[3];
|
||||
|
||||
utils::logmesg(lmp, " *** RegBlockKokkos<DeviceType>::surface\n");
|
||||
|
||||
if (dynamic) {
|
||||
xorig[0] = x; xorig[1] = y; xorig[2] = z;
|
||||
inverse_transform(x, y, z);
|
||||
|
||||
@ -64,8 +64,6 @@ int RegSphereKokkos<DeviceType>::surface_kokkos(double x, double y, double z, do
|
||||
double xs, ys, zs;
|
||||
double xnear[3], xorig[3];
|
||||
|
||||
utils::logmesg(lmp, " *** RegSphereKokkos<DeviceType>::surface\n");
|
||||
|
||||
if (dynamic) {
|
||||
xorig[0] = x; xorig[1] = y; xorig[2] = z;
|
||||
inverse_transform(x, y, z);
|
||||
|
||||
Reference in New Issue
Block a user