]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix fe_face_evaluation_process_and_io for multiple components 11157/head
authorPeter Munch <peterrmuench@gmail.com>
Tue, 10 Nov 2020 16:23:15 +0000 (17:23 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Tue, 10 Nov 2020 16:25:00 +0000 (17:25 +0100)
include/deal.II/matrix_free/evaluation_kernels.h

index 67e437b511faaefcc057269d5d222a44e0c870fc..eb9c18af22b76568cfab35fc73039e5b655ea268 100644 (file)
@@ -3024,7 +3024,9 @@ namespace internal
                                   [cell * VectorizedArrayType::size() + v];
                               vector_ptrs[v] = const_cast<Number *>(
                                 sm_ptr->operator[](temp.first).data() +
-                                temp.second);
+                                temp.second + comp * static_dofs_per_component +
+                                dof_info.component_dof_indices_offset
+                                  [active_fe_index][first_selected_component]);
                             }
                       }
                     else if (n_face_orientations == VectorizedArrayType::size())
@@ -3049,7 +3051,11 @@ namespace internal
                                       [dof_access_index][cells[v]];
                                   vector_ptrs[v] = const_cast<Number *>(
                                     sm_ptr->operator[](temp.first).data() +
-                                    temp.second);
+                                    temp.second +
+                                    comp * static_dofs_per_component +
+                                    dof_info.component_dof_indices_offset
+                                      [active_fe_index]
+                                      [first_selected_component]);
                                 }
                             }
                       }

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.