From bcc16514b91ab32f7db6e6fa4432bbaba9f288ba Mon Sep 17 00:00:00 2001 From: Aaron Lattanzi Date: Wed, 31 Jul 2024 13:39:15 -0700 Subject: [PATCH] Codespell fix. --- Source/Diffusion/PBLModels.cpp | 8 ++++---- Source/Utils/PlaneAverage.H | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Diffusion/PBLModels.cpp b/Source/Diffusion/PBLModels.cpp index cd75b20b5..5fb9704e6 100644 --- a/Source/Diffusion/PBLModels.cpp +++ b/Source/Diffusion/PBLModels.cpp @@ -98,9 +98,9 @@ ComputeTurbulentViscosityPBL (const MultiFab& xvel, AMREX_ASSERT_WITH_MESSAGE(qvel(i,j,k) > 0.0, "QKE must have a positive value"); AMREX_ASSERT_WITH_MESSAGE(qvel_old(i,j,k) > 0.0, "Old QKE must have a positive value"); - // NOTE: This factor is to avoid an if statment that will break + // NOTE: This factor is to avoid an if statement that will break // the devicereducesum since all threads won't participate. - // This more performent than Gpu::Atomic::Add. + // This more performant than Gpu::Atomic::Add. Real fac = (sbx.contains(i,j,k)) ? 1.0 : 0.0; const Real Zval = Compute_Zrel_AtCellCenter(i,j,k,z_nd_arr); const Real dz = Compute_h_zeta_AtCellCenter(i,j,k,invCellSize,z_nd_arr); @@ -119,9 +119,9 @@ ComputeTurbulentViscosityPBL (const MultiFab& xvel, // Not multiplying by dz: its constant and would fall out when we divide qint0/qint1 anyway - // NOTE: This factor is to avoid an if statment that will break + // NOTE: This factor is to avoid an if statement that will break // the devicereducesum since all threads won't participate. - // This more performent than Gpu::Atomic::Add. + // This more performant than Gpu::Atomic::Add. Real fac = (sbx.contains(i,j,k)) ? 1.0 : 0.0; const Real Zval = gdata.ProbLo(2) + (k + 0.5)*gdata.CellSize(2); Gpu::deviceReduceSum(&qint(i,j,0,0), Zval*qvel(i,j,k)*fac, handler); diff --git a/Source/Utils/PlaneAverage.H b/Source/Utils/PlaneAverage.H index 619e8fa24..3fc902181 100644 --- a/Source/Utils/PlaneAverage.H +++ b/Source/Utils/PlaneAverage.H @@ -221,9 +221,9 @@ PlaneAverage::compute_averages (const IndexSelector& idxOp, const amrex::MultiFa for (int i = lbx.smallEnd(0); i <= lbx.bigEnd(0); ++i) { int ind = idxOp.getIndx(i, j, k) + offset; for (int n = 0; n < ncomp; ++n) { - // NOTE: This factor is to avoid an if statment that will break + // NOTE: This factor is to avoid an if statement that will break // the devicereducesum since all threads won't participate. - // This more performent than Gpu::Atomic::Add. + // This more performant than Gpu::Atomic::Add. amrex::Real fac = (mask_arr(i,j,k)) ? 1.0 : 0.0; amrex::Gpu::deviceReduceSum(&line_avg[ncomp * ind + n], fab_arr(i, j, k, n) * denom * fac, handler);