| /petsc/src/binding/petsc4py/demo/legacy/ode/ |
| H A D | orego.py | 80 vatol = x.duplicate(array=[1e-2, 1e-1, 1e-4]) variable 82 atol=vatol, rtol=1e-3
|
| /petsc/src/vec/vec/interface/ |
| H A D | vector.c | 2347 …dNorms_Basic(Vec U, Vec Y, Vec E, NormType wnormtype, PetscReal atol, Vec vatol, PetscReal rtol, V… in VecErrorWeightedNorms_Basic() argument 2362 if (vatol) PetscCall(VecGetArrayRead(vatol, &atola)); in VecErrorWeightedNorms_Basic() 2391 if (vatol) PetscCall(VecRestoreArrayRead(vatol, &atola)); in VecErrorWeightedNorms_Basic() 2455 …eightedNorms(Vec U, Vec Y, Vec E, NormType wnormtype, PetscReal atol, Vec vatol, PetscReal rtol, V… in VecErrorWeightedNorms() argument 2468 if (vatol) { in VecErrorWeightedNorms() 2469 PetscValidHeaderSpecific(vatol, VEC_CLASSID, 6); in VecErrorWeightedNorms() 2470 PetscValidType(vatol, 6); in VecErrorWeightedNorms() 2491 if (sameop && vatol) sameop = (PetscBool)(U->ops->errorwnorm == vatol->ops->errorwnorm); in VecErrorWeightedNorms() 2493 …if (sameop) PetscUseTypeMethod(U, errorwnorm, Y, E, wnormtype, atol, vatol, rtol, vrtol, ignore_ma… in VecErrorWeightedNorms() 2494 …else PetscCall(VecErrorWeightedNorms_Basic(U, Y, E, wnormtype, atol, vatol, rtol, vrtol, ignore_ma… in VecErrorWeightedNorms()
|
| /petsc/src/vec/vec/impls/mpi/ |
| H A D | pvecimpl.h | 179 …_MPI_Default(Vec U, Vec Y, Vec E, NormType wnormtype, PetscReal atol, Vec vatol, PetscReal rtol, V… in VecErrorWeightedNorms_MPI_Default() argument 184 …PetscCall(SeqFn(U, Y, E, wnormtype, atol, vatol, rtol, vrtol, ignore_max, norm, norm_loc, norma, n… in VecErrorWeightedNorms_MPI_Default()
|
| /petsc/src/vec/vec/impls/mpi/cupm/ |
| H A D | vecmpicupm_impl.hpp | 176 …::ErrorWnorm(Vec U, Vec Y, Vec E, NormType wnormtype, PetscReal atol, Vec vatol, PetscReal rtol, V… in ErrorWnorm() argument 179 …PetscCall(VecErrorWeightedNorms_MPI_Default(U, Y, E, wnormtype, atol, vatol, rtol, vrtol, ignore_m… in ErrorWnorm()
|
| /petsc/src/ts/interface/ |
| H A D | ts.c | 1945 …if (ts->vatol) PetscCall(PetscViewerASCIIPrintf(viewer, "using vector of absolute error tolerances… in TSView() 2604 PetscCall(VecDestroy(&ts->vatol)); in TSReset() 5157 PetscErrorCode TSSetTolerances(TS ts, PetscReal atol, Vec vatol, PetscReal rtol, Vec vrtol) in TSSetTolerances() argument 5167 if (vatol) { in TSSetTolerances() 5168 PetscCall(PetscObjectReference((PetscObject)vatol)); in TSSetTolerances() 5169 PetscCall(VecDestroy(&ts->vatol)); in TSSetTolerances() 5170 ts->vatol = vatol; in TSSetTolerances() 5206 PetscErrorCode TSGetTolerances(TS ts, PetscReal *atol, Vec *vatol, PetscReal *rtol, Vec *vrtol) in TSGetTolerances() argument 5210 if (vatol) *vatol = ts->vatol; in TSGetTolerances() 5251 …PetscCall(VecErrorWeightedNorms(U, Y, NULL, wnormtype, ts->atol, ts->vatol, ts->rtol, ts->vrtol, t… in TSErrorWeightedNorm() [all …]
|
| /petsc/src/ts/tutorials/power_grid/stability_9bus/ |
| H A D | ex9bus.c | 1066 Vec vatol; in main() local 1232 PetscCall(VecDuplicate(X, &vatol)); in main() 1233 PetscCall(VecSet(vatol, 100000.0)); in main() 1234 PetscCall(VecGetArray(vatol, &vatoli)); in main() 1237 PetscCall(VecRestoreArray(vatol, &vatoli)); in main() 1287 if (user.setisdiff) PetscCall(VecDestroy(&vatol)); in main()
|
| /petsc/src/vec/vec/impls/nest/ |
| H A D | vecnest.c | 699 …edNorms_Nest(Vec U, Vec Y, Vec E, NormType wnormtype, PetscReal atol, Vec vatol, PetscReal rtol, V… in VecErrorWeightedNorms_Nest() argument 704 Vec_Nest *ba = vatol ? (Vec_Nest *)vatol->data : NULL; in VecErrorWeightedNorms_Nest() 710 if (vatol) VecNestCheckCompatible2(U, 1, vatol, 6); in VecErrorWeightedNorms_Nest()
|
| /petsc/src/vec/vec/impls/mpi/kokkos/ |
| H A D | mpikok.kokkos.cxx | 27 …ms_MPIKokkos(Vec U, Vec Y, Vec E, NormType wnormtype, PetscReal atol, Vec vatol, PetscReal rtol, V… in VecErrorWeightedNorms_MPIKokkos() argument 30 …PetscCall(VecErrorWeightedNorms_MPI_Default(U, Y, E, wnormtype, atol, vatol, rtol, vrtol, ignore_m… in VecErrorWeightedNorms_MPIKokkos()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex30.c | 1715 Vec u, p, subaux, vatol, vrtol; in SetInitialConditionsAndTolerances() local 1734 PetscCall(DMCreateGlobalVector(dm, &vatol)); in SetInitialConditionsAndTolerances() 1737 PetscCall(VecSet(vatol, atol)); in SetInitialConditionsAndTolerances() 1738 PetscCall(VecISSet(vatol, isp, -1)); in SetInitialConditionsAndTolerances() 1741 PetscCall(TSSetTolerances(ts, atol, vatol, rtol, vrtol)); in SetInitialConditionsAndTolerances() 1742 PetscCall(VecDestroy(&vatol)); in SetInitialConditionsAndTolerances() 1830 PetscCall(DMCreateGlobalVector(dm, &vatol)); in SetInitialConditionsAndTolerances() 1833 PetscCall(VecSet(vatol, atol)); in SetInitialConditionsAndTolerances() 1834 PetscCall(VecISSet(vatol, isp, -1)); in SetInitialConditionsAndTolerances() 1837 PetscCall(TSSetTolerances(ts, atol, vatol, rtol, vrtol)); in SetInitialConditionsAndTolerances() [all …]
|
| /petsc/src/vec/vec/impls/seq/kokkos/ |
| H A D | veckok.kokkos.cxx | 1079 …ms_SeqKokkos(Vec U, Vec Y, Vec E, NormType wnormtype, PetscReal atol, Vec vatol, PetscReal rtol, V… in VecErrorWeightedNorms_SeqKokkos() argument 1094 if (vatol) { in VecErrorWeightedNorms_SeqKokkos() 1095 PetscCall(VecGetKokkosView(vatol, &atola)); in VecErrorWeightedNorms_SeqKokkos() 1173 if (vatol) PetscCall(VecRestoreKokkosView(vatol, &atola)); in VecErrorWeightedNorms_SeqKokkos()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | TS.pyx | 2057 cdef PetscVec vatol = NULL 2067 vatol = (<Vec>atol).vec 2070 CHKERR(TSSetTolerances(self.ts, ratol, vatol, rrtol, vrtol)) 2092 cdef PetscVec vatol = NULL 2093 CHKERR(TSGetTolerances(self.ts, &ratol, &vatol, &rrtol, &vrtol)) 2100 if vatol != NULL: 2101 atol = ref_Vec(vatol)
|
| /petsc/include/petsc/private/ |
| H A D | tsimpl.h | 317 …Vec vatol, vrtol; /* Relative and absolute tolerance in vector for… member
|
| /petsc/src/vec/vec/impls/seq/cupm/ |
| H A D | vecseqcupm_impl.hpp | 1849 …::ErrorWnorm(Vec U, Vec Y, Vec E, NormType wnormtype, PetscReal atol, Vec vatol, PetscReal rtol, V… in ErrorWnorm() argument 1874 const auto aptr = ConditionalDeviceArrayRead(vatol); in ErrorWnorm() 1876 if (!vatol && !vrtol) { in ErrorWnorm() 1898 } else if (!vatol) { in ErrorWnorm()
|