| /petsc/src/sys/tests/linter/ |
| H A D | testDuplicates.c | 54 PetscErrorCode testNoDuplicatesSwitch(PetscInt *a, PetscScalar *b, PetscBool cond) in testNoDuplicatesSwitch() argument 56 switch (cond) { in testNoDuplicatesSwitch() 71 PetscErrorCode testDuplicatesNoChangesSwitch(PetscInt *a, PetscScalar *b, PetscBool cond) in testDuplicatesNoChangesSwitch() argument 76 switch (cond) { in testDuplicatesNoChangesSwitch() 91 PetscErrorCode testNoDuplicatesIfElse(PetscInt *a, PetscScalar *b, PetscBool cond) in testNoDuplicatesIfElse() argument 93 if (cond) { in testNoDuplicatesIfElse() 105 PetscErrorCode testDuplicatesIfElse(PetscInt *a, PetscScalar *b, PetscBool cond) in testDuplicatesIfElse() argument 110 if (cond) { in testDuplicatesIfElse() 122 PetscErrorCode testNoDuplicatesIfElseIfElse(PetscInt *a, PetscScalar *b, PetscBool cond) in testNoDuplicatesIfElseIfElse() argument 124 if (cond) { in testNoDuplicatesIfElseIfElse() [all …]
|
| H A D | testValidFunctionDocStrings.c | 77 …Code testIllFormedFunctionDocString(PetscViewer viewer, PetscInt x, PetscScalar *y, PetscBool cond) in testIllFormedFunctionDocString() argument
|
| /petsc/src/sys/tests/linter/output/ |
| H A D | testDuplicates.patch | 123 -PetscErrorCode testNoDuplicatesSwitch(PetscInt *a, PetscScalar *b, PetscBool cond) 124 +static PetscErrorCode testNoDuplicatesSwitch(PetscInt *a, PetscScalar *b, PetscBool cond) 126 switch (cond) { 130 -PetscErrorCode testDuplicatesNoChangesSwitch(PetscInt *a, PetscScalar *b, PetscBool cond) 131 +static PetscErrorCode testDuplicatesNoChangesSwitch(PetscInt *a, PetscScalar *b, PetscBool cond) 165 -PetscErrorCode testNoDuplicatesIfElse(PetscInt *a, PetscScalar *b, PetscBool cond) 166 +static PetscErrorCode testNoDuplicatesIfElse(PetscInt *a, PetscScalar *b, PetscBool cond) 168 if (cond) { 172 -PetscErrorCode testDuplicatesIfElse(PetscInt *a, PetscScalar *b, PetscBool cond) 173 +static PetscErrorCode testDuplicatesIfElse(PetscInt *a, PetscScalar *b, PetscBool cond) [all …]
|
| H A D | testValidFunctionDocStrings.patch | 83 …Code testIllFormedFunctionDocString(PetscViewer viewer, PetscInt x, PetscScalar *y, PetscBool cond)
|
| /petsc/include/petsc/private/ |
| H A D | petscadvancedmacros.h | 40 #define PetscIf(cond, result_if_true, ...) PetscConcat_(PETSC_IF_INTERNAL_, cond)(result_if_true, _… argument 69 #define PetscIfPetscDefined(cond, result_if_true, ...) PetscIf(PetscDefined(cond), result_if_true, … argument
|
| /petsc/include/ |
| H A D | petscerror.h | 191 #define PetscCheck(cond, comm, ierr, ...) \ argument 193 if (PetscUnlikely(!(cond))) SETERRQ(comm, ierr, __VA_ARGS__); \ 219 #define PetscCheckReturnMPI(cond, comm, ierr, ...) \ argument 221 if (PetscUnlikely(!(cond))) SETERRMPI(comm, ierr, __VA_ARGS__); \ 249 #define PetscCheckAbort(cond, comm, ierr, ...) \ argument 251 if (PetscUnlikely(!(cond))) SETERRABORT(comm, ierr, __VA_ARGS__); \ 281 #define PetscAssert(cond, comm, ierr, ...) PetscCheck(cond, comm, ierr, __VA_ARGS__) argument 283 #define PetscAssert(cond, ...) PetscAssume(cond) argument 309 #define PetscAssertAbort(cond, comm, ierr, ...) PetscCheckAbort(cond, comm, ierr, __VA_ARGS__) argument 311 #define PetscAssertAbort(cond, comm, ierr, ...) PetscAssume(cond) argument
|
| H A D | petscmacros.h | 594 #define PetscUnlikely(cond) __builtin_expect(!!(cond), 0) argument 595 #define PetscLikely(cond) __builtin_expect(!!(cond), 1) argument 597 #define PetscUnlikely(cond) (cond) argument 598 #define PetscLikely(cond) (cond) argument 1028 #define PetscUnlikelyDebug(cond) (PetscDefined(USE_DEBUG) && PetscUnlikely(cond)) argument
|
| /petsc/src/dm/dt/tests/ |
| H A D | ex13.c | 45 … PetscErrorCode test(PetscInt dim, PetscInt deg, PetscInt form, PetscInt jetDegree, PetscBool cond) in test() argument 83 if (cond) { in test() 95 PetscReal cond = S[0] / S[Nbpt - 1]; in test() local 96 … %" PetscInt_FMT ", form %" PetscInt_FMT ": condition number %g\n", dim, deg, form, (double)cond)); in test() 291 PetscBool cond = PETSC_FALSE; in main() local 299 …, "Compute the condition numbers of the mass matrices of the bases", __FILE__, cond, &cond, NULL)); in main() 303 …tscInt form = -dim + 1; form <= dim; form++) PetscCall(test(dim, deg, form, PetscMax(1, k), cond)); in main()
|
| /petsc/src/sys/objects/device/interface/ |
| H A D | memory.cxx | 180 static PetscErrorCode PetscDeviceCheckCapable_Private(PetscDeviceContext dctx, bool cond, const cha… in PetscDeviceCheckCapable_Private() argument 183 …PetscCheck(cond, PETSC_COMM_SELF, PETSC_ERR_SUP, "Device context (id: %" PetscInt64_FMT ", name: %… in PetscDeviceCheckCapable_Private()
|
| /petsc/config/ |
| H A D | gmakegen.py | 178 for cond in conditions: 179 key, *vals = cond
|
| /petsc/src/sys/objects/device/tests/ |
| H A D | ex11.cxx | 74 PETSC_ATTRIBUTE_FORMAT(10, 11) static PetscErrorCode CheckMarkedObjectMap_Private(PetscBool cond, c… in CheckMarkedObjectMap_Private() argument 77 if (PetscUnlikely(!cond)) { in CheckMarkedObjectMap_Private()
|
| /petsc/config/BuildSystem/config/ |
| H A D | framework.py | 842 cond = None 844 cond = '!defined(__HIP__)' 845 self.outputDefine(f, *defineDict[item], condition=cond)
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | testcase3D.cas | 658 (shell/multi/cond-rule 1) 4124 (mp/evap-cond/tpc-before-tui-change-on? #f) 4125 (mp/evap-cond/old-evap-cond? #f) 4126 (mp/evap-cond/disp-intf-transfer 1.) 4127 (mp/evap-cond/cont-intf-transfer 1.) 4128 (mp/evap-cond/condensation-frequency 0.1) 4129 (mp/evap-cond/evaporation-frequency 0.1) 4130 (mp/evap-cond/thermal-phase-change? #f) 4131 (mp/evap-cond/mt-lee-model? #t) 4134 (mp/mt/evap-cond-models 0) [all …]
|
| /petsc/doc/developers/ |
| H A D | style.md | 243 if (cond) {
|
| /petsc/src/dm/impls/plex/ |
| H A D | plex.c | 9941 PetscReal frobJ = 0., frobInvJ = 0., cond2, cond, detJ; in DMPlexCheckCellShape() local 9950 cond = PetscSqrtReal(cond2); in DMPlexCheckCellShape() 9952 stats.min = PetscMin(stats.min, cond); in DMPlexCheckCellShape() 9953 stats.max = PetscMax(stats.max, cond); in DMPlexCheckCellShape() 9954 stats.sum += cond; in DMPlexCheckCellShape() 9957 if (output && cond > limit) { in DMPlexCheckCellShape() 9966 …all(PetscSynchronizedPrintf(comm, "[%d] Cell %" PetscInt_FMT " cond %g\n", rank, c, (double)cond)); in DMPlexCheckCellShape()
|
| /petsc/doc/ |
| H A D | petsc.bib | 7279 number = {Arxiv preprint cond-mat/0506585}, 7280 url = {http://arxiv.org/pdf/cond-mat/0506585},
|