Skip to content

Commit 202fed9

Browse files
authored
Merge pull request #184 from AdaptiveParticles/apr_copy
set GenInfo pointers of access members in copy constructor
2 parents c5e4310 + f5700a3 commit 202fed9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/data_structures/APR/APR.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,16 @@ class APR {
196196
apr_initialized_random = apr2copy.apr_initialized_random;
197197
tree_initialized_random = apr2copy.tree_initialized_random;
198198

199+
linearAccess.genInfo = &aprInfo;
200+
linearAccessTree.genInfo = &treeInfo;
201+
apr_access.genInfo = &aprInfo;
202+
tree_access.genInfo = &treeInfo;
203+
204+
#ifdef APR_USE_CUDA
205+
gpuAccess.genInfo = &aprInfo;
206+
gpuTreeAccess.genInfo = &treeInfo;
207+
#endif
208+
199209
}
200210

201211
void initialize_linear(){

0 commit comments

Comments
 (0)