]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use p[index] instead of p(index) for class Point in one source file. 16503/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 19 Jan 2024 17:32:18 +0000 (10:32 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 19 Jan 2024 17:32:18 +0000 (10:32 -0700)
include/deal.II/lac/matrix_out.h

index f3a1c2918d837261d4f34ed5fb56c57eda426676..236c947cc136e3817c70190d86d6790b53408fe0 100644 (file)
@@ -359,14 +359,14 @@ MatrixOut::build_patches(const Matrix      &matrix,
         // matrix, rather than perpendicular to it. this has the advantage that,
         // for example, the unit matrix is plotted as a straight ridge, rather
         // than as a series of bumps and valleys along the diagonal
-        patches[index].vertices[0](0) = j;
-        patches[index].vertices[0](1) = -static_cast<signed int>(i);
-        patches[index].vertices[1](0) = j;
-        patches[index].vertices[1](1) = -static_cast<signed int>(i + 1);
-        patches[index].vertices[2](0) = j + 1;
-        patches[index].vertices[2](1) = -static_cast<signed int>(i);
-        patches[index].vertices[3](0) = j + 1;
-        patches[index].vertices[3](1) = -static_cast<signed int>(i + 1);
+        patches[index].vertices[0][0] = j;
+        patches[index].vertices[0][1] = -static_cast<signed int>(i);
+        patches[index].vertices[1][0] = j;
+        patches[index].vertices[1][1] = -static_cast<signed int>(i + 1);
+        patches[index].vertices[2][0] = j + 1;
+        patches[index].vertices[2][1] = -static_cast<signed int>(i);
+        patches[index].vertices[3][0] = j + 1;
+        patches[index].vertices[3][1] = -static_cast<signed int>(i + 1);
         // next scale all the patch
         // coordinates by the block
         // size, to get original

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.