Skip to content

Commit

Permalink
Set sidesets and subdomains in MeshInfo to root
Browse files Browse the repository at this point in the history
  • Loading branch information
loganharbour committed Apr 30, 2021
1 parent 5ab3459 commit d22de53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 34 deletions.
7 changes: 3 additions & 4 deletions framework/src/reporters/MeshInfo.C
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,16 @@ MeshInfo::MeshInfo(const InputParameters & parameters)
REPORTER_MODE_DISTRIBUTED)),
_local_sideset_elems(declareHelper<std::map<BoundaryID, SidesetInfo>>(
"local_sideset_elems", REPORTER_MODE_DISTRIBUTED)),
_sidesets(
declareHelper<std::map<BoundaryID, SidesetInfo>>("sidesets", REPORTER_MODE_REPLICATED)),
_sidesets(declareHelper<std::map<BoundaryID, SidesetInfo>>("sidesets", REPORTER_MODE_ROOT)),
_sideset_elems(
declareHelper<std::map<BoundaryID, SidesetInfo>>("sideset_elems", REPORTER_MODE_ROOT)),

_local_subdomains(declareHelper<std::map<SubdomainID, SubdomainInfo>>(
"local_subdomains", REPORTER_MODE_DISTRIBUTED)),
_local_subdomain_elems(declareHelper<std::map<SubdomainID, SubdomainInfo>>(
"local_subdomain_elems", REPORTER_MODE_DISTRIBUTED)),
_subdomains(declareHelper<std::map<SubdomainID, SubdomainInfo>>("subdomains",
REPORTER_MODE_REPLICATED)),
_subdomains(
declareHelper<std::map<SubdomainID, SubdomainInfo>>("subdomains", REPORTER_MODE_ROOT)),
_subdomain_elems(
declareHelper<std::map<SubdomainID, SubdomainInfo>>("subdomain_elems", REPORTER_MODE_ROOT)),

Expand Down
30 changes: 0 additions & 30 deletions test/tests/reporters/mesh_info/gold/mesh_info_out.json.1
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,6 @@
"name": "num_nodes",
"type": "unsigned int",
"value": 0
},
{
"name": "sidesets",
"type": "std::map<short, MeshInfo::SidesetInfo, std::less<short>, std::allocator<std::pair<short const, MeshInfo::SidesetInfo> > >",
"value": null
},
{
"name": "subdomain_elems",
"type": "std::map<unsigned short, MeshInfo::SubdomainInfo, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, MeshInfo::SubdomainInfo> > >",
"value": null
},
{
"name": "subdomains",
"type": "std::map<unsigned short, MeshInfo::SubdomainInfo, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, MeshInfo::SubdomainInfo> > >",
"value": null
}
]
}
Expand Down Expand Up @@ -350,21 +335,6 @@
"name": "num_nodes",
"type": "unsigned int",
"value": 121
},
{
"name": "sidesets",
"type": "std::map<short, MeshInfo::SidesetInfo, std::less<short>, std::allocator<std::pair<short const, MeshInfo::SidesetInfo> > >",
"value": null
},
{
"name": "subdomain_elems",
"type": "std::map<unsigned short, MeshInfo::SubdomainInfo, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, MeshInfo::SubdomainInfo> > >",
"value": null
},
{
"name": "subdomains",
"type": "std::map<unsigned short, MeshInfo::SubdomainInfo, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, MeshInfo::SubdomainInfo> > >",
"value": null
}
]
}
Expand Down

0 comments on commit d22de53

Please sign in to comment.