Home
last modified time | relevance | path

Searched full:r (Results 1 – 25 of 1003) sorted by relevance

12345678910>>...41

/petsc/src/snes/tutorials/output/
H A Dex20_2d_p1_gmg_fcycle_rate.out1 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.698164 R^2 0.5911…
2 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.69301 R^2 0.541848
3 …Linear mg_levels_2_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.73243 R^2 0.805662
4 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.696497 R^2 0.7674…
5 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.700915 R^2 0.6791…
6 …Linear mg_levels_2_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.760929 R^2 0.5625…
7 …Linear mg_levels_3_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.728701 R^2 0.8390…
8 …Linear mg_levels_2_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.742781 R^2 0.6120…
9 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.694817 R^2 0.7814…
10 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.700569 R^2 0.7003…
[all …]
H A Dex20_2d_p1_gmg_vcycle_adapt_rate.out1 …Linear mg_levels_3_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.774356 R^2 0.9846…
2 …Linear mg_levels_2_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.719169 R^2 0.6944…
3 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.765723 R^2 0.6269…
4 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.767943 R^2 0.5237…
5 …Linear mg_levels_2_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.729265 R^2 0.84772
6 …Linear mg_levels_3_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.72737 R^2 0.943032
7 …Linear mg_levels_3_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.770778 R^2 0.9834…
8 …Linear mg_levels_2_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.718876 R^2 0.7020…
9 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.76585 R^2 0.625507
10 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.768003 R^2 0.5232…
[all …]
H A Dex12_p4est_fas_q2_nonconformal_serial.out6 …0 KSP preconditioned resid norm 2.499198301910e+02 true resid norm 3.216249248292e+04 ||r(i)||/||b…
7 …1 KSP preconditioned resid norm 8.614011391108e+01 true resid norm 1.952597363694e+04 ||r(i)||/||b…
8 …2 KSP preconditioned resid norm 2.745949105361e+01 true resid norm 1.930071384658e+04 ||r(i)||/||b…
9 …3 KSP preconditioned resid norm 2.559253117247e+01 true resid norm 1.639100195786e+04 ||r(i)||/||b…
10 …4 KSP preconditioned resid norm 2.282154921037e+01 true resid norm 9.122321919069e+03 ||r(i)||/||b…
11 …5 KSP preconditioned resid norm 9.015546483100e+00 true resid norm 2.894802732061e+03 ||r(i)||/||b…
12 …6 KSP preconditioned resid norm 6.311361207223e+00 true resid norm 1.903443566068e+03 ||r(i)||/||b…
13 …7 KSP preconditioned resid norm 3.316691807429e+00 true resid norm 7.510656749157e+02 ||r(i)||/||b…
14 …8 KSP preconditioned resid norm 2.729920508905e+00 true resid norm 6.941012731568e+02 ||r(i)||/||b…
15 …9 KSP preconditioned resid norm 1.834338478600e+00 true resid norm 2.992015148139e+02 ||r(i)||/||b…
[all …]
H A Dex20_2d_p1_gmg_vcycle_rate.out1 …Linear mg_levels_3_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.774356 R^2 0.9846…
2 …Linear mg_levels_2_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.613993 R^2 0.9107…
3 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.689662 R^2 0.5206…
4 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.688226 R^2 0.5129…
5 …Linear mg_levels_2_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.729655 R^2 0.8322…
6 …Linear mg_levels_3_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.712464 R^2 0.8676…
7 …Linear mg_levels_3_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.773593 R^2 0.9848…
8 … Linear mg_levels_2_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.6147 R^2 0.91186
9 … Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.6897 R^2 0.520871
10 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.688241 R^2 0.5129…
[all …]
H A Dex12_mg_newton_coarse_2.out48 …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 …0 KSP preconditioned resid norm 1.010167030378e+01 true resid norm 3.538058091867e+00 ||r(i)||/||b…
61 …0 KSP none resid norm 6.941512558419e-02 true resid norm 1.669565921408e-01 ||r(i)||/||b|| 6.52967…
[all …]
H A Dex20_2d_p1_gmg_vcycle_cr.out1 … mg_levels_1_cr_ solve converged due to CONVERGED_ITS iterations 5 error rate 0.617436 R^2 0.947533
2 … mg_levels_2_cr_ solve converged due to CONVERGED_ITS iterations 5 error rate 0.604551 R^2 0.962706
3 …Linear mg_levels_3_cr_ solve converged due to CONVERGED_ITS iterations 5 error rate 0.625511 R^2 0…
4 … mg_levels_1_cr_ solve converged due to CONVERGED_ITS iterations 5 error rate 0.617436 R^2 0.947533
5 … mg_levels_2_cr_ solve converged due to CONVERGED_ITS iterations 5 error rate 0.604551 R^2 0.962706
6 …Linear mg_levels_3_cr_ solve converged due to CONVERGED_ITS iterations 5 error rate 0.625511 R^2 0…
7 … mg_levels_1_cr_ solve converged due to CONVERGED_ITS iterations 5 error rate 0.617436 R^2 0.947533
8 … mg_levels_2_cr_ solve converged due to CONVERGED_ITS iterations 5 error rate 0.604551 R^2 0.962706
9 …Linear mg_levels_3_cr_ solve converged due to CONVERGED_ITS iterations 5 error rate 0.625511 R^2 0…
10 … mg_levels_1_cr_ solve converged due to CONVERGED_ITS iterations 5 error rate 0.617436 R^2 0.947533
[all …]
H A Dex20_2d_p1_scalable_rate.out1 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.785382 R^2 0.9647…
2 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.648211 R^2 0.9771…
3 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.736109 R^2 0.9663…
4 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.656634 R^2 0.9768…
5 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.764618 R^2 0.9750…
6 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.644732 R^2 0.9831…
7 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.776005 R^2 0.9734…
8 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.636778 R^2 0.9840…
9 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.75345 R^2 0.943944
10 …Linear mg_levels_1_ solve converged due to CONVERGED_ITS iterations 5 res rate 0.647287 R^2 0.9823…
[all …]
H A Dex12_mg_newton_coarse_1.out48 …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 …0 KSP preconditioned resid norm 7.591373802990e+01 true resid norm 3.538058091867e+00 ||r(i)||/||b…
61 …0 KSP none resid norm 2.582377643796e-02 true resid norm 1.023194016811e-01 ||r(i)||/||b|| 4.96878…
[all …]
/petsc/src/dm/impls/plex/
H A Dplexcheckinterface.c8 PetscMPIInt r; in ExchangeArrayByRank_Private() local
22 …for (r = 0; r < nrranks; r++) PetscCallMPI(MPIU_Irecv(&rsize[r], 1, MPIU_INT, rranks[r], tag, comm… in ExchangeArrayByRank_Private()
23 …for (r = 0; r < nsranks; r++) PetscCallMPI(MPIU_Isend(&ssize[r], 1, MPIU_INT, sranks[r], tag, comm… in ExchangeArrayByRank_Private()
28 for (r = 0; r < nrranks; r++) { in ExchangeArrayByRank_Private()
29 PetscCall(PetscMalloc(rsize[r] * unitsize, &rarr[r])); in ExchangeArrayByRank_Private()
30 PetscCallMPI(MPIU_Irecv(rarr[r], rsize[r], dt, rranks[r], tag, comm, &rreq[r])); in ExchangeArrayByRank_Private()
32 …for (r = 0; r < nsranks; r++) PetscCallMPI(MPIU_Isend(sarr[r], ssize[r], dt, sranks[r], tag, comm,… in ExchangeArrayByRank_Private()
45 PetscMPIInt r; in ExchangeVecByRank_Private() local
54 for (r = 0; r < nsranks; r++) { in ExchangeVecByRank_Private()
55 PetscCall(VecGetLocalSize(svecs[r], &ssize[r])); in ExchangeVecByRank_Private()
[all …]
/petsc/src/sys/classes/random/interface/
H A Drandom.c23 . r - the random number generator context
42 PetscRandomCreate(PETSC_COMM_WORLD,&r);
43 PetscRandomGetValue(r,&value1);
44 PetscRandomGetValue(r,&value2);
45 PetscRandomGetValue(r,&value3);
46 PetscRandomDestroy(&r);
51 PetscErrorCode PetscRandomGetValue(PetscRandom r, PetscScalar *val) in PetscRandomGetValue() argument
54 PetscValidHeaderSpecific(r, PETSC_RANDOM_CLASSID, 1); in PetscRandomGetValue()
55 PetscValidType(r, 1); in PetscRandomGetValue()
56 if (!r->ops->getvalue) PetscUseTypeMethod(r, getvalues, 1, val); in PetscRandomGetValue()
[all …]
H A Drandomc.c26 . r - the random number generator object
32 PetscErrorCode PetscRandomDestroy(PetscRandom *r) in PetscRandomDestroy() argument
35 if (!*r) PetscFunctionReturn(PETSC_SUCCESS); in PetscRandomDestroy()
36 PetscValidHeaderSpecific(*r, PETSC_RANDOM_CLASSID, 1); in PetscRandomDestroy()
37 if (--((PetscObject)*r)->refct > 0) { in PetscRandomDestroy()
38 *r = NULL; in PetscRandomDestroy()
41 PetscTryTypeMethod(*r, destroy); in PetscRandomDestroy()
42 PetscCall(PetscHeaderDestroy(r)); in PetscRandomDestroy()
52 . r - The random number generator context
61 PetscErrorCode PetscRandomGetSeed(PetscRandom r, PetscInt64 *seed) in PetscRandomGetSeed() argument
[all …]
/petsc/src/ts/utils/
H A Dtsconvest.c18 static PetscErrorCode PetscConvEstInitGuessTS_Private(PetscConvEst ce, PetscInt r, DM dm, Vec u) in PetscConvEstInitGuessTS_Private() argument
25 static PetscErrorCode PetscConvEstComputeErrorTS_Private(PetscConvEst ce, PetscInt r, DM dm, Vec u,… in PetscConvEstComputeErrorTS_Private() argument
55 PetscInt Ns, oNs, Nf = ce->Nf, f, Nr = ce->Nr, r; in PetscConvEstGetConvRateTS_Temporal_Private() local
64 for (r = 0; r <= Nr; ++r) { in PetscConvEstGetConvRateTS_Temporal_Private()
65 if (r > 0) { in PetscConvEstGetConvRateTS_Temporal_Private()
66 dt[r] = dt[r - 1] / ce->r; in PetscConvEstGetConvRateTS_Temporal_Private()
67 Ns = PetscCeilReal(Ns * ce->r); in PetscConvEstGetConvRateTS_Temporal_Private()
71 PetscCall(TSSetTimeStep(ts, dt[r])); in PetscConvEstGetConvRateTS_Temporal_Private()
74 PetscCall(PetscConvEstComputeInitialGuess(ce, r, NULL, u)); in PetscConvEstGetConvRateTS_Temporal_Private()
78 PetscCall(PetscConvEstComputeError(ce, r, ce->idm, u, &ce->errors[r * Nf])); in PetscConvEstGetConvRateTS_Temporal_Private()
[all …]
/petsc/src/dm/impls/plex/tests/output/
H A Dex18_2a.out5 r=0 ranks[r]=1 sntCoordinatesPerRank[r]:
7 r=0 ranks[r]=2 sntCoordinatesPerRank[r]:
27 r=1 ranks[r]=2 sntCoordinatesPerRank[r]:
40 r=0 iranks[r]=0 refCoordinatesPerRank[r]:
42 r=0 iranks[r]=0 refCoordinatesPerRank[r]:
61 r=1 iranks[r]=1 refCoordinatesPerRank[r]:
74 r=0 iranks[r]=0 recCoordinatesPerRank[r]:
76 r=0 iranks[r]=0 recCoordinatesPerRank[r]:
95 r=1 iranks[r]=1 recCoordinatesPerRank[r]:
/petsc/src/mat/impls/aij/seq/
H A Dmatrart.c3 C = R * A * R^T
25 PetscErrorCode MatRARtSymbolic_SeqAIJ_SeqAIJ_colorrart(Mat A, Mat R, PetscReal fill, Mat C) in MatRARtSymbolic_SeqAIJ_SeqAIJ_colorrart() argument
38 PetscCall(MatTransposeSymbolic(R, &P)); in MatRARtSymbolic_SeqAIJ_SeqAIJ_colorrart()
42 PetscCall(MatSetBlockSizes(C, R->rmap->bs, R->rmap->bs)); in MatRARtSymbolic_SeqAIJ_SeqAIJ_colorrart()
54 /* Create MatTransposeColoring from symbolic C=R*A*R^T */ in MatRARtSymbolic_SeqAIJ_SeqAIJ_colorrart()
75 /* Create RARt_dense = R*A*Rt_dense */ in MatRARtSymbolic_SeqAIJ_SeqAIJ_colorrart()
83 …/* Allocate work array to store columns of A*R^T used in MatMatMatMultNumeric_SeqAIJ_SeqAIJ_SeqDen… in MatRARtSymbolic_SeqAIJ_SeqAIJ_colorrart()
93 PetscCall(PetscInfo(C, "C=R*(A*Rt) via coloring C - use sparse-dense inner products\n")); in MatRARtSymbolic_SeqAIJ_SeqAIJ_colorrart()
94 …t_FMT ")/(m*ncolors)=%g\n", RARt_dense->rmap->n, RARt_dense->cmap->n, R->cmap->n, R->rmap->n, c->n… in MatRARtSymbolic_SeqAIJ_SeqAIJ_colorrart()
101 RAB = R * A * B, R and A in seqaij format, B in dense format;
[all …]
/petsc/src/sys/classes/random/impls/rand48/
H A Drand48.c4 static PetscErrorCode PetscRandomSeed_Rand48(PetscRandom r) in PetscRandomSeed_Rand48() argument
7 srand48(r->seed); in PetscRandomSeed_Rand48()
11 static PetscErrorCode PetscRandomGetValue_Rand48(PetscRandom r, PetscScalar *val) in PetscRandomGetValue_Rand48() argument
15 if (r->iset) { in PetscRandomGetValue_Rand48()
16 …RealPart(r->width) * (PetscReal)drand48() + PetscRealPart(r->low) + (PetscImaginaryPart(r->width) … in PetscRandomGetValue_Rand48()
21 if (r->iset) *val = r->width * drand48() + r->low; in PetscRandomGetValue_Rand48()
27 static PetscErrorCode PetscRandomGetValueReal_Rand48(PetscRandom r, PetscReal *val) in PetscRandomGetValueReal_Rand48() argument
31 if (r->iset) *val = PetscRealPart(r->width) * drand48() + PetscRealPart(r->low); in PetscRandomGetValueReal_Rand48()
34 if (r->iset) *val = r->width * (PetscReal)drand48() + r->low; in PetscRandomGetValueReal_Rand48()
64 PETSC_EXTERN PetscErrorCode PetscRandomCreate_Rand48(PetscRandom r) in PetscRandomCreate_Rand48() argument
[all …]
/petsc/src/sys/classes/random/impls/rand/
H A Drand.c3 static PetscErrorCode PetscRandomSeed_Rand(PetscRandom r) in PetscRandomSeed_Rand() argument
6 srand((unsigned int)r->seed); in PetscRandomSeed_Rand()
11 static PetscErrorCode PetscRandomGetValue_Rand(PetscRandom r, PetscScalar *val) in PetscRandomGetValue_Rand() argument
15 …if (r->iset) *val = PetscRealPart(r->width) * RAND_WRAP + PetscRealPart(r->low) + (PetscImaginaryP… in PetscRandomGetValue_Rand()
18 if (r->iset) *val = r->width * RAND_WRAP + r->low; in PetscRandomGetValue_Rand()
24 static PetscErrorCode PetscRandomGetValueReal_Rand(PetscRandom r, PetscReal *val) in PetscRandomGetValueReal_Rand() argument
28 if (r->iset) *val = PetscRealPart(r->width) * RAND_WRAP + PetscRealPart(r->low); in PetscRandomGetValueReal_Rand()
31 if (r->iset) *val = r->width * RAND_WRAP + r->low; in PetscRandomGetValueReal_Rand()
61 PETSC_EXTERN PetscErrorCode PetscRandomCreate_Rand(PetscRandom r) in PetscRandomCreate_Rand() argument
64 r->ops[0] = PetscRandomOps_Values; in PetscRandomCreate_Rand()
[all …]
/petsc/src/sys/classes/random/impls/sprng/
H A Dsprng.c9 static PetscErrorCode PetscRandomSeed_Sprng(PetscRandom r) in PetscRandomSeed_Sprng() argument
12 init_sprng(r->seed, SPRNG_DEFAULT); in PetscRandomSeed_Sprng()
16 static PetscErrorCode PetscRandomGetValue_Sprng(PetscRandom r, PetscScalar *val) in PetscRandomGetValue_Sprng() argument
20 if (r->iset) { in PetscRandomGetValue_Sprng()
21 …*val = PetscRealPart(r->width) * sprng() + PetscRealPart(r->low) + (PetscImaginaryPart(r->width) *… in PetscRandomGetValue_Sprng()
26 if (r->iset) *val = r->width * sprng() + r->low; in PetscRandomGetValue_Sprng()
32 static PetscErrorCode PetscRandomGetValueReal_Sprng(PetscRandom r, PetscReal *val) in PetscRandomGetValueReal_Sprng() argument
36 if (r->iset) *val = PetscRealPart(r->width) * sprng() + PetscRealPart(r->low); in PetscRandomGetValueReal_Sprng()
39 if (r->iset) *val = r->width * sprng() + r->low; in PetscRandomGetValueReal_Sprng()
69 PETSC_EXTERN PetscErrorCode PetscRandomCreate_Sprng(PetscRandom r) in PetscRandomCreate_Sprng() argument
[all …]
/petsc/src/sys/classes/random/impls/random123/
H A Drandom123.c19 static PetscErrorCode PetscRandomSeed_Random123(PetscRandom r) in PetscRandomSeed_Random123() argument
22 PetscRandom123 *r123 = (PetscRandom123 *)r->data; in PetscRandomSeed_Random123()
25 ukey.v[0] = (R123_ULONG_LONG)r->seed; in PetscRandomSeed_Random123()
61 static PetscErrorCode PetscRandomGetValue_Random123(PetscRandom r, PetscScalar *val) in PetscRandomGetValue_Random123() argument
63 PetscRandom123 *r123 = (PetscRandom123 *)r->data; in PetscRandomGetValue_Random123()
72 if (r->iset) { in PetscRandomGetValue_Random123()
73 re = re * PetscRealPart(r->width) + PetscRealPart(r->low); in PetscRandomGetValue_Random123()
74 im = im * PetscImaginaryPart(r->width) + PetscImaginaryPart(r->low); in PetscRandomGetValue_Random123()
81 if (r->iset) rscal = rscal * r->width + r->low; in PetscRandomGetValue_Random123()
87 static PetscErrorCode PetscRandomGetValueReal_Random123(PetscRandom r, PetscReal *val) in PetscRandomGetValueReal_Random123() argument
[all …]
/petsc/src/sys/classes/random/impls/rander48/
H A Drander48.c35 static PetscErrorCode PetscRandomSeed_Rander48(PetscRandom r) in PetscRandomSeed_Rander48() argument
37 PetscRandom_Rander48 *r48 = (PetscRandom_Rander48 *)r->data; in PetscRandomSeed_Rander48()
41 r48->seed[1] = (unsigned short)r->seed; in PetscRandomSeed_Rander48()
42 r48->seed[2] = (unsigned short)(r->seed >> 16); in PetscRandomSeed_Rander48()
50 static PetscErrorCode PetscRandomGetValue_Rander48(PetscRandom r, PetscScalar *val) in PetscRandomGetValue_Rander48() argument
52 PetscRandom_Rander48 *r48 = (PetscRandom_Rander48 *)r->data; in PetscRandomGetValue_Rander48()
56 if (r->iset) { in PetscRandomGetValue_Rander48()
57 *val = PetscRealPart(r->low) + PetscImaginaryPart(r->low) * PETSC_i; in PetscRandomGetValue_Rander48()
58 if (PetscRealPart(r->width)) *val += PetscRealPart(r->width) * _dorander48(r48); in PetscRandomGetValue_Rander48()
59 …if (PetscImaginaryPart(r->width)) *val += PetscImaginaryPart(r->width) * _dorander48(r48) * PETSC_… in PetscRandomGetValue_Rander48()
[all …]
/petsc/share/petsc/datafiles/meshes/
H A Dmesh-3d-box-innersphere_bin.msh12 �*��?�Q���k�?U L�\ο8���_[f���?�R�}��˿��a��ͤ�9����O�$A��?(Jeܱ��?gz�j-E�?:�������׿ƿ �6|zƿ��
17r��o��ww��?Z�9�����Q��������������������������R�����������}��}��?�}��}��?S�����������b���̿�b���̿…
H A Dgmsh-3d-binary-32.msh32 ���G���H���I���J���K���L���M���N���O���P���Q���R���S���������?��������@������?@������?�����������…
44 ���n���o���p���q���r���s���t���u���v���w���x���y���z���������?@������?�������?������?������?����…
50 …���P��� ������!���P��������� ���Q������������Q���'���������R������������R���#�������…
54 …G���R������������O���������K���O������������S���K������"���L���!������!���L���I������I�…
56 …U���_���W���O���V���_���U���P���U���Z���V������2������(���Q������ ���i���R���������i���S��� �…
60r���b���a���f���s���b���d���e���t���d���b���h���u���c���b���f���v���b���c���g���w���k���b���g���x�…
/petsc/src/dm/impls/da/tests/output/
H A Dex1_0.out1 [0] p 0 (+0.4619,+0.1913) r=0.50 th=0.125*pi cellid=0
2 [0] p 0 (+0.1913,+0.4619) r=0.50 th=0.375*pi cellid=0
3 [0] p 0 (-0.1913,+0.4619) r=0.50 th=0.625*pi cellid=0
4 [0] p 0 (-0.4619,+0.1913) r=0.50 th=0.875*pi cellid=0
5 [0] p 0 (-0.4619,-0.1913) r=0.50 th=-0.875*pi cellid=0
6 [0] p 0 (-0.1913,-0.4619) r=0.50 th=-0.625*pi cellid=0
7 [0] p 0 (+0.1913,-0.4619) r=0.50 th=-0.375*pi cellid=0
8 [0] p 0 (+0.4619,-0.1913) r=0.50 th=-0.125*pi cellid=0
12 [0] p 0 (+0.4619,+0.1913) r=0.50 th=0.125*pi cellid=5
13 [0] p 0 (+0.1913,+0.4619) r=0.50 th=0.375*pi cellid=7
[all …]
/petsc/src/sys/classes/draw/utils/
H A Dcmap.c33 static inline void PetscHlsToRgb(double h, double l, double s, double *r, double *g, double *b) in PetscHlsToRgb() argument
38 *r = 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
50 *r = (double)PetscPowReal((PetscReal)*r, igamma); in PetscGammaCorrect()
55 static PetscErrorCode PetscDrawCmap_Hue(int mapsize, unsigned char R[], unsigned char G[], unsigned… in PetscDrawCmap_Hue() argument
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()
65 R[i] = (unsigned char)(255 * PetscMin(r, 1.0)); in PetscDrawCmap_Hue()
[all …]
/petsc/src/sys/tests/linter/output/
H A DtestTypes.patch4 -PetscErrorCode testTypes(PetscRandom r, PetscViewer v, PetscObject o, PetscFunctionList f)
5 +static PetscErrorCode testTypes(PetscRandom r, PetscViewer v, PetscObject o, PetscFunctionList f)
11 - PetscValidType(r, -1);
12 + PetscValidType(r, 1);
13 PetscCheckSameType(r, -1, v, -1);
17 PetscValidType(r, -1);
18 - PetscCheckSameType(r, -1, v, -1);
19 + PetscCheckSameType(r, 1, v, 2);
21 PetscCheckSameTypeAndComm(r, -3, f, -3);
23 PetscValidType(r, -1);
[all …]
/petsc/src/sys/classes/random/impls/curand/
H A Dcurand.c9 static PetscErrorCode PetscRandomSeed_CURAND(PetscRandom r) in PetscRandomSeed_CURAND() argument
11 PetscRandom_CURAND *curand = (PetscRandom_CURAND *)r->data; in PetscRandomSeed_CURAND()
14 PetscCallCURAND(curandSetPseudoRandomGeneratorSeed(curand->gen, r->seed)); in PetscRandomSeed_CURAND()
20 static PetscErrorCode PetscRandomGetValuesReal_CURAND(PetscRandom r, PetscInt n, PetscReal *val) in PetscRandomGetValuesReal_CURAND() argument
22 PetscRandom_CURAND *curand = (PetscRandom_CURAND *)r->data; in PetscRandomGetValuesReal_CURAND()
31 if (r->iset) PetscCall(PetscRandomCurandScale_Private(r, nn, val, (PetscBool)(n < 0))); in PetscRandomGetValuesReal_CURAND()
35 static PetscErrorCode PetscRandomGetValues_CURAND(PetscRandom r, PetscInt n, PetscScalar *val) in PetscRandomGetValues_CURAND() argument
40 PetscCall(PetscRandomGetValuesReal_CURAND(r, -n, (PetscReal *)val)); in PetscRandomGetValues_CURAND()
42 PetscCall(PetscRandomGetValuesReal_CURAND(r, n, val)); in PetscRandomGetValues_CURAND()
47 static PetscErrorCode PetscRandomDestroy_CURAND(PetscRandom r) in PetscRandomDestroy_CURAND() argument
[all …]

12345678910>>...41