]> https://gitweb.dealii.org/ - dealii.git/commitdiff
derivative approximation uses operator* of SynchronousIterators
authordanshapero <shapero.daniel@gmail.com>
Fri, 24 Jun 2016 01:56:08 +0000 (18:56 -0700)
committerdanshapero <shapero.daniel@gmail.com>
Fri, 24 Jun 2016 22:11:19 +0000 (15:11 -0700)
source/numerics/derivative_approximation.cc

index 149010065190f97d9c132116c8de4db11ba18cb3..3b32bc1fbfa3ed81fff7702be35b84f443ad07d7 100644 (file)
@@ -937,19 +937,19 @@ namespace DerivativeApproximation
      const unsigned int                  component)
     {
       // if the cell is not locally owned, then there is nothing to do
-      if (std_cxx11::get<0>(cell.iterators)->is_locally_owned() == false)
-        *std_cxx11::get<1>(cell.iterators) = 0;
+      if (std_cxx11::get<0>(*cell)->is_locally_owned() == false)
+        *std_cxx11::get<1>(*cell) = 0;
       else
         {
           typename DerivativeDescription::Derivative derivative;
           // call the function doing the actual
           // work on this cell
           approximate_cell<DerivativeDescription,dim,DoFHandlerType,InputVector, spacedim>
-          (mapping,dof_handler,solution,component,std_cxx11::get<0>(cell.iterators),derivative);
+          (mapping,dof_handler,solution,component,std_cxx11::get<0>(*cell),derivative);
 
           // evaluate the norm and fill the vector
           //*derivative_norm_on_this_cell
-          *std_cxx11::get<1>(cell.iterators) = DerivativeDescription::derivative_norm (derivative);
+          *std_cxx11::get<1>(*cell) = DerivativeDescription::derivative_norm (derivative);
         }
     }
 

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.