1<--- FIXED ---> 2-------------------------------------------------------------------------------------------- 3[31m[1m./src/sys/tests/linter/testValidLogicalCollective.c:8:3: error:[0m Incorrect use of PetscValidLogicalCollectiveInt(), use PetscValidLogicalCollectiveBool() instead [-fincompatible-function]: 4 6 : 5 7 : /* incorrect */ 6> 8 : [33m[1mPetscValidLogicalCollectiveInt(v, d, 2)[0m; 7 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 8 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 9 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 10 11./src/sys/tests/linter/testValidLogicalCollective.c:8:37 Note: Due to 'd' of type 'PetscBool' 12 6 : 13 7 : /* incorrect */ 14> 8 : PetscValidLogicalCollectiveInt(v, [33m[1md[0m, 2); 15 [33m[1m^[0m 16 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 17 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 18 19[31m[1m./src/sys/tests/linter/testValidLogicalCollective.c:8:40: error:[0m Argument number doesn't match for 'd'. Expected '4', found '2' [-fmatching-arg-num]: 20 6 : 21 7 : /* incorrect */ 22> 8 : PetscValidLogicalCollectiveInt(v, d, [33m[1m2[0m); 23 [33m[1m^[0m 24 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 25 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 26 27./src/sys/tests/linter/testValidLogicalCollective.c:3:82 Note: 'd' is traceable to argument #4 'd' in enclosing function here: 28 1: #include <petsc/private/viewerimpl.h> 29 2: 30> 3: PetscErrorCode testValidLogicalCollective(PetscInt a, PetscMPIInt b, PetscInt c, [33m[1mPetscBool d[0m, PetscScalar e, PetscReal f) 31 [33m[1m^^^^^^^^^^^[0m 32 4: { 33 5: PetscViewer v; /* dummy variable to satisfy the PetscObject for the following */ 34[31m[1m./src/sys/tests/linter/testValidLogicalCollective.c:9:3: error:[0m Incorrect use of PetscValidLogicalCollectiveEnum(), use PetscValidLogicalCollectiveScalar() instead [-fincompatible-function]: 35 7 : /* incorrect */ 36 8 : PetscValidLogicalCollectiveInt(v, d, 2); 37> 9 : [33m[1mPetscValidLogicalCollectiveEnum(v, e, 3)[0m; 38 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 39 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 40 11: PetscValidLogicalCollectiveScalar(v, a, 5); 41 42./src/sys/tests/linter/testValidLogicalCollective.c:9:38 Note: Due to 'e' of type 'PetscScalar' (a.k.a. 'double') 43 7 : /* incorrect */ 44 8 : PetscValidLogicalCollectiveInt(v, d, 2); 45> 9 : PetscValidLogicalCollectiveEnum(v, [33m[1me[0m, 3); 46 [33m[1m^[0m 47 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 48 11: PetscValidLogicalCollectiveScalar(v, a, 5); 49 50[31m[1m./src/sys/tests/linter/testValidLogicalCollective.c:9:41: error:[0m Argument number doesn't match for 'e'. Expected '5', found '3' [-fmatching-arg-num]: 51 7 : /* incorrect */ 52 8 : PetscValidLogicalCollectiveInt(v, d, 2); 53> 9 : PetscValidLogicalCollectiveEnum(v, e, [33m[1m3[0m); 54 [33m[1m^[0m 55 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 56 11: PetscValidLogicalCollectiveScalar(v, a, 5); 57 58./src/sys/tests/linter/testValidLogicalCollective.c:3:95 Note: 'e' is traceable to argument #5 'e' in enclosing function here: 59 1: #include <petsc/private/viewerimpl.h> 60 2: 61> 3: PetscErrorCode testValidLogicalCollective(PetscInt a, PetscMPIInt b, PetscInt c, PetscBool d, [33m[1mPetscScalar e[0m, PetscReal f) 62 [33m[1m^^^^^^^^^^^^^[0m 63 4: { 64 5: PetscViewer v; /* dummy variable to satisfy the PetscObject for the following */ 65[31m[1m./src/sys/tests/linter/testValidLogicalCollective.c:10:3: error:[0m Incorrect use of PetscValidLogicalCollectiveMPIInt(), use PetscValidLogicalCollectiveReal() instead [-fincompatible-function]: 66 8 : PetscValidLogicalCollectiveInt(v, d, 2); 67 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 68> 10: [33m[1mPetscValidLogicalCollectiveMPIInt(v, f, 4)[0m; 69 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 70 11: PetscValidLogicalCollectiveScalar(v, a, 5); 71 12: PetscValidLogicalCollectiveReal(v, b, 6); 72 73./src/sys/tests/linter/testValidLogicalCollective.c:10:40 Note: Due to 'f' of type 'PetscReal' (a.k.a. 'double') 74 8 : PetscValidLogicalCollectiveInt(v, d, 2); 75 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 76> 10: PetscValidLogicalCollectiveMPIInt(v, [33m[1mf[0m, 4); 77 [33m[1m^[0m 78 11: PetscValidLogicalCollectiveScalar(v, a, 5); 79 12: PetscValidLogicalCollectiveReal(v, b, 6); 80 81[31m[1m./src/sys/tests/linter/testValidLogicalCollective.c:10:43: error:[0m Argument number doesn't match for 'f'. Expected '6', found '4' [-fmatching-arg-num]: 82 8 : PetscValidLogicalCollectiveInt(v, d, 2); 83 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 84> 10: PetscValidLogicalCollectiveMPIInt(v, f, [33m[1m4[0m); 85 [33m[1m^[0m 86 11: PetscValidLogicalCollectiveScalar(v, a, 5); 87 12: PetscValidLogicalCollectiveReal(v, b, 6); 88 89./src/sys/tests/linter/testValidLogicalCollective.c:3:110 Note: 'f' is traceable to argument #6 'f' in enclosing function here: 90 1: #include <petsc/private/viewerimpl.h> 91 2: 92> 3: PetscErrorCode testValidLogicalCollective(PetscInt a, PetscMPIInt b, PetscInt c, PetscBool d, PetscScalar e, [33m[1mPetscReal f[0m) 93 [33m[1m^^^^^^^^^^^[0m 94 4: { 95 5: PetscViewer v; /* dummy variable to satisfy the PetscObject for the following */ 96[31m[1m./src/sys/tests/linter/testValidLogicalCollective.c:11:3: error:[0m Incorrect use of PetscValidLogicalCollectiveScalar(), use PetscValidLogicalCollectiveInt() instead [-fincompatible-function]: 97 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 98 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 99> 11: [33m[1mPetscValidLogicalCollectiveScalar(v, a, 5)[0m; 100 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 101 12: PetscValidLogicalCollectiveReal(v, b, 6); 102 13: PetscValidLogicalCollectiveEnum(v, c, 7); 103 104./src/sys/tests/linter/testValidLogicalCollective.c:11:40 Note: Due to 'a' of type 'PetscInt' (a.k.a. 'int') 105 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 106 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 107> 11: PetscValidLogicalCollectiveScalar(v, [33m[1ma[0m, 5); 108 [33m[1m^[0m 109 12: PetscValidLogicalCollectiveReal(v, b, 6); 110 13: PetscValidLogicalCollectiveEnum(v, c, 7); 111 112[31m[1m./src/sys/tests/linter/testValidLogicalCollective.c:11:43: error:[0m Argument number doesn't match for 'a'. Expected '1', found '5' [-fmatching-arg-num]: 113 9 : PetscValidLogicalCollectiveEnum(v, e, 3); 114 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 115> 11: PetscValidLogicalCollectiveScalar(v, a, [33m[1m5[0m); 116 [33m[1m^[0m 117 12: PetscValidLogicalCollectiveReal(v, b, 6); 118 13: PetscValidLogicalCollectiveEnum(v, c, 7); 119 120./src/sys/tests/linter/testValidLogicalCollective.c:3:43 Note: 'a' is traceable to argument #1 'a' in enclosing function here: 121 1: #include <petsc/private/viewerimpl.h> 122 2: 123> 3: PetscErrorCode testValidLogicalCollective([33m[1mPetscInt a[0m, PetscMPIInt b, PetscInt c, PetscBool d, PetscScalar e, PetscReal f) 124 [33m[1m^^^^^^^^^^[0m 125 4: { 126 5: PetscViewer v; /* dummy variable to satisfy the PetscObject for the following */ 127[31m[1m./src/sys/tests/linter/testValidLogicalCollective.c:12:3: error:[0m Incorrect use of PetscValidLogicalCollectiveReal(), use PetscValidLogicalCollectiveMPIInt() instead [-fincompatible-function]: 128 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 129 11: PetscValidLogicalCollectiveScalar(v, a, 5); 130> 12: [33m[1mPetscValidLogicalCollectiveReal(v, b, 6)[0m; 131 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 132 13: PetscValidLogicalCollectiveEnum(v, c, 7); 133 14: 134 135./src/sys/tests/linter/testValidLogicalCollective.c:12:38 Note: Due to 'b' of type 'PetscMPIInt' (a.k.a. 'int') 136 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 137 11: PetscValidLogicalCollectiveScalar(v, a, 5); 138> 12: PetscValidLogicalCollectiveReal(v, [33m[1mb[0m, 6); 139 [33m[1m^[0m 140 13: PetscValidLogicalCollectiveEnum(v, c, 7); 141 14: 142 143[31m[1m./src/sys/tests/linter/testValidLogicalCollective.c:12:41: error:[0m Argument number doesn't match for 'b'. Expected '2', found '6' [-fmatching-arg-num]: 144 10: PetscValidLogicalCollectiveMPIInt(v, f, 4); 145 11: PetscValidLogicalCollectiveScalar(v, a, 5); 146> 12: PetscValidLogicalCollectiveReal(v, b, [33m[1m6[0m); 147 [33m[1m^[0m 148 13: PetscValidLogicalCollectiveEnum(v, c, 7); 149 14: 150 151./src/sys/tests/linter/testValidLogicalCollective.c:3:55 Note: 'b' is traceable to argument #2 'b' in enclosing function here: 152 1: #include <petsc/private/viewerimpl.h> 153 2: 154> 3: PetscErrorCode testValidLogicalCollective(PetscInt a, [33m[1mPetscMPIInt b[0m, PetscInt c, PetscBool d, PetscScalar e, PetscReal f) 155 [33m[1m^^^^^^^^^^^^^[0m 156 4: { 157 5: PetscViewer v; /* dummy variable to satisfy the PetscObject for the following */ 158[31m[1m./src/sys/tests/linter/testValidLogicalCollective.c:13:3: error:[0m Incorrect use of PetscValidLogicalCollectiveEnum(), use PetscValidLogicalCollectiveInt() instead [-fincompatible-function]: 159 11: PetscValidLogicalCollectiveScalar(v, a, 5); 160 12: PetscValidLogicalCollectiveReal(v, b, 6); 161> 13: [33m[1mPetscValidLogicalCollectiveEnum(v, c, 7)[0m; 162 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 163 14: 164 15: /* correct */ 165 166./src/sys/tests/linter/testValidLogicalCollective.c:13:38 Note: Due to 'c' of type 'PetscInt' (a.k.a. 'int') 167 11: PetscValidLogicalCollectiveScalar(v, a, 5); 168 12: PetscValidLogicalCollectiveReal(v, b, 6); 169> 13: PetscValidLogicalCollectiveEnum(v, [33m[1mc[0m, 7); 170 [33m[1m^[0m 171 14: 172 15: /* correct */ 173 174[31m[1m./src/sys/tests/linter/testValidLogicalCollective.c:13:41: error:[0m Argument number doesn't match for 'c'. Expected '3', found '7' [-fmatching-arg-num]: 175 11: PetscValidLogicalCollectiveScalar(v, a, 5); 176 12: PetscValidLogicalCollectiveReal(v, b, 6); 177> 13: PetscValidLogicalCollectiveEnum(v, c, [33m[1m7[0m); 178 [33m[1m^[0m 179 14: 180 15: /* correct */ 181 182./src/sys/tests/linter/testValidLogicalCollective.c:3:70 Note: 'c' is traceable to argument #3 'c' in enclosing function here: 183 1: #include <petsc/private/viewerimpl.h> 184 2: 185> 3: PetscErrorCode testValidLogicalCollective(PetscInt a, PetscMPIInt b, [33m[1mPetscInt c[0m, PetscBool d, PetscScalar e, PetscReal f) 186 [33m[1m^^^^^^^^^^[0m 187 4: { 188 5: PetscViewer v; /* dummy variable to satisfy the PetscObject for the following */ 189-------------------------------------------------------------------------------------------- 190<--- LEFT ---> 191