Commit 2dcfacbf authored by Quentin Khan's avatar Quentin Khan
Browse files

Costzones zone bounds modified to hold the firstindex of a zone and its cell count.

parent 4153e622
......@@ -187,8 +187,11 @@ private:
// Zone bounds update
if( _zonebounds.back()[_it.level()] == std::pair<int,int>(-1,-1) ) {
_zonebounds.back()[_it.level()].first = _it.getCurrentGlobalIndex();
_zonebounds.back()[_it.level()].second = 1;
} else {
_zonebounds.back()[_it.level()].second = _it.getCurrentGlobalIndex();
_zonebounds.back()[_it.level()].second++;
// This was to keep the end index
// _zonebounds.back()[_it.level()].second = _it.getCurrentGlobalIndex();
}
} else {
......
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