]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove make_vectorized and fix get_symmetric_gradient() 10525/head
authorD Schneider <dav.schneider@tum.de>
Sat, 13 Jun 2020 15:18:03 +0000 (17:18 +0200)
committerD Schneider <dav.schneider@tum.de>
Sat, 13 Jun 2020 15:18:03 +0000 (17:18 +0200)
include/deal.II/matrix_free/fe_evaluation.h

index 83797641564ade34a403c70694c33ec73e846b66..cbde241e1f8fc035ea31a8e7bba0941debd96baa 100644 (file)
@@ -3839,8 +3839,7 @@ FEEvaluationBase<dim, n_components_, Number, is_face, VectorizedArrayType>::
   const auto cells = this->get_cell_ids();
 
   // 2) actually gather values
-  VectorizedArrayType out =
-    make_vectorized_array<VectorizedArrayType>(Number(1.));
+  VectorizedArrayType out = Number(1.);
   for (unsigned int i = 0; i < VectorizedArrayType::size(); ++i)
     if (cells[i] != numbers::invalid_unsigned_int)
       out[i] = array[cells[i] / VectorizedArrayType::size()]
@@ -6057,7 +6056,7 @@ inline DEAL_II_ALWAYS_INLINE SymmetricTensor<2, dim, VectorizedArrayType>
   // copy from generic function into dim-specialization function
   const Tensor<2, dim, VectorizedArrayType> grad = get_gradient(q_point);
   VectorizedArrayType                       symmetrized[(dim * dim + dim) / 2];
-  VectorizedArrayType half = make_vectorized_array<Number>(0.5);
+  VectorizedArrayType                       half = Number(0.5);
   for (unsigned int d = 0; d < dim; ++d)
     symmetrized[d] = grad[d][d];
   switch (dim)

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.