]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make variables const and thus Intel C++ compiler more happy.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 18 May 2001 08:52:47 +0000 (08:52 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 18 May 2001 08:52:47 +0000 (08:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@4669 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/error_estimator.h
deal.II/deal.II/source/numerics/error_estimator.cc
deal.II/deal.II/source/numerics/matrices.cc

index 9f3dd89468f31f1cdcb8926da039f97943484354..7ab4fef26d6287ec6f89d029d0265efd43d47c7f 100644 (file)
@@ -264,7 +264,7 @@ class KellyErrorEstimator
                          Vector<float>           &error,
                          const std::vector<bool> &component_mask = std::vector<bool>(),
                          const Function<dim>     *coefficients   = 0,
-                         unsigned int             n_threads = multithread_info.n_default_threads);
+                         const unsigned int       n_threads = multithread_info.n_default_threads);
 
                                     /**
                                      * Calls the @p{estimate}
index 60bc50eb9e5b3232ec5f85075d223a031383c7c4..bd5866287585e109b3f070fb5d570800827ac313 100644 (file)
@@ -544,7 +544,7 @@ void KellyErrorEstimator<dim>::estimate (const Mapping<dim>                  &ma
                                         std::vector<Vector<float>*>              &errors,
                                         const std::vector<bool>                  &component_mask,
                                         const Function<dim>                 *coefficients,
-                                        unsigned int                         n_threads)
+                                        const unsigned int                   n_threads_)
 {
                                   // sanity checks
   Assert (solutions.size() > 0,
@@ -557,6 +557,7 @@ void KellyErrorEstimator<dim>::estimate (const Mapping<dim>                  &ma
   
          
                                   // if NOT multithreaded, set n_threads to one
+  unsigned int n_threads = n_threads_;
 #ifndef DEAL_II_USE_MT
   n_threads = 1;
 #endif
index 817cfe671fd9bf7063b09e87917f148f578a8fae..487f4679bc94d8d9bafd0d6e73756e2f04563852 100644 (file)
@@ -320,7 +320,7 @@ void MatrixCreator<1>::create_boundary_mass_matrix (const Mapping<1>          &,
                                                    const FunctionMap<1>::type&,
                                                    Vector<double>            &,
                                                    std::vector<unsigned int> &,
-                                                   const Function<1>         *)
+                                                   const Function<1>         * const)
 {
                                   // what would that be in 1d? the
                                   // identity matrix on tehe boundary

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.