From: Bruno Turcksin Date: Sun, 15 Jan 2017 20:45:38 +0000 (-0500) Subject: Fix a test. X-Git-Tag: v8.5.0-rc1~235^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3804%2Fhead;p=dealii.git Fix a test. --- diff --git a/tests/numerics/project_parallel_qpmf_common.h b/tests/numerics/project_parallel_qpmf_common.h index 6fcab64d72..20cb58f86a 100644 --- a/tests/numerics/project_parallel_qpmf_common.h +++ b/tests/numerics/project_parallel_qpmf_common.h @@ -119,8 +119,8 @@ void do_project (const parallel::distributed::Triangulation &triangulation, typename MatrixFree::AdditionalData additional_data; additional_data.tasks_parallel_scheme = MatrixFree::AdditionalData::partition_color; additional_data.mapping_update_flags = update_values | update_JxW_values | update_quadrature_points; - MatrixFree data; - data.reinit (dof_handler, constraints, quadrature_formula_1d, additional_data); + std_cxx11::shared_ptr > data(new MatrixFree ()); + data->reinit (dof_handler, constraints, quadrature_formula_1d, additional_data); for (unsigned int q=0; q<=p; ++q) { @@ -129,8 +129,8 @@ void do_project (const parallel::distributed::Triangulation &triangulation, // initialize a quadrature data { - FEEvaluation fe_eval(data); - const unsigned int n_cells = data.n_macro_cells(); + FEEvaluation fe_eval(*data); + const unsigned int n_cells = data->n_macro_cells(); const unsigned int n_q_points = fe_eval.n_q_points; qp_data.reinit(n_cells, n_q_points); @@ -143,7 +143,7 @@ void do_project (const parallel::distributed::Triangulation &triangulation, } LinearAlgebra::distributed::Vector field; - data.initialize_dof_vector(field); + data->initialize_dof_vector(field); VectorTools::project > (data, constraints,