Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_NeighborParticles.H
Go to the documentation of this file.
1#ifndef AMREX_NEIGHBORPARTICLES_H_
2#define AMREX_NEIGHBORPARTICLES_H_
3#include <AMReX_Config.H>
4
5#include <AMReX_MultiFab.H>
7#include <AMReX_Particles.H>
10#include <AMReX_OpenMP.H>
11#include <AMReX_ParticleTile.H>
13
14namespace amrex {
15
21
33template <int NStructReal, int NStructInt, int NArrayReal=0, int NArrayInt=0>
34class NeighborParticleContainer // NOLINT(cppcoreguidelines-virtual-class-destructor) // clang-tidy seems wrong.
35 : public ParticleContainer<NStructReal, NStructInt, NArrayReal, NArrayInt>
36{
37public:
42private:
43 struct MaskComps
44 {
45 enum {
46 grid = 0,
47 tile,
48 level
49 };
50 };
51
52 struct NeighborIndexMap {
53 int dst_level;
54 int dst_grid;
55 int dst_tile;
56 int dst_index;
57 int src_level;
58 int src_grid;
59 int src_tile;
60 int src_index;
61 int thread_num;
62
63 NeighborIndexMap(int dlevel, int dgrid, int dtile, int dindex,
64 int slevel, int sgrid, int stile, int sindex, int tnum)
65 : dst_level(dlevel), dst_grid(dgrid), dst_tile(dtile), dst_index(dindex),
66 src_level(slevel), src_grid(sgrid), src_tile(stile), src_index(sindex),
67 thread_num(tnum)
68 {}
69
70 friend std::ostream& operator<< (std::ostream& os, const NeighborIndexMap& nim)
71 {
72 os << nim.dst_level << " " << nim.dst_grid << " " << nim.dst_tile << " " << nim.dst_index
73 << nim.src_level << " " << nim.src_grid << " " << nim.src_tile << " " << nim.src_index
74 << nim.thread_num;
75 if (!os.good()) {
76 amrex::Error("operator<<(ostream&, const NeighborIndexMap& nim) failed");
77 }
78 return os;
79 }
80
81 };
82
83 struct NeighborCopyTag {
84 int level = -1;
85 int grid = -1;
86 int tile = -1;
87 int src_index = 0;
88 int dst_index = 0;
89 IntVect periodic_shift = IntVect(0);
90
91 NeighborCopyTag () = default;
92
93 NeighborCopyTag (int a_level, int a_grid, int a_tile) :
94 level(a_level), grid(a_grid), tile(a_tile)
95 {}
96
97 bool operator< (const NeighborCopyTag& other) const {
98 if (level != other.level) { return level < other.level; }
99 if (grid != other.grid) { return grid < other.grid; }
100 if (tile != other.tile) { return tile < other.tile; }
102 if (periodic_shift[0] != other.periodic_shift[0])
103 return periodic_shift[0] < other.periodic_shift[0];,
104 if (periodic_shift[1] != other.periodic_shift[1])
105 return periodic_shift[1] < other.periodic_shift[1];,
106 if (periodic_shift[2] != other.periodic_shift[2])
107 return periodic_shift[2] < other.periodic_shift[2];
108 )
109 return false;
110 }
111
112 bool operator== (const NeighborCopyTag& other) const {
113 return (level == other.level) && (grid == other.grid) && (tile == other.tile)
115 && (periodic_shift[0] == other.periodic_shift[0]),
116 && (periodic_shift[1] == other.periodic_shift[1]),
117 && (periodic_shift[2] == other.periodic_shift[2])
118 );
119 }
120
121 bool operator!= (const NeighborCopyTag& other) const
122 {
123 return !operator==(other);
124 }
125
126 friend std::ostream& operator<< (std::ostream& os, const NeighborCopyTag& tag)
127 {
128 os << tag.level << " " << tag.grid << " " << tag.tile << " " << tag.periodic_shift;
129 if (!os.good()) {
130 amrex::Error("operator<<(ostream&, const NeighborCopyTag&) failed");
131 }
132 return os;
133 }
134 };
135
136 struct InverseCopyTag
137 {
138 int src_grid;
139 int src_tile;
140 int src_index;
141 int src_level;
142 };
143
144 friend std::ostream& operator<< (std::ostream& os, const InverseCopyTag& tag)
145 {
146 os << tag.src_level << " " << tag.src_grid << " " << tag.src_tile << " " << tag.src_index;
147 if (!os.good()) {
148 amrex::Error("operator<<(ostream&, const InverseCopyTag&) failed");
149 }
150 return os;
151 }
152
153 struct NeighborCommTag {
154
155 NeighborCommTag (int pid, int lid, int gid, int tid)
156 : proc_id(pid), level_id(lid), grid_id(gid), tile_id(tid)
157 {}
158
159 int proc_id;
160 int level_id;
161 int grid_id;
162 int tile_id;
163
164 bool operator< (const NeighborCommTag& other) const {
165 return (proc_id < other.proc_id ||
166 (proc_id == other.proc_id &&
167 grid_id < other.grid_id) ||
168 (proc_id == other.proc_id &&
169 grid_id == other.grid_id &&
170 tile_id < other.tile_id) ||
171 (proc_id == other.proc_id &&
172 grid_id == other.grid_id &&
173 tile_id == other.tile_id &&
174 level_id < other.level_id));
175 }
176
177 bool operator== (const NeighborCommTag& other) const {
178 return ( (proc_id == other.proc_id) &&
179 (grid_id == other.grid_id) &&
180 (tile_id == other.tile_id) &&
181 (level_id == other.level_id));
182 }
183
184 friend std::ostream& operator<< (std::ostream& os, const NeighborCommTag& tag)
185 {
186 os << tag.proc_id << " " << tag.level_id << " " << tag.grid_id << " " << tag.tile_id;
187 if (!os.good()) {
188 amrex::Error("operator<<(ostream&, const NeighborCommTag&) failed");
189 }
190 return os;
191 }
192 };
193
194public:
195
197 using PairIndex = std::pair<int, int>;
198 using NeighborCommMap = std::map<NeighborCommTag, Vector<char> >;
203
204 NeighborParticleContainer (ParGDBBase* gdb, int ncells);
205
207 const DistributionMapping & dmap,
208 const BoxArray & ba,
209 int nneighbor);
210
212 const Vector<DistributionMapping> & dmap,
213 const Vector<BoxArray> & ba,
214 const Vector<int> & rr,
215 int nneighbor);
216
217 ~NeighborParticleContainer () override = default;
218
221
222 NeighborParticleContainer ( NeighborParticleContainer && ) = default; // NOLINT(performance-noexcept-move-constructor)
223 NeighborParticleContainer& operator= ( NeighborParticleContainer && ) = default; // NOLINT(performance-noexcept-move-constructor)
224
228 void Regrid (const DistributionMapping& dmap, const BoxArray& ba);
229 void Regrid (const DistributionMapping& dmap, const BoxArray& ba, int lev);
230 void Regrid (const Vector<DistributionMapping>& dmap, const Vector<BoxArray>& ba);
231
235 void fillNeighbors ();
236
241 void sumNeighbors (int real_start_comp, int real_num_comp,
242 int int_start_comp, int int_num_comp);
243
247 void updateNeighbors (bool boundary_neighbors_only=false);
248
252 void clearNeighbors ();
253
257 template <class CheckPair>
258 void buildNeighborList (CheckPair const& check_pair, bool sort=false);
259
263 template <class CheckPair, class OtherPCType>
264 void buildNeighborList (CheckPair const& check_pair, OtherPCType& other,
265 Vector<std::map<std::pair<int, int>, amrex::NeighborList<typename OtherPCType::ParticleType> > >& neighbor_lists,
266 bool sort=false);
267
271 template <class CheckPair>
272 void buildNeighborList (CheckPair const& check_pair, int type_ind, int* ref_ratio,
273 int num_bin_types=1, bool sort=false);
274
275 template <class CheckPair>
276 void selectActualNeighbors (CheckPair const& check_pair, int num_cells=1);
277
278 void printNeighborList ();
279
280 void setRealCommComp (int i, bool value);
281 void setIntCommComp (int i, bool value);
282
283 ParticleTile& GetNeighbors (int lev, int grid, int tile)
284 {
285 return neighbors[lev][std::make_pair(grid,tile)];
286 }
287
288 const ParticleTile& GetNeighbors (int lev, int grid, int tile) const
289 {
290 return neighbors[lev][std::make_pair(grid,tile)];
291 }
292
293 template <typename T,
294 std::enable_if_t<std::is_same_v<T,bool>,int> = 0>
295 void AddRealComp (T communicate=true)
296 {
298 AddRealComp(communicate);
299 ghost_real_comp.push_back(communicate);
300 calcCommSize();
301 }
302
303 template <typename T,
304 std::enable_if_t<std::is_same_v<T,bool>,int> = 0>
305 void AddIntComp (T communicate=true)
306 {
308 AddIntComp(communicate);
309 ghost_int_comp.push_back(communicate);
310 calcCommSize();
311 }
312
313 void Redistribute (int lev_min=0, int lev_max=-1, int nGrow=0, int local=0,
314 bool remove_negative=true)
315 {
318 ::Redistribute(lev_min, lev_max, nGrow, local, remove_negative);
319 }
320
321 void RedistributeLocal (bool remove_negative=true)
322 {
323 const int lev_min = 0;
324 const int lev_max = 0;
325 const int nGrow = 0;
326 const int local = 1;
328 this->Redistribute(lev_min, lev_max, nGrow, local, remove_negative);
329 }
330
331#ifdef AMREX_USE_GPU
332 void fillNeighborsGPU ();
333 void updateNeighborsGPU (bool boundary_neighbors_only=false);
334 void clearNeighborsGPU ();
335#else
336 void fillNeighborsCPU ();
337 void sumNeighborsCPU (int real_start_comp, int real_num_comp,
338 int int_start_comp, int int_num_comp);
339 void updateNeighborsCPU (bool reuse_rcv_counts=true);
340 void clearNeighborsCPU ();
341#endif
342
343 void setEnableInverse (bool flag)
344 {
345 enable_inverse = flag;
346 calcCommSize();
347 }
348
349 bool enableInverse () { return enable_inverse; }
350
351 void buildNeighborMask ();
352
353 void buildNeighborCopyOp (bool use_boundary_neighbor=false);
354
355protected:
356
357 void cacheNeighborInfo ();
358
362 void BuildMasks ();
363
367 bool areMasksValid ();
368
369 void GetNeighborCommTags ();
370
371 void GetCommTagsBox (Vector<NeighborCommTag>& tags, int lev, const Box& in_box);
372
373 void resizeContainers (int num_levels);
374
375 void initializeCommComps ();
376
377 void calcCommSize ();
378
382 void fillNeighborsMPI (bool reuse_rcv_counts);
383
384 void sumNeighborsMPI (std::map<int, Vector<char> >& not_ours,
385 int real_start_comp, int real_num_comp,
386 int int_start_comp, int int_num_comp);
387
392
394 const ParticleType& p,
395 int nGrow, const NeighborCopyTag& src_tag, const MyParIter& pti);
396
398 const ParticleType& p,
399 const IntVect& nGrow, const NeighborCopyTag& src_tag, const MyParIter& pti);
400
401 IntVect computeRefFac (int src_lev, int lev);
402
406 static constexpr size_t pdata_size = sizeof(ParticleType);
407
408 static constexpr int num_mask_comps = 3;
413
416
422 std::map<int, Vector<char> > send_data;
423
426
427 static bool use_mask;
428
429 static bool enable_inverse;
430
431#ifdef AMREX_USE_GPU
432
437
438 NeighborTask(int a_grid_id, const Box& a_box, const IntVect& a_periodic_shift)
439 : grid_id(a_grid_id), box(a_box), periodic_shift(a_periodic_shift) {}
440
441 bool operator<(const NeighborTask& other) const {
442 if (grid_id != other.grid_id) { return grid_id < other.grid_id; }
443 if (box != other.box ) { return box < other.box; }
445 if (periodic_shift[0] != other.periodic_shift[0])
446 { return periodic_shift[0] < other.periodic_shift[0]; },
447 if (periodic_shift[1] != other.periodic_shift[1])
448 { return periodic_shift[1] < other.periodic_shift[1]; },
449 if (periodic_shift[2] != other.periodic_shift[2])
450 { return periodic_shift[2] < other.periodic_shift[2]; }
451 )
452 return false;
453 }
454 };
455
456 // These are used to keep track of which particles need to be ghosted to which grids
460
461 // {pboxid: [[neighbor codes] size= #intersected nbrs] size= #boundary boxes}
462 std::map<int, std::vector<std::vector<NeighborCode> > > m_grid_map;
463
464 // {pboxid: [ith intersected pbox: nbr codes]}
465 std::map<int, amrex::Gpu::DeviceVector<NeighborCode> > m_code_array;
466 // {pboxid: [ith intersected pbox: intersection]}
467 std::map<int, amrex::Gpu::DeviceVector<Box> > m_isec_boxes;
468 std::map<int, amrex::Gpu::DeviceVector<int> > m_code_offsets; // to be removed
469
472
475
478#endif
479
481
483
484 [[nodiscard]] bool hasNeighbors() const { return m_has_neighbors; }
485
486 bool m_has_neighbors = false;
487};
488
489}
490
492
493#ifdef AMREX_USE_GPU
495#else
497#endif
498
499#endif // _NEIGHBORPARTICLES_H_
#define AMREX_D_TERM(a, b, c)
Definition AMReX_SPACE.H:172
A collection of Boxes stored in an Array.
Definition AMReX_BoxArray.H:568
Calculates the distribution of FABs to MPI processes.
Definition AMReX_DistributionMapping.H:43
Rectangular problem domain geometry.
Definition AMReX_Geometry.H:74
Definition AMReX_NeighborList.H:249
Definition AMReX_NeighborParticles.H:36
bool m_has_neighbors
Definition AMReX_NeighborParticles.H:486
void setRealCommComp(int i, bool value)
Definition AMReX_NeighborParticlesI.H:60
size_t cdata_size
Definition AMReX_NeighborParticles.H:409
std::pair< int, int > PairIndex
Definition AMReX_NeighborParticles.H:197
const ParticleTile & GetNeighbors(int lev, int grid, int tile) const
Definition AMReX_NeighborParticles.H:288
bool enableInverse()
Definition AMReX_NeighborParticles.H:349
void selectActualNeighbors(CheckPair const &check_pair, int num_cells=1)
Definition AMReX_NeighborParticlesI.H:978
IntVect computeRefFac(int src_lev, int lev)
Definition AMReX_NeighborParticlesI.H:248
void getNeighborTags(Vector< NeighborCopyTag > &tags, const ParticleType &p, int nGrow, const NeighborCopyTag &src_tag, const MyParIter &pti)
Definition AMReX_NeighborParticlesI.H:538
typename ParticleContainerType::SuperParticleType SuperParticleType
Definition AMReX_NeighborParticles.H:40
void GetNeighborCommTags()
Definition AMReX_NeighborParticlesI.H:192
Gpu::PinnedVector< char > pinned_snd_buffer
Definition AMReX_NeighborParticles.H:476
Vector< std::map< PairIndex, ParticleTile > > neighbors
Definition AMReX_NeighborParticles.H:404
void printNeighborList()
Definition AMReX_NeighborParticlesI.H:1092
ParticleTile & GetNeighbors(int lev, int grid, int tile)
Definition AMReX_NeighborParticles.H:283
void calcCommSize()
Definition AMReX_NeighborParticlesI.H:76
Vector< NeighborCommTag > local_neighbors
Definition AMReX_NeighborParticles.H:411
void AddRealComp(T communicate=true)
Definition AMReX_NeighborParticles.H:295
void sumNeighborsMPI(std::map< int, Vector< char > > &not_ours, int real_start_comp, int real_num_comp, int int_start_comp, int int_num_comp)
bool areMasksValid()
Definition AMReX_NeighborParticlesI.H:129
ParticleCopyPlan neighbor_copy_plan
Definition AMReX_NeighborParticles.H:471
typename ParticleContainer< NStructReal, NStructInt, NArrayReal, NArrayInt >::AoS AoS
Definition AMReX_NeighborParticles.H:199
ParticleCopyOp neighbor_copy_op
Definition AMReX_NeighborParticles.H:470
static bool enable_inverse
Definition AMReX_NeighborParticles.H:429
friend std::ostream & operator<<(std::ostream &os, const InverseCopyTag &tag)
Definition AMReX_NeighborParticles.H:144
void AddIntComp(T communicate=true)
Definition AMReX_NeighborParticles.H:305
~NeighborParticleContainer() override=default
Gpu::PinnedVector< char > pinned_rcv_buffer
Definition AMReX_NeighborParticles.H:477
amrex::DistributionMapping m_cached_neighbor_dm
Definition AMReX_NeighborParticles.H:459
std::map< int, Vector< char > > send_data
Definition AMReX_NeighborParticles.H:422
bool hasNeighbors() const
Definition AMReX_NeighborParticles.H:484
void initializeCommComps()
Definition AMReX_NeighborParticlesI.H:47
typename ParticleContainer< NStructReal, NStructInt, NArrayReal, NArrayInt >::IntVector IntVector
Definition AMReX_NeighborParticles.H:202
Vector< int > ghost_int_comp
Definition AMReX_NeighborParticles.H:425
void resizeContainers(int num_levels)
Definition AMReX_NeighborParticlesI.H:1111
Vector< std::map< PairIndex, IntVector > > neighbor_list
Definition AMReX_NeighborParticles.H:405
void GetCommTagsBox(Vector< NeighborCommTag > &tags, int lev, const Box &in_box)
Definition AMReX_NeighborParticlesI.H:267
bool m_neighbor_mask_initialized
Definition AMReX_NeighborParticles.H:457
std::map< int, std::vector< std::vector< NeighborCode > > > m_grid_map
Definition AMReX_NeighborParticles.H:462
Vector< Long > rcvs
Definition AMReX_NeighborParticles.H:420
static bool use_mask
Definition AMReX_NeighborParticles.H:427
void buildNeighborList(CheckPair const &check_pair, bool sort=false)
Definition AMReX_NeighborParticlesI.H:696
Vector< int > neighbor_procs
Definition AMReX_NeighborParticles.H:419
Vector< std::map< std::pair< int, int >, amrex::Gpu::DeviceVector< int > > > m_boundary_particle_ids
Definition AMReX_NeighborParticles.H:482
NeighborListContainerType m_neighbor_list
Definition AMReX_NeighborParticles.H:480
void Regrid(const DistributionMapping &dmap, const BoxArray &ba)
Definition AMReX_NeighborParticlesI.H:95
Vector< std::map< PairIndex, Vector< Vector< NeighborCopyTag > > > > buffer_tag_cache
Definition AMReX_NeighborParticles.H:414
void fillNeighborsMPI(bool reuse_rcv_counts)
void RedistributeLocal(bool remove_negative=true)
Definition AMReX_NeighborParticles.H:321
typename ParticleContainer< NStructReal, NStructInt, NArrayReal, NArrayInt >::ParticleTileType ParticleTile
Definition AMReX_NeighborParticles.H:201
void updateNeighbors(bool boundary_neighbors_only=false)
Definition AMReX_NeighborParticlesI.H:665
std::map< int, amrex::Gpu::DeviceVector< Box > > m_isec_boxes
Definition AMReX_NeighborParticles.H:467
NeighborParticleContainer(NeighborParticleContainer &&)=default
amrex::PODVector< char, PolymorphicArenaAllocator< char > > snd_buffer
Definition AMReX_NeighborParticles.H:473
void sumNeighbors(int real_start_comp, int real_num_comp, int int_start_comp, int int_num_comp)
Definition AMReX_NeighborParticlesI.H:652
void BuildMasks()
Definition AMReX_NeighborParticlesI.H:153
static constexpr size_t pdata_size
Definition AMReX_NeighborParticles.H:406
Long num_snds
Definition AMReX_NeighborParticles.H:421
int m_num_neighbor_cells
Definition AMReX_NeighborParticles.H:410
void setEnableInverse(bool flag)
Definition AMReX_NeighborParticles.H:343
void clearNeighborsGPU()
Definition AMReX_NeighborParticlesGPUImpl.H:308
void cacheNeighborInfo()
Definition AMReX_NeighborParticlesI.H:314
Vector< std::map< PairIndex, Vector< InverseCopyTag > > > inverse_tags
Definition AMReX_NeighborParticles.H:403
typename ParticleContainerType::ParticleType ParticleType
Definition AMReX_NeighborParticles.H:39
void clearNeighbors()
Definition AMReX_NeighborParticlesI.H:682
void buildNeighborCopyOp(bool use_boundary_neighbor=false)
Definition AMReX_NeighborParticlesGPUImpl.H:127
Vector< int > ghost_real_comp
Definition AMReX_NeighborParticles.H:424
Vector< std::map< PairIndex, int > > local_neighbor_sizes
Definition AMReX_NeighborParticles.H:415
void updateNeighborsGPU(bool boundary_neighbors_only=false)
Definition AMReX_NeighborParticlesGPUImpl.H:252
void fillNeighbors()
Definition AMReX_NeighborParticlesI.H:640
NeighborParticleContainer & operator=(const NeighborParticleContainer &)=delete
void Redistribute(int lev_min=0, int lev_max=-1, int nGrow=0, int local=0, bool remove_negative=true)
Definition AMReX_NeighborParticles.H:313
Vector< std::unique_ptr< iMultiFab > > mask_ptr
Definition AMReX_NeighborParticles.H:412
void setIntCommComp(int i, bool value)
Definition AMReX_NeighborParticlesI.H:68
std::map< int, amrex::Gpu::DeviceVector< int > > m_code_offsets
Definition AMReX_NeighborParticles.H:468
std::map< int, amrex::Gpu::DeviceVector< NeighborCode > > m_code_array
Definition AMReX_NeighborParticles.H:465
typename ParticleContainer< NStructReal, NStructInt, NArrayReal, NArrayInt >::ParticleVector ParticleVector
Definition AMReX_NeighborParticles.H:200
NeighborParticleContainer(const NeighborParticleContainer &)=delete
void buildNeighborMask()
Definition AMReX_NeighborParticlesGPUImpl.H:55
std::map< NeighborCommTag, Vector< char > > NeighborCommMap
Definition AMReX_NeighborParticles.H:198
static constexpr int num_mask_comps
grid, tile, level
Definition AMReX_NeighborParticles.H:408
amrex::PODVector< char, PolymorphicArenaAllocator< char > > rcv_buffer
Definition AMReX_NeighborParticles.H:474
amrex::BoxArray m_cached_neighbor_ba
Definition AMReX_NeighborParticles.H:458
void fillNeighborsGPU()
Definition AMReX_NeighborParticlesGPUImpl.H:232
Dynamically allocated vector for trivially copyable data.
Definition AMReX_PODVector.H:308
Definition AMReX_ParGDB.H:13
Definition AMReX_ParIter.H:118
A distributed container for Particles sorted onto the levels, grids, and tiles of a block-structured ...
Definition AMReX_ParticleContainer.H:149
void AddIntComp(std::string const &name, int communicate=1)
Definition AMReX_ParticleContainer.H:1326
Particle< NStructReal+NArrayReal, NStructInt+NArrayInt > SuperParticleType
The type of the "SuperParticle" which stored all components in AoS form.
Definition AMReX_ParticleContainer.H:174
typename ParticleTileType::AoS AoS
Definition AMReX_ParticleContainer.H:199
typename AoS::ParticleVector ParticleVector
Definition AMReX_ParticleContainer.H:204
typename SoA::IntVector IntVector
Definition AMReX_ParticleContainer.H:203
std::conditional_t< is_rtsoa_pc, ParticleTileRT< typename ParticleType::RealType, typename ParticleType::IntType >, ParticleTile< ParticleType, NArrayReal, NArrayInt, Allocator > > ParticleTileType
Definition AMReX_ParticleContainer.H:191
void AddRealComp(std::string const &name, int communicate=1)
Definition AMReX_ParticleContainer.H:1293
T_ParticleType ParticleType
Definition AMReX_ParticleContainer.H:151
amrex_long Long
Definition AMReX_INT.H:30
Definition AMReX_Amr.cpp:49
IntVectND< 3 > IntVect
IntVect is an alias for amrex::IntVectND instantiated with AMREX_SPACEDIM.
Definition AMReX_BaseFwd.H:33
bool operator==(A1 const &a1, A2 const &a2)
Definition AMReX_GpuAllocators.H:214
void Error(const std::string &msg)
Print out message to cerr and exit via amrex::Abort().
Definition AMReX.cpp:234
Definition AMReX_NeighborParticles.H:17
IntVect periodic_shift
Definition AMReX_NeighborParticles.H:19
int grid_id
Definition AMReX_NeighborParticles.H:18
Definition AMReX_NeighborParticles.H:433
bool operator<(const NeighborTask &other) const
Definition AMReX_NeighborParticles.H:441
IntVect periodic_shift
Definition AMReX_NeighborParticles.H:436
Box box
Definition AMReX_NeighborParticles.H:435
int grid_id
Definition AMReX_NeighborParticles.H:434
NeighborTask(int a_grid_id, const Box &a_box, const IntVect &a_periodic_shift)
Definition AMReX_NeighborParticles.H:438
Definition AMReX_ParticleCommunication.H:58
Definition AMReX_ParticleCommunication.H:81