Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] throw an exception instead of returning NULL.
[simgrid.git] / src / surf / surf.c
index 3980bb289af9e317e60d841b593bf0b1e6286dee..64b50d010b841f0b3bd2bded3e23a9055db7a7e8 100644 (file)
@@ -525,6 +525,8 @@ double surf_solve(double max_date)
     /* parallel version */
 #ifdef CONTEXT_THREADS
     xbt_parmap_apply(surf_parmap, (void_f_pvoid_t) surf_share_resources, model_list);
+#else
+    xbt_die("Asked to run in parallel, but no thread at hand...");
 #endif
   }
   else {