Skip to content

Commit

Permalink
Fix typos (AMReX-Codes#3746)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang authored Feb 6, 2024
1 parent fb2f925 commit a8bc0bf
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Docs/sphinx_documentation/source/Debugging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Docs/sphinx_documentation/source/GPU.rst
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ As another example, the following function computes the max- and 1-norm of a
::

GpuTuple<Real,Real> 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();
Expand Down
1 change: 0 additions & 1 deletion Src/AmrCore/AMReX_AmrCore.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

#include <AMReX_AmrCore.H>
#include <AMReX_Print.H>

#ifdef AMREX_PARTICLES
#include <AMReX_AmrParGDB.H>
Expand Down
2 changes: 1 addition & 1 deletion Src/Base/AMReX_BaseFab.H
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion Src/EB/AMReX_EB2_Level.H
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ GShopLevel<G>::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) {
Expand Down
2 changes: 1 addition & 1 deletion Src/LinearSolvers/MLMG/AMReX_MLNodeLaplacian_misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ MLNodeLaplacian::compRHS (const Vector<MultiFab*>& rhs, const Vector<MultiFab*>&
//
// 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,
Expand Down
2 changes: 1 addition & 1 deletion Src/LinearSolvers/MLMG/AMReX_MLNodeLaplacian_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//

Expand Down

0 comments on commit a8bc0bf

Please sign in to comment.