1 #ifndef AMREX_ALG_PARTITION_H_
2 #define AMREX_ALG_PARTITION_H_
3 #include <AMReX_Config.H>
21 void define (Long global_size);
25 [[nodiscard]]
bool empty ()
const {
return m_ref->m_row.empty(); }
41 explicit Ref (Long global_size);
44 void define (Long global_size);
Definition: AMReX_AlgPartition.H:14
std::shared_ptr< Ref > m_ref
Definition: AMReX_AlgPartition.H:53
Long numGlobalRows() const
Definition: AMReX_AlgPartition.H:28
AlgPartition()
Definition: AMReX_AlgPartition.cpp:5
int numActiveProcs() const
Definition: AMReX_AlgPartition.H:29
bool operator==(AlgPartition const &rhs) const noexcept
Definition: AMReX_AlgPartition.cpp:36
bool empty() const
Definition: AMReX_AlgPartition.H:25
Vector< Long > const & dataVector() const
Definition: AMReX_AlgPartition.H:31
void define(Long global_size)
Definition: AMReX_AlgPartition.cpp:21
bool operator!=(AlgPartition const &rhs) const noexcept
Definition: AMReX_AlgPartition.cpp:41
Long operator[](int i) const
Definition: AMReX_AlgPartition.H:27
Definition: AMReX_Amr.cpp:49
Definition: AMReX_AlgPartition.H:38
Vector< Long > m_row
Definition: AMReX_AlgPartition.H:49
int m_n_active_procs
Definition: AMReX_AlgPartition.H:50
void define(Long global_size)
Definition: AMReX_AlgPartition.cpp:63
void update_n_active_procs()
Definition: AMReX_AlgPartition.cpp:93