]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Switch indices
authorMartin Kronbichler <martin.kronbichler@rub.de>
Thu, 21 Mar 2024 14:07:44 +0000 (15:07 +0100)
committerMartin Kronbichler <martin.kronbichler@rub.de>
Thu, 21 Mar 2024 14:07:44 +0000 (15:07 +0100)
include/deal.II/non_matching/mapping_info.h

index 1742fd46d345f2da770ceb2158d502677597346b..85b1864bc8f234b56d8144150069a257ffccb8d4 100644 (file)
@@ -1960,13 +1960,13 @@ namespace NonMatching
                         v) = mapping_data.jacobians[q * n_lanes + v][d][s];
                 if (update_flags_mapping &
                     UpdateFlags::update_inverse_jacobians)
-                  for (unsigned int d = 0; d < spacedim; ++d)
-                    for (unsigned int s = 0; s < dim; ++s)
+                  for (unsigned int d = 0; d < dim; ++d)
+                    for (unsigned int s = 0; s < spacedim; ++s)
                       dealii::internal::VectorizedArrayTrait<Number>::get(
                         inverse_jacobians[is_interior ? 0 : 1]
-                                         [compressed_offset][s][d],
+                                         [compressed_offset][d][s],
                         v) =
-                        mapping_data.inverse_jacobians[q * n_lanes + v][s][d];
+                        mapping_data.inverse_jacobians[q * n_lanes + v][d][s];
               }
 
             if (is_interior)

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.