]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Cleanup code.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 17 Jan 2000 13:39:46 +0000 (13:39 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 17 Jan 2000 13:39:46 +0000 (13:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@2231 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/time_dependent.cc

index cfb3b7a383333546a62b2bab8945a945cda44f25..dbca98e07cd15eff0d4f5f9f564468fdbdf4d263 100644 (file)
@@ -203,11 +203,7 @@ void TimeDependent::start_sweep (const unsigned int s)
 
 
 
-void TimeDependent::end_sweep (const unsigned int
-#ifdef DEAL_II_USE_MT
-                              n_threads
-#endif
-)
+void TimeDependent::end_sweep (const unsigned int n_threads)
 {
 #ifdef DEAL_II_USE_MT
                                   // set up the data needed by each
@@ -233,6 +229,10 @@ void TimeDependent::end_sweep (const unsigned int
   thread_manager.wait();
   
 #else
+                                  // ignore this parameter, but don't
+                                  // let the compiler warn
+  (void) n_threads;
+                                  // now do the work
   end_sweep (0, timesteps.size());
 #endif
 }

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.