385{
387 return;
388
389 std::size_t num_counts;
390
391 dataLoad(stream, num_counts, context);
392
393 std::string object_type, message;
394 bool warning;
396
397
398 for (size_t i = 0; i < num_counts; i++)
399 {
400 dataLoad(stream, object_type, context);
403
407 else
409 object_type, message, warning);
410
411 if (solution_invalidity.
_counts.size() <=
id)
412 solution_invalidity.
_counts.resize(
id + 1);
413
414 auto & entry = solution_invalidity.
_counts[id];
415 dataLoad(stream, entry.current_counts, context);
416 dataLoad(stream, entry.current_timestep_counts, context);
417 dataLoad(stream, entry.timestep_counts, context);
418 dataLoad(stream, entry.total_counts, context);
419 }
420}
unsigned int InvalidSolutionID
void dataLoad(std::istream &stream, SolutionInvalidity::TimestepCounts ×tep_counts, void *context)
bool keyExists(const Key &key) const
std::size_t id(const Key &key) 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.
processor_id_type processor_id() const
Helper class that stores the name associated with an invalid solution.
InvalidSolutionID registerInvalidity(const std::string &object_type, const std::string &message, const bool warning)
Call to register an invalid calculation.
std::string name(const ElemQuality q)
SolutionInvalidityRegistry & getSolutionInvalidityRegistry()
Get the global SolutionInvalidityRegistry singleton.