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 351 of file SolutionInvalidity.C.

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