From: Martin Kronbichler Date: Mon, 7 Nov 2016 11:16:26 +0000 (+0100) Subject: Test copy constructor X-Git-Tag: v8.5.0-rc1~445^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a99e7a09e5439dcaa5016b6ec2f0202c9bfad20;p=dealii.git Test copy constructor --- diff --git a/tests/matrix_free/copy_feevaluation.cc b/tests/matrix_free/copy_feevaluation.cc index 51079726cf..50b724d5e2 100644 --- a/tests/matrix_free/copy_feevaluation.cc +++ b/tests/matrix_free/copy_feevaluation.cc @@ -75,23 +75,25 @@ public: (1, FEEvaluation(data, 0)); AlignedVector > pressure (1, FEEvaluation(data, 1)); + FEEvaluation pressure2(data, 1); + pressure2 = pressure[0]; for (unsigned int cell=cell_range.first; cell::n_q_points; ++q) { SymmetricTensor<2,dim,vector_t> sym_grad_u = velocity[0].get_symmetric_gradient (q); - vector_t pres = pressure[0].get_value(q); + vector_t pres = pressure2.get_value(q); vector_t div = -velocity[0].get_divergence(q); - pressure[0].submit_value (div, q); + pressure2.submit_value (div, q); // subtract p * I for (unsigned int d=0; d