Skip to content

Commit 8755645

Browse files
authored
NodeABecLaplacian: Reuse (#3579)
Add reuse capability to NodeABecLaplacian. More specifically, we need to average down coefficients again.
1 parent e470d33 commit 8755645

16 files changed

+37
-16
lines changed

.codespell-ignore-words

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ parms
2727
pres
2828
ptd
2929
recuse
30+
shft
3031
siz
3132
structed
3233
te

Src/AmrCore/AMReX_AmrMesh.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public:
170170
void SetGridEff (Real eff) noexcept { grid_eff = eff; }
171171
void SetNProper (int n) noexcept { n_proper = n; }
172172

173-
//! Set ref_ratio would require rebuiling Geometry objects.
173+
//! Set ref_ratio would require rebuilding Geometry objects.
174174

175175
void SetFinestLevel (int new_finest_level) noexcept { finest_level = new_finest_level; }
176176
void SetDistributionMap (int lev, const DistributionMapping& dmap_in) noexcept;

Src/Base/AMReX_CoordSys.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public:
5454
BL_ASSERT(c_sys != undef); return (c_sys == RZ);
5555
}
5656

57-
//! Is CoordType == cartesion?
57+
//! Is CoordType == cartesian?
5858
[[nodiscard]] bool IsCartesian () const noexcept {
5959
BL_ASSERT(c_sys != undef); return (c_sys == cartesian);
6060
}

Src/Base/AMReX_FACopyDescriptor.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ FabArrayCopyDescriptor<FAB>::CollectData ()
698698
amrex::The_Arena()->free(md_recv_data);
699699
}
700700

701-
// Wait and upack data
701+
// Wait and unpack data
702702
if (N_rcvs > 0)
703703
{
704704
Vector<MPI_Status> stats(N_rcvs);

Src/Base/AMReX_FArrayBox.H

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class FArrayBox;
2323
* only want to write out 32 bit FABs.
2424
*
2525
* With the exception of the enumeration constants, this class is
26-
* primarily for FArrayBox implementors; i.e. user's shouldn't
26+
* primarily for FArrayBox implementers; i.e. user's shouldn't
2727
* call any of the member functions in this class directly.
2828
*/
2929

@@ -241,7 +241,7 @@ public:
241241

242242
/**
243243
* \brief Construct an initial FAB with the data space allocated but
244-
* not inititialized. ncomp is the number of components
244+
* not initialized. ncomp is the number of components
245245
* (variables) at each data point in the Box.
246246
*/
247247
explicit FArrayBox (const Box& b,
@@ -409,7 +409,7 @@ public:
409409
/**
410410
* \brief Set the FABio::Format in the program.
411411
* This is the preferred way to set the output format
412-
* in "new" FABs. When desiging new programs, this should
412+
* in "new" FABs. When designing new programs, this should
413413
* be the only function that needs to be called in order
414414
* to set the format.
415415
*/

Src/Base/AMReX_IArrayBox.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public:
5858

5959
/**
6060
* \brief Construct an initial FAB with the data space allocated but
61-
* not inititialized. ncomp is the number of components
61+
* not initialized. ncomp is the number of components
6262
* (variables) at each data point in the Box.
6363
*/
6464
explicit IArrayBox (const Box& b,

Src/Base/AMReX_NonLocalBC.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ struct MultiBlockCommMetaData : FabArrayBase::CommMetaData {
264264
// [concept.FabProjection]
265265
//
266266

267-
//! \brief This type trait tests if a type P is a projetion for FAB.
267+
//! \brief This type trait tests if a type P is a projection for FAB.
268268
template <typename P, typename FAB>
269269
struct IsFabProjection
270270
: IsCallableR<typename FAB::value_type, P, Array4<const typename FAB::value_type>, Dim3, int>

Src/EB/AMReX_EB_StateRedistribute.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ MLStateRedistribute ( Box const& bx, int ncomp,
176176

177177
if (domain_per_grown.contains(IntVect(AMREX_D_DECL(r,s,t))))
178178
{
179-
// Initialize so that the slope stencil goes from -1:1 in each diretion
179+
// Initialize so that the slope stencil goes from -1:1 in each direction
180180
int nx = 1; int ny = 1; int nz = 1;
181181

182182
// Do we have enough extent in each coordinate direction to use the 3x3x3 stencil
@@ -511,7 +511,7 @@ StateRedistribute ( Box const& bx, int ncomp,
511511
bool extdir_khi = (d_bcrec_ptr[n].hi(2) == amrex::BCType::ext_dir ||
512512
d_bcrec_ptr[n].hi(2) == amrex::BCType::hoextrap);
513513
#endif
514-
// Initialize so that the slope stencil goes from -1:1 in each diretion
514+
// Initialize so that the slope stencil goes from -1:1 in each direction
515515
int nx = 1; int ny = 1; int nz = 1;
516516

517517
// Do we have enough extent in each coordinate direction to use the 3x3x3 stencil

Src/Extern/HYPRE/AMReX_HypreNodeLap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ HypreNodeLap::HypreNodeLap (const BoxArray& grids_, const DistributionMapping& d
4747
Int nnodes_proc = fill_local_node_id();
4848

4949
// At this point, local_node_id stores the ids local to each box.
50-
// nnodes_grid stroes the number of nodes in each box. nnodes_proc is
50+
// nnodes_grid stores the number of nodes in each box. nnodes_proc is
5151
// the number of nodes on this MPI process. If a nodal is invalid, its
5252
// id is invalid (i.e., a very negative number). Note that the data
5353
// type of local_node_id is int, not HYPRE_Int for performance on GPU.

Src/Extern/HYPRE/AMReX_HypreSolver.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ HypreSolver<MSS>::HypreSolver (Vector<IndexType> const& a_index_type,
220220
fill_local_id(a_marker);
221221

222222
// At this point, m_local_id stores the ids local to each box.
223-
// m_nrows_grid stroes the number of unique points in each box.
223+
// m_nrows_grid stores the number of unique points in each box.
224224
// m_nrows_proc is the number of rowss for all variables on this MPI
225225
// process. If a point is invalid, its id is invalid (i.e., a very
226226
// negative number). Note that the data type of local_node_id is int,

0 commit comments

Comments
 (0)