Skip to content

Commit 27559e3

Browse files
committed
remove now redundant conversion of stencil
1 parent 36bd143 commit 27559e3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/Example_apr_filter.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,8 @@ int main(int argc, char **argv) {
5858
timer.start_timer("APR Convolution CUDA");
5959
auto access = apr.gpuAPRHelper();
6060
auto tree_access = apr.gpuTreeHelper();
61-
VectorData<float> stencil_vd;
62-
stencil_vd.resize(125); // stencil must be 5x5x5!
63-
std::copy(stencil.mesh.begin(), stencil.mesh.end(), stencil_vd.begin());
6461
ParticleData<float> tree_data;
65-
isotropic_convolve_555(access, tree_access, parts.data, output.data, stencil_vd, tree_data.data,
62+
isotropic_convolve_555(access, tree_access, parts.data, output.data, stencil, tree_data.data,
6663
/*reflect boundary*/true, /*downsample stencil*/true, /*normalize stencils*/true);
6764

6865
done = true;

0 commit comments

Comments
 (0)