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