Skip to content

Commit

Permalink
fixing type issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinRayAngus committed Jul 13, 2024
1 parent 5d8b240 commit 167e699
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Source/Particles/Collision/BinaryCollision/BinaryCollision.H
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,10 @@ public:
T1_vec.resize(n_cells);
T2_vec.resize(n_cells);
}
amrex::Real* AMREX_RESTRICT n1_in_each_cell = n1_vec.dataPtr();
amrex::Real* AMREX_RESTRICT n2_in_each_cell = n2_vec.dataPtr();
amrex::Real* AMREX_RESTRICT T1_in_each_cell = T1_vec.dataPtr();
amrex::Real* AMREX_RESTRICT T2_in_each_cell = T2_vec.dataPtr();
amrex::ParticleReal* AMREX_RESTRICT n1_in_each_cell = n1_vec.dataPtr();
amrex::ParticleReal* AMREX_RESTRICT n2_in_each_cell = n2_vec.dataPtr();
amrex::ParticleReal* AMREX_RESTRICT T1_in_each_cell = T1_vec.dataPtr();
amrex::ParticleReal* AMREX_RESTRICT T2_in_each_cell = T2_vec.dataPtr();

// Loop over cells
amrex::ParallelForRNG( n_cells,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void UpdateMomentumPerezElastic (
}

// Compute s12 with sigma limited by sigma_max where mfp = atomic spacing)
const T_PR sigma_eff = amrex::min(MathConst::pi*b0*b0*lnLmd,sigma_max);
const T_PR sigma_eff = amrex::min(T_PR(MathConst::pi)*b0*b0*lnLmd,sigma_max);
s12 = sigma_eff * n12 * dt * vrelst * g1s*g2s/(g1*g2);

}
Expand Down

0 comments on commit 167e699

Please sign in to comment.