From: Denis Davydov Date: Tue, 29 Mar 2016 15:55:02 +0000 (+0200) Subject: minor fix to exted p::d::SolutionTransfer to complex-valued vectors X-Git-Tag: v8.5.0-rc1~1155^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fc4a13e98509bf636919eae9c4bb6d9145ef884;p=dealii.git minor fix to exted p::d::SolutionTransfer to complex-valued vectors --- diff --git a/source/distributed/solution_transfer.cc b/source/distributed/solution_transfer.cc index a793b2b97f..8abc708ae0 100644 --- a/source/distributed/solution_transfer.cc +++ b/source/distributed/solution_transfer.cc @@ -200,7 +200,7 @@ namespace parallel unsigned int SolutionTransfer::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;