Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 33) sorted by relevance

12

/petsc/src/dm/impls/stag/tests/
H A Dex7.c9 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()
69expected) 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 Dex10.c9 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()
64expected) 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 Dex12.c9 PetscScalar *a, ***a1, ***a2, expected, sum; in main() local
61 expected = (ngx * ngy - 4 * stencilWidth * stencilWidth) * dofTotal; in main()
63expected) PetscCall(PetscPrintf(PETSC_COMM_SELF, "[%d] Unexpected sum of local entries %g (expecte… in main()
66 expected = 1 + 4 * stencilWidth; in main()
68expected) PetscCall(PetscPrintf(PETSC_COMM_SELF, "[%d] Unexpected value %g (expecting %g)\n", rank… in main()
H A Dex9.c9 PetscScalar *a, ****a1, ****a2, expected, sum; in main() local
65expected = (ngx * ngy * ngz - 8 * stencilWidth * stencilWidth * stencilWidth - 4 * stencilWidth * … in main()
67expected) PetscCall(PetscPrintf(PETSC_COMM_SELF, "[%d] Unexpected sum of local entries %g (expecte… in main()
70 expected = 1 + 6 * stencilWidth; in main()
72expected) PetscCall(PetscPrintf(PETSC_COMM_SELF, "[%d] Unexpected value %g (expecting %g)\n", rank… in main()
/petsc/src/vec/vec/tests/
H A Dex31.c10 PetscReal max, expected; in main() local
25 expected = (PetscReal)N; in main()
32expected, 1e-12, 0.0), PETSC_COMM_SELF, PETSC_ERR_PLIB, "VecMaxPointwiseDivide() returned %g != e… in main()
37expected, 1e-12, 0.0), PETSC_COMM_SELF, PETSC_ERR_PLIB, "VecMaxPointwiseDivide() returned %g != ex… in main()
42expected, 1e-12, 0.0), PETSC_COMM_SELF, PETSC_ERR_PLIB, "VecMaxPointwiseDivide() returned %g != e… in main()
H A Dex52.c5 static PetscErrorCode CheckVecSumReturn(Vec v, PetscScalar expected) in CheckVecSumReturn() argument
11expected, 1e-12, 0.0), PETSC_COMM_SELF, PETSC_ERR_PLIB, "VecSum() returned %g + %gi, expected %g +… in CheckVecSumReturn()
H A Dex53.c14 const PetscScalar actual = array[i], expected = array_copy[i]; in CheckVecShift() local
16expected, 1e-12, 0.0), PETSC_COMM_SELF, PETSC_ERR_PLIB, "VecShift() returned array[%" PetscInt_FMT… in CheckVecShift()
H A Dex54.c16 const PetscReal expected = PetscAbsScalar(ref_array[i]); in TestPointwiseMaxAbs() local
21expected, PETSC_COMM_SELF, PETSC_ERR_PLIB, "VecShift() returned array[%" PetscInt_FMT "] %g + %gi … in TestPointwiseMaxAbs()
H A Dex28.c143 PetscScalar expected = 25.0 * i * (i + 1); in main() local
145 CheckErrorScalar(results[i], expected, tol); in main()
H A Dex48.c400 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.py361 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 Dsegbuffer.c58 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.py196 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 Dpetscmat.pxi813 "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 DVec.pyx753 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 D323.md170 …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 D322.md213 … 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 D38.md270 what is expected. In some routines like MatSetValues() and friends
H A D2024.md301 - Added `PCGetVector()`, not expected to be used by application
/petsc/doc/community/
H A Dgovernance.md39 …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.py888 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.py1108 expected = ', or '.join([', '.join(self.valid_levels[:-1]), self.valid_levels[-1]])
/petsc/doc/developers/
H A Dtesting.md48 - 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 Ddtweakform.c7 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 Dadvanced.md151 The argument `info->fill > 1` is the predicted fill expected in the

12