From dbcbb4cdc56f6660428643f092a4cf4b6264ba3b Mon Sep 17 00:00:00 2001 From: Liwei Ji Date: Wed, 11 Mar 2026 09:33:54 -0400 Subject: [PATCH] TestNuPcsArdBH: rename pt to nu to reduce confusion --- TestNuPcsArdBH/src/testnupcsardbh.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TestNuPcsArdBH/src/testnupcsardbh.cxx b/TestNuPcsArdBH/src/testnupcsardbh.cxx index c2e7724..41bd324 100644 --- a/TestNuPcsArdBH/src/testnupcsardbh.cxx +++ b/TestNuPcsArdBH/src/testnupcsardbh.cxx @@ -50,13 +50,13 @@ extern "C" void TestNuPcsArdBH_InitParticles(CCTK_ARGUMENTS) { amrex::ParallelForRNG( np, [=] AMREX_GPU_DEVICE(int i, amrex::RandomEngine const &engine) noexcept { - const Real pt = 1.0; + const Real nu = 1.0; Real costh = Random(engine) * 2 - 1; Real ph = Random(engine) * (2 * M_PI); Real sinth = std::sqrt(amrex::max(Real(0), 1 - costh * costh)); - ptd.rdata(PIdx::px)[i] = pt * sinth * std::cos(ph); - ptd.rdata(PIdx::py)[i] = pt * sinth * std::sin(ph); - ptd.rdata(PIdx::pz)[i] = pt * costh; + ptd.rdata(PIdx::px)[i] = nu * sinth * std::cos(ph); + ptd.rdata(PIdx::py)[i] = nu * sinth * std::sin(ph); + ptd.rdata(PIdx::pz)[i] = nu * costh; ptd.idata(PIdxInt::species)[i] = 0; ptd.idata(PIdxInt::cell_id)[i] = 0; });