20 #ifndef GEOS_PHYSICSSOLVERS_FLUIDFLOW_SOLUTIONCHECKHELPERS_HPP
21 #define GEOS_PHYSICSSOLVERS_FLUIDFLOW_SOLUTIONCHECKHELPERS_HPP
49 {
return m_ranksSignaledElementsCount; }
55 {
return m_ranksCollectedElementsCount; }
126 {
return m_elementsCounter.empty() ? 0 : m_elementsCounter[0]; }
138 {
return m_elementsBuffer[id]; }
144 {
return m_elementsBuffer.begin(); }
156 {
return !m_elementsCounter.empty(); }
Enumerates the Units that are in use in GEOS and regroups useful conversion and formatting functions.
Unit
Enumerator of available unit types for given physical scales. Units are in SI by default.
A buffer to count and store element ids during kernel execution. This facilitates the reporting mecha...
ElementsReporterCollector::ElementCount ElementCount
Type alias for elements count (e.g., localIndex, globalIndex).
ElementCount getCollectedElementsCount() const
ElementCount getSignaledElementsCount() const
ElementsReporterCollector createCollector(arrayView1d< globalIndex const > const &localToGlobalId) const
ElementsReporterBuffer(bool enabled, ElementCount maxCollectionSize)
Construct a preallocated buffer to collect a limited quantity of ids in kernels.
ElementsReporterBuffer & operator=(ElementsReporterBuffer &&other)=default
Transfers ownership of an ElementsReporterBuffer to another instance (move semantics).
ElementsReporterBuffer(ElementsReporterBuffer &&other)=default
Transfers ownership of an ElementsReporterBuffer to another instance (move semantics).
ElementReport const & operator[](ElementCount id) const
ElementsReporterBuffer & operator=(ElementsReporterBuffer const &)=delete
Copying prevented as it doesn't seem relevant / useful.
ElementsReporterBuffer(ElementsReporterBuffer const &)=delete
Copying prevented as it doesn't seem relevant / useful.
Collects and reports elements ids and data using an atomic counter. This class provides functionality...
A class to report elements collected by the solver.
ElementsReporterCollector::ElementCount ElementCount
Type alias for elements count (e.g., localIndex, globalIndex).
ElementCount getRanksCollectedIdsCount() const
ElementsReporterOutput(ElementsReporterBuffer const &buffer)
Construct a preallocated buffer for collecting element ids in kernels.
void outputTooLowValues(string_view linesPrefix, string_view valueNaming, real64 minValue, units::Unit valueUnit) const
Report elements with values below a specified threshold in the log: Outputs lines indicating which va...
ElementCount getRanksSignaledIdsCount() const
ArrayView< T, 1 > arrayView1d
Alias for 1D array view.
double real64
64-bit floating point type.
Array< T, 1 > array1d
Alias for 1D array.
std::string_view string_view
String type.