Go to the source code of this file.
◆ registerMooseObject()
◆ to_json()
Definition at line 34 of file SolutionInvalidityReporter.C.
36 mooseAssert(solution_invalidity->
processor_id() == 0,
"should only be called on rank 0");
39 const auto & counts = solution_invalidity->
counts();
40 if (counts.size() == 0)
42 json = nlohmann::json::array();
48 entry[
"object_type"] = solution_registry.item(
id).object_type;
49 entry[
"message"] = solution_registry.item(
id).message;
50 entry[
"timestep_counts"] = counts[id].current_timestep_counts;
51 entry[
"total_counts"] = counts[id].total_counts;
52 json.push_back(entry);
const std::vector< InvalidCounts > & counts() const
Access the private solution invalidity counts.
SolutionInvalidityRegistry & getSolutionInvalidityRegistry()
Get the global SolutionInvalidityRegistry singleton.
processor_id_type processor_id() const
auto index_range(const T &sizable)