| /petsc/src/mat/impls/aij/mpi/strumpack/ |
| H A D | strumpack.c | 51 static PetscErrorCode MatSTRUMPACKSetReordering_STRUMPACK(Mat F, MatSTRUMPACKReordering reordering) in MatSTRUMPACKSetReordering_STRUMPACK() argument 53 STRUMPACK_SparseSolver *S = (STRUMPACK_SparseSolver *)F->data; in MatSTRUMPACKSetReordering_STRUMPACK() 59 static PetscErrorCode MatSTRUMPACKGetReordering_STRUMPACK(Mat F, MatSTRUMPACKReordering *reordering) in MatSTRUMPACKGetReordering_STRUMPACK() argument 61 STRUMPACK_SparseSolver *S = (STRUMPACK_SparseSolver *)F->data; in MatSTRUMPACKGetReordering_STRUMPACK() 84 PetscErrorCode MatSTRUMPACKSetReordering(Mat F, MatSTRUMPACKReordering reordering) in MatSTRUMPACKSetReordering() argument 87 PetscValidHeaderSpecific(F, MAT_CLASSID, 1); in MatSTRUMPACKSetReordering() 88 PetscValidLogicalCollectiveEnum(F, reordering, 2); in MatSTRUMPACKSetReordering() 89 PetscTryMethod(F, "MatSTRUMPACKSetReordering_C", (Mat, MatSTRUMPACKReordering), (F, reordering)); in MatSTRUMPACKSetReordering() 107 PetscErrorCode MatSTRUMPACKGetReordering(Mat F, MatSTRUMPACKReordering *reordering) in MatSTRUMPACKGetReordering() argument 110 PetscValidHeaderSpecific(F, MAT_CLASSID, 1); in MatSTRUMPACKGetReordering() [all …]
|
| /petsc/src/ts/event/tests/ |
| H A D | ex4.c | 37 PetscInt F; // event-function index member 69 ctx.F = -1; in main() 115 …PetscCall(PetscOptionsGetInt(NULL, NULL, "-F", &ctx.F, NULL)); // event-function index in main() 116 …PetscCheck(ctx.F >= -1 && ctx.F < ctx.Fnum, PetscObjectComm((PetscObject)ts), PETSC_ERR_ARG_OUTOFR… in main() 120 if (ctx.F == -1) in main() 131 if (ctx.F == 0 || ctx.F == -1) { in main() 137 if (ctx.F == 1 || ctx.F == -1) in main() 139 if (ctx.F == 2 || ctx.F == -1) in main() 141 if (ctx.F == 3 || ctx.F == -1) in main() 143 if (ctx.F == 4 || ctx.F == -1) in main() [all …]
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | nozzle.stp | 55 #350,#351,#352,#353,#354,#355,#356,#357),.UNSPECIFIED.,.F.,.F.,(4,1,1,1, 61 #366,#367,#368,#369),.UNSPECIFIED.,.F.,.F.,(4,1,1,1,1,1,1,1,4),(0.,0.125, 64 #378,#379,#380,#381,#382,#383,#384,#385),.UNSPECIFIED.,.F.,.F.,(4,1,1,1, 70 #425,#426,#427,#428),.UNSPECIFIED.,.F.,.F.,(4,1,1,1,1,1,1,1,4),(0.,0.125, 74 #46=ORIENTED_EDGE('',*,*,#98,.F.); 75 #47=ORIENTED_EDGE('',*,*,#99,.F.); 76 #48=ORIENTED_EDGE('',*,*,#96,.F.); 79 #51=ORIENTED_EDGE('',*,*,#102,.F.); 80 #52=ORIENTED_EDGE('',*,*,#101,.F.); 83 #55=ORIENTED_EDGE('',*,*,#105,.F.); [all …]
|
| /petsc/src/binding/petsc4py/ |
| H A D | setup.py | 33 def F(string): function 42 return F('{pyname}') 50 pkg_init_py = os.path.join(F('{pyname}'), '__init__.py') 59 return F('{Name} for Python') 67 url = F('https://gitlab.com/{name}/{name}') 68 pypiroot = F('https://pypi.io/packages/source') 69 pypislug = F('{pyname}')[0] + F('/{pyname}') 70 tarball = F('{pyname}-%s.tar.gz' % get_version()) 114 'maintainer': F('{Name} Team'), 150 'source': F('{pyname}/{Name}.pyx'), [all …]
|
| /petsc/include/petsc/private/cpp/ |
| H A D | tuple.hpp | 25 template <std::size_t... Idx, typename T, typename F> 26 constexpr inline F &&tuple_for_each(index_sequence<Idx...>, T &&tuple, F &&f) in tuple_for_each() 29 return (void)expander{((void)f(std::get<Idx>(std::forward<T>(tuple))), 0)...}, std::forward<F>(f); in tuple_for_each() 32 template <typename T, typename F> 33 constexpr inline F &&tuple_for_each(index_sequence<>, T &&, F &&f) noexcept in tuple_for_each() 35 return std::forward<F>(f); in tuple_for_each() 40 template <typename T, typename F> 41 constexpr inline F &&tuple_for_each(T &&tuple, F &&f) in tuple_for_each() 44 return detail::tuple_for_each(seq{}, std::forward<T>(tuple), std::forward<F>(f)); in tuple_for_each()
|
| H A D | functional.hpp | 20 template <typename F, typename... A> 21 static decltype(std::declval<F>()(std::declval<A>()...), std::true_type()) f(int); 23 template <typename F, typename... A> 65 template <typename F, typename... A> 66 struct can_call : decltype(detail::can_call_test::f<F, A...>(0)) { }; 68 template <typename... A, typename F> 69 inline constexpr can_call<F, A...> is_callable_with(F &&) noexcept in is_callable_with() argument 71 return can_call<F, A...>{}; in is_callable_with()
|
| /petsc/src/mat/tutorials/ |
| H A D | ex20f.F90 | 13 subroutine MatDuplicate_F(F, opt, M, ierr) argument 15 Mat :: F, M 21 PetscCall(MatGetLocalSize(F, ml, nl, ierr)) 22 PetscCall(MatShellGetContext(F, ctxF_pt, ierr)) 29 subroutine MatDestroy_F(F, ierr) argument 31 Mat :: F 34 PetscCall(MatShellGetContext(F, ctxF_pt, ierr)) 46 Mat :: F, Fcopy 54 PetscCallA(MatCreateShell(PETSC_COMM_WORLD, PETSC_DECIDE, PETSC_DECIDE, n, n, ctxF, F, ierr)) 55 PetscCallA(MatShellSetOperation(F, MATOP_DUPLICATE, MatDuplicate_F, ierr)) [all …]
|
| /petsc/src/binding/petsc4py/demo/legacy/poisson3d/ |
| H A D | del2lib.f90 | 10 real(kind=8) , intent(inout) :: F(0:n+1,0:n+1,0:n+1) local 14 F(1:n,1:n,1:n) = x 16 y(:,:,:) = 6.0 * F(1:n,1:n,1:n) & 17 - F(0:n-1,1:n,1:n) & 18 - F(2:n+1,1:n,1:n) & 19 - F(1:n,0:n-1,1:n) & 20 - F(1:n,2:n+1,1:n) & 21 - F(1:n,1:n,0:n-1) & 22 - F(1:n,1:n,2:n+1)
|
| /petsc/src/ts/tests/ |
| H A D | ex8.c | 16 PetscErrorCode f(PetscReal t, Vec UV, Vec F) in f() argument 27 PetscCall(VecGetArrayWrite(F, &f)); in f() 30 PetscCall(VecRestoreArrayWrite(F, &f)); in f() 38 PetscErrorCode F(PetscReal t, Vec UV, Vec F) in F() argument 49 PetscCall(VecGetArrayWrite(F, &f)); in F() 54 PetscCall(VecRestoreArrayWrite(F, &f)); in F() 60 PetscErrorCode (*F)(PetscReal, Vec, Vec); member 84 ctx.F = F; in main() 98 PetscErrorCode TSFunctionRHS(TS ts, PetscReal t, Vec UV, Vec F, void *actx) in TSFunctionRHS() argument 103 PetscCall(VecSet(F, 0.0)); in TSFunctionRHS() [all …]
|
| H A D | ex6.c | 13 PetscErrorCode f(PetscReal t, Vec U, Vec V, Vec F) in f() argument 16 PetscCall(VecWAXPY(F, 1.0, U, V)); in f() 23 PetscErrorCode F(PetscReal t, Vec U, Vec V, Vec F) in F() argument 26 PetscCall(VecWAXPY(F, -1.0, V, U)); in F() 35 PetscErrorCode (*F)(PetscReal, Vec, Vec, Vec); member 63 ctx.F = F; in main() 83 PetscErrorCode TSFunction(TS ts, PetscReal t, Vec U, Vec F, void *actx) in TSFunction() argument 91 PetscCall((*ctx->f)(t, U, ctx->V, F)); in TSFunction() 98 PetscErrorCode SNESFunction(SNES snes, Vec V, Vec F, void *actx) in SNESFunction() argument 103 PetscCall((*ctx->F)(ctx->t, ctx->U, V, F)); in SNESFunction()
|
| H A D | ex9.c | 16 PetscErrorCode f(PetscReal t, Vec U, Vec V, Vec F) in f() argument 19 PetscCall(VecWAXPY(F, 1.0, U, V)); in f() 27 PetscErrorCode F(PetscReal t, Vec U, Vec V, Vec F) in F() argument 30 PetscCall(VecWAXPY(F, -1.0, V, U)); in F() 39 PetscErrorCode (*F)(PetscReal, Vec, Vec, Vec); member 66 ctx.F = F; in main() 100 PetscErrorCode TSFunctionRHS(TS ts, PetscReal t, Vec UV, Vec F, void *actx) in TSFunctionRHS() argument 105 PetscCall(VecSet(F, 0.0)); in TSFunctionRHS() 111 PetscCall(VecScatterBegin(ctx->scatterU, ctx->UF, F, INSERT_VALUES, SCATTER_FORWARD)); in TSFunctionRHS() 112 PetscCall(VecScatterEnd(ctx->scatterU, ctx->UF, F, INSERT_VALUES, SCATTER_FORWARD)); in TSFunctionRHS() [all …]
|
| H A D | ex7.c | 16 PetscErrorCode f(PetscReal t, Vec UV, Vec F) in f() argument 27 PetscCall(VecGetArrayWrite(F, &f)); in f() 30 PetscCall(VecRestoreArrayWrite(F, &f)); in f() 37 PetscErrorCode F(PetscReal t, Vec UV, Vec F) in F() function 48 PetscCall(VecGetArrayWrite(F, &f)); in F() 51 PetscCall(VecRestoreArrayWrite(F, &f)); in F() 61 PetscErrorCode (*F)(PetscReal, Vec, Vec); member 93 ctx.F = F; in main() 127 PetscErrorCode TSFunction(TS ts, PetscReal t, Vec U, Vec F, void *actx) in TSFunction() argument 138 PetscCall((*ctx->f)(t, ctx->UV, F)); in TSFunction() [all …]
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex52.c | 13 PetscErrorCode printMumpsMemoryInfo(Mat F) in printMumpsMemoryInfo() argument 18 PetscCall(MatMumpsGetInfog(F, 16, &maxMem)); in printMumpsMemoryInfo() 19 PetscCall(MatMumpsGetInfog(F, 17, &sumMem)); in printMumpsMemoryInfo() 29 Mat A, F; in main() local 191 PetscCall(PCFactorGetMatrix(pc, &F)); in main() 192 PetscCall(MatMumpsSetIcntl(F, 24, 1)); in main() 193 PetscCall(MatMumpsGetIcntl(F, 24, &ival)); in main() 194 …PetscCheck(ival == 1, PetscObjectComm((PetscObject)F), PETSC_ERR_LIB, "ICNTL(24) = %" PetscInt_FMT… in main() 195 PetscCall(MatMumpsSetCntl(F, 3, 1e-6)); in main() 196 PetscCall(MatMumpsGetCntl(F, 3, &val)); in main() [all …]
|
| /petsc/src/mat/tests/ |
| H A D | ex1.c | 88 Mat mat, F, RHS, SOLU; in main() local 130 PetscCall(MatDuplicate(mat, MAT_COPY_VALUES, &F)); in main() 131 PetscCall(MatCholeskyFactor(F, perm, 0)); in main() 132 PetscCall(MatSolve(F, b, y)); in main() 137 PetscCall(MatMatSolve(F, RHS, SOLU)); in main() 142 PetscCall(MatDestroy(&F)); in main() 148 PetscCall(MatGetFactor(mat, solver, MAT_FACTOR_CHOLESKY, &F)); in main() 149 PetscCall(MatCholeskyFactorSymbolic(F, mat, perm, 0)); in main() 150 PetscCall(MatCholeskyFactorNumeric(F, mat, 0)); in main() 151 PetscCall(MatSolve(F, b, y)); in main() [all …]
|
| H A D | ex267.c | 7 Mat F, RHS, X, C1; in TestMatrix() local 29 PetscCall(MatGetFactor(A, MATSOLVERPETSC, MAT_FACTOR_LU, &F)); in TestMatrix() 30 PetscCall(MatLUFactorSymbolic(F, A, perm, iperm, NULL)); in TestMatrix() 31 PetscCall(MatLUFactorNumeric(F, A, NULL)); in TestMatrix() 33 PetscCall(MatGetFactor(A, MATSOLVERPETSC, MAT_FACTOR_CHOLESKY, &F)); in TestMatrix() 34 PetscCall(MatCholeskyFactorSymbolic(F, A, perm, NULL)); in TestMatrix() 35 PetscCall(MatCholeskyFactorNumeric(F, A, NULL)); in TestMatrix() 38 PetscCall(MatDuplicate(A, MAT_COPY_VALUES, &F)); in TestMatrix() 39 if (!chol) PetscCall(MatLUFactor(F, perm, iperm, NULL)); in TestMatrix() 40 else PetscCall(MatCholeskyFactor(F, perm, NULL)); in TestMatrix() [all …]
|
| H A D | ex192.c | 8 Mat A, RHS, C, F, X, S; in main() local 156 PetscCall(MatGetFactor(A, solver, MAT_FACTOR_LU, &F)); in main() 164 PetscCall(MatGetFactor(A, solver, MAT_FACTOR_CHOLESKY, &F)); in main() 168 PetscCall(MatFactorSetSchurIS(F, is_schur)); in main() 172 PetscCall(MatLUFactorSymbolic(F, A, NULL, NULL, NULL)); in main() 174 PetscCall(MatCholeskyFactorSymbolic(F, A, NULL, NULL)); in main() 186 PetscCall(MatLUFactorNumeric(F, A, NULL)); in main() 188 PetscCall(MatCholeskyFactorNumeric(F, A, NULL)); in main() 192 PetscCall(MatFactorGetSchurComplement(F, &S, NULL)); in main() 195 PetscCall(MatFactorRestoreSchurComplement(F, &S, MAT_FACTOR_SCHUR_UNFACTORED)); in main() [all …]
|
| H A D | ex130.c | 8 Mat A, F; in main() local 51 PetscCall(MatGetFactor(A, MATSOLVERSUPERLU, MAT_FACTOR_LU, &F)); in main() 57 PetscCall(MatGetFactor(A, MATSOLVERMUMPS, MAT_FACTOR_LU, &F)); in main() 61 PetscCall(MatMumpsSetIcntl(F, 7, icntl_7)); in main() 67 PetscCall(MatGetFactor(A, MATSOLVERPETSC, MAT_FACTOR_LU, &F)); in main() 71 PetscCall(MatLUFactorSymbolic(F, A, perm, iperm, &info)); in main() 75 PetscCall(MatLUFactorNumeric(F, A, &info)); in main() 79 PetscCall(MatSolve(F, b, x)); in main() 93 PetscCall(MatDestroy(&F)); in main()
|
| /petsc/src/mat/impls/aij/seq/spqr/ |
| H A D | aijspqr.c | 111 static PetscErrorCode MatSolve_SPQR_Internal(Mat F, cholmod_dense *cholB, cholmod_dense **_Y_handle) in MatSolve_SPQR_Internal() argument 113 Mat_CHOLMOD *chol = (Mat_CHOLMOD *)F->data; in MatSolve_SPQR_Internal() 119 …PetscCheck(QTB_handle, PetscObjectComm((PetscObject)F), PETSC_ERR_LIB, "SuiteSparseQR_C_qmult fail… in MatSolve_SPQR_Internal() 121 …PetscCheck(Y_handle, PetscObjectComm((PetscObject)F), PETSC_ERR_LIB, "SuiteSparseQR_C_solve failed… in MatSolve_SPQR_Internal() 124 …PetscCheck(Z_handle, PetscObjectComm((PetscObject)F), PETSC_ERR_LIB, "SuiteSparseQR_C_solve failed… in MatSolve_SPQR_Internal() 126 …PetscCheck(Y_handle, PetscObjectComm((PetscObject)F), PETSC_ERR_LIB, "SuiteSparseQR_C_solve failed… in MatSolve_SPQR_Internal() 134 static PetscErrorCode MatSolve_SPQR(Mat F, Vec B, Vec X) in MatSolve_SPQR() argument 136 Mat_CHOLMOD *chol = (Mat_CHOLMOD *)F->data; in MatSolve_SPQR() 143 PetscCall(MatSolve_SPQR_Internal(F, &cholB, &Y_handle)); in MatSolve_SPQR() 154 static PetscErrorCode MatMatSolve_SPQR(Mat F, Mat B, Mat X) in MatMatSolve_SPQR() argument [all …]
|
| /petsc/src/mat/impls/sbaij/seq/cholmod/ |
| H A D | sbaijcholmod.c | 61 static PetscErrorCode CholmodSetOptions(Mat F) in CholmodSetOptions() argument 63 Mat_CHOLMOD *chol = (Mat_CHOLMOD *)F->data; in CholmodSetOptions() 68 …PetscOptionsBegin(PetscObjectComm((PetscObject)F), ((PetscObject)F)->prefix, "CHOLMOD Options", "M… in CholmodSetOptions() 105 …PetscCheck(!flg || n == 3, PetscObjectComm((PetscObject)F), PETSC_ERR_ARG_OUTOFRANGE, "must provid… in CholmodSetOptions() 112 …PetscCheck(!flg || n == 3, PetscObjectComm((PetscObject)F), PETSC_ERR_ARG_OUTOFRANGE, "must provid… in CholmodSetOptions() 123 PetscErrorCode CholmodStart(Mat F) in CholmodStart() argument 125 Mat_CHOLMOD *chol = (Mat_CHOLMOD *)F->data; in CholmodStart() 275 PETSC_INTERN PetscErrorCode MatDestroy_CHOLMOD(Mat F) in MatDestroy_CHOLMOD() argument 277 Mat_CHOLMOD *chol = (Mat_CHOLMOD *)F->data; in MatDestroy_CHOLMOD() 289 PetscCall(PetscObjectComposeFunction((PetscObject)F, "MatFactorGetSolverType_C", NULL)); in MatDestroy_CHOLMOD() [all …]
|
| /petsc/src/mat/impls/aij/seq/matlab/ |
| H A D | aijmatlab.c | 119 static PetscErrorCode MatLUFactorNumeric_Matlab(Mat F, Mat A, const MatFactorInfo *info) in MatLUFactorNumeric_Matlab() argument 126 if (F->factortype == MAT_FACTOR_ILU || info->dt > 0) { in MatLUFactorNumeric_Matlab() 129 F->ops->solve = MatSolve_Matlab; in MatLUFactorNumeric_Matlab() 130 F->factortype = MAT_FACTOR_LU; in MatLUFactorNumeric_Matlab() 141 PetscCall(PetscObjectSetName((PetscObject)F, name)); in MatLUFactorNumeric_Matlab() 151 PetscCall(PetscObjectSetName((PetscObject)F, name)); in MatLUFactorNumeric_Matlab() 154 F->ops->solve = MatSolve_Matlab; in MatLUFactorNumeric_Matlab() 159 static PetscErrorCode MatLUFactorSymbolic_Matlab(Mat F, Mat A, IS r, IS c, const MatFactorInfo *inf… in MatLUFactorSymbolic_Matlab() argument 163 F->ops->lufactornumeric = MatLUFactorNumeric_Matlab; in MatLUFactorSymbolic_Matlab() 164 F->assembled = PETSC_TRUE; in MatLUFactorSymbolic_Matlab() [all …]
|
| /petsc/src/ts/tutorials/ |
| H A D | ex31.c | 71 PetscErrorCode RHSFunction_Hull1972A1(TS ts, PetscReal t, Vec Y, Vec F, void *s) in RHSFunction_Hull1972A1() argument 78 PetscCall(VecGetArray(F, &f)); in RHSFunction_Hull1972A1() 81 PetscCall(VecRestoreArray(F, &f)); in RHSFunction_Hull1972A1() 100 PetscErrorCode IFunction_Hull1972A1(TS ts, PetscReal t, Vec Y, Vec Ydot, Vec F, void *s) in IFunction_Hull1972A1() argument 107 PetscCall(VecGetArray(F, &f)); in IFunction_Hull1972A1() 110 PetscCall(VecRestoreArray(F, &f)); in IFunction_Hull1972A1() 112 PetscCall(VecAYPX(F, -1.0, Ydot)); in IFunction_Hull1972A1() 133 PetscErrorCode RHSFunction_Hull1972A2(TS ts, PetscReal t, Vec Y, Vec F, void *s) in RHSFunction_Hull1972A2() argument 140 PetscCall(VecGetArray(F, &f)); in RHSFunction_Hull1972A2() 143 PetscCall(VecRestoreArray(F, &f)); in RHSFunction_Hull1972A2() [all …]
|
| /petsc/src/snes/impls/ls/ |
| H A D | ls.c | 46 static PetscErrorCode SNESNEWTONLSCheckLocalMin_Private(SNES snes, Mat A, Vec F, PetscReal fnorm, P… in SNESNEWTONLSCheckLocalMin_Private() argument 58 PetscCall(VecDuplicate(F, &W)); in SNESNEWTONLSCheckLocalMin_Private() 61 PetscCall(MatMultTranspose(A, F, W)); in SNESNEWTONLSCheckLocalMin_Private() 74 PetscCall(VecDot(F, work, &result)); in SNESNEWTONLSCheckLocalMin_Private() 88 static PetscErrorCode SNESNEWTONLSCheckResidual_Private(SNES snes, Mat A, Vec F, Vec X) in SNESNEWTONLSCheckResidual_Private() argument 100 PetscCall(VecDuplicate(F, &W1)); in SNESNEWTONLSCheckResidual_Private() 101 PetscCall(VecDuplicate(F, &W2)); in SNESNEWTONLSCheckResidual_Private() 103 PetscCall(VecAXPY(W1, -1.0, F)); in SNESNEWTONLSCheckResidual_Private() 130 Vec Y, X, F; in SNESSolve_NEWTONLS() local 147 F = snes->vec_func; /* residual vector */ in SNESSolve_NEWTONLS() [all …]
|
| /petsc/src/mat/impls/aij/mpi/pastix/ |
| H A D | pastix.c | 201 static PetscErrorCode MatFactorNumeric_PaStiX(Mat F, Mat A, const MatFactorInfo *info) in MatFactorNumeric_PaStiX() argument 203 Mat_Pastix *pastix = (Mat_Pastix *)F->data; in MatFactorNumeric_PaStiX() 206 F->ops->solve = MatSolve_PaStiX; in MatFactorNumeric_PaStiX() 212 F->assembled = PETSC_TRUE; in MatFactorNumeric_PaStiX() 216 static PetscErrorCode MatLUFactorNumeric_PaStiX(Mat F, Mat A, const MatFactorInfo *info) in MatLUFactorNumeric_PaStiX() argument 218 Mat_Pastix *pastix = (Mat_Pastix *)F->data; in MatLUFactorNumeric_PaStiX() 221 …PetscCheck(pastix->iparm[IPARM_FACTORIZATION] == PastixFactGETRF, PetscObjectComm((PetscObject)F),… in MatLUFactorNumeric_PaStiX() 223 PetscCall(MatFactorNumeric_PaStiX(F, A, info)); in MatLUFactorNumeric_PaStiX() 227 static PetscErrorCode MatCholeskyFactorNumeric_PaStiX(Mat F, Mat A, const MatFactorInfo *info) in MatCholeskyFactorNumeric_PaStiX() argument 229 Mat_Pastix *pastix = (Mat_Pastix *)F->data; in MatCholeskyFactorNumeric_PaStiX() [all …]
|
| /petsc/src/snes/tutorials/ |
| H A D | ex3k.kokkos.cxx | 11 Vec F; /* right-hand side of PDE */ member 51 PetscScalar *X, *R, *F, d; in CpuFunction() local 60 PetscCall(DMDAVecGetArray(da, user->F, &F)); in CpuFunction() 75 for (i = xs; i < xs + xm; i++) R[i] = d * (X[i - 1] - 2.0 * X[i] + X[i + 1]) + X[i] * X[i] - F[i]; in CpuFunction() 79 PetscCall(DMDAVecRestoreArray(da, user->F, &F)); in CpuFunction() 97 ConstPetscScalarKokkosOffsetView X, F; in KokkosFunction() local 106 PetscCall(DMDAVecGetKokkosOffsetView(da, user->F, &F)); /* read only */ in KokkosFunction() 111 else R(i) = d * (X(i - 1) - 2.0 * X(i) + X(i + 1)) + X(i) * X(i) - F(i); /* interior */ in KokkosFunction() 115 PetscCall(DMDAVecRestoreKokkosOffsetView(da, user->F, &F)); in KokkosFunction() 225 Vec x, r, U, F; /* vectors */ in main() local [all …]
|
| /petsc/src/binding/petsc4py/src/lib-petsc/compat/ |
| H A D | mumps.h | 12 PetscErrorCode MatMumpsGetIcntl(PETSC_UNUSED Mat F,PETSC_UNUSED PetscInt icntl,PETSC_UNUSED PetscIn… in MatMumpsGetIcntl() argument 13 PetscErrorCode MatMumpsGetCntl(PETSC_UNUSED Mat F,PETSC_UNUSED PetscInt icntl,PETSC_UNUSED PetscRea… in MatMumpsGetCntl() argument 14 PetscErrorCode MatMumpsGetInfo(PETSC_UNUSED Mat F,PETSC_UNUSED PetscInt icntl,PETSC_UNUSED PetscInt… in MatMumpsGetInfo() argument 15 PetscErrorCode MatMumpsGetInfog(PETSC_UNUSED Mat F,PETSC_UNUSED PetscInt icntl,PETSC_UNUSED PetscIn… in MatMumpsGetInfog() argument 16 PetscErrorCode MatMumpsGetRinfo(PETSC_UNUSED Mat F,PETSC_UNUSED PetscInt icntl,PETSC_UNUSED PetscRe… in MatMumpsGetRinfo() argument 17 PetscErrorCode MatMumpsGetRinfog(PETSC_UNUSED Mat F,PETSC_UNUSED PetscInt icntl,PETSC_UNUSED PetscR… in MatMumpsGetRinfog() argument
|