Skip to content

Commit

Permalink
MatrixFree: Use separate data arrays for two separate evaluators
Browse files Browse the repository at this point in the history
  • Loading branch information
kronbichler committed Jul 20, 2022
1 parent b8f23f1 commit 9688af2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions include/deal.II/matrix_free/mapping_info.templates.h
Original file line number Diff line number Diff line change
Expand Up @@ -2101,11 +2101,10 @@ namespace internal
FEEvaluationData<dim, VectorizedDouble, true> eval_ext(shape_info,
false);

// Let both evaluators use the same array as their use will not
// overlap
AlignedVector<VectorizedDouble> evaluation_data;
eval_int.set_data_pointers(&evaluation_data, dim);
eval_ext.set_data_pointers(&evaluation_data, dim);
AlignedVector<VectorizedDouble> evaluation_data_int,
evaluation_data_ext;
eval_int.set_data_pointers(&evaluation_data_int, dim);
eval_ext.set_data_pointers(&evaluation_data_ext, dim);

for (unsigned int face = begin_face; face < end_face; ++face)
for (unsigned vv = 0; vv < n_lanes; vv += n_lanes_d)
Expand Down

0 comments on commit 9688af2

Please sign in to comment.