OpenImpala
Image-based parallel transport property solver
Loading...
Searching...
No Matches
FloodFill.H
Go to the documentation of this file.
1
15#ifndef OPENIMPALA_FLOOD_FILL_H
16#define OPENIMPALA_FLOOD_FILL_H
17
18#include <AMReX_BoxArray.H>
19#include <AMReX_DistributionMapping.H>
20#include <AMReX_Geometry.H>
21#include <AMReX_IntVect.H>
22#include <AMReX_Vector.H>
23#include <AMReX_iMultiFab.H>
24
25namespace OpenImpala {
26
28constexpr int FLOOD_INACTIVE = 0;
29constexpr int FLOOD_ACTIVE = 1;
30
52void parallelFloodFill(amrex::iMultiFab& reachabilityMask, const amrex::iMultiFab& phaseFab,
53 int phaseID, const amrex::Vector<amrex::IntVect>& seedPoints,
54 const amrex::Geometry& geom, int verbose = 0, int label = FLOOD_ACTIVE);
55
69void collectBoundarySeeds(const amrex::iMultiFab& phaseFab, int phaseID, int dir,
70 const amrex::Geometry& geom, amrex::Vector<amrex::IntVect>& inletSeeds,
71 amrex::Vector<amrex::IntVect>& outletSeeds);
72
73} // namespace OpenImpala
74
75#endif // OPENIMPALA_FLOOD_FILL_H
Definition CathodeWrite.cpp:12
constexpr int FLOOD_INACTIVE
Marker values used in reachability masks.
Definition FloodFill.H:28
void collectBoundarySeeds(const amrex::iMultiFab &phaseFab, int phaseID, int dir, const amrex::Geometry &geom, amrex::Vector< amrex::IntVect > &inletSeeds, amrex::Vector< amrex::IntVect > &outletSeeds)
Collect boundary seeds on inlet/outlet faces of a phase.
Definition FloodFill.cpp:27
void parallelFloodFill(amrex::iMultiFab &reachabilityMask, const amrex::iMultiFab &phaseFab, int phaseID, const amrex::Vector< amrex::IntVect > &seedPoints, const amrex::Geometry &geom, int verbose, int label)
GPU-compatible parallel flood fill on an iMultiFab.
Definition FloodFill.cpp:136
constexpr int FLOOD_ACTIVE
Definition FloodFill.H:29