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/AmrCore/AMReX_AmrCore.cpp b/Src/AmrCore/AMReX_AmrCore.cpp index ed0cd5d1020..b27532dc0d8 100644 --- a/Src/AmrCore/AMReX_AmrCore.cpp +++ b/Src/AmrCore/AMReX_AmrCore.cpp @@ -1,6 +1,5 @@ #include -#include #ifdef AMREX_PARTICLES #include diff --git a/Src/Base/AMReX_BaseFab.H b/Src/Base/AMReX_BaseFab.H index 26d45077d9e..b1224f14008 100644 --- a/Src/Base/AMReX_BaseFab.H +++ b/Src/Base/AMReX_BaseFab.H @@ -542,7 +542,7 @@ public: int numcomp = 1) noexcept; /** * \brief As above, except that the destination Box is specified, - * but the source Box is taken to the equal to the source + * but the source Box is taken to the equal to the destination * Box, and all components of the destination BaseFab are * copied. */ 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. //