From 7f89deb0c3b0ddec7bca44cdc291f9bda326ea52 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Fri, 17 Nov 2023 08:55:34 -0800 Subject: [PATCH] Fix typos --- Docs/sphinx_documentation/source/Debugging.rst | 2 +- Docs/sphinx_documentation/source/GPU.rst | 2 +- Src/Boundary/AMReX_EdgeFluxRegister.H | 4 ++-- Src/EB/AMReX_EB2_Level.H | 2 +- Src/LinearSolvers/MLMG/AMReX_MLNodeLaplacian_misc.cpp | 2 +- Src/LinearSolvers/MLMG/AMReX_MLNodeLaplacian_sync.cpp | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Docs/sphinx_documentation/source/Debugging.rst b/Docs/sphinx_documentation/source/Debugging.rst index 89eee31c2bd..aa5a9dcc9a3 100644 --- a/Docs/sphinx_documentation/source/Debugging.rst +++ b/Docs/sphinx_documentation/source/Debugging.rst @@ -24,7 +24,7 @@ handling of floating point exceptions: ``amrex.fpe_trap_invalid`` for NaNs, ``amrex.fpe_trap_zero`` for division by zero and ``amrex.fpe_trap_overflow`` for overflow. To more effectively trap the use of uninitialized values, AMReX also initializes ``FArrayBox``\ s in -``MulitFab``\ s and arrays allocated by ``bl_allocate`` to signaling NaNs when it is compiled +``MultiFab``\ s and arrays allocated by ``bl_allocate`` to signaling NaNs when it is compiled with ``TEST=TRUE`` or ``DEBUG=TRUE`` in GNU make, or with ``-DCMAKE_BUILD_TYPE=Debug`` in CMake. One can also control the setting for ``FArrayBox`` using the runtime parameter, ``fab.init_snan``. Note for Macs, M1 and M2 chips using Arm64 architecture are not able to trap division by zero. diff --git a/Docs/sphinx_documentation/source/GPU.rst b/Docs/sphinx_documentation/source/GPU.rst index 08297cb3e2a..c6dd57b9115 100644 --- a/Docs/sphinx_documentation/source/GPU.rst +++ b/Docs/sphinx_documentation/source/GPU.rst @@ -796,7 +796,7 @@ As another example, the following function computes the max- and 1-norm of a :: GpuTuple compute_norms (MultiFab const& mf, - iMulitiFab const& mask) + iMultiFab const& mask) { auto const& data_ma = mf.const_arrays(); auto const& mask_ma = mask.const_arrays(); diff --git a/Src/Boundary/AMReX_EdgeFluxRegister.H b/Src/Boundary/AMReX_EdgeFluxRegister.H index a26ec4a164e..46813c2246a 100644 --- a/Src/Boundary/AMReX_EdgeFluxRegister.H +++ b/Src/Boundary/AMReX_EdgeFluxRegister.H @@ -36,7 +36,7 @@ namespace amrex { * it's the user's responsibility to keep the FArrayBox arguments alive or * call Gpu::streamSynchronize() when necessary. * - * Because stagger grids are used, tiling could be very confusing. To avoid + * Because staggered grids are used, tiling could be very confusing. To avoid * confusion, this class assumes that tiling is not enabled for the MFIter * loop containing calls to CrseAdd and FineAdd. * @@ -48,7 +48,7 @@ namespace amrex { * We try to keep the interface simple by not providing overloads that * specify the component index. If the user's data does not start with * component 0, it can be worked around by creating alias FArrayBox and - * MulitiFab. + * MultiFab. */ class EdgeFluxRegister { diff --git a/Src/EB/AMReX_EB2_Level.H b/Src/EB/AMReX_EB2_Level.H index cd7f8fc6083..0c7614606f1 100644 --- a/Src/EB/AMReX_EB2_Level.H +++ b/Src/EB/AMReX_EB2_Level.H @@ -483,7 +483,7 @@ GShopLevel::define_fine (G const& gshop, const Geometry& geom, break; } else { auto ls = m_mgf.getLevelSet(); - // This is an alias MulitFab, therefore FillBoundary on it is fine. + // This is an alias MultiFab, therefore FillBoundary on it is fine. ls.FillBoundary(geom.periodicity()); if (amrex::Verbose() > 0) { if (nsmallcells) { diff --git a/Src/LinearSolvers/MLMG/AMReX_MLNodeLaplacian_misc.cpp b/Src/LinearSolvers/MLMG/AMReX_MLNodeLaplacian_misc.cpp index 4abf219e44f..9cb5ec880fa 100644 --- a/Src/LinearSolvers/MLMG/AMReX_MLNodeLaplacian_misc.cpp +++ b/Src/LinearSolvers/MLMG/AMReX_MLNodeLaplacian_misc.cpp @@ -895,7 +895,7 @@ MLNodeLaplacian::compRHS (const Vector& rhs, const Vector& // // Note that div vel we copmute on a coarse/fine nodes is not a // composite divergence. It has been restricted so that it is suitable - // as RHS for our geometric mulitgrid solver with a MG hirerachy + // as RHS for our geometric multigrid solver with a MG hirerachy // including multiple AMR levels. // // Also note that even for RAP, we do doubling at Nuemann boundary, diff --git a/Src/LinearSolvers/MLMG/AMReX_MLNodeLaplacian_sync.cpp b/Src/LinearSolvers/MLMG/AMReX_MLNodeLaplacian_sync.cpp index f8bff06337b..587f9508ef5 100644 --- a/Src/LinearSolvers/MLMG/AMReX_MLNodeLaplacian_sync.cpp +++ b/Src/LinearSolvers/MLMG/AMReX_MLNodeLaplacian_sync.cpp @@ -621,7 +621,7 @@ MLNodeLaplacian::reflux (int crse_amrlev, // // Note that the residue we copmute on a coarse/fine node is not a // composite divergence. It has been restricted so that it is suitable - // as RHS for our geometric mulitgrid solver with a MG hirerachy + // as RHS for our geometric multigrid solver with a MG hirerachy // including multiple AMR levels. //