21 #include "libmesh/qoi_set.h" 22 #include "libmesh/system.h" 37 std::size_t qoi_count = 0;
48 unsigned int max_size = 0;
49 for (
const auto & i : indices)
50 max_size = std::max(max_size, i + 1);
54 for (
const auto & i : indices)
63 for (
const auto & i : indices)
unsigned int n_qois() const
Number of currently active quantities of interest.
The libMesh namespace provides an interface to certain functionality in the library.
std::vector< bool > _indices
Interpret _indices.empty() to mean "calculate all indices".
bool has_index(std::size_t) const
Return whether or not this index is in the set to be calculated.
Manages consistently variables, degrees of freedom, and coefficient vectors.
QoISet()
Empty constructor: "calculate all QoIs in the System".
std::size_t size(const System &sys) const
void add_indices(const std::vector< unsigned int > &indices)
Add this indices to the set to be calculated.
IntRange< T > make_range(T beg, T end)
The 2-parameter make_range() helper function returns an IntRange<T> when both input parameters are of...
void remove_indices(const std::vector< unsigned int > &indices)
Remove these indices from the set to be calculated.