From 8fc4a13e98509bf636919eae9c4bb6d9145ef884 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Tue, 29 Mar 2016 17:55:02 +0200 Subject: [PATCH] minor fix to exted p::d::SolutionTransfer to complex-valued vectors --- source/distributed/solution_transfer.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.39.5