Class BoundaryBank

Class Documentation

class BoundaryBank

Constructors

BoundaryBank() = default
BoundaryBank(const std::vector<LBSGroupset> &groupsets)

Elements getters

inline BoundaryCommonData &operator[](int groupset_id)
inline const BoundaryCommonData &operator[](int groupset_id) const
inline std::size_t GetSize() const

Memory management

double *ExtendBoundaryFlux(int groupset_id, std::size_t append_size)

Extend boundary and return the pointer to the beginning of the extended section.

This pointer is only valid until the next call of ExtendBoundaryFlux.

void ShrinkToFit()

Shrink allocated memory for the boundary bank to fit the size.

inline bool IsAllocationDisabled() const

Extend boundary and return the pointer to the beginning of the extended section.

This pointer is only valid until the next call of ExtendBoundaryFlux.

inline void DisableAllocation()

Mark the bank as disble allocation.

Once marked, the bank cannot be extended anymore.

void Reset()

Erase all data and reset the bank back to original state.