From cf45505823ddf85f5a7fb83992d2c0d91a7dd80f Mon Sep 17 00:00:00 2001 From: WeiqunZhang Date: Thu, 22 Aug 2024 22:49:18 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20main=20from=20@=20AMReX-Codes/?= =?UTF-8?q?amrex@12002e7283284281503ed4ae5e79ae02e006b897=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../amrex.pdf | Bin 8794601 -> 8794601 bytes .../AMReX__BndryRegister_8H_source.html | 2 +- .../AMReX__FabArrayUtility_8H_source.html | 2 +- .../doxygen/AMReX__FabArray_8H_source.html | 2 +- .../doxygen/AMReX__FabSet_8H_source.html | 2 +- .../doxygen/AMReX__MLPoisson_8H_source.html | 2 +- .../doxygen/AMReX__MultiCutFab_8H_source.html | 2 +- .../AMReX__MultiFabUtil_8H_source.html | 2 +- .../doxygen/AMReX__MultiFab_8H_source.html | 2 +- ...X__NeighborParticlesGPUImpl_8H_source.html | 4 +- .../AMReX__NeighborParticlesI_8H_source.html | 6 +- .../doxygen/AMReX__Periodicity_8H_source.html | 8 +- .../classamrex_1_1Periodicity-members.html | 2 +- .../doxygen/classamrex_1_1Periodicity.html | 11 +-- .../doxygen/classamrex_1_1Periodicity.js | 2 +- amrex/docs_html/doxygen/functions_func_s.html | 2 +- amrex/docs_html/doxygen/functions_s.html | 2 +- amrex/docs_html/doxygen/navtreeindex54.js | 2 +- amrex/docs_html/doxygen/search/all_13.js | 2 +- .../docs_html/doxygen/search/functions_13.js | 2 +- .../doxygen/AMReX__FabArrayBase_8cpp.xml | 10 +-- .../doxygen/AMReX__MultiFabUtil_8cpp.xml | 2 +- .../AMReX__NeighborParticlesGPUImpl_8H.xml | 2 +- .../doxygen/AMReX__NeighborParticlesI_8H.xml | 4 +- .../doxygen/AMReX__Periodicity_8H.xml | 2 +- .../doxygen/AMReX__Periodicity_8cpp.xml | 79 +++++++++--------- .../doxygen/amrex-doxygen-web.tag.xml | 4 +- .../doxygen/classamrex_1_1Periodicity.xml | 17 ++-- amrex/docs_xml/doxygen/index.xml | 2 +- 29 files changed, 95 insertions(+), 86 deletions(-) diff --git a/amrex/docs_html/_downloads/008eb6dbfab802633dff40122ece848c/amrex.pdf b/amrex/docs_html/_downloads/008eb6dbfab802633dff40122ece848c/amrex.pdf index 78767d228e7ac211f3f2b2e24c8e14e39774b81f..1682990e01b5f0648b6150fcdeb18321c00d663a 100644 GIT binary patch delta 687 zcmajaHBtis0EOWJLU4D21cC(5Zfvt?vK!pp-QC^w02DC85oqYr<_H{sDhx#qK+g{s zp!ll)HP8R~tnuURMUH!V_1F2dKHtN-?mNir8?ZfIl_lPI4AZ z91(~_6rvG>Si~V72}nc|l97T`q#+$TWFQk+$c7#{$b|uU$VUMRVMGy%QG!yGp&S)3 zL4XJ|EU>}`J0v*p`?C^Ns74KHQ3oenP@uw%dNiOBO=w07TG57fbf6Pm=td8E(T9Ev zU=TwX#t23+hH*?_5>uGQ3}!Khc`RTNOIXGVRxBGrA`P)Z+?N=TyOJc5F+PzEjf;W6%fG_;uj{pQB z2*C(JD8dkq2t*NFcS diff --git a/amrex/docs_html/doxygen/AMReX__BndryRegister_8H_source.html b/amrex/docs_html/doxygen/AMReX__BndryRegister_8H_source.html index ded587026a..4263607a08 100644 --- a/amrex/docs_html/doxygen/AMReX__BndryRegister_8H_source.html +++ b/amrex/docs_html/doxygen/AMReX__BndryRegister_8H_source.html @@ -464,7 +464,7 @@
An Iterator over the Orientation of Faces of a Box.
Definition: AMReX_Orientation.H:135
Encapsulation of the Orientation of the Faces of a Box.
Definition: AMReX_Orientation.H:29
This provides length of period for periodic domains. 0 means it is not periodic in that direction....
Definition: AMReX_Periodicity.H:17
-
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:49
+
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:52
bool IOProcessor() noexcept
Is this CPU the I/O Processor? To get the rank number, call IOProcessorNumber()
Definition: AMReX_ParallelDescriptor.H:275
static int f(amrex::Real t, N_Vector y_data, N_Vector y_rhs, void *user_data)
Definition: AMReX_SundialsIntegrator.H:44
Definition: AMReX_Amr.cpp:49
diff --git a/amrex/docs_html/doxygen/AMReX__FabArrayUtility_8H_source.html b/amrex/docs_html/doxygen/AMReX__FabArrayUtility_8H_source.html index 1cb17b6bce..057b30b622 100644 --- a/amrex/docs_html/doxygen/AMReX__FabArrayUtility_8H_source.html +++ b/amrex/docs_html/doxygen/AMReX__FabArrayUtility_8H_source.html @@ -1959,7 +1959,7 @@
Definition: AMReX_PODVector.H:246
T * data() noexcept
Definition: AMReX_PODVector.H:593
This provides length of period for periodic domains. 0 means it is not periodic in that direction....
Definition: AMReX_Periodicity.H:17
-
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:49
+
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:52
Print & SetPrecision(int p)
Definition: AMReX_Print.H:89
#define abs(x)
Definition: complex-type.h:85
@ FAB
Definition: AMReX_AmrvisConstants.H:86
diff --git a/amrex/docs_html/doxygen/AMReX__FabArray_8H_source.html b/amrex/docs_html/doxygen/AMReX__FabArray_8H_source.html index c1e65ce059..eb2e2cbb7b 100644 --- a/amrex/docs_html/doxygen/AMReX__FabArray_8H_source.html +++ b/amrex/docs_html/doxygen/AMReX__FabArray_8H_source.html @@ -3720,7 +3720,7 @@
int index() const noexcept
The index into the underlying BoxArray of the current FAB.
Definition: AMReX_MFIter.H:144
int LocalIndex() const noexcept
Return local index into the vector of fab pointers, m_fabs_v When AllBoxes is on, local_index_map is ...
Definition: AMReX_MFIter.H:159
This provides length of period for periodic domains. 0 means it is not periodic in that direction....
Definition: AMReX_Periodicity.H:17
-
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:49
+
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:52
bool isAnyPeriodic() const noexcept
Definition: AMReX_Periodicity.H:22
bool isPeriodic(int dir) const noexcept
Definition: AMReX_Periodicity.H:26
diff --git a/amrex/docs_html/doxygen/AMReX__FabSet_8H_source.html b/amrex/docs_html/doxygen/AMReX__FabSet_8H_source.html index 557ef46b46..80d99ea777 100644 --- a/amrex/docs_html/doxygen/AMReX__FabSet_8H_source.html +++ b/amrex/docs_html/doxygen/AMReX__FabSet_8H_source.html @@ -531,7 +531,7 @@
Definition: AMReX_MFIter.H:57
bool isValid() const noexcept
Is the iterator valid i.e. is it associated with a FAB?
Definition: AMReX_MFIter.H:141
This provides length of period for periodic domains. 0 means it is not periodic in that direction....
Definition: AMReX_Periodicity.H:17
-
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:49
+
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:52
static void Read(FabArray< FArrayBox > &mf, const std::string &name, const char *faHeader=nullptr, int coordinatorProc=ParallelDescriptor::IOProcessorNumber(), int allow_empty_mf=0)
Read a FabArray<FArrayBox> from disk written using VisMF::Write(). If the FabArray<FArrayBox> fafab h...
Definition: AMReX_VisMF.cpp:1496
static Long Write(const FabArray< FArrayBox > &mf, const std::string &name, VisMF::How how=NFiles, bool set_ghost=false)
Write a FabArray<FArrayBox> to disk in a "smart" way. Returns the total number of bytes written on th...
Definition: AMReX_VisMF.cpp:935
static void AsyncWrite(const FabArray< FArrayBox > &mf, const std::string &mf_name, bool valid_cells_only=false)
Definition: AMReX_VisMF.cpp:2224
diff --git a/amrex/docs_html/doxygen/AMReX__MLPoisson_8H_source.html b/amrex/docs_html/doxygen/AMReX__MLPoisson_8H_source.html index bee1e9e461..3d0941bead 100644 --- a/amrex/docs_html/doxygen/AMReX__MLPoisson_8H_source.html +++ b/amrex/docs_html/doxygen/AMReX__MLPoisson_8H_source.html @@ -1357,7 +1357,7 @@
Encapsulation of the Orientation of the Faces of a Box.
Definition: AMReX_Orientation.H:29
AMREX_GPU_HOST_DEVICE int coordDir() const noexcept
Returns the coordinate direction.
Definition: AMReX_Orientation.H:83
AMREX_GPU_HOST_DEVICE bool isLow() const noexcept
Returns true if Orientation is low.
Definition: AMReX_Orientation.H:89
-
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:49
+
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:52
A Real vector in SpaceDim-dimensional space.
Definition: AMReX_RealVect.H:32
This class is a thin wrapper around std::vector. Unlike vector, Vector::operator[] provides bound che...
Definition: AMReX_Vector.H:27
void streamSynchronize() noexcept
Definition: AMReX_GpuDevice.H:237
diff --git a/amrex/docs_html/doxygen/AMReX__MultiCutFab_8H_source.html b/amrex/docs_html/doxygen/AMReX__MultiCutFab_8H_source.html index 8fc139fd07..8b14fb6819 100644 --- a/amrex/docs_html/doxygen/AMReX__MultiCutFab_8H_source.html +++ b/amrex/docs_html/doxygen/AMReX__MultiCutFab_8H_source.html @@ -301,7 +301,7 @@
int nGrow() const noexcept
Definition: AMReX_MultiCutFab.H:136
A collection (stored as an array) of FArrayBox objects.
Definition: AMReX_MultiFab.H:38
This provides length of period for periodic domains. 0 means it is not periodic in that direction....
Definition: AMReX_Periodicity.H:17
-
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:49
+
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:52
Definition: AMReX_Amr.cpp:49
MakeType
Definition: AMReX_MakeType.H:7
diff --git a/amrex/docs_html/doxygen/AMReX__MultiFabUtil_8H_source.html b/amrex/docs_html/doxygen/AMReX__MultiFabUtil_8H_source.html index d9cde09463..7246641182 100644 --- a/amrex/docs_html/doxygen/AMReX__MultiFabUtil_8H_source.html +++ b/amrex/docs_html/doxygen/AMReX__MultiFabUtil_8H_source.html @@ -1118,7 +1118,7 @@
iterator begin() noexcept
Definition: AMReX_PODVector.H:601
iterator end() noexcept
Definition: AMReX_PODVector.H:605
This provides length of period for periodic domains. 0 means it is not periodic in that direction....
Definition: AMReX_Periodicity.H:17
-
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:49
+
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:52
This class is a thin wrapper around std::vector. Unlike vector, Vector::operator[] provides bound che...
Definition: AMReX_Vector.H:27
Definition: AMReX_iMultiFab.H:32
@ FAB
Definition: AMReX_AmrvisConstants.H:86
diff --git a/amrex/docs_html/doxygen/AMReX__MultiFab_8H_source.html b/amrex/docs_html/doxygen/AMReX__MultiFab_8H_source.html index bf286b8f55..78020ad12c 100644 --- a/amrex/docs_html/doxygen/AMReX__MultiFab_8H_source.html +++ b/amrex/docs_html/doxygen/AMReX__MultiFab_8H_source.html @@ -569,7 +569,7 @@
void OverrideSync(const iMultiFab &msk, const Periodicity &period=Periodicity::NonPeriodic())
Sync up nodal data with owners overriding non-owners.
Definition: AMReX_MultiFab.cpp:1617
Real sum_unique(int comp=0, bool local=false, const Periodicity &period=Periodicity::NonPeriodic()) const
Same as sum with local =false, but for non-cell-centered data, this only adds non-unique points that ...
Definition: AMReX_MultiFab.cpp:1310
This provides length of period for periodic domains. 0 means it is not periodic in that direction....
Definition: AMReX_Periodicity.H:17
-
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:49
+
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:52
Definition: AMReX_iMultiFab.H:32
Definition: AMReX_Amr.cpp:49
diff --git a/amrex/docs_html/doxygen/AMReX__NeighborParticlesGPUImpl_8H_source.html b/amrex/docs_html/doxygen/AMReX__NeighborParticlesGPUImpl_8H_source.html index c9b0eb569e..aaabf88797 100644 --- a/amrex/docs_html/doxygen/AMReX__NeighborParticlesGPUImpl_8H_source.html +++ b/amrex/docs_html/doxygen/AMReX__NeighborParticlesGPUImpl_8H_source.html @@ -165,7 +165,7 @@
64  ! DistributionMapping::SameRefs(m_neighbor_mask_ptr->DistributionMap(), dmap))
65  {
66  const Periodicity& periodicity = geom.periodicity();
-
67  const std::vector<IntVect>& pshifts = periodicity.shiftIntVect();
+
67  const std::vector<IntVect>& pshifts = periodicity.shiftIntVect();
68 
69  for (MFIter mfi(ba, dmap); mfi.isValid(); ++mfi)
70  {
@@ -437,7 +437,7 @@
T * dataPtr() noexcept
Definition: AMReX_PODVector.H:597
void push_back(const T &a_value)
Definition: AMReX_PODVector.H:556
This provides length of period for periodic domains. 0 means it is not periodic in that direction....
Definition: AMReX_Periodicity.H:17
-
std::vector< IntVect > shiftIntVect() const
Definition: AMReX_Periodicity.cpp:8
+
std::vector< IntVect > shiftIntVect(IntVect const &nghost=IntVect(0)) const
Definition: AMReX_Periodicity.cpp:8
void copyAsync(HostToDevice, InIter begin, InIter end, OutIter result) noexcept
A host-to-device copy routine. Note this is just a wrapper around memcpy, so it assumes contiguous st...
Definition: AMReX_GpuContainers.H:233
OutIter exclusive_scan(InIter begin, InIter end, OutIter result)
Definition: AMReX_Scan.H:1377
static constexpr HostToDevice hostToDevice
Definition: AMReX_GpuContainers.H:98
diff --git a/amrex/docs_html/doxygen/AMReX__NeighborParticlesI_8H_source.html b/amrex/docs_html/doxygen/AMReX__NeighborParticlesI_8H_source.html index 45d6b365d5..7af2057d8f 100644 --- a/amrex/docs_html/doxygen/AMReX__NeighborParticlesI_8H_source.html +++ b/amrex/docs_html/doxygen/AMReX__NeighborParticlesI_8H_source.html @@ -381,7 +381,7 @@
280  }
281  box.grow(computeRefFac(0, lev)*m_num_neighbor_cells);
282  const Periodicity& periodicity = this->Geom(lev).periodicity();
-
283  const std::vector<IntVect>& pshifts = periodicity.shiftIntVect();
+
283  const std::vector<IntVect>& pshifts = periodicity.shiftIntVect();
284  const BoxArray& ba = this->ParticleBoxArray(lev);
285 
286  for (auto const& pshift : pshifts)
@@ -704,7 +704,7 @@
603  {
604  IntVect ref_fac = computeRefFac(0, lev);
605  const Periodicity& periodicity = this->Geom(lev).periodicity();
-
606  const std::vector<IntVect>& pshifts = periodicity.shiftIntVect();
+
606  const std::vector<IntVect>& pshifts = periodicity.shiftIntVect();
607  const BoxArray& ba = this->ParticleBoxArray(lev);
608  const IntVect& iv = this->Index(p, lev);
609  for (auto const& pshift : pshifts)
@@ -1304,8 +1304,8 @@
Definition: AMReX_ParIter.H:113
A distributed container for Particles sorted onto the levels, grids, and tiles of a block-structured ...
Definition: AMReX_ParticleContainer.H:144
This provides length of period for periodic domains. 0 means it is not periodic in that direction....
Definition: AMReX_Periodicity.H:17
+
std::vector< IntVect > shiftIntVect(IntVect const &nghost=IntVect(0)) const
Definition: AMReX_Periodicity.cpp:8
bool isAnyPeriodic() const noexcept
Definition: AMReX_Periodicity.H:22
-
std::vector< IntVect > shiftIntVect() const
Definition: AMReX_Periodicity.cpp:8
bool isPeriodic(int dir) const noexcept
Definition: AMReX_Periodicity.H:26
A Box with real dimensions. A RealBox is OK iff volume >= 0.
Definition: AMReX_RealBox.H:21
This class is a thin wrapper around std::vector. Unlike vector, Vector::operator[] provides bound che...
Definition: AMReX_Vector.H:27
diff --git a/amrex/docs_html/doxygen/AMReX__Periodicity_8H_source.html b/amrex/docs_html/doxygen/AMReX__Periodicity_8H_source.html index 3a2e076eac..bc41d0cfab 100644 --- a/amrex/docs_html/doxygen/AMReX__Periodicity_8H_source.html +++ b/amrex/docs_html/doxygen/AMReX__Periodicity_8H_source.html @@ -127,7 +127,7 @@
31 
33  [[nodiscard]] Box Domain () const noexcept;
34 
-
35  [[nodiscard]] std::vector<IntVect> shiftIntVect () const;
+
35  [[nodiscard]] std::vector<IntVect> shiftIntVect (IntVect const& nghost = IntVect(0)) const;
36 
37  static const Periodicity& NonPeriodic () noexcept;
38 
@@ -145,10 +145,10 @@
This provides length of period for periodic domains. 0 means it is not periodic in that direction....
Definition: AMReX_Periodicity.H:17
bool isAllPeriodic() const noexcept
Definition: AMReX_Periodicity.H:24
-
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:49
-
Box Domain() const noexcept
Cell-centered domain Box "infinitely" long in non-periodic directions.
Definition: AMReX_Periodicity.cpp:33
+
static const Periodicity & NonPeriodic() noexcept
Definition: AMReX_Periodicity.cpp:52
+
std::vector< IntVect > shiftIntVect(IntVect const &nghost=IntVect(0)) const
Definition: AMReX_Periodicity.cpp:8
+
Box Domain() const noexcept
Cell-centered domain Box "infinitely" long in non-periodic directions.
Definition: AMReX_Periodicity.cpp:36
bool isAnyPeriodic() const noexcept
Definition: AMReX_Periodicity.H:22
-
std::vector< IntVect > shiftIntVect() const
Definition: AMReX_Periodicity.cpp:8
bool operator==(const Periodicity &rhs) const noexcept
Definition: AMReX_Periodicity.H:29
bool isPeriodic(int dir) const noexcept
Definition: AMReX_Periodicity.H:26
Periodicity() noexcept
Definition: AMReX_Periodicity.H:19
diff --git a/amrex/docs_html/doxygen/classamrex_1_1Periodicity-members.html b/amrex/docs_html/doxygen/classamrex_1_1Periodicity-members.html index 3bfe0b3d62..78d24c8a0e 100644 --- a/amrex/docs_html/doxygen/classamrex_1_1Periodicity-members.html +++ b/amrex/docs_html/doxygen/classamrex_1_1Periodicity-members.html @@ -111,7 +111,7 @@ periodamrex::Periodicityprivate Periodicity() noexceptamrex::Periodicityinline Periodicity(const IntVect &v) noexceptamrex::Periodicityinlineexplicit - shiftIntVect() constamrex::Periodicity + shiftIntVect(IntVect const &nghost=IntVect(0)) constamrex::Periodicity diff --git a/amrex/docs_html/doxygen/classamrex_1_1Periodicity.html b/amrex/docs_html/doxygen/classamrex_1_1Periodicity.html index 29ded39d9b..4af02ee569 100644 --- a/amrex/docs_html/doxygen/classamrex_1_1Periodicity.html +++ b/amrex/docs_html/doxygen/classamrex_1_1Periodicity.html @@ -127,8 +127,8 @@ Box Domain () const noexcept  Cell-centered domain Box "infinitely" long in non-periodic directions. More...
  -std::vector< IntVectshiftIntVect () const -  +std::vector< IntVectshiftIntVect (IntVect const &nghost=IntVect(0)) const +  @@ -349,8 +349,8 @@

-

◆ shiftIntVect()

+ +

◆ shiftIntVect()

@@ -358,7 +358,8 @@

std::vector< IntVect > amrex::Periodicity::shiftIntVect

- + +

Static Public Member Functions

()IntVect const & nghost = IntVect(0)) const
diff --git a/amrex/docs_html/doxygen/classamrex_1_1Periodicity.js b/amrex/docs_html/doxygen/classamrex_1_1Periodicity.js index b91d38f1f1..83492f8057 100644 --- a/amrex/docs_html/doxygen/classamrex_1_1Periodicity.js +++ b/amrex/docs_html/doxygen/classamrex_1_1Periodicity.js @@ -8,6 +8,6 @@ var classamrex_1_1Periodicity = [ "isPeriodic", "classamrex_1_1Periodicity.html#ab263804d56d1280b7ece30109482ecee", null ], [ "NonPeriodic", "classamrex_1_1Periodicity.html#a194e779bf59d1700830a35cecb5271a5", null ], [ "operator==", "classamrex_1_1Periodicity.html#aa8f0c58703d74ff60d7fde603725e54c", null ], - [ "shiftIntVect", "classamrex_1_1Periodicity.html#aa00f72c117ab2cfa93707b4dfce502c6", null ], + [ "shiftIntVect", "classamrex_1_1Periodicity.html#a3a1f48c918140f80aac690cc10d20cdb", null ], [ "period", "classamrex_1_1Periodicity.html#ace8592786e8de8bb2dc6ac31716adc7e", null ] ]; \ No newline at end of file diff --git a/amrex/docs_html/doxygen/functions_func_s.html b/amrex/docs_html/doxygen/functions_func_s.html index 5da7d89ed6..887882bc4a 100644 --- a/amrex/docs_html/doxygen/functions_func_s.html +++ b/amrex/docs_html/doxygen/functions_func_s.html @@ -1236,7 +1236,7 @@

- s -

    , amrex::BoxND< dim >
  • shiftIntVect() -: amrex::Periodicity +: amrex::Periodicity
  • ShMem() : amrex::FabArray< FAB >::ShMem diff --git a/amrex/docs_html/doxygen/functions_s.html b/amrex/docs_html/doxygen/functions_s.html index 5e7e0dc250..c3c98861f6 100644 --- a/amrex/docs_html/doxygen/functions_s.html +++ b/amrex/docs_html/doxygen/functions_s.html @@ -1329,7 +1329,7 @@

    - s -

      , amrex::BoxND< dim >
    • shiftIntVect() -: amrex::Periodicity +: amrex::Periodicity
    • shmem : amrex::FabArray< FAB > diff --git a/amrex/docs_html/doxygen/navtreeindex54.js b/amrex/docs_html/doxygen/navtreeindex54.js index ce28042604..5e675873b7 100644 --- a/amrex/docs_html/doxygen/navtreeindex54.js +++ b/amrex/docs_html/doxygen/navtreeindex54.js @@ -169,9 +169,9 @@ var NAVTREEINDEX54 = "classamrex_1_1Periodicity.html":[3,0,0,209], "classamrex_1_1Periodicity.html#a0c514a0dab32786f1285b20cdfd327a7":[3,0,0,209,3], "classamrex_1_1Periodicity.html#a194e779bf59d1700830a35cecb5271a5":[3,0,0,209,6], +"classamrex_1_1Periodicity.html#a3a1f48c918140f80aac690cc10d20cdb":[3,0,0,209,8], "classamrex_1_1Periodicity.html#a41d52e3a7bfcb2c174c80a6a14ad5e53":[3,0,0,209,2], "classamrex_1_1Periodicity.html#a6f3139a13faee557751404e44ab09042":[3,0,0,209,4], -"classamrex_1_1Periodicity.html#aa00f72c117ab2cfa93707b4dfce502c6":[3,0,0,209,8], "classamrex_1_1Periodicity.html#aa8f0c58703d74ff60d7fde603725e54c":[3,0,0,209,7], "classamrex_1_1Periodicity.html#ab263804d56d1280b7ece30109482ecee":[3,0,0,209,5], "classamrex_1_1Periodicity.html#ab912d518e6c2289d18ca26e791920ea7":[3,0,0,209,0], diff --git a/amrex/docs_html/doxygen/search/all_13.js b/amrex/docs_html/doxygen/search/all_13.js index 3feca59afd..06c5e94107 100644 --- a/amrex/docs_html/doxygen/search/all_13.js +++ b/amrex/docs_html/doxygen/search/all_13.js @@ -455,7 +455,7 @@ var searchData= ['shift_5fbound_5fi3_8153',['shift_bound_i3',['../AMReX__mempool__mod_8F90.html#a29e17f13c7452069bf3d97542e49408d',1,'AMReX_mempool_mod.F90']]], ['shift_5fhasher_8154',['shift_hasher',['../structamrex_1_1IntVectND_1_1shift__hasher.html',1,'amrex::IntVectND']]], ['shifthalf_8155',['shiftHalf',['../classamrex_1_1BoxND.html#a2c7beffbdccef5a4cdc19d6bc4287933',1,'amrex::BoxND::shiftHalf(int dir, int num_halfs) noexcept'],['../classamrex_1_1BoxND.html#a98d51e03bab4fb60543b6799b160cc1b',1,'amrex::BoxND::shiftHalf(const IntVectND< dim > &iv) noexcept'],['../classamrex_1_1BoxList.html#abf9737ea9ecdf7a57adbe55f6215219f',1,'amrex::BoxList::shiftHalf(int dir, int num_halfs)'],['../classamrex_1_1BoxList.html#a094d0a9c81730b5f3cade719d4b0b30d',1,'amrex::BoxList::shiftHalf(const IntVect &iv)'],['../classamrex_1_1BoxDomain.html#abf9737ea9ecdf7a57adbe55f6215219f',1,'amrex::BoxDomain::shiftHalf(int dir, int num_halfs)'],['../classamrex_1_1BoxDomain.html#a094d0a9c81730b5f3cade719d4b0b30d',1,'amrex::BoxDomain::shiftHalf(const IntVect &iv)'],['../classamrex_1_1BaseFab.html#a9ceff0f63f7f998ae97b1b6f8a7e3646',1,'amrex::BaseFab::shiftHalf(const IntVect &v) noexcept'],['../classamrex_1_1BaseFab.html#acbd52c543782ab54cde88fa60852f563',1,'amrex::BaseFab::shiftHalf(int dir, int n_cell) noexcept']]], - ['shiftintvect_8156',['shiftIntVect',['../classamrex_1_1Periodicity.html#aa00f72c117ab2cfa93707b4dfce502c6',1,'amrex::Periodicity']]], + ['shiftintvect_8156',['shiftIntVect',['../classamrex_1_1Periodicity.html#a3a1f48c918140f80aac690cc10d20cdb',1,'amrex::Periodicity']]], ['shmem_8157',['ShMem',['../structamrex_1_1FabArray_1_1ShMem.html',1,'amrex::FabArray']]], ['shmem_8158',['shmem',['../classamrex_1_1FabArray.html#abc3985ed98ddaf530bde81076c0295de',1,'amrex::FabArray']]], ['shmem_8159',['ShMem',['../structamrex_1_1FabArray_1_1ShMem.html#aec97898947982708e087ae84c0efc3d0',1,'amrex::FabArray::ShMem::ShMem(const ShMem &)=delete'],['../structamrex_1_1FabArray_1_1ShMem.html#a2f41c14e40bc2a252cde7b96a797e6c2',1,'amrex::FabArray::ShMem::ShMem(ShMem &&rhs) noexcept'],['../structamrex_1_1FabArray_1_1ShMem.html#a331615980ef894be2c619a757c5a8637',1,'amrex::FabArray::ShMem::ShMem() noexcept=default']]], diff --git a/amrex/docs_html/doxygen/search/functions_13.js b/amrex/docs_html/doxygen/search/functions_13.js index 9db4bc9b3e..1433c7b232 100644 --- a/amrex/docs_html/doxygen/search/functions_13.js +++ b/amrex/docs_html/doxygen/search/functions_13.js @@ -396,7 +396,7 @@ var searchData= ['shift_5fbound_5fi2_15388',['shift_bound_i2',['../AMReX__mempool__mod_8F90.html#ad025dafea56683b0485d755583879dac',1,'AMReX_mempool_mod.F90']]], ['shift_5fbound_5fi3_15389',['shift_bound_i3',['../AMReX__mempool__mod_8F90.html#a29e17f13c7452069bf3d97542e49408d',1,'AMReX_mempool_mod.F90']]], ['shifthalf_15390',['shiftHalf',['../classamrex_1_1BaseFab.html#a9ceff0f63f7f998ae97b1b6f8a7e3646',1,'amrex::BaseFab::shiftHalf(const IntVect &v) noexcept'],['../classamrex_1_1BaseFab.html#acbd52c543782ab54cde88fa60852f563',1,'amrex::BaseFab::shiftHalf(int dir, int n_cell) noexcept'],['../classamrex_1_1BoxND.html#a2c7beffbdccef5a4cdc19d6bc4287933',1,'amrex::BoxND::shiftHalf(int dir, int num_halfs) noexcept'],['../classamrex_1_1BoxND.html#a98d51e03bab4fb60543b6799b160cc1b',1,'amrex::BoxND::shiftHalf(const IntVectND< dim > &iv) noexcept'],['../classamrex_1_1BoxList.html#abf9737ea9ecdf7a57adbe55f6215219f',1,'amrex::BoxList::shiftHalf(int dir, int num_halfs)'],['../classamrex_1_1BoxList.html#a094d0a9c81730b5f3cade719d4b0b30d',1,'amrex::BoxList::shiftHalf(const IntVect &iv)'],['../classamrex_1_1BoxDomain.html#abf9737ea9ecdf7a57adbe55f6215219f',1,'amrex::BoxDomain::shiftHalf(int dir, int num_halfs)'],['../classamrex_1_1BoxDomain.html#a094d0a9c81730b5f3cade719d4b0b30d',1,'amrex::BoxDomain::shiftHalf(const IntVect &iv)']]], - ['shiftintvect_15391',['shiftIntVect',['../classamrex_1_1Periodicity.html#aa00f72c117ab2cfa93707b4dfce502c6',1,'amrex::Periodicity']]], + ['shiftintvect_15391',['shiftIntVect',['../classamrex_1_1Periodicity.html#a3a1f48c918140f80aac690cc10d20cdb',1,'amrex::Periodicity']]], ['shmem_15392',['ShMem',['../structamrex_1_1FabArray_1_1ShMem.html#a331615980ef894be2c619a757c5a8637',1,'amrex::FabArray::ShMem::ShMem() noexcept=default'],['../structamrex_1_1FabArray_1_1ShMem.html#aec97898947982708e087ae84c0efc3d0',1,'amrex::FabArray::ShMem::ShMem(const ShMem &)=delete'],['../structamrex_1_1FabArray_1_1ShMem.html#a2f41c14e40bc2a252cde7b96a797e6c2',1,'amrex::FabArray::ShMem::ShMem(ShMem &&rhs) noexcept']]], ['shortside_15393',['shortside',['../classamrex_1_1BoxND.html#a33ac9526578098ef82fa22be71df97d4',1,'amrex::BoxND::shortside() const noexcept'],['../classamrex_1_1BoxND.html#a282f2fcab95cf4712028d18879750b1b',1,'amrex::BoxND::shortside(int &dir) const noexcept']]], ['shrink_15394',['shrink',['../classamrex_1_1IntVectND.html#a16efedd99e0e7955ea22de1aaaca9bdc',1,'amrex::IntVectND::shrink()'],['../classamrex_1_1IndexTypeND.html#a70701ddcfcce504862d87258329effdd',1,'amrex::IndexTypeND::shrink()'],['../classamrex_1_1BoxND.html#a501147796c8e876353f01b5fd6b6feb7',1,'amrex::BoxND::shrink()']]], diff --git a/amrex/docs_xml/doxygen/AMReX__FabArrayBase_8cpp.xml b/amrex/docs_xml/doxygen/AMReX__FabArrayBase_8cpp.xml index bdae4831cb..516f05573d 100644 --- a/amrex/docs_xml/doxygen/AMReX__FabArrayBase_8cpp.xml +++ b/amrex/docs_xml/doxygen/AMReX__FabArrayBase_8cpp.xml @@ -2533,7 +2533,7 @@ std::vector<std::pair<int,Box>>isects; -conststd::vector<IntVect>&pshifts=m_period.shiftIntVect(); +conststd::vector<IntVect>&pshifts=m_period.shiftIntVect(ng_dst); auto&send_tags=*m_SndTags; @@ -2860,7 +2860,7 @@ constIntVectng_ng=nghost-1; std::vector<std::pair<int,Box>>isects; -conststd::vector<IntVect>&pshifts=period.shiftIntVect(); +conststd::vector<IntVect>&pshifts=period.shiftIntVect(nghost); auto&send_tags=*cmd.m_SndTags; @@ -3089,7 +3089,7 @@ constIndexType&typ=ba.ixType(); std::vector<std::pair<int,Box>>isects; -conststd::vector<IntVect>&pshifts=m_period.shiftIntVect(); +conststd::vector<IntVect>&pshifts=m_period.shiftIntVect(ng); auto&send_tags=*m_SndTags; @@ -3241,7 +3241,7 @@ std::vector<std::pair<int,Box>>isects2; std::vector<std::tuple<int,Box,IntVect>>isects3; -autoconst&pshifts=m_period.shiftIntVect(); +autoconst&pshifts=m_period.shiftIntVect(m_ngrow); for(autoconst&shft:pshifts){ ba.intersections(gbx+shft,isects2); for(autoconst&is2:isects2){ @@ -3332,7 +3332,7 @@ #ifdefAMREX_USE_MPI if(ParallelDescriptor::NProcs()>1){ -conststd::vector<IntVect>&pshifts=m_period.shiftIntVect(); +conststd::vector<IntVect>&pshifts=m_period.shiftIntVect(m_ngrow); std::vector<std::pair<int,Box>>isects; std::set<int>my_receiver; diff --git a/amrex/docs_xml/doxygen/AMReX__MultiFabUtil_8cpp.xml b/amrex/docs_xml/doxygen/AMReX__MultiFabUtil_8cpp.xml index 02f2865e64..1580bb7395 100644 --- a/amrex/docs_xml/doxygen/AMReX__MultiFabUtil_8cpp.xml +++ b/amrex/docs_xml/doxygen/AMReX__MultiFabUtil_8cpp.xml @@ -2742,7 +2742,7 @@ amrex::ignore_unused(run_on_gpu,tags); constBoxArray&cfba=amrex::coarsen(fba,ratio); -conststd::vector<IntVect>&pshifts=period.shiftIntVect(); +conststd::vector<IntVect>&pshifts=period.shiftIntVect(); #ifdefAMREX_USE_OMP #pragmaompparallelif(!run_on_gpu) #endif diff --git a/amrex/docs_xml/doxygen/AMReX__NeighborParticlesGPUImpl_8H.xml b/amrex/docs_xml/doxygen/AMReX__NeighborParticlesGPUImpl_8H.xml index f6dd48643d..d06b10c14c 100644 --- a/amrex/docs_xml/doxygen/AMReX__NeighborParticlesGPUImpl_8H.xml +++ b/amrex/docs_xml/doxygen/AMReX__NeighborParticlesGPUImpl_8H.xml @@ -99,7 +99,7 @@ !DistributionMapping::SameRefs(m_neighbor_mask_ptr->DistributionMap(),dmap)) { constPeriodicity&periodicity=geom.periodicity(); -conststd::vector<IntVect>&pshifts=periodicity.shiftIntVect(); +conststd::vector<IntVect>&pshifts=periodicity.shiftIntVect(); for(MFItermfi(ba,dmap);mfi.isValid();++mfi) { diff --git a/amrex/docs_xml/doxygen/AMReX__NeighborParticlesI_8H.xml b/amrex/docs_xml/doxygen/AMReX__NeighborParticlesI_8H.xml index d611a897c5..df6136d9a0 100644 --- a/amrex/docs_xml/doxygen/AMReX__NeighborParticlesI_8H.xml +++ b/amrex/docs_xml/doxygen/AMReX__NeighborParticlesI_8H.xml @@ -302,7 +302,7 @@ } box.grow(computeRefFac(0,lev)*m_num_neighbor_cells); constPeriodicity&periodicity=this->Geom(lev).periodicity(); -conststd::vector<IntVect>&pshifts=periodicity.shiftIntVect(); +conststd::vector<IntVect>&pshifts=periodicity.shiftIntVect(); constBoxArray&ba=this->ParticleBoxArray(lev); for(autoconst&pshift:pshifts) @@ -625,7 +625,7 @@ { IntVectref_fac=computeRefFac(0,lev); constPeriodicity&periodicity=this->Geom(lev).periodicity(); -conststd::vector<IntVect>&pshifts=periodicity.shiftIntVect(); +conststd::vector<IntVect>&pshifts=periodicity.shiftIntVect(); constBoxArray&ba=this->ParticleBoxArray(lev); constIntVect&iv=this->Index(p,lev); for(autoconst&pshift:pshifts) diff --git a/amrex/docs_xml/doxygen/AMReX__Periodicity_8H.xml b/amrex/docs_xml/doxygen/AMReX__Periodicity_8H.xml index b4971a77d7..2d7b806145 100644 --- a/amrex/docs_xml/doxygen/AMReX__Periodicity_8H.xml +++ b/amrex/docs_xml/doxygen/AMReX__Periodicity_8H.xml @@ -4463,7 +4463,7 @@ [[nodiscard]]BoxDomain()constnoexcept; -[[nodiscard]]std::vector<IntVect>shiftIntVect()const; +[[nodiscard]]std::vector<IntVect>shiftIntVect(IntVectconst&nghost=IntVect(0))const; staticconstPeriodicity&NonPeriodic()noexcept; diff --git a/amrex/docs_xml/doxygen/AMReX__Periodicity_8cpp.xml b/amrex/docs_xml/doxygen/AMReX__Periodicity_8cpp.xml index aa8e55ee8f..582f2f7139 100644 --- a/amrex/docs_xml/doxygen/AMReX__Periodicity_8cpp.xml +++ b/amrex/docs_xml/doxygen/AMReX__Periodicity_8cpp.xml @@ -527,7 +527,7 @@ namespaceamrex{ std::vector<IntVect> -Periodicity::shiftIntVect()const +Periodicity::shiftIntVect(IntVectconst&nghost)const { std::vector<IntVect>r; @@ -537,44 +537,47 @@ for(inti=0;i<AMREX_SPACEDIM;++i){ if(isPeriodic(i)){ per[i]=jmp[i]=period[i]; -} -} - -for(inti=-per[0];i<=per[0];i+=jmp[0]){ -for(intj=-per[1];j<=per[1];j+=jmp[1]){ -for(intk=-per[2];k<=per[2];k+=jmp[2]){ -r.emplace_back(AMREX_D_DECL(i,j,k)); -} -} -} - -returnr; -} +while(per[i]<nghost[i]){ +per[i]+=period[i]; +} +} +} + +for(inti=-per[0];i<=per[0];i+=jmp[0]){ +for(intj=-per[1];j<=per[1];j+=jmp[1]){ +for(intk=-per[2];k<=per[2];k+=jmp[2]){ +r.emplace_back(AMREX_D_DECL(i,j,k)); +} +} +} -Box -Periodicity::Domain()constnoexcept -{ -Boxpdomain; -for(inti=0;i<AMREX_SPACEDIM;++i){ -if(isPeriodic(i)){ -pdomain.setSmall(i,0); -pdomain.setBig(i,period[i]-1); -}else{ -pdomain.setSmall(i,std::numeric_limits<int>::min()); -pdomain.setBig(i,std::numeric_limits<int>::max()-1);//sothatitcanbenodalized. -} -} -returnpdomain; -} - -constPeriodicity& -Periodicity::NonPeriodic()noexcept -{ -staticconstPeriodicitynp(IntVect(AMREX_D_DECL(0,0,0))); -returnnp; -} - -} +returnr; +} + +Box +Periodicity::Domain()constnoexcept +{ +Boxpdomain; +for(inti=0;i<AMREX_SPACEDIM;++i){ +if(isPeriodic(i)){ +pdomain.setSmall(i,0); +pdomain.setBig(i,period[i]-1); +}else{ +pdomain.setSmall(i,std::numeric_limits<int>::min()); +pdomain.setBig(i,std::numeric_limits<int>::max()-1);//sothatitcanbenodalized. +} +} +returnpdomain; +} + +constPeriodicity& +Periodicity::NonPeriodic()noexcept +{ +staticconstPeriodicitynp(IntVect(AMREX_D_DECL(0,0,0))); +returnnp; +} + +} diff --git a/amrex/docs_xml/doxygen/amrex-doxygen-web.tag.xml b/amrex/docs_xml/doxygen/amrex-doxygen-web.tag.xml index e16dec12ed..9a2ffbafcb 100644 --- a/amrex/docs_xml/doxygen/amrex-doxygen-web.tag.xml +++ b/amrex/docs_xml/doxygen/amrex-doxygen-web.tag.xml @@ -145294,8 +145294,8 @@ std::vector< IntVect > shiftIntVect classamrex_1_1Periodicity.html - aa00f72c117ab2cfa93707b4dfce502c6 - () const + a3a1f48c918140f80aac690cc10d20cdb + (IntVect const &nghost=IntVect(0)) const static const Periodicity & diff --git a/amrex/docs_xml/doxygen/classamrex_1_1Periodicity.xml b/amrex/docs_xml/doxygen/classamrex_1_1Periodicity.xml index 7f0c91ec5d..445ca054fc 100644 --- a/amrex/docs_xml/doxygen/classamrex_1_1Periodicity.xml +++ b/amrex/docs_xml/doxygen/classamrex_1_1Periodicity.xml @@ -121,20 +121,25 @@ - + - + std::vector< IntVect > std::vector< IntVect > amrex::Periodicity::shiftIntVect - () const + (IntVect const &nghost=IntVect(0)) const shiftIntVect + + IntVect const & + nghost + IntVect(0) + - + @@ -149,7 +154,7 @@ - + @@ -181,7 +186,7 @@ amrex::Periodicityperiod amrex::PeriodicityPeriodicity amrex::PeriodicityPeriodicity - amrex::PeriodicityshiftIntVect + amrex::PeriodicityshiftIntVect diff --git a/amrex/docs_xml/doxygen/index.xml b/amrex/docs_xml/doxygen/index.xml index 98d7271b25..6511cb8fd8 100644 --- a/amrex/docs_xml/doxygen/index.xml +++ b/amrex/docs_xml/doxygen/index.xml @@ -9995,7 +9995,7 @@ isPeriodic operator== Domain - shiftIntVect + shiftIntVect NonPeriodic amrex::VisMF::PersistentIFStream