Commit 3b4fe407 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make the code abort if --dump-tasks-threshold is used without...

Make the code abort if --dump-tasks-threshold is used without --enable-task-debugging passed at configure time
parent 0d61877e
......@@ -406,6 +406,16 @@ int main(int argc, char *argv[]) {
}
#endif
if (dump_tasks_threshold > 0.f) {
#ifndef SWIFT_DEBUG_TASKS
if (myrank == 0) {
error(
"Error: Dumping task plot data above a fixed time threshold is only "
"valid when the code is configured with --enable-task-debugging.");
}
#endif
}
#ifndef SWIFT_CELL_GRAPH
if (dump_cells) {
if (myrank == 0) {
......
Supports Markdown
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