]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a test. 3804/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Sun, 15 Jan 2017 20:45:38 +0000 (15:45 -0500)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Sun, 15 Jan 2017 20:45:38 +0000 (15:45 -0500)
tests/numerics/project_parallel_qpmf_common.h

index 6fcab64d720d348f48fa8509e6d89d1d0dd09e8f..20cb58f86a89bb5601ddb27c66741edd5c874607 100644 (file)
@@ -119,8 +119,8 @@ void do_project (const parallel::distributed::Triangulation<dim> &triangulation,
   typename MatrixFree<dim,double>::AdditionalData additional_data;
   additional_data.tasks_parallel_scheme = MatrixFree<dim,double>::AdditionalData::partition_color;
   additional_data.mapping_update_flags = update_values | update_JxW_values | update_quadrature_points;
-  MatrixFree<dim,double>  data;
-  data.reinit (dof_handler, constraints, quadrature_formula_1d, additional_data);
+  std_cxx11::shared_ptr<MatrixFree<dim,double> >  data(new MatrixFree<dim,double> ());
+  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<dim> &triangulation,
 
       // initialize a quadrature data
       {
-        FEEvaluation<dim,fe_degree,n_q_points_1d,1,double> fe_eval(data);
-        const unsigned int n_cells = data.n_macro_cells();
+        FEEvaluation<dim,fe_degree,n_q_points_1d,1,double> 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<dim> &triangulation,
       }
 
       LinearAlgebra::distributed::Vector<double> field;
-      data.initialize_dof_vector(field);
+      data->initialize_dof_vector(field);
       VectorTools::project<dim,LinearAlgebra::distributed::Vector<double> >
       (data,
        constraints,

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.