Commit 43cfa10e authored by Stan Moore's avatar Stan Moore
Browse files

Reduce memory churn in pair_multi_lucy_rx_kokkos

parent 6f24c58c
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -180,10 +180,12 @@ void PairMultiLucyRXKokkos<DeviceType>::compute_style(int eflag_in, int vflag_in

  {
    const int ntotal = nlocal + nghost;
    if (ntotal > d_mixWtSite1.dimension_0()) {
      d_mixWtSite1old = typename AT::t_float_1d("PairMultiLucyRX::mixWtSite1old",ntotal);
      d_mixWtSite2old = typename AT::t_float_1d("PairMultiLucyRX::mixWtSite2old",ntotal);
      d_mixWtSite1 = typename AT::t_float_1d("PairMultiLucyRX::mixWtSite1",ntotal);
      d_mixWtSite2 = typename AT::t_float_1d("PairMultiLucyRX::mixWtSite2",ntotal);
    }

    Kokkos::parallel_for(Kokkos::RangePolicy<DeviceType, TagPairMultiLucyRXgetMixingWeights>(0,ntotal),*this);
  }