]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Guido & AJS fix. You cannot nest task loops
authorsalgado <salgado@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Nov 2010 03:57:08 +0000 (03:57 +0000)
committersalgado <salgado@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Nov 2010 03:57:08 +0000 (03:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@22849 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe_tools.cc

index 188c8742214e3d96216b685c80594325e25e5f04..074926a7895e72fb31363c728fae7864e078dae6 100644 (file)
@@ -796,18 +796,19 @@ namespace FETools
                             std::vector<std::vector<FullMatrix<number> > >& matrices,
                             const bool isotropic_only)
   {
-    Threads::TaskGroup<void> task_group;
+    //    Threads::TaskGroup<void> task_group;
 
                                     // loop over all possible refinement cases
     unsigned int ref_case = (isotropic_only)
                            ? RefinementCase<dim>::isotropic_refinement
                            : RefinementCase<dim>::cut_x;
-
+    
     for (;ref_case <= RefinementCase<dim>::isotropic_refinement; ++ref_case)
-      task_group += Threads::new_task (&compute_embedding_matrices_for_refinement_case<dim, number, spacedim>,
-                                      fe, matrices[ref_case-1], ref_case);
+      compute_embedding_matrices_for_refinement_case(fe, matrices[ref_case-1], ref_case);
+      // task_group += Threads::new_task (&compute_embedding_matrices_for_refinement_case<dim, number, spacedim>,
+      //                                      fe, matrices[ref_case-1], ref_case);
 
-    task_group.join_all ();
+    //    task_group.join_all ();
   }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.