Skip to content

Commit 6aac895

Browse files
committed
Some updates
1 parent 064e9c7 commit 6aac895

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Docs/sphinx_documentation/source/FFT.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,16 @@ boundaries. Its implementation utilizes :cpp:`FFT::OpenBCSolver`, which can
113113
be used for implementing convolution based solvers with a user provided
114114
Green's function. If users want to extend the open BC solver to 2D or other
115115
types of Green's function, they could use :cpp:`FFT::PoissonOpenBC` as an
116-
example. Below is an example of solving the Poisson equation with open
116+
example. Below is an example of solving Poisson's equation with open
117117
boundaries.
118118

119119
.. highlight:: c++
120120

121121
::
122122

123123
Geometry geom(...);
124-
MultiFab soln(...); // soln & rhs can be either nodal or cell-centered
125-
MultiFab rhs(...);
124+
MultiFab soln(...); // soln can be either nodal or cell-centered.
125+
MultiFab rhs(...); // rhs must have the same index type as soln.
126126

127127
int ng = ...; // ng can be non-zero, if we want to compute potential
128128
// outside the domain.

Src/Base/AMReX_BoxArray.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,15 +2052,15 @@ BoxArray decompose (Box const& domain, int nboxes,
20522052
if (b.ok()) {
20532053
if (no_overlap) {
20542054
for (int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
2055-
if (ixtyp.nodeCentered() &&
2055+
if (ixtyp.nodeCentered(idim) &&
20562056
b.bigEnd(idim) == ccdomain.bigEnd(idim))
20572057
{
20582058
b.growHi(idim, 1);
20592059
}
20602060
}
20612061
} else {
20622062
for (int idim = 0; idim < AMREX_SPACEDIM; ++idim) {
2063-
if (ixtyp.nodeCentered()) {
2063+
if (ixtyp.nodeCentered(idim)) {
20642064
b.growHi(idim, 1);
20652065
}
20662066
}

Tests/FFT/OpenBC/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#include <AMReX_MultiFabUtil.H>
66
#include <AMReX_ParmParse.H>
77

8-
#include <AMReX_VisMF.H>
9-
108
using namespace amrex;
119

1210
int main (int argc, char* argv[])

0 commit comments

Comments
 (0)