| /petsc/src/dm/impls/stag/tests/ |
| H A D | ex7.c | 9 PetscScalar *a, ****a1, ****a2, expected; in main() local 66 expected = 1.0; in main() 67 for (d = 0; d < 3; ++d) expected *= (2 * stencilWidth + 1); in main() 69 …expected) PetscCall(PetscPrintf(PETSC_COMM_SELF, "[%d] Unexpected value %g (expecting %g)\n", rank… in main() 88 PetscScalar expected = 1.0; in main() local 89 …for (dd = 0; dd < 3; ++dd) expected *= (bnd[dd] ? stencilWidth + 1 + extra[dd] : 2 * stencilWidth … in main() 91 if (a2[k][j][i][d] != expected) { in main() 92 …%g)\n", rank, i, j, k, d, (double)PetscRealPart(a2[k][j][i][d]), (double)PetscRealPart(expected))); in main() 97 PetscScalar expected = ((bnd[0] ? 1 : 2) * stencilWidth + 1); in main() local 98 …for (dd = 1; dd < 3; ++dd) expected *= (bnd[dd] ? stencilWidth + 1 + extra[dd] : 2 * stencilWidth … in main() [all …]
|
| H A D | ex10.c | 9 PetscScalar *a, ***a1, ***a2, expected; in main() local 61 expected = 1.0; in main() 62 for (d = 0; d < 2; ++d) expected *= (2 * stencilWidth + 1); in main() 64 …expected) PetscCall(PetscPrintf(PETSC_COMM_SELF, "[%d] Unexpected value %g (expecting %g)\n", rank… in main() 80 PetscScalar expected = 1.0; in main() local 81 …for (dd = 0; dd < 2; ++dd) expected *= (bnd[dd] ? stencilWidth + 1 + extra[dd] : 2 * stencilWidth … in main() 83 if (a2[j][i][d] != expected) { in main() 84 …cting %g)\n", rank, i, j, d, (double)PetscRealPart(a2[j][i][d]), (double)PetscRealPart(expected))); in main() 89 PetscScalar expected = (bnd[1] ? stencilWidth + 1 + extra[1] : 2 * stencilWidth + 1); in main() local 90 expected *= ((bnd[0] ? 1 : 2) * stencilWidth + 1); in main() [all …]
|
| H A D | ex12.c | 9 PetscScalar *a, ***a1, ***a2, expected, sum; in main() local 61 expected = (ngx * ngy - 4 * stencilWidth * stencilWidth) * dofTotal; in main() 63 …expected) PetscCall(PetscPrintf(PETSC_COMM_SELF, "[%d] Unexpected sum of local entries %g (expecte… in main() 66 expected = 1 + 4 * stencilWidth; in main() 68 …expected) PetscCall(PetscPrintf(PETSC_COMM_SELF, "[%d] Unexpected value %g (expecting %g)\n", rank… in main()
|
| H A D | ex9.c | 9 PetscScalar *a, ****a1, ****a2, expected, sum; in main() local 65 …expected = (ngx * ngy * ngz - 8 * stencilWidth * stencilWidth * stencilWidth - 4 * stencilWidth * … in main() 67 …expected) PetscCall(PetscPrintf(PETSC_COMM_SELF, "[%d] Unexpected sum of local entries %g (expecte… in main() 70 expected = 1 + 6 * stencilWidth; in main() 72 …expected) PetscCall(PetscPrintf(PETSC_COMM_SELF, "[%d] Unexpected value %g (expecting %g)\n", rank… in main()
|
| /petsc/src/vec/vec/tests/ |
| H A D | ex31.c | 10 PetscReal max, expected; in main() local 25 expected = (PetscReal)N; in main() 32 … expected, 1e-12, 0.0), PETSC_COMM_SELF, PETSC_ERR_PLIB, "VecMaxPointwiseDivide() returned %g != e… in main() 37 …expected, 1e-12, 0.0), PETSC_COMM_SELF, PETSC_ERR_PLIB, "VecMaxPointwiseDivide() returned %g != ex… in main() 42 … expected, 1e-12, 0.0), PETSC_COMM_SELF, PETSC_ERR_PLIB, "VecMaxPointwiseDivide() returned %g != e… in main()
|
| H A D | ex52.c | 5 static PetscErrorCode CheckVecSumReturn(Vec v, PetscScalar expected) in CheckVecSumReturn() argument 11 …expected, 1e-12, 0.0), PETSC_COMM_SELF, PETSC_ERR_PLIB, "VecSum() returned %g + %gi, expected %g +… in CheckVecSumReturn()
|
| H A D | ex53.c | 14 const PetscScalar actual = array[i], expected = array_copy[i]; in CheckVecShift() local 16 …expected, 1e-12, 0.0), PETSC_COMM_SELF, PETSC_ERR_PLIB, "VecShift() returned array[%" PetscInt_FMT… in CheckVecShift()
|
| H A D | ex54.c | 16 const PetscReal expected = PetscAbsScalar(ref_array[i]); in TestPointwiseMaxAbs() local 21 …expected, PETSC_COMM_SELF, PETSC_ERR_PLIB, "VecShift() returned array[%" PetscInt_FMT "] %g + %gi … in TestPointwiseMaxAbs()
|
| H A D | ex28.c | 143 PetscScalar expected = 25.0 * i * (i + 1); in main() local 145 CheckErrorScalar(results[i], expected, tol); in main()
|
| H A D | ex48.c | 400 const char *expected = apaths[paths2apaths[p]]; in testGroupsDatasets() local 412 PetscCall(PetscStrcmp(group, expected, &flg2)); in testGroupsDatasets() 413 …tscCheck(flg2, comm, PETSC_ERR_PLIB, "Current group %s not equal to expected %s", group, expected); in testGroupsDatasets()
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/checks/ |
| H A D | _util.py | 361 expected = classid_map[obj.typename] 363 if name != expected: 367 patch=Patch.from_cursor(obj_classid, expected) 593 expected = parent_args[parent_arg_names.index(obj.name)] 617 expected = parent_args[parent_idx] 618 exp_idx = expected.argidx 626 location=expected.extent.start
|
| /petsc/src/sys/utils/ |
| H A D | segbuffer.c | 58 PetscErrorCode PetscSegBufferCreate(size_t unitbytes, PetscCount expected, PetscSegBuffer *seg) in PetscSegBufferCreate() argument 64 PetscCall(PetscMalloc(offsetof(struct _PetscSegBufferLink, u) + expected * unitbytes, &head)); in PetscSegBufferCreate() 67 head->alloc = expected; in PetscSegBufferCreate()
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/util/ |
| H A D | _clang.py | 196 for i, (arg, expected) in enumerate(zip(args, self._function.argtypes)): 197 if type(arg) != expected:
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscmat.pxi | 813 "size(d_nnz) is %d, expected %d" % 816 "size(o_nnz) is %d, expected %d" % 860 raise ValueError("size(I) is %d, expected %d" % 863 raise ValueError("I[0] is %d, expected %d" % 866 raise ValueError("size(J) is %d, expected %d" % 869 raise ValueError("size(V) is %d, expected %d" % 899 "size(array) is %d, expected %dx%d=%d" % 1033 "size(I) is %d, expected %d" % 1036 "I[0] is %d, expected %d" % 1039 "size(J) is %d, expected %d" % [all …]
|
| H A D | Vec.pyx | 753 raise ValueError("Invalid mode: expected 'rw', 'r', or 'w'") 1459 raise ValueError("Invalid mode: expected 'rw', 'r', or 'w'") 1493 raise ValueError("Invalid mode: expected 'rw', 'r', or 'w'") 1531 raise ValueError("Invalid mode: expected 'rw', 'r', or 'w'") 1565 raise ValueError("Invalid mode: expected 'rw', 'r', or 'w'") 1667 raise ValueError("Invalid mode: expected 'r', 'w' or 'rw'") 3223 The current vector is expected to be single-component 3224 (`block_size` of ``1``) and the target vector is expected to be 3254 The current vector is expected to be multi-component (`block_size` 3255 greater than ``1``) and the target vector is expected to be
|
| /petsc/doc/changes/ |
| H A D | 323.md | 170 …used instead of `PETSC_NULL_INTEGER` when a pointer to an XXX `enum` is expected in a PETSc functi… 172 …`PETSC_NULL_INTEGER`, `PETSC_NULL_SCALAR`, and `PETSC_NULL_REAL` when an input array is expected i…
|
| H A D | 322.md | 213 … be used instead of `PETSC_NULL_INTEGER` when a pointer to an `enum` is expected in a PETSc functi… 215 …`PETSC_NULL_INTEGER`, `PETSC_NULL_SCALAR`, and `PETSC_NULL_REAL` when an array is expected in a PE…
|
| H A D | 38.md | 270 what is expected. In some routines like MatSetValues() and friends
|
| H A D | 2024.md | 301 - Added `PCGetVector()`, not expected to be used by application
|
| /petsc/doc/community/ |
| H A D | governance.md | 39 …s probably fine. And worst case, if a change is more controversial than expected, or a crucial cri… 80 It is expected that such funds will be spent in a manner that is consistent with the non-profit mis…
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/ |
| H A D | _doc_str.py | 888 expected = f'{sowing_type}{begin_sowing}' 900 self.make_source_range(begin_sowing, line, begin_sowing_range.start.line), expected 905 expected = f'{sowing_type}{begin_sowing.replace(sowing_type, "")}'
|
| H A D | _doc_section.py | 1108 expected = ', or '.join([', '.join(self.valid_levels[:-1]), self.valid_levels[-1]])
|
| /petsc/doc/developers/ |
| H A D | testing.md | 48 - An output file that represents the *expected results*. It is also possible -- though unusual -- t… 53 - one or more `diff` tests to compare output with the expected result 111 - A reference file with the *expected output from the test run*, 142 against the expected result. If this keyword is used, it filters 175 to compare to expected results. 336 expected and actual error outputs.
|
| /petsc/src/dm/dt/interface/ |
| H A D | dtweakform.c | 7 static PetscErrorCode PetscChunkBufferCreate(size_t unitbytes, PetscCount expected, PetscChunkBuffe… in PetscChunkBufferCreate() argument 11 PetscCall(PetscCalloc1(expected * unitbytes, &(*buffer)->array)); in PetscChunkBufferCreate() 12 (*buffer)->size = expected; in PetscChunkBufferCreate() 14 (*buffer)->alloc = expected * unitbytes; in PetscChunkBufferCreate()
|
| /petsc/doc/manual/ |
| H A D | advanced.md | 151 The argument `info->fill > 1` is the predicted fill expected in the
|