]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove register declaration of variables altogether. The compiler certainly knows...
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 7 Nov 2009 15:32:50 +0000 (15:32 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 7 Nov 2009 15:32:50 +0000 (15:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@20062 0785d39b-7218-0410-832d-ea1e28bc413d

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

index aa927e5c467a78fa9d9415e0992e9e4f71cd15cc..397f344b0d6247f722000fcabcc987c87b72d7e0 100644 (file)
@@ -404,7 +404,7 @@ Vector<Number>::norm_sqr () const
   Assert (vec_size!=0, ExcEmptyObject());
 
   const unsigned int blocking = 1<<BLOCK_LEVEL;
-  register real_type sum1, sum2, sum3, sum = 0.;
+  real_type sum1, sum2, sum3, sum = 0.;
   const Number * X = val, *X_end = X + vec_size, 
     *X_end3 = X + ((vec_size>>(BLOCK_LEVEL))<<(BLOCK_LEVEL)),
     *X_end2 = X + ((vec_size>>(2*BLOCK_LEVEL))<<(2*BLOCK_LEVEL)),
@@ -522,7 +522,7 @@ Vector<Number>::l1_norm () const
   Assert (vec_size!=0, ExcEmptyObject());
  
   const unsigned int blocking = 1<<BLOCK_LEVEL;
-  register real_type sum1, sum2, sum3, sum = 0.;
+  real_type sum1, sum2, sum3, sum = 0.;
   const Number * X = val, *X_end = X + vec_size, 
     *X_end3 = X + ((vec_size>>(BLOCK_LEVEL))<<(BLOCK_LEVEL)),
     *X_end2 = X + ((vec_size>>(2*BLOCK_LEVEL))<<(2*BLOCK_LEVEL)),
@@ -596,7 +596,7 @@ Vector<Number>::lp_norm (const real_type p) const
     return std::sqrt(norm_sqr());
 
   const unsigned int blocking = 1<<BLOCK_LEVEL;
-  register real_type sum1, sum2, sum3, sum = 0.;
+  real_type sum1, sum2, sum3, sum = 0.;
   const Number * X = val, *X_end = X + vec_size, 
     *X_end3 = X + ((vec_size>>(BLOCK_LEVEL))<<(BLOCK_LEVEL)),
     *X_end2 = X + ((vec_size>>(2*BLOCK_LEVEL))<<(2*BLOCK_LEVEL)),

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.