| /petsc/src/sys/tests/ |
| H A D | ex25.c | 10 PetscReal a, b, c; in main() local 14 b = PetscSqrtReal(a); in main() 15 PetscCall(PetscPrintf(PETSC_COMM_WORLD, "sqrt(%f) = %f\n", (double)a, (double)b)); in main() 16 b = PetscCbrtReal(a); in main() 17 PetscCall(PetscPrintf(PETSC_COMM_WORLD, "cbrt(%f) = %f\n", (double)a, (double)b)); in main() 19 b = PetscHypotReal(a, c); in main() 20 … PetscCall(PetscPrintf(PETSC_COMM_WORLD, "hypot(%f,%f) = %f\n", (double)a, (double)c, (double)b)); in main() 21 b = PetscAtan2Real(a, c); in main() 22 … PetscCall(PetscPrintf(PETSC_COMM_WORLD, "atan2(%f,%f) = %f\n", (double)a, (double)c, (double)b)); in main() 24 b = PetscPowReal(a, c); in main() [all …]
|
| H A D | ex10.c | 7 PetscInt i, *a, *b; in main() local 13 PetscCall(PetscMalloc1(20, &b)); in main() 18 for (i = 0; i < 20; i++) b[i] = i; in main() 19 PetscCall(PetscArraymove(a, b, 10)); in main() 29 a = b + 5; in main() 30 PetscCall(PetscArraymove(a, b, 15)); in main() 32 PetscCall(PetscFree(b)); in main() 40 b = a + 5; in main() 41 for (i = 0; i < 20; i++) b[i] = i; in main() 42 PetscCall(PetscArraymove(a, b, 20)); in main()
|
| /petsc/src/sys/tests/linter/output/ |
| H A D | testDuplicates.patch | 4 -PetscErrorCode testDuplicatesWithChanges(PetscInt *a, PetscScalar *b) 5 +static PetscErrorCode testDuplicatesWithChanges(PetscInt *a, PetscScalar *b) 14 PetscAssertPointer(b, 5); 18 - PetscAssertPointer(b, 5); 19 + PetscAssertPointer(b, 2); 21 PetscAssertPointer(b, 7); 23 PetscAssertPointer(b, 5); 25 - PetscAssertPointer(b, 7); 26 + PetscAssertPointer(b, 2); 27 PetscAssertPointer(b, 3); [all …]
|
| H A D | testValidPointers.patch | 4 -PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, Petsc… 5 +static PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e… 13 PetscAssertPointer(b, 3); 18 - PetscAssertPointer(b, 3); 19 + PetscAssertPointer(b, 2); 24 PetscAssertPointer(b, 3); 30 PetscAssertPointer(b, 3); 67 -void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, … 68 +static void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBo… 76 PetscAssertPointer(b, 3); [all …]
|
| /petsc/src/sys/tests/linter/ |
| H A D | testDuplicates.c | 3 PetscErrorCode testDuplicatesWithChanges(PetscInt *a, PetscScalar *b) in testDuplicatesWithChanges() argument 10 PetscAssertPointer(b, 5); in testDuplicatesWithChanges() 12 PetscAssertPointer(b, 7); in testDuplicatesWithChanges() 13 PetscAssertPointer(b, 3); in testDuplicatesWithChanges() 17 PetscErrorCode testDuplicatesScoped(PetscInt *a, PetscScalar *b) in testDuplicatesScoped() argument 21 PetscAssertPointer(b, 2); in testDuplicatesScoped() 24 PetscAssertPointer(b, 2); in testDuplicatesScoped() 28 PetscAssertPointer(b, 2); in testDuplicatesScoped() 33 PetscErrorCode testDuplicatesDoubleScoped(PetscInt *a, PetscScalar *b) in testDuplicatesDoubleScoped() argument 37 PetscAssertPointer(b, 2); in testDuplicatesDoubleScoped() [all …]
|
| /petsc/include/petsc/private/ |
| H A D | petsclegacycupmblas.h | 9 …#define cublasXaxpy(a, b, c, d, e, f, g) cublasCaxpy((a), (b), (cuComplex *)(… argument 10 …#define cublasXscal(a, b, c, d, e) cublasCscal((a), (b), (cuComplex *)(… argument 11 …#define cublasXdotu(a, b, c, d, e, f, g) cublasCdotu((a), (b), (cuComplex *)(… argument 12 …#define cublasXdot(a, b, c, d, e, f, g) cublasCdotc((a), (b), (cuComplex *)(… argument 13 …#define cublasXswap(a, b, c, d, e, f) cublasCswap((a), (b), (cuComplex *)(… argument 14 …#define cublasXnrm2(a, b, c, d, e) cublasScnrm2((a), (b), (cuComplex *)… argument 15 …#define cublasIXamax(a, b, c, d, e) cublasIcamax((a), (b), (cuComplex *)… argument 16 …#define cublasXasum(a, b, c, d, e) cublasScasum((a), (b), (cuComplex *)… argument 17 …#define cublasXgemv(a, b, c, d, e, f, g, h, i, j, k, l) cublasCgemv((a), (b), (c), (d), (cuC… argument 18 …#define cublasXgemm(a, b, c, d, e, f, g, h, i, j, k, l, m, n) cublasCgemm((a), (b), (c), (d), (e),… argument [all …]
|
| H A D | logimpldeprecated.h | 72 …longer used.") static inline PetscErrorCode PetscClassPerfLogEnsureSize(PetscClassPerfLog a, int b) in PetscClassPerfLogEnsureSize() argument 75 (void)b; in PetscClassPerfLogEnsureSize() 155 …c inline PetscErrorCode PetscClassRegLogRegister(PetscClassRegLog a, const char *b, PetscClassId c) in PetscClassRegLogRegister() argument 158 (void)b; in PetscClassRegLogRegister() 202 …) static inline PetscErrorCode PetscEventPerfInfoCopy(PetscEventPerfInfo *a, PetscEventPerfInfo *b) in PetscEventPerfInfoCopy() argument 204 return PetscMemcpy(a, b, sizeof(*a)); in PetscEventPerfInfoCopy() 218 …sed.") static inline PetscErrorCode PetscEventPerfLogActivate(PetscEventPerfLog a, PetscLogEvent b) in PetscEventPerfLogActivate() argument 221 (void)b; in PetscEventPerfLogActivate() 236 …scErrorCode PetscEventPerfLogActivateClass(PetscEventPerfLog a, PetscEventRegLog b, PetscClassId c) in PetscEventPerfLogActivateClass() argument 239 (void)b; in PetscEventPerfLogActivateClass() [all …]
|
| H A D | sfimpl.h | 154 #define MPIU_Ibcast(a, b, c, d, e, req) MPI_Ibcast(a, b, c, d, e, req) argument 155 #define MPIU_Ireduce(a, b, c, d, e, f, g, req) MPI_Ireduce(a, b, c, d, e, f, g, req) argument 156 #define MPIU_Iscatter(a, b, c, d, e, f, g, h, req) MPI_Iscatter(a, b, c, d, e, f, g, h, req) argument 157 …#define MPIU_Iscatterv(a, b, c, d, e, f, g, h, i, req) MPI_Iscatterv(a, b, c, d, e, f, g, h, i, re… argument 158 #define MPIU_Igather(a, b, c, d, e, f, g, h, req) MPI_Igather(a, b, c, d, e, f, g, h, req) argument 159 …#define MPIU_Igatherv(a, b, c, d, e, f, g, h, i, req) MPI_Igatherv(a, b, c, d, e, f, g, h, i, req) argument 160 #define MPIU_Iallgather(a, b, c, d, e, f, g, req) MPI_Iallgather(a, b, c, d, e, f, g, req) argument 161 …#define MPIU_Iallgatherv(a, b, c, d, e, f, g, h, req) MPI_Iallgatherv(a, b, c, d, e, f, g, h, req) argument 162 #define MPIU_Ialltoall(a, b, c, d, e, f, g, req) MPI_Ialltoall(a, b, c, d, e, f, g, req) argument 167 #define MPIU_Ibcast(a, b, c, d, e, req) MPI_Bcast(a, b, c, d, e) argument [all …]
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | square.cas | 113 19 45 0 2b 116 d 3b 1b 0 117 3b 1b 21 0 118 1b 15 26 0 146 19 18 2b 9 152 d e 5 1b 153 3b e 1b 24 154 3b 1a 24 21 155 1b 1a 21 a 156 1b 14 a 26 [all …]
|
| H A D | wedge_cylinder.cas | 26 4 2b 1 2d 2c 1 8 29 4 3 4 30 2f 4 b 31 4 2b 1 7 35 8 33 38 4 3 2f 39 9 a b 39 4 3 4 a 9 b 35 41 4 4 30 3a a b c 42 4 4 5 b a c 36 44 4 5 31 3b b c d 45 4 5 6 c b d 37 49 4 9 a 3a 39 b 12 [all …]
|
| H A D | gmsh-B3tet.geo | 7 b = Li*Sqrt(3)/3; 13 Point(21) = {-b, -b, -b}; 14 Point(22) = {+b, -b, -b}; 15 Point(23) = {+b, +b, -b}; 16 Point(24) = {-b, +b, -b}; 61 Extrude {0, 0, 2*b} { Surface{6}; }
|
| /petsc/src/snes/tutorials/output/ |
| H A D | ex12_p4est_fas_q2_nonconformal_serial.out | 6 … resid norm 2.499198301910e+02 true resid norm 3.216249248292e+04 ||r(i)||/||b|| 1.000000000000e+00 7 … resid norm 8.614011391108e+01 true resid norm 1.952597363694e+04 ||r(i)||/||b|| 6.071038694314e-01 8 … resid norm 2.745949105361e+01 true resid norm 1.930071384658e+04 ||r(i)||/||b|| 6.001000655293e-01 9 … resid norm 2.559253117247e+01 true resid norm 1.639100195786e+04 ||r(i)||/||b|| 5.096309611751e-01 10 … resid norm 2.282154921037e+01 true resid norm 9.122321919069e+03 ||r(i)||/||b|| 2.836323062932e-01 11 … resid norm 9.015546483100e+00 true resid norm 2.894802732061e+03 ||r(i)||/||b|| 9.000554710113e-02 12 … resid norm 6.311361207223e+00 true resid norm 1.903443566068e+03 ||r(i)||/||b|| 5.918209128471e-02 13 … resid norm 3.316691807429e+00 true resid norm 7.510656749157e+02 ||r(i)||/||b|| 2.335222232277e-02 14 … resid norm 2.729920508905e+00 true resid norm 6.941012731568e+02 ||r(i)||/||b|| 2.158107844177e-02 15 … resid norm 1.834338478600e+00 true resid norm 2.992015148139e+02 ||r(i)||/||b|| 9.302808697827e-03 [all …]
|
| H A D | ex12_mg_newton_coarse_2.out | 48 …0 KSP none resid norm 6.684008878137e-01 true resid norm 2.369800283865e+00 ||r(i)||/||b|| 6.69802… 49 …1 KSP none resid norm 4.919051758707e-01 true resid norm 1.446688201971e+00 ||r(i)||/||b|| 4.08893… 51 …0 KSP none resid norm 1.685610590672e-01 true resid norm 6.624733104703e-01 ||r(i)||/||b|| 8.53704… 52 …1 KSP none resid norm 1.207739862283e-01 true resid norm 3.637848675242e-01 ||r(i)||/||b|| 4.68795… 54 …0 KSP none resid norm 2.290632085617e-02 true resid norm 9.875748570763e-02 ||r(i)||/||b|| 1.27265… 55 …1 KSP none resid norm 1.104804170316e-02 true resid norm 4.650037335364e-02 ||r(i)||/||b|| 5.99232… 57 …0 KSP none resid norm 1.670892201468e-01 true resid norm 5.238432243646e-01 ||r(i)||/||b|| 1.48059… 58 …1 KSP none resid norm 1.116479214105e-01 true resid norm 3.016141020071e-01 ||r(i)||/||b|| 8.52484… 59 … resid norm 1.010167030378e+01 true resid norm 3.538058091867e+00 ||r(i)||/||b|| 1.000000000000e+00 61 …0 KSP none resid norm 6.941512558419e-02 true resid norm 1.669565921408e-01 ||r(i)||/||b|| 6.52967… [all …]
|
| H A D | ex12_mg_newton_coarse_1.out | 48 …0 KSP none resid norm 6.684008878137e-01 true resid norm 2.369800283865e+00 ||r(i)||/||b|| 6.69802… 49 …1 KSP none resid norm 4.919051758707e-01 true resid norm 1.446688201971e+00 ||r(i)||/||b|| 4.08893… 51 …0 KSP none resid norm 1.972770829015e-01 true resid norm 7.043302567150e-01 ||r(i)||/||b|| 8.79337… 52 …1 KSP none resid norm 1.447989909233e-01 true resid norm 3.935259572190e-01 ||r(i)||/||b|| 4.91306… 54 …0 KSP none resid norm 2.866055762098e-02 true resid norm 1.135785230348e-01 ||r(i)||/||b|| 1.41799… 55 …1 KSP none resid norm 1.316228500483e-02 true resid norm 5.460594406043e-02 ||r(i)||/||b|| 6.81740… 57 …0 KSP none resid norm 1.173444078295e-01 true resid norm 4.169692340159e-01 ||r(i)||/||b|| 1.17852… 58 …1 KSP none resid norm 5.782659235854e-02 true resid norm 1.983415577601e-01 ||r(i)||/||b|| 5.60594… 59 … resid norm 7.591373802990e+01 true resid norm 3.538058091867e+00 ||r(i)||/||b|| 1.000000000000e+00 61 …0 KSP none resid norm 2.582377643796e-02 true resid norm 1.023194016811e-01 ||r(i)||/||b|| 4.96878… [all …]
|
| /petsc/include/ |
| H A D | petscstring.h | 162 static inline void PetscStrcmpNoError(const char a[], const char b[], PetscBool *flg) in PetscStrcmpNoError() argument 164 if (!a && !b) { in PetscStrcmpNoError() 166 } else if (!a || !b) { in PetscStrcmpNoError() 170 *flg = __builtin_strcmp(a, b) ? PETSC_FALSE : PETSC_TRUE; in PetscStrcmpNoError() 172 *flg = strcmp(a, b) ? PETSC_FALSE : PETSC_TRUE; in PetscStrcmpNoError() 193 static inline PetscErrorCode PetscStrcmp(const char a[], const char b[], PetscBool *flg) in PetscStrcmp() argument 197 PetscStrcmpNoError(a, b, flg); in PetscStrcmp() 325 static inline PetscErrorCode PetscStrncmp(const char a[], const char b[], size_t n, PetscBool *t) in PetscStrncmp() argument 332 PetscAssertPointer_Private(b, 2); in PetscStrncmp() 335 *t = __builtin_strncmp(a, b, n) ? PETSC_FALSE : PETSC_TRUE; in PetscStrncmp() [all …]
|
| H A D | petscmath.h | 28 #define PetscHypotReal(a, b) hypotf(a, b) argument 29 #define PetscAtan2Real(a, b) atan2f(a, b) argument 30 #define PetscPowReal(a, b) powf(a, b) argument 51 #define PetscFmodReal(a, b) fmodf(a, b) argument 52 #define PetscCopysignReal(a, b) copysignf(a, b) argument 63 #define PetscHypotReal(a, b) hypot(a, b) argument 64 #define PetscAtan2Real(a, b) atan2(a, b) argument 65 #define PetscPowReal(a, b) pow(a, b) argument 86 #define PetscFmodReal(a, b) fmod(a, b) argument 87 #define PetscCopysignReal(a, b) copysign(a, b) argument [all …]
|
| /petsc/src/mat/impls/aij/seq/seqcusparse/ |
| H A D | cusparsematimpl.h | 23 …#define cusparseXcsrilu02_bufferSize(a, b, c, d, e, f, g, h, i) cusparseCcsrilu02_bufferSize(a, b… argument 24 …#define cusparseXcsrilu02_analysis(a, b, c, d, e, f, g, h, i, j) cusparseCcsrilu02_analysis(a, b, … argument 25 …#define cusparseXcsrilu02(a, b, c, d, e, f, g, h, i, j) cusparseCcsrilu02(a, b, c, d, (cu… argument 26 …#define cusparseXcsric02_bufferSize(a, b, c, d, e, f, g, h, i) cusparseCcsric02_bufferSize(a, b,… argument 27 …#define cusparseXcsric02_analysis(a, b, c, d, e, f, g, h, i, j) cusparseCcsric02_analysis(a, b, c… argument 28 …#define cusparseXcsric02(a, b, c, d, e, f, g, h, i, j) cusparseCcsric02(a, b, c, d, (cuC… argument 32 …#define cusparseXcsrilu02_bufferSize(a, b, c, d, e, f, g, h, i) cusparseZcsrilu02_bufferSize(a, b… argument 33 …#define cusparseXcsrilu02_analysis(a, b, c, d, e, f, g, h, i, j) cusparseZcsrilu02_analysis(a, b, … argument 34 …#define cusparseXcsrilu02(a, b, c, d, e, f, g, h, i, j) cusparseZcsrilu02(a, b, c, d, (cu… argument 35 …#define cusparseXcsric02_bufferSize(a, b, c, d, e, f, g, h, i) cusparseZcsric02_bufferSize(a, b,… argument [all …]
|
| /petsc/src/mat/impls/aij/seq/seqhipsparse/ |
| H A D | hipsparsematimpl.h | 33 …#define hipsparseXcsrilu02_bufferSize(a, b, c, d, e, f, g, h, i) hipsparseCcsrilu02_bufferSize(a,… argument 34 …#define hipsparseXcsrilu02_analysis(a, b, c, d, e, f, g, h, i, j) hipsparseCcsrilu02_analysis(a, b… argument 35 …#define hipsparseXcsrilu02(a, b, c, d, e, f, g, h, i, j) hipsparseCcsrilu02(a, b, c, d, (… argument 36 …#define hipsparseXcsric02_bufferSize(a, b, c, d, e, f, g, h, i) hipsparseCcsric02_bufferSize(a, … argument 37 …#define hipsparseXcsric02_analysis(a, b, c, d, e, f, g, h, i, j) hipsparseCcsric02_analysis(a, b,… argument 38 …#define hipsparseXcsric02(a, b, c, d, e, f, g, h, i, j) hipsparseCcsric02(a, b, c, d, (h… argument 42 …#define hipsparseXcsrilu02_bufferSize(a, b, c, d, e, f, g, h, i) hipsparseZcsrilu02_bufferSize(a,… argument 43 …#define hipsparseXcsrilu02_analysis(a, b, c, d, e, f, g, h, i, j) hipsparseZcsrilu02_analysis(a, b… argument 44 …#define hipsparseXcsrilu02(a, b, c, d, e, f, g, h, i, j) hipsparseZcsrilu02(a, b, c, d, (… argument 45 …#define hipsparseXcsric02_bufferSize(a, b, c, d, e, f, g, h, i) hipsparseZcsric02_bufferSize(a, … argument [all …]
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex10.c | 23 PetscErrorCode CheckResult(KSP *ksp, Mat *A, Vec *b, Vec *x, IS *rowperm) in CheckResult() argument 42 PetscCall(VecDestroy(b)); in CheckResult() 49 Vec x, b, b2; in CreateSystem() local 77 PetscCall(VecCreate(PETSC_COMM_WORLD, &b)); in CreateSystem() 78 PetscCall(VecLoad(b, viewer)); in CreateSystem() 81 PetscCall(MatCreateVecs(A, &b, NULL)); in CreateSystem() 82 PetscCall(VecSet(b, 1.0)); in CreateSystem() 85 PetscCall(MatCreateVecs(A, &b, NULL)); in CreateSystem() 86 PetscCall(VecSetRandom(b, NULL)); in CreateSystem() 95 PetscCall(VecGetLocalSize(b, &n2)); in CreateSystem() [all …]
|
| /petsc/src/mat/impls/baij/seq/ |
| H A D | baijfact2.c | 18 Mat_SeqBAIJ *a = (Mat_SeqBAIJ *)A->data, *b = (Mat_SeqBAIJ *)C->data; in MatLUFactorNumeric_SeqBAIJ_15_NaturalOrdering() local 20 … PetscInt n = a->mbs, *ai = a->i, *aj = a->j, *bi = b->i, *bj = b->j, *ajtmp, *bjtmp, *bdiag = b… in MatLUFactorNumeric_SeqBAIJ_15_NaturalOrdering() 67 pv = b->a + bs2 * bdiag[row]; in MatLUFactorNumeric_SeqBAIJ_15_NaturalOrdering() 70 pj = b->j + bdiag[row + 1] + 1; /* beginning of U(row,:) */ in MatLUFactorNumeric_SeqBAIJ_15_NaturalOrdering() 71 pv = b->a + bs2 * (bdiag[row + 1] + 1); in MatLUFactorNumeric_SeqBAIJ_15_NaturalOrdering() 85 pv = b->a + bs2 * bi[i]; in MatLUFactorNumeric_SeqBAIJ_15_NaturalOrdering() 86 pj = b->j + bi[i]; in MatLUFactorNumeric_SeqBAIJ_15_NaturalOrdering() 91 pv = b->a + bs2 * bdiag[i]; in MatLUFactorNumeric_SeqBAIJ_15_NaturalOrdering() 92 pj = b->j + bdiag[i]; in MatLUFactorNumeric_SeqBAIJ_15_NaturalOrdering() 98 pv = b->a + bs2 * (bdiag[i + 1] + 1); in MatLUFactorNumeric_SeqBAIJ_15_NaturalOrdering() [all …]
|
| /petsc/src/mat/impls/aij/seq/ |
| H A D | inode2.c | 53 Mat_SeqAIJ *b = (Mat_SeqAIJ *)B->data; in MatCreate_SeqAIJ_Inode() local 59 b->inode.checked = PETSC_FALSE; in MatCreate_SeqAIJ_Inode() 60 b->inode.node_count = 0; in MatCreate_SeqAIJ_Inode() 61 b->inode.size_csr = NULL; in MatCreate_SeqAIJ_Inode() 62 b->inode.limit = 5; in MatCreate_SeqAIJ_Inode() 63 b->inode.max_limit = 5; in MatCreate_SeqAIJ_Inode() 64 b->inode.ibdiag = NULL; in MatCreate_SeqAIJ_Inode() 65 b->inode.bdiag = NULL; in MatCreate_SeqAIJ_Inode() 72 …at_inode_limit", "Do not use inodes larger than this value", NULL, b->inode.limit, &b->inode.limit… in MatCreate_SeqAIJ_Inode() 75 b->inode.use = (PetscBool)(!(no_unroll || no_inode)); in MatCreate_SeqAIJ_Inode() [all …]
|
| /petsc/src/sys/classes/draw/utils/ |
| H A D | cmap.c | 33 static inline void PetscHlsToRgb(double h, double l, double s, double *r, double *g, double *b) in PetscHlsToRgb() argument 40 *b = PetscHlsHelper(m1, m2, h - 1 / 3.); in PetscHlsToRgb() 43 *r = *g = *b = l; in PetscHlsToRgb() 47 static inline void PetscGammaCorrect(double *r, double *g, double *b) in PetscGammaCorrect() argument 52 *b = (double)PetscPowReal((PetscReal)*b, igamma); in PetscGammaCorrect() 62 double hue = maxhue * (double)i / (mapsize - 1), r, g, b; in PetscDrawCmap_Hue() local 63 PetscHlsToRgb(hue, lightness, saturation, &r, &g, &b); in PetscDrawCmap_Hue() 64 PetscGammaCorrect(&r, &g, &b); in PetscDrawCmap_Hue() 67 B[i] = (unsigned char)(255 * PetscMin(b, 1.0)); in PetscDrawCmap_Hue() 87 double m, r = 0, g = 0, b = 0; in PetscDrawCmap_Jet() local [all …]
|
| /petsc/src/mat/impls/aij/seq/bas/ |
| H A D | basfactor.c | 8 Mat_SeqSBAIJ *b; in MatICCFactorSymbolic_SeqAIJ_Bas() local 62 b = (Mat_SeqSBAIJ *)fact->data; in MatICCFactorSymbolic_SeqAIJ_Bas() 63 PetscCall(PetscMalloc1(ui[am], &b->a)); in MatICCFactorSymbolic_SeqAIJ_Bas() 65 b->j = uj; in MatICCFactorSymbolic_SeqAIJ_Bas() 66 b->i = ui; in MatICCFactorSymbolic_SeqAIJ_Bas() 67 b->diag = NULL; in MatICCFactorSymbolic_SeqAIJ_Bas() 68 b->ilen = NULL; in MatICCFactorSymbolic_SeqAIJ_Bas() 69 b->imax = NULL; in MatICCFactorSymbolic_SeqAIJ_Bas() 70 b->row = perm; in MatICCFactorSymbolic_SeqAIJ_Bas() 71 b->col = perm; in MatICCFactorSymbolic_SeqAIJ_Bas() [all …]
|
| /petsc/src/mat/impls/diagonal/tests/ |
| H A D | ex1.c | 8 Vec a, a2, b, b2, c, c2, A_diag, A_inv_diag; in main() local 16 PetscCall(VecDuplicate(a, &b)); in main() 22 PetscCall(VecSetRandom(b, rand)); in main() 26 PetscCall(VecDuplicate(b, &b2)); in main() 27 PetscCall(VecCopy(b, b2)); in main() 36 PetscCall(VecDuplicate(b, &b2)); in main() 39 PetscCall(VecAXPY(a, 0.5, b)); in main() 53 PetscCall(VecPointwiseMult(c, b, a)); in main() 54 PetscCall(MatMult(A, b, c2)); in main() 59 PetscCall(VecPointwiseMult(c, b, a)); in main() [all …]
|
| /petsc/src/dm/impls/swarm/ |
| H A D | swarmpic.c | 295 DMSwarmCellDM b; in DMSwarmCellDMCreate() local 305 …PetscCall(PetscHeaderCreate(b, DMSWARMCELLDM_CLASSID, "DMSwarmCellDM", "Background DM for a Swarm"… in DMSwarmCellDMCreate() 307 PetscCall(PetscObjectSetName((PetscObject)b, name)); in DMSwarmCellDMCreate() 309 b->dm = dm; in DMSwarmCellDMCreate() 310 b->Nf = Nf; in DMSwarmCellDMCreate() 311 b->Nfc = Nfc; in DMSwarmCellDMCreate() 312 PetscCall(PetscMalloc1(b->Nf, &b->dmFields)); in DMSwarmCellDMCreate() 313 for (PetscInt f = 0; f < b->Nf; ++f) PetscCall(PetscStrallocpy(dmFields[f], &b->dmFields[f])); in DMSwarmCellDMCreate() 314 PetscCall(PetscMalloc1(b->Nfc, &b->coordFields)); in DMSwarmCellDMCreate() 315 …for (PetscInt f = 0; f < b->Nfc; ++f) PetscCall(PetscStrallocpy(coordFields[f], &b->coordFields[f]… in DMSwarmCellDMCreate() [all …]
|