Class OutflowCarrier
Defined in File outflow_carrier.h
Class Documentation
-
class OutflowCarrier
GPU-side carrier for boundary-face outflow tally storage.
The carrier mirrors the OutflowBank’s contiguous host storage on the device and delegates boundary-face offset lookups to the bank.
Public Functions
-
OutflowCarrier(LBSProblem &lbs_problem)
Construct a device carrier for a problem’s outflow bank.
Note
The referenced outflow bank must outlive this carrier.
- Parameters:
lbs_problem – Problem that owns the host-side outflow bank.
-
void CopyToDevice()
Copy host outflow values to device storage.
-
void CopyFromDevice()
Copy device outflow values to host storage.
-
inline double *GetDevicePtr()
Return the base pointer to device outflow storage.
- Returns:
Device pointer to the first outflow value, or null when no device storage exists.
-
std::uint64_t GetOffset(const std::uint32_t &cell_local_idx, const std::uint32_t &face_idx)
Return the first group offset for a boundary face.
-
OutflowCarrier(LBSProblem &lbs_problem)