Commit 7c8fd6c5 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

getComponentName() added

parent deed69a8
...@@ -397,6 +397,14 @@ namespace AMDiS { ...@@ -397,6 +397,14 @@ namespace AMDiS {
return name; return name;
} }
/// Returns the name of the problem
inline string getComponentName(int comp = 0)
{
TEST_EXIT(comp < static_cast<int>(componentNames.size()) && comp >= 0)
("invalid component number\n");
return componentNames[comp];
}
/// Returns \ref useGetBound. /// Returns \ref useGetBound.
inline bool getBoundUsed() inline bool getBoundUsed()
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment