356{
358
360 return;
361
362
363 std::size_t size = solution_invalidity.
_counts.size();
365
366 for (
const auto id :
index_range(solution_invalidity._counts))
367 {
368 auto & entry = solution_invalidity.
_counts[id];
370 std::string type =
info.object_type;
371 std::string message =
info.message;
372 bool warning =
info.warning;
376 dataStore(stream, entry.current_counts, context);
377 dataStore(stream, entry.current_timestep_counts, context);
378 dataStore(stream, entry.timestep_counts, context);
379 dataStore(stream, entry.total_counts, context);
380 }
381}
void dataStore(std::ostream &stream, SolutionInvalidity::TimestepCounts ×tep_counts, void *context)
const Item & item(const std::size_t id) const
SolutionInvalidityRegistry & _solution_invalidity_registry
Create a registry to keep track of the names and occurrences of the solution invalidity.
std::vector< InvalidCounts > _counts
Store the solution invalidity counts.
void syncIteration()
Sync iteration counts to main processor Sum across all processors.
processor_id_type processor_id() const
auto index_range(const T &sizable)