Skip to content

Commit

Permalink
fix bug for reduced size of resp
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhihua Dong committed Feb 10, 2022
1 parent 015d6d9 commit 0c45533
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ImpactTransform.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ bool GenKokkos::ImpactTransform::transform_matrix()
Kokkos::deep_copy(sp_fs, sps_h );

auto sp_ts = KokkosArray::idft_cr(sp_fs,1) ;
if (fillsize < m_end_tick - m_start_tick )
Kokkos::resize(sp_ts, m_end_tick - m_start_tick, nimpact) ;
if (fillsize < sp_size )
Kokkos::resize(sp_ts, fillsize, nimpact) ;
resp_redu = KokkosArray::dft_rc(sp_ts,1) ;
Kokkos::resize(sp_ts,0,0) ;
Kokkos::resize(sp_fs,0,0) ;
Expand Down

0 comments on commit 0c45533

Please sign in to comment.