Skip to content

Commit

Permalink
Merge pull request #184 from AdaptiveParticles/apr_copy
Browse files Browse the repository at this point in the history
set GenInfo pointers of access members in copy constructor
  • Loading branch information
joeljonsson authored Nov 11, 2023
2 parents c5e4310 + f5700a3 commit 202fed9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/data_structures/APR/APR.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,16 @@ class APR {
apr_initialized_random = apr2copy.apr_initialized_random;
tree_initialized_random = apr2copy.tree_initialized_random;

linearAccess.genInfo = &aprInfo;
linearAccessTree.genInfo = &treeInfo;
apr_access.genInfo = &aprInfo;
tree_access.genInfo = &treeInfo;

#ifdef APR_USE_CUDA
gpuAccess.genInfo = &aprInfo;
gpuTreeAccess.genInfo = &treeInfo;
#endif

}

void initialize_linear(){
Expand Down

0 comments on commit 202fed9

Please sign in to comment.