From d801fed3796c8c0e3c506921d1b70f13de015e08 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 27 Jan 2017 15:49:59 +0100 Subject: [PATCH] Update test to the new MFOperators interface --- tests/arpack/step-36_parpack_mf.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/arpack/step-36_parpack_mf.cc b/tests/arpack/step-36_parpack_mf.cc index 0bfbef63fa..4eb29014de 100644 --- a/tests/arpack/step-36_parpack_mf.cc +++ b/tests/arpack/step-36_parpack_mf.cc @@ -91,14 +91,14 @@ void test () constraints); constraints.close (); - MatrixFree mf_data; + std_cxx11::shared_ptr > mf_data(new MatrixFree ()); { const QGauss<1> quad (fe_degree+1); typename MatrixFree::AdditionalData data; data.tasks_parallel_scheme = MatrixFree::AdditionalData::partition_color; data.mapping_update_flags = update_values | update_gradients | update_JxW_values; - mf_data.reinit (dof_handler, constraints, quad, data); + mf_data->reinit (dof_handler, constraints, quad, data); } @@ -112,7 +112,7 @@ void test () eigenfunctions.resize (number_of_eigenvalues); eigenvalues.resize (number_of_eigenvalues); for (unsigned int i=0; iinitialize_dof_vector (eigenfunctions[i]); // test PArpack with matrix-free { @@ -144,7 +144,7 @@ void test () // make sure initial vector is orthogonal to the space due to constraints { LinearAlgebra::distributed::Vector init_vector; - mf_data.initialize_dof_vector(init_vector); + mf_data->initialize_dof_vector(init_vector); init_vector = 1.; constraints.set_zero(init_vector); eigensolver.set_initial_vector(init_vector); -- 2.39.5