Class BoundaryBank
Defined in File boundary_bank.h
Class Documentation
-
class BoundaryBank
-
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.
-
inline BoundaryCommonData &operator[](int groupset_id)