]> https://gitweb.dealii.org/ - dealii.git/commitdiff
minor fix to exted p::d::SolutionTransfer to complex-valued vectors 2433/head
authorDenis Davydov <davydden@gmail.com>
Tue, 29 Mar 2016 15:55:02 +0000 (17:55 +0200)
committerDenis Davydov <davydden@gmail.com>
Tue, 29 Mar 2016 15:55:02 +0000 (17:55 +0200)
source/distributed/solution_transfer.cc

index a793b2b97f5e81f80bb66c1b9e8433566a5eae06..8abc708ae021d2c922e9ac1a53269a6d226ea5b0 100644 (file)
@@ -200,7 +200,7 @@ namespace parallel
     unsigned int
     SolutionTransfer<dim, VectorType, DoFHandlerType>::get_data_size() const
     {
-      return sizeof(double)* DoFTools::max_dofs_per_cell(*dof_handler);
+      return sizeof(typename VectorType::value_type)* DoFTools::max_dofs_per_cell(*dof_handler);
     }
 
 
@@ -222,7 +222,6 @@ namespace parallel
            ++it)
         {
           cell->get_interpolated_dof_values(*(*it), dofvalues);
-          Assert (typeid(typename VectorType::value_type) == typeid(double), ExcNotImplemented());
           std::memcpy(data_store, &dofvalues(0), sizeof(typename VectorType::value_type)*dofs_per_cell);
           data_store += dofs_per_cell;
         }
@@ -248,7 +247,6 @@ namespace parallel
            it != all_out.end();
            ++it)
         {
-          Assert (typeid(typename VectorType::value_type) == typeid(double), ExcNotImplemented());
           std::memcpy(&dofvalues(0), data_store, sizeof(typename VectorType::value_type)*dofs_per_cell);
           cell->set_dof_values_by_interpolation(dofvalues, *(*it));
           data_store += dofs_per_cell;

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.