| /petsc/lib/petsc/bin/maint/abi-compliance-checker/modules/Internals/ |
| H A D | GccAst.pm | 188 my $V = undef; 204 $V = $LVer; 226 $LibInfo{$V}{"info_type"}{$1} = $2; 227 $LibInfo{$V}{"info"}{$1} = $3." "; 268 remove_Unused($V, "Extra"); 274 remove_Unused($V, "All"); 277 remove_Unused($V, "Extended"); 283 foreach my $Tid (keys(%{$TypeInfo{$V}})) { 284 checkCompleteness($TypeInfo{$V}{$Tid}); 287 foreach my $Sid (keys(%{$SymbolInfo{$V}})) { [all …]
|
| /petsc/src/vec/vec/tests/ |
| H A D | ex34.c | 8 Vec V, W; in main() local 19 PetscCall(VecCreate(comm, &V)); in main() 20 PetscCall(VecSetSizes(V, 10, PETSC_DECIDE)); in main() 21 PetscCall(VecSetFromOptions(V)); in main() 22 PetscCall(VecSetRandom(V, NULL)); in main() 23 PetscCall(VecAssemblyBegin(V)); in main() 24 PetscCall(VecAssemblyEnd(V)); in main() 30 PetscCall(VecNorm(V, NORM_1, &nrm1)); in main() 31 PetscCall(VecNorm(V, NORM_2, &nrm2)); in main() 35 PetscCall(VecNorm(V, NORM_1, &nrm1)); in main() [all …]
|
| H A D | ex43.c | 7 Vec *V, t; in main() local 27 PetscCall(VecDuplicateVecs(t, k, &V)); in main() 34 for (i = 0; i < k; i++) PetscCall(VecSetRandom(V[i], rctx)); in main() 37 PetscCall(VecMDot(t, i, V, val_mdot)); in main() 38 PetscCall(VecMTDot(t, i, V, tval_mdot)); in main() 40 PetscCall(VecDot(t, V[j], &val_dot[j])); in main() 41 PetscCall(VecTDot(t, V[j], &tval_dot[j])); in main() 61 PetscCall(VecDestroyVecs(k, &V)); in main()
|
| /petsc/src/vec/vec/impls/seq/ |
| H A D | bvec3.c | 22 PetscErrorCode VecCreate_Seq(Vec V) in VecCreate_Seq() argument 26 PetscInt n = PetscMax(V->map->n, V->map->N); in VecCreate_Seq() 30 PetscCallMPI(MPI_Comm_size(PetscObjectComm((PetscObject)V), &size)); in VecCreate_Seq() 35 PetscCall(VecCreate_Seq_Private(V, array)); in VecCreate_Seq() 37 s = (Vec_Seq *)V->data; in VecCreate_Seq() 39 PetscCall(PetscObjectComposedDataSetReal((PetscObject)V, NormIds[NORM_2], 0)); in VecCreate_Seq() 40 PetscCall(PetscObjectComposedDataSetReal((PetscObject)V, NormIds[NORM_1], 0)); in VecCreate_Seq() 41 PetscCall(PetscObjectComposedDataSetReal((PetscObject)V, NormIds[NORM_INFINITY], 0)); in VecCreate_Seq() 44 switch (((PetscObject)V)->precision) { in VecCreate_Seq() 49 PetscCall(VecCreate_Seq_Private(V, aarray)); in VecCreate_Seq() [all …]
|
| /petsc/include/petsc/private/cpp/ |
| H A D | unordered_map.hpp | 276 template <typename V, typename H, typename KE> 278 class KHashTable<V, H, KE>::table_iterator { 428 template <typename V, typename H, typename KE> 430 inline KHashTable<V, H, KE>::KHashTable(Iter first, Iter last, std::input_iterator_tag) noexcept in KHashTable() 440 template <typename V, typename H, typename KE> 442 inline KHashTable<V, H, KE>::KHashTable(Iter first, Iter last, std::random_access_iterator_tag) noe… in KHashTable() 454 template <typename V, typename H, typename KE> 455 inline constexpr typename KHashTable<V, H, KE>::khash_int KHashTable<V, H, KE>::flag_bucket_index_(… in flag_bucket_index_() 460 template <typename V, typename H, typename KE> 461 inline typename KHashTable<V, H, KE>::flags_type &KHashTable<V, H, KE>::flag_bucket_at_(khash_int i… in flag_bucket_at_() [all …]
|
| /petsc/src/mat/impls/lrc/ |
| H A D | lrc.c | 7 Mat U, V; /* dense tall-skinny matrices */ member 17 Mat U, V; in MatMult_LRC_kernel() local 20 U = transpose ? Na->V : Na->U; in MatMult_LRC_kernel() 21 V = transpose ? Na->U : Na->V; in MatMult_LRC_kernel() 24 PetscCall(MatMultHermitianTranspose(V, x, Na->work1)); in MatMult_LRC_kernel() 47 PetscCall(MatDenseGetLocalMatrix(V, &Vloc)); in MatMult_LRC_kernel() 107 PetscCall(MatDestroy(&Na->V)); in MatDestroy_LRC() 119 static PetscErrorCode MatLRCGetMats_LRC(Mat N, Mat *A, Mat *U, Vec *c, Mat *V) in MatLRCGetMats_LRC() argument 127 if (V) *V = Na->V; in MatLRCGetMats_LRC() 131 static PetscErrorCode MatLRCSetMats_LRC(Mat N, Mat A, Mat U, Vec c, Mat V) in MatLRCSetMats_LRC() argument [all …]
|
| /petsc/src/vec/vec/impls/seq/seqviennacl/ |
| H A D | vecviennacl.cxx | 978 …ViennaCLWithArray(MPI_Comm comm, PetscInt bs, PetscInt n, const ViennaCLVector *array, Vec *V) PeNS in VecCreateSeqViennaCLWithArray() argument 983 PetscCall(VecCreate(comm, V)); in VecCreateSeqViennaCLWithArray() 984 PetscCall(VecSetSizes(*V, n, n)); in VecCreateSeqViennaCLWithArray() 985 PetscCall(VecSetBlockSize(*V, bs)); in VecCreateSeqViennaCLWithArray() 988 PetscCall(VecCreate_SeqViennaCL_Private(*V, array)); in VecCreateSeqViennaCLWithArray() 1022 …scInt bs, PetscInt n, const PetscScalar cpuarray[], const ViennaCLVector *viennaclvec, Vec *V) PeNS in VecCreateSeqViennaCLWithArrays() argument 1031 PetscCall(VecCreateSeqViennaCLWithArray(comm, bs, n, viennaclvec, V)); in VecCreateSeqViennaCLWithArrays() 1034 Vec_Seq *s = (Vec_Seq *)((*V)->data); in VecCreateSeqViennaCLWithArrays() 1036 (*V)->offloadmask = PETSC_OFFLOAD_BOTH; in VecCreateSeqViennaCLWithArrays() 1038 Vec_Seq *s = (Vec_Seq *)((*V)->data); in VecCreateSeqViennaCLWithArrays() [all …]
|
| /petsc/src/mat/tests/ |
| H A D | ex102.c | 8 Mat A, U, V, LR, X, LRe; in main() local 40 PetscCall(MatCreate(PETSC_COMM_WORLD, &V)); in main() 41 PetscCall(MatSetSizes(V, PETSC_DECIDE, PETSC_DECIDE, N, 3)); in main() 42 PetscCall(MatSetType(V, MATDENSE)); in main() 43 PetscCall(MatSetOptionsPrefix(V, "V_")); in main() 44 PetscCall(MatSetFromOptions(V)); in main() 45 PetscCall(MatSetUp(V)); in main() 46 PetscCall(MatSetRandom(V, NULL)); in main() 66 PetscCall(MatCreateLRC(NULL, U, c, V, &LR)); in main() 69 PetscCall(MatCreateLRC(A, U, c, V, &LR)); in main() [all …]
|
| /petsc/src/vec/vec/utils/ |
| H A D | projection.c | 222 PetscErrorCode VecWhichBetween(Vec VecLow, Vec V, Vec VecHigh, IS *S) in VecWhichBetween() argument 231 PetscValidHeaderSpecific(V, VEC_CLASSID, 2); in VecWhichBetween() 233 PetscCheckSameComm(V, 2, VecLow, 1); in VecWhichBetween() 234 PetscCheckSameComm(V, 2, VecHigh, 3); in VecWhichBetween() 235 VecCheckSameSize(V, 2, VecLow, 1); in VecWhichBetween() 236 VecCheckSameSize(V, 2, VecHigh, 3); in VecWhichBetween() 247 if (V != VecLow && V != VecHigh) { in VecWhichBetween() 248 PetscCall(VecGetArrayRead(V, &vmiddle)); in VecWhichBetween() 249 } else if (V == VecLow) { in VecWhichBetween() 266 if (V != VecLow && V != VecHigh) PetscCall(VecRestoreArrayRead(V, &vmiddle)); in VecWhichBetween() [all …]
|
| /petsc/src/dm/impls/plex/tests/output/ |
| H A D | ex15_1.out | 1 ==== original V in global ordering. size==18 block size=2 2 Vec Object: V 2 MPI processes 24 ==== V in natural ordering. size==18 block size=2 48 Vec Object: V 2 MPI processes 70 V and RV are equal 72 Vec Object: V 2 MPI processes 97 Vec Object: V 2 MPI processes
|
| /petsc/src/ts/tests/ |
| 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() 33 Vec U, V; member 64 PetscCall(VecCreateMPI(PETSC_COMM_WORLD, PETSC_DECIDE, 1, &ctx.V)); in main() 69 PetscCall(VecDestroy(&ctx.V)); in main() 90 PetscCall(SNESSolve(ctx->snes, NULL, ctx->V)); in TSFunction() 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 [all …]
|
| H A D | ex10.c | 15 Vec U, V; member 40 PetscErrorCode TSDAESimpleSetIFunction(TSDAESimple tsdae, Vec V, PetscErrorCode (*F)(PetscReal, Vec… in TSDAESimpleSetIFunction() argument 44 tsdae->V = V; in TSDAESimpleSetIFunction() 45 PetscCall(PetscObjectReference((PetscObject)V)); in TSDAESimpleSetIFunction() 55 PetscCall(VecDestroy(&(*tsdae)->V)); in TSDAESimpleDestroy() 101 PetscCall(SNESSolve(red->snes, NULL, tsdae->V)); in TSDAESimple_Reduced_TSFunction() 102 PetscCall((*tsdae->f)(t, U, tsdae->V, F, tsdae->fctx)); in TSDAESimple_Reduced_TSFunction() 110 PetscErrorCode TSDAESimple_Reduced_SNESFunction(SNES snes, Vec V, Vec F, void *actx) in TSDAESimple_Reduced_SNESFunction() argument 116 PetscCall((*tsdae->F)(red->t, red->U, V, F, tsdae->Fctx)); in TSDAESimple_Reduced_SNESFunction() 206 PetscCall(VecScatterBegin(full->scatterV, UV, tsdae->V, INSERT_VALUES, SCATTER_REVERSE)); in TSDAESimple_Full_TSRHSFunction() [all …]
|
| 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() 35 Vec U, V; member 69 PetscCall(VecCreateMPI(PETSC_COMM_WORLD, 1, PETSC_DETERMINE, &ctx.V)); in main() 78 PetscCall(VecScatterCreate(ctx.V, NULL, UV, is, &ctx.scatterV)); in main() 86 PetscCall(VecDestroy(&ctx.V)); in main() 108 PetscCall(VecScatterBegin(ctx->scatterV, UV, ctx->V, INSERT_VALUES, SCATTER_REVERSE)); in TSFunctionRHS() 109 PetscCall(VecScatterEnd(ctx->scatterV, UV, ctx->V, INSERT_VALUES, SCATTER_REVERSE)); in TSFunctionRHS() [all …]
|
| H A D | ex80.c | 17 PetscErrorCode Residual(TS ts, PetscReal t, Vec U, Vec V, Vec A, Vec R, PetscCtx ctx) in Residual() argument 34 PetscErrorCode Tangent(TS ts, PetscReal t, Vec U, Vec V, Vec A, PetscReal shiftV, PetscReal shiftA,… in Tangent() argument 57 Vec U, V; in main() local 94 PetscCall(VecCreateSeq(PETSC_COMM_SELF, 1, &V)); in main() 96 PetscCall(VecGetArrayWrite(V, &v)); in main() 100 PetscCall(VecRestoreArrayWrite(V, &v)); in main() 102 PetscCall(TS2SetSolution(ts, U, V)); in main() 107 PetscCall(VecGetArray(V, &v)); in main() 116 PetscCall(VecRestoreArray(V, &v)); in main() 119 PetscCall(VecDestroy(&V)); in main()
|
| H A D | ex7.c | 58 Vec UV, V; member 94 PetscCall(VecCreateMPI(PETSC_COMM_WORLD, 1, PETSC_DETERMINE, &ctx.V)); in main() 104 PetscCall(VecScatterCreate(ctx.V, NULL, ctx.UV, is, &ctx.scatterV)); in main() 110 PetscCall(VecDestroy(&ctx.V)); in main() 135 PetscCall(SNESSolve(ctx->snes, NULL, ctx->V)); in TSFunction() 136 PetscCall(VecScatterBegin(ctx->scatterV, ctx->V, ctx->UV, INSERT_VALUES, SCATTER_FORWARD)); in TSFunction() 137 PetscCall(VecScatterEnd(ctx->scatterV, ctx->V, ctx->UV, INSERT_VALUES, SCATTER_FORWARD)); in TSFunction() 146 PetscErrorCode SNESFunction(SNES snes, Vec V, Vec F, void *actx) in SNESFunction() argument 151 PetscCall(VecScatterBegin(ctx->scatterV, V, ctx->UV, INSERT_VALUES, SCATTER_FORWARD)); in SNESFunction() 152 PetscCall(VecScatterEnd(ctx->scatterV, V, ctx->UV, INSERT_VALUES, SCATTER_FORWARD)); in SNESFunction()
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | surfacesphere_bin.msh | 9 …o�?�07���?7�gm=o�俙�ׁ��?��V����8�����V�w_r�`,�?�Fr46ֿ9�!"J�ݿ�W�%���?�^Q块�:8… 12 �����V,�@V��?:%�p���F���vNݿ2���Hq�?��ۦr��G>�#���鿻�Y� 14 …�<�-�$пӗ�ͥ9�A�7��xٿN#��`�ӿ=3�0�LqW/��Oq�M��W��ɌC�ʿ1Nfœ�տPv"ӥ�:�y"�N�9^��ſQV�h 16 …VǿT*%����ʿ�ԤϽ�ſG��bN��Ug p�&�Y�Wٗ���l!�Vi���E�� F#[$ӿ&����W�2�Q�俠^jP`�����ҿX… 18 …V�?�n���ǿf��Ͻ��?u��bN��?�����ʿg�%�c�?��a���?3����U�h��Wٗ�?���l!�?�*p�&�ix#[$�… 19 ��ߛ7e�?�DtT���?vb�N4�?��SNabP�?�yMJ���?wdV�zsտ*9L./��?kFxW���?x�rn��ǿV{m���?x��w���?y…
|
| H A D | square_periodic_bin.msh | 11 …m@-p�~���!@��H�N��?.��[��B"@���e1��?/hlOV@�o�c@0… 12 @53V���D 14 …?�)�����?Ht�牡] @`��v@I�|�X]@���@J�Vً|"@D�9J�@K… 15 …M�{�%#@@zOa��?N��Ֆ�:�?d�T���?O����@�V�B�@Pz�8… 17 …w�@S�#j�9�@�pz��C@T,h�="@�ȶu�V@U\T+�m@,Z[7*��?V… 20 1��@�K�bK]@g�#@Ho�-'�@h�V~�T@t*㑐B 34 …V> P?Q$@… 35 APT+V<U/f>V…
|
| H A D | gmsh-3d-binary-64.msh | 33 TUVWXYZ[\]^_… 49 2VY3]V4 50 …V?V]$@&Z%AWZ&… 54 …V7��]lV��CQ<�…
|
| H A D | square_bin_physnames.msh | 28 …V�?�m��[��?U%��HM�?�8GrV�?V,��D�?��D��?WT�]��?���D�?… 30 �n�?�<�?'8�?mBf����?�r��z�?n=#v�Z��?r�>V���?o��>V���?���J��?… 44 …VBD C0WE /XDF … 46 …V C@�W C�0X EA�…
|
| H A D | gmsh-3d-binary.msh2 | 45 …#�?�}�&#�?T������?�?A������?U^������?�?^������?V��?�?�… 61 …V^UJ(U_VK(X^VL… 65 …6P��dp|}�dV}|…
|
| H A D | gmsh-3d-binary-32.msh | 36 TUVWXYZ[\]^_`^������?�?^������?��?�?�… 56 …VZ<`V=%Y$>$YT?T[$@&Y%AX… 60 …�xEq�y]n�\*WD�V`r{�V:`… 62 …H=Q�cj=�z r:`rVV,`:…
|
| /petsc/src/ts/tutorials/ |
| H A D | ex44.c | 25 Vec V; in Event() local 30 PetscCall(TS2GetSolution(ts, &U, &V)); in Event() 40 Vec V; in PostEvent() local 50 PetscCall(TS2GetSolution(ts, &U, &V)); in PostEvent() 52 PetscCall(VecGetArray(V, &v)); in PostEvent() 56 PetscCall(VecRestoreArray(V, &v)); in PostEvent() 68 static PetscErrorCode I2Function(TS ts, PetscReal t, Vec U, Vec V, Vec A, Vec F, PetscCtx ctx) in I2Function() argument 76 PetscCall(VecGetArrayRead(V, &v)); in I2Function() 80 PetscCall(VecRestoreArrayRead(V, &v)); in I2Function() 89 static PetscErrorCode I2Jacobian(TS ts, PetscReal t, Vec U, Vec V, Vec A, PetscReal shiftV, PetscRe… in I2Jacobian() argument [all …]
|
| /petsc/src/dm/dt/tests/output/ |
| H A D | ex7_1234.out | 76 intV[0,0] = V[0] 177 intV[0,0] = V[0] 178 intV[0,1] = V[1] 213 intV[1,0] = V[0] 214 intV[0,0] = -V[1] 354 intV[0,0] = V[0] 355 intV[0,1] = V[1] 356 intV[0,2] = V[2] 430 intV[0,0] = -V[1] 431 intV[0,1] = -V[2] [all …]
|
| /petsc/src/tao/interface/ |
| H A D | fdiff.c | 113 PetscErrorCode TaoDefaultComputeHessian(Tao tao, Vec V, Mat H, Mat B, void *dummy) in TaoDefaultComputeHessian() argument 123 PetscCall(DMShellSetGlobalVector(dm, V)); in TaoDefaultComputeHessian() 128 PetscCall(VecGetSize(V, &N)); in TaoDefaultComputeHessian() 129 PetscCall(VecGetLocalSize(V, &n)); in TaoDefaultComputeHessian() 136 PetscCall(VecGetSize(V, &N)); in TaoDefaultComputeHessian() 137 PetscCall(VecGetLocalSize(V, &n)); in TaoDefaultComputeHessian() 141 PetscCall(SNESComputeJacobianDefault(snes, V, H, B, NULL)); in TaoDefaultComputeHessian() 164 PetscErrorCode TaoDefaultComputeHessianColor(Tao tao, Vec V, Mat H, Mat B, PetscCtx ctx) in TaoDefaultComputeHessianColor() argument 171 PetscCall(MatFDColoringApply(B, coloring, V, ctx)); in TaoDefaultComputeHessianColor()
|
| /petsc/src/ksp/ksp/impls/bcgs/ |
| H A D | bcgs.c | 22 Vec X, B, V, P, R, RP, T, S; in KSPSolve_BCGS() local 31 V = ksp->work[2]; in KSPSolve_BCGS() 37 PetscCall(KSPInitialResidual(ksp, X, V, T, R, B)); in KSPSolve_BCGS() 70 PetscCall(VecSet(V, 0.0)); in KSPSolve_BCGS() 76 …PetscCall(VecAXPBYPCZ(P, 1.0, -omegaold * beta, beta, R, V)); /* p <- r - omega * beta* v + beta *… in KSPSolve_BCGS() 77 PetscCall(KSP_PCApplyBAorAB(ksp, P, V, T)); /* v <- K p */ in KSPSolve_BCGS() 78 PetscCall(VecDot(V, RP, &d1)); in KSPSolve_BCGS() 87 PetscCall(VecWAXPY(S, -alpha, V, R)); /* s <- r - a v */ in KSPSolve_BCGS() 145 PetscErrorCode KSPBuildSolution_BCGS(KSP ksp, Vec v, Vec *V) in KSPBuildSolution_BCGS() argument 154 *V = v; in KSPBuildSolution_BCGS() [all …]
|