Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 671845e1 authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

print warning from search algorithm only in debug mode

parent 23c2e2ee
No related branches found
No related tags found
No related merge requests found
......@@ -228,7 +228,7 @@ namespace TUGraz.VectoCore.Utils
LogManager.DisableLogging();
AppendDebug(debug);
//iterationCount += count;
//return x1.SI<T>();
throw new VectoSearchAbortedException("InterpolateLinearSearch");
}
......@@ -255,9 +255,10 @@ namespace TUGraz.VectoCore.Utils
}
log.Debug("InterpolateSearch could not find an operating point.");
log.Error("Exceeded max iterations when searching for operating point!");
#if DEBUG
log.Error("InterpolateSearch exceeded max iterations when searching for operating point!");
log.Error("debug: {0}", debug);
#endif
WriteSearch(debug, "InterpolateSearch.csv");
throw new VectoSearchFailedException("Failed to find operating point! points: {0}", debug);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment