Skip to content
Snippets Groups Projects
Commit 6f3b8c3d authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Added ASSERT to detect when boundary condition appears multiple times.

parent e15ce230
No related branches found
No related tags found
No related merge requests found
......@@ -167,6 +167,10 @@ namespace Nektar
int err = regionElement->QueryIntAttribute("REF", &boundaryRegionID);
ASSERTL0(err == TIXML_SUCCESS, "Error reading boundary region reference.");
ASSERTL0(m_boundaryConditions.count(boundaryRegionID) == 0,
"Boundary region '" + boost::lexical_cast<std::string>(boundaryRegionID)
+ "' appears multiple times.");
// Find the boundary region corresponding to this ID.
std::string boundaryRegionIDStr;
std::ostringstream boundaryRegionIDStrm(boundaryRegionIDStr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment