Commit e96348af authored by Anastasiia's avatar Anastasiia

fix to not subdivide point intervals

parent 99ad97b7
......@@ -85,14 +85,18 @@ trait Subdivision extends Taylor{
// set of vectors. each vector contains the maps for one var
for (inputVal <- inputSeq) {
counter = Math.pow(split, subdivided + 1).toInt + left
// reporter.warning(s"counter $counter")
// reporter.warning(s"counter $counter ;var $inputVal")
if (inputVal._1.isDeltaId || inputVal._1.isEpsilonId || counter > totalOpt) {
srcCartesian += (inputVal._1 -> Seq(inputVal._2))
left = left - 1
if (!(inputVal._1.isDeltaId || inputVal._1.isEpsilonId)) left = left - 1
}
else {
// reporter.info(s"took the subdiv branch $inputVal")
val (id, interval) = inputVal
val oneVar = interval.divide(split)
val oneVar = if (interval.xlo.equals(interval.xhi))
List(interval)
else
interval.divide(split)
srcCartesian += (id -> oneVar)
subdivided = subdivided + 1
left = left - 1
......
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