]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make one argument const.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 23 Apr 2012 14:05:13 +0000 (14:05 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 23 Apr 2012 14:05:13 +0000 (14:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@25432 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/full_matrix.templates.h

index 388eb341fbb2638ca58cee605c928825e709110c..6ec578dd756df7d7620334366505a90f1698f3fc 100644 (file)
@@ -1612,7 +1612,7 @@ FullMatrix<number>::right_invert (const FullMatrix<number2> &A)
 template <typename number>
 template <int dim>
 void
-FullMatrix<number>::copy_from (Tensor<2,dim> &T,
+FullMatrix<number>::copy_from (const Tensor<2,dim> &T,
                                const unsigned int src_r_i,
                                const unsigned int src_r_j,
                                const unsigned int src_c_i,
@@ -1633,7 +1633,7 @@ FullMatrix<number>::copy_from (Tensor<2,dim> &T,
 
   for (unsigned int i=0; i<src_r_j-src_r_i+1; i++)
     for (unsigned int j=0; j<src_c_j-src_c_i+1; j++)
-      (*this)(i+dst_r,j+dst_c)=number(T[i+src_r_i][j+src_c_i]);
+      (*this)(i+dst_r,j+dst_c) = number(T[i+src_r_i][j+src_c_i]);
 
 }
 

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.