https://mooseframework.inl.gov
Classes | Namespaces | Functions
SolutionInvalidityRegistry.h File Reference

Go to the source code of this file.

Classes

class  moose::internal::SolutionInvalidityName
 Helper class that stores the name associated with an invalid solution. More...
 
struct  moose::internal::SoltionInvalidityNameHash
 Helper class that hash the name associated with an invalid solution. More...
 
class  moose::internal::SolutionInvalidityInfo
 Helper class that stores the info associated with an invalid solution. More...
 
class  moose::internal::SolutionInvalidityRegistry
 The place where all sections with solution invalid warnings will be stored. More...
 

Namespaces

 moose::internal
 

Functions

void dataStore (std::ostream &, SolutionInvalidity &, void *)
 
SolutionInvalidityRegistry & moose::internal::getSolutionInvalidityRegistry ()
 Get the global SolutionInvalidityRegistry singleton. More...
 
std::ostream & moose::internal::operator<< (std::ostream &os, const SolutionInvalidityName &name)
 

Function Documentation

◆ dataStore()

void dataStore ( std::ostream &  ,
SolutionInvalidity ,
void  
)

Definition at line 348 of file SolutionInvalidity.C.

349 {
350  solution_invalidity.syncIteration();
351 
352  if (solution_invalidity.processor_id() != 0)
353  return;
354 
355  // Build data structure for store
356  std::size_t size = solution_invalidity._counts.size();
357  dataStore(stream, size, context);
358 
359  for (const auto id : index_range(solution_invalidity._counts))
360  {
361  auto & entry = solution_invalidity._counts[id];
362  const auto & info = solution_invalidity._solution_invalidity_registry.item(id);
363  std::string type = info.object_type;
364  std::string message = info.message;
365  bool warning = info.warning;
366  dataStore(stream, type, context);
367  dataStore(stream, message, context);
368  dataStore(stream, warning, context);
369  dataStore(stream, entry.current_counts, context);
370  dataStore(stream, entry.current_timestep_counts, context);
371  dataStore(stream, entry.timestep_counts, context);
372  dataStore(stream, entry.total_counts, context);
373  }
374 }
void dataStore(std::ostream &stream, SolutionInvalidity::TimestepCounts &timestep_counts, void *context)
MPI_Info info
auto index_range(const T &sizable)