xref: /petsc/src/sys/tests/linter/output/testValidLogicalCollective.patch (revision 98d129c30f3ee9fdddc40fdbc5a989b7be64f888)
1@@ -4,5 +4,5 @@
2 #include <petsc/private/viewerimpl.h>
3
4-PetscErrorCode testValidLogicalCollective(PetscInt a, PetscMPIInt b, PetscInt c, PetscBool d, PetscScalar e, PetscReal f)
5+static PetscErrorCode testValidLogicalCollective(PetscInt a, PetscMPIInt b, PetscInt c, PetscBool d, PetscScalar e, PetscReal f)
6 {
7   PetscViewer v; /* dummy variable to satisfy the PetscObject for the following */
8@@ -9,5 +9,5 @@
9
10   /* incorrect */
11-  PetscValidLogicalCollectiveInt(v, d, 2);
12+  PetscValidLogicalCollectiveBool(v, d, 4);
13   PetscValidLogicalCollectiveEnum(v, e, 3);
14   PetscValidLogicalCollectiveMPIInt(v, f, 4);
15@@ -10,5 +10,5 @@
16   /* incorrect */
17   PetscValidLogicalCollectiveInt(v, d, 2);
18-  PetscValidLogicalCollectiveEnum(v, e, 3);
19+  PetscValidLogicalCollectiveScalar(v, e, 5);
20   PetscValidLogicalCollectiveMPIInt(v, f, 4);
21   PetscValidLogicalCollectiveScalar(v, a, 5);
22@@ -11,5 +11,5 @@
23   PetscValidLogicalCollectiveInt(v, d, 2);
24   PetscValidLogicalCollectiveEnum(v, e, 3);
25-  PetscValidLogicalCollectiveMPIInt(v, f, 4);
26+  PetscValidLogicalCollectiveReal(v, f, 6);
27   PetscValidLogicalCollectiveScalar(v, a, 5);
28   PetscValidLogicalCollectiveReal(v, b, 6);
29@@ -12,5 +12,5 @@
30   PetscValidLogicalCollectiveEnum(v, e, 3);
31   PetscValidLogicalCollectiveMPIInt(v, f, 4);
32-  PetscValidLogicalCollectiveScalar(v, a, 5);
33+  PetscValidLogicalCollectiveInt(v, a, 1);
34   PetscValidLogicalCollectiveReal(v, b, 6);
35   PetscValidLogicalCollectiveEnum(v, c, 7);
36@@ -13,5 +13,5 @@
37   PetscValidLogicalCollectiveMPIInt(v, f, 4);
38   PetscValidLogicalCollectiveScalar(v, a, 5);
39-  PetscValidLogicalCollectiveReal(v, b, 6);
40+  PetscValidLogicalCollectiveMPIInt(v, b, 2);
41   PetscValidLogicalCollectiveEnum(v, c, 7);
42
43@@ -14,5 +14,5 @@
44   PetscValidLogicalCollectiveScalar(v, a, 5);
45   PetscValidLogicalCollectiveReal(v, b, 6);
46-  PetscValidLogicalCollectiveEnum(v, c, 7);
47+  PetscValidLogicalCollectiveInt(v, c, 3);
48
49   /* correct */
50