new assertions
stair fixes
This commit is contained in:
@@ -154,7 +154,7 @@ public:
|
||||
/** get the center-node the given Point belongs to */
|
||||
const T& getNodeFor(const GridPoint& p) {
|
||||
const UID uid = getUID(p);
|
||||
if (hashes.find(uid) == hashes.end()) {throw Exception("element not found!");}
|
||||
Assert::isTrue(hashes.find(uid) != hashes.end(), "element not found!");
|
||||
return nodes[hashes[uid]];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user