Skip to content

Commit

Permalink
Use EmpCyl2d::ModelCyl pot and dpot functions for background
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin D. Weinberg committed Nov 19, 2024
1 parent cd0a276 commit 56e5ac5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cudaBiorthCyl.cu
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,8 @@ void BiorthCyl::initialize_cuda

for (int i=0; i<numr; i++) {
double r = xi_to_r(xmin + dx0*i);
auto [p, dr, d] = disk->background(r);
tt[0][i] = p;
tt[1][i] = dr;
tt[0][i] = disk->pot(r);
tt[1][i] = -disk->dpot(r);
}

// Allocate CUDA array in device memory (a one-dimension 'channel')
Expand Down

0 comments on commit 56e5ac5

Please sign in to comment.