]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix PointValueHistory to work with the updated VectorTools::point_value() 2229/head
authorDenis Davydov <davydden@gmail.com>
Mon, 22 Feb 2016 22:30:55 +0000 (23:30 +0100)
committerDenis Davydov <davydden@gmail.com>
Mon, 22 Feb 2016 22:30:55 +0000 (23:30 +0100)
source/numerics/point_value_history.cc

index ee6a4bd1780fd9525a7b5610ae1873ca56b13f5a..3ef392f964de6bf717f7dafc072beead3e72bf96 100644 (file)
@@ -817,6 +817,7 @@ void PointValueHistory<dim>
 ::evaluate_field_at_requested_location (const std::string &vector_name,
                                         const VectorType  &solution)
 {
+  typedef typename VectorType::value_type number;
   // must be closed to add data to internal
   // members.
   Assert (closed, ExcInvalidState ());
@@ -841,7 +842,7 @@ void PointValueHistory<dim>
   unsigned int n_stored = mask->second.n_selected_components(dof_handler->get_fe ().n_components ());
 
   typename std::vector <internal::PointValueHistory::PointGeometryData <dim> >::iterator point = point_geometry_data.begin ();
-  Vector <double> value (dof_handler->get_fe().n_components());
+  Vector <number> value (dof_handler->get_fe().n_components());
   for (unsigned int data_store_index = 0; point != point_geometry_data.end (); point++, data_store_index++)
     {
       // Make a Vector <double> for the value

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.