]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid deprecated class names.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Feb 2013 15:25:50 +0000 (15:25 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Feb 2013 15:25:50 +0000 (15:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@28462 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-13/step-13.cc
deal.II/examples/step-14/step-14.cc
deal.II/examples/step-9/step-9.cc

index b85cb3d50a0a129499e1ee0b7ecda1e40aa29ea1..967a926768f462b24373a00d8d7be4e79c0a3aa0 100644 (file)
@@ -2,7 +2,7 @@
 
 /*    $Id$       */
 /*                                                                */
-/*    Copyright (C) 2001-2004, 2006-2009, 2011-2012 by the deal.II authors */
+/*    Copyright (C) 2001-2004, 2006-2009, 2011-2013 by the deal.II authors */
 /*                                                                */
 /*    This file is subject to QPL and may not be  distributed     */
 /*    without copyright and license information. Please refer     */
@@ -640,7 +640,7 @@ namespace Step13
       assemble_matrix (LinearSystem                                         &linear_system,
                        const typename DoFHandler<dim>::active_cell_iterator &begin_cell,
                        const typename DoFHandler<dim>::active_cell_iterator &end_cell,
-                       Threads::ThreadMutex                                 &mutex) const;
+                       Threads::Mutex                                       &mutex) const;
     };
 
 
@@ -746,7 +746,7 @@ namespace Step13
       // cells, and fill the matrix object with it. Since there is need for
       // synchronization when filling the same matrix from different threads,
       // we need a mutex here:
-      Threads::ThreadMutex mutex;
+      Threads::Mutex         mutex;
       Threads::ThreadGroup<> threads;
       for (unsigned int thread=0; thread<n_threads; ++thread)
         threads += Threads::new_thread (&Solver<dim>::assemble_matrix,
@@ -797,7 +797,7 @@ namespace Step13
     Solver<dim>::assemble_matrix (LinearSystem                                         &linear_system,
                                   const typename DoFHandler<dim>::active_cell_iterator &begin_cell,
                                   const typename DoFHandler<dim>::active_cell_iterator &end_cell,
-                                  Threads::ThreadMutex                                 &mutex) const
+                                  Threads::Mutex                                       &mutex) const
     {
       FEValues<dim> fe_values (*fe, *quadrature,
                                update_gradients | update_JxW_values);
@@ -855,10 +855,10 @@ namespace Step13
           // function was exited by an exception that we did not forsee.
           //
           // deal.II implements the scoped locking pattern in the
-          // ThreadMutex::ScopedLock class: it takes the mutex in the
+          // Treads::Mutex::ScopedLock class: it takes the mutex in the
           // constructor and locks it; in its destructor, it unlocks it
           // again. So here is how it is used:
-          Threads::ThreadMutex::ScopedLock lock (mutex);
+          Threads::Mutex::ScopedLock lock (mutex);
           for (unsigned int i=0; i<dofs_per_cell; ++i)
             for (unsigned int j=0; j<dofs_per_cell; ++j)
               linear_system.matrix.add (local_dof_indices[i],
index 6242b228e3d37e5ac894894ec8f24c0c8a53be29..5f329b34eaeb9b67f6cf1d0cdd42dccad8fc8788 100644 (file)
@@ -2,7 +2,7 @@
 
 /*    $Id$       */
 /*                                                                */
-/*    Copyright (C) 2002-2012 by the deal.II authors */
+/*    Copyright (C) 2002-2013 by the deal.II authors */
 /*                                                                */
 /*    This file is subject to QPL and may not be  distributed     */
 /*    without copyright and license information. Please refer     */
@@ -468,7 +468,7 @@ namespace Step14
       assemble_matrix (LinearSystem                                         &linear_system,
                        const typename DoFHandler<dim>::active_cell_iterator &begin_cell,
                        const typename DoFHandler<dim>::active_cell_iterator &end_cell,
-                       Threads::ThreadMutex                                 &mutex) const;
+                       Threads::Mutex                                       &mutex) const;
     };
 
 
@@ -541,7 +541,7 @@ namespace Step14
                                                       dof_handler.end (),
                                                       n_threads);
 
-      Threads::ThreadMutex mutex;
+      Threads::Mutex         mutex;
       Threads::ThreadGroup<> threads;
       for (unsigned int thread=0; thread<n_threads; ++thread)
         threads += Threads::new_thread (&Solver<dim>::assemble_matrix,
@@ -575,7 +575,7 @@ namespace Step14
     Solver<dim>::assemble_matrix (LinearSystem                                         &linear_system,
                                   const typename DoFHandler<dim>::active_cell_iterator &begin_cell,
                                   const typename DoFHandler<dim>::active_cell_iterator &end_cell,
-                                  Threads::ThreadMutex                                 &mutex) const
+                                  Threads::Mutex                                       &mutex) const
     {
       FEValues<dim> fe_values (*fe, *quadrature,
                                update_gradients | update_JxW_values);
@@ -603,7 +603,7 @@ namespace Step14
 
 
           cell->get_dof_indices (local_dof_indices);
-          Threads::ThreadMutex::ScopedLock lock (mutex);
+          Threads::Mutex::ScopedLock lock (mutex);
           for (unsigned int i=0; i<dofs_per_cell; ++i)
             for (unsigned int j=0; j<dofs_per_cell; ++j)
               linear_system.matrix.add (local_dof_indices[i],
index 34c1acbb41aeef387753bb3180df14ba4011ceda..c7e9f3544087edbe84d69ccb0beceea31bdd5297 100644 (file)
@@ -2,7 +2,7 @@
 
 /*    $Id$       */
 /*                                                                */
-/*    Copyright (C) 2000-2004, 2006-2008, 2010-2012 by the deal.II authors */
+/*    Copyright (C) 2000-2004, 2006-2008, 2010-2013 by the deal.II authors */
 /*                                                                */
 /*    This file is subject to QPL and may not be  distributed     */
 /*    without copyright and license information. Please refer     */
@@ -128,13 +128,13 @@ namespace Step9
     // has to wait), then write to the matrix and finally release the
     // lock. Note that if the library was not compiled to support
     // multithreading (which you have to specify at the time you call the
-    // <code>./configure</code> script in the top-level directory), then a
-    // dummy the actual data type of the typedef
-    // <code>Threads::ThreadMutex</code> is a class that provides all the
+    // <code>./configure</code> script in the top-level directory), then
+    // the actual data type of the typedef
+    // <code>Threads::Mutex</code> is a dummy class that provides all the
     // functions needed for a mutex, but does nothing when they are called;
     // this is reasonable, of course, since if only one thread is running at a
     // time, there is no need to synchronize with other threads.
-    Threads::ThreadMutex     assembler_lock;
+    Threads::Mutex     assembler_lock;
   };
 
 

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.