Skip to content

Commit

Permalink
fixing device copyable.
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinRayAngus committed Jul 9, 2024
1 parent 81e5946 commit 890f2eb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/Particles/Collision/BinaryCollision/BinaryCollision.H
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ public:
// Get the local density and temperature for this cell
amrex::ParticleReal n1 = 0.0;
amrex::ParticleReal T1 = 0.0;
if (binary_collision_functor.m_computeSpeciesDensities) { n1 = n1_vec[i_cell]; }
if (binary_collision_functor.m_computeSpeciesTemperatures) { T1 = T1_vec[i_cell]; }
if (binary_collision_functor.m_computeSpeciesDensities) { n1 = n1_in_each_cell[i_cell]; }
if (binary_collision_functor.m_computeSpeciesTemperatures) { T1 = T1_in_each_cell[i_cell]; }
//amrex::Print(0) << "JRA: i_cell = " << i_cell << ": n1 = " << n1 << ", T1 = " << T1 << std::endl;

// Call the function in order to perform collisions
Expand Down Expand Up @@ -712,12 +712,12 @@ public:
amrex::ParticleReal n1 = 0.0, n2 = 0.0;
amrex::ParticleReal T1 = 0.0, T2 = 0.0;
if (binary_collision_functor.m_computeSpeciesDensities) {
n1 = n1_vec[i_cell];
n2 = n2_vec[i_cell];
n1 = n1_in_each_cell[i_cell];
n2 = n2_in_each_cell[i_cell];
}
if (binary_collision_functor.m_computeSpeciesTemperatures) {
T1 = T1_vec[i_cell];
T2 = T2_vec[i_cell];
T1 = T1_in_each_cell[i_cell];
T2 = T2_in_each_cell[i_cell];
}

// Call the function in order to perform collisions
Expand Down

0 comments on commit 890f2eb

Please sign in to comment.