From: Matthias Maier Date: Mon, 7 Sep 2015 19:03:55 +0000 (-0500) Subject: Do not use Tensor<..>(bool) contstructor in headers and testsuite X-Git-Tag: v8.4.0-rc2~466^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14e07c0f3ed74e23cc66a8adc0282bbc35c6c02f;p=dealii.git Do not use Tensor<..>(bool) contstructor in headers and testsuite --- diff --git a/include/deal.II/matrix_free/fe_evaluation.h b/include/deal.II/matrix_free/fe_evaluation.h index 20ef63f77f..4725235c16 100644 --- a/include/deal.II/matrix_free/fe_evaluation.h +++ b/include/deal.II/matrix_free/fe_evaluation.h @@ -3217,7 +3217,7 @@ FEEvaluationBase ::get_dof_value (const unsigned int dof) const { AssertIndexRange (dof, this->data->dofs_per_cell); - Tensor<1,n_components_,VectorizedArray > return_value (false); + Tensor<1,n_components_,VectorizedArray > return_value; for (unsigned int comp=0; compvalues_dofs[comp][dof]; return return_value; @@ -3234,7 +3234,7 @@ FEEvaluationBase Assert (this->values_quad_initialized==true, internal::ExcAccessToUninitializedField()); AssertIndexRange (q_point, this->data->n_q_points); - Tensor<1,n_components_,VectorizedArray > return_value (false); + Tensor<1,n_components_,VectorizedArray > return_value; for (unsigned int comp=0; compvalues_quad[comp][q_point]; return return_value; @@ -3252,7 +3252,7 @@ FEEvaluationBase internal::ExcAccessToUninitializedField()); AssertIndexRange (q_point, this->data->n_q_points); - Tensor<1,n_components_,Tensor<1,dim,VectorizedArray > > grad_out (false); + Tensor<1,n_components_,Tensor<1,dim,VectorizedArray > > grad_out; // Cartesian cell if (this->cell_type == internal::MatrixFreeFunctions::cartesian) @@ -3477,7 +3477,7 @@ FEEvaluationBase internal::ExcAccessToUninitializedField()); AssertIndexRange (q_point, this->data->n_q_points); - Tensor<1,n_components_,Tensor<1,dim,VectorizedArray > > hessian_out (false); + Tensor<1,n_components_,Tensor<1,dim,VectorizedArray > > hessian_out; // Cartesian cell if (this->cell_type == internal::MatrixFreeFunctions::cartesian) @@ -3554,7 +3554,7 @@ FEEvaluationBase Assert (this->hessians_quad_initialized==true, internal::ExcAccessToUninitializedField()); AssertIndexRange (q_point, this->data->n_q_points); - Tensor<1,n_components_,VectorizedArray > laplacian_out (false); + Tensor<1,n_components_,VectorizedArray > laplacian_out; const Tensor<1,n_components_,Tensor<1,dim,VectorizedArray > > hess_diag = get_hessian_diagonal(q_point); for (unsigned int comp=0; comp Assert (this->values_quad_submitted == true, internal::ExcAccessToUninitializedField()); #endif - Tensor<1,n_components_,VectorizedArray > return_value (false); + Tensor<1,n_components_,VectorizedArray > return_value; for (unsigned int comp=0; compvalues_quad[comp][0]; const unsigned int n_q_points = this->data->n_q_points; @@ -3808,7 +3808,7 @@ FEEvaluationAccess internal::ExcAccessToUninitializedField()); AssertIndexRange (q_point, this->data->n_q_points); - Tensor<1,dim,VectorizedArray > grad_out (false); + Tensor<1,dim,VectorizedArray > grad_out; // Cartesian cell if (this->cell_type == internal::MatrixFreeFunctions::cartesian) @@ -4102,7 +4102,7 @@ FEEvaluationAccess { // copy from generic function into dim-specialization function const Tensor<2,dim,VectorizedArray > grad = get_gradient(q_point); - Tensor<1,dim==2?1:dim,VectorizedArray > curl (false); + Tensor<1,dim==2?1:dim,VectorizedArray > curl; switch (dim) { case 1: @@ -4407,7 +4407,7 @@ FEEvaluationAccess<1,1,Number> internal::ExcAccessToUninitializedField()); AssertIndexRange (q_point, this->data->n_q_points); - Tensor<1,1,VectorizedArray > grad_out (false); + Tensor<1,1,VectorizedArray > grad_out; // Cartesian cell if (this->cell_type == internal::MatrixFreeFunctions::cartesian) @@ -6660,7 +6660,7 @@ FEEvaluation // value from that if (this->cell_type == internal::MatrixFreeFunctions::cartesian) { - Point > point (false); + Point > point; switch (dim) { case 1: diff --git a/tests/base/tensor_26.cc b/tests/base/tensor_26.cc index 8a8fbf1efc..7efabdde4c 100644 --- a/tests/base/tensor_26.cc +++ b/tests/base/tensor_26.cc @@ -32,7 +32,7 @@ template void test_tensor () { // a real tensor - Tensor<1,dim,double> t (false); + Tensor<1,dim,double> t; for (unsigned int i=0; i void test_tensor_01 () { - Tensor<1,dim,std::complex > t (false); + Tensor<1,dim,std::complex > t; for (unsigned int i=0; i (i,1); @@ -41,7 +41,7 @@ void test_tensor_01 () template void test_tensor_02 () { - Tensor<1,dim,std::complex > t (false); + Tensor<1,dim,std::complex > t; for (unsigned int i=0; i (1,i); diff --git a/tests/matrix_free/integrate_functions.cc b/tests/matrix_free/integrate_functions.cc index 7e7abb7d67..7fc45a2f32 100644 --- a/tests/matrix_free/integrate_functions.cc +++ b/tests/matrix_free/integrate_functions.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 2013 - 2014 by the deal.II authors +// Copyright (C) 2013 - 2015 by the deal.II authors // // This file is part of the deal.II library. // @@ -129,7 +129,7 @@ operator () (const MatrixFree &data, for (unsigned int q=0; q > submit (false); + Tensor<1,dim,VectorizedArray > submit; for (unsigned int d=0; d &data, for (unsigned int q=0; q > submit (false); + Tensor<1,dim,VectorizedArray > submit; for (unsigned int d=0; d &data, for (unsigned int q=0; q > submit (false); + Tensor<1,dim,VectorizedArray > submit; for (unsigned int d=0; d &data, for (unsigned int q=0; q > submit (false); + Tensor<1,dim,VectorizedArray > submit; for (unsigned int d=0; d &data, for (unsigned int q=0; q > submit (false); + Tensor<1,dim,VectorizedArray > submit; for (unsigned int d=0; d &data, for (unsigned int q=0; q > submit (false); + Tensor<1,dim,VectorizedArray > submit; for (unsigned int d=0; d &data, for (unsigned int q=0; q > submit (false); + Tensor<1,dim,VectorizedArray > submit; for (unsigned int d=0; d