Commit ffea533c authored by Anastasiia's avatar Anastasiia

TMP: remove parallel and abs error computations

parent 3e1e85b3
......@@ -142,7 +142,8 @@ object RelativeErrorPhase extends DaisyPhase with Subdivision with ErrorFunction
reporter.info("Computing absolute error on these sub-intervals.")
for (mapEntry <- list) {
// here we compute the abs error for intervals where rel error is not possible
val absError = getAbsError(bodyReal, mapEntry, inputErrorMap, uniformPrecision)
//todo put abs error computation back
val absError = Rational.zero//getAbsError(bodyReal, mapEntry, inputErrorMap, uniformPrecision)
reporter.info(s"For intervals $mapEntry, absError: $absError, time: " +
(System.currentTimeMillis - time))
}
......@@ -215,7 +216,7 @@ object RelativeErrorPhase extends DaisyPhase with Subdivision with ErrorFunction
case x @ Epsilon(id) => List(evaluateOpt(tmpExpr, inputValMap, rangeMethod))
case x @ Variable(id) => List(evaluateOpt(tmpExpr, inputValMap, rangeMethod))
case x @ RealLiteral(r) => List(evaluateOpt(tmpExpr, inputValMap, rangeMethod))
case _ => newSet.par.map(interval => {
case _ => newSet.map(interval => {
val tmp = evaluateOpt(tmpExpr, interval, rangeMethod)
reporter.debug("err on "+removeDeltasFromMap(interval)+s" is $tmp")
if (tmp.isEmpty)
......
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