| /petsc/src/mat/utils/hpl/ |
| H A D | hplcreate.c | 47 PetscBench_HPL *hp = (PetscBench_HPL *)bm->data; in PetscBenchSetUp_HPL() local 54 PetscCall(MatCreateSeqDense(PETSC_COMM_SELF, bm->size, bm->size, NULL, &hp->A)); in PetscBenchSetUp_HPL() 55 PetscCall(MatSetHPL(hp->A, 0)); in PetscBenchSetUp_HPL() 56 PetscCall(MatGetFactor(hp->A, MATSOLVERPETSC, MAT_FACTOR_LU, &hp->F)); in PetscBenchSetUp_HPL() 57 PetscCall(MatLUFactorSymbolic(hp->F, hp->A, NULL, NULL, 0)); in PetscBenchSetUp_HPL() 63 PetscBench_HPL *hp = (PetscBench_HPL *)bm->data; in PetscBenchRun_HPL() local 69 PetscCall(MatLUFactorNumeric(hp->F, hp->A, 0)); in PetscBenchRun_HPL() 87 PetscBench_HPL *hp = (PetscBench_HPL *)bm->data; in PetscBenchReset_HPL() local 93 PetscCall(MatDestroy(&hp->F)); in PetscBenchReset_HPL() 94 PetscCall(MatDestroy(&hp->A)); in PetscBenchReset_HPL() [all …]
|
| /petsc/src/sys/classes/viewer/impls/socket/ |
| H A D | send.c | 102 struct hostent *hp; in PetscOpenSocket() local 108 if (!(hp = gethostbyname(hostname))) { in PetscOpenSocket() 113 PetscCall(PetscMemcpy(&sa.sin_addr, hp->h_addr_list[0], hp->h_length)); in PetscOpenSocket() 115 sa.sin_family = (unsigned char)hp->h_addrtype; in PetscOpenSocket() 118 if ((s = socket(hp->h_addrtype, SOCK_STREAM, 0)) < 0) { in PetscOpenSocket() 188 struct hostent *hp; local 195 hp = gethostbyname(myname); 196 PetscCheck(hp, PETSC_COMM_SELF, PETSC_ERR_SYS, "Unable to get hostent information from system"); 198 sa.sin_family = (unsigned char)hp->h_addrtype;
|
| /petsc/src/sys/classes/viewer/impls/socket/mex-scripts/ |
| H A D | sopen.c | 108 struct hostent *hp; local 127 hp = gethostbyname(myname); 128 if (!hp) PETSC_MEX_ERRORQ("RECEIVE: error from gethostbyname\n"); 130 sa.sin_family = (sa_family_t)hp->h_addrtype;
|
| /petsc/src/sys/classes/viewer/interface/ |
| H A D | viewreg.c | 16 PetscErrorCode PetscOptionsHelpPrintedDestroy(PetscOptionsHelpPrinted *hp) in PetscOptionsHelpPrintedDestroy() argument 19 if (!*hp) PetscFunctionReturn(PETSC_SUCCESS); in PetscOptionsHelpPrintedDestroy() 20 kh_destroy(HTPrinted, (*hp)->printed); in PetscOptionsHelpPrintedDestroy() 21 PetscCall(PetscSegBufferDestroy(&(*hp)->strings)); in PetscOptionsHelpPrintedDestroy() 22 PetscCall(PetscFree(*hp)); in PetscOptionsHelpPrintedDestroy() 39 PetscErrorCode PetscOptionsHelpPrintedCreate(PetscOptionsHelpPrinted *hp) in PetscOptionsHelpPrintedCreate() argument 42 PetscCall(PetscNew(hp)); in PetscOptionsHelpPrintedCreate() 43 (*hp)->printed = kh_init(HTPrinted); in PetscOptionsHelpPrintedCreate() 44 PetscCall(PetscSegBufferCreate(sizeof(char), 10000, &(*hp)->strings)); in PetscOptionsHelpPrintedCreate() 65 PetscErrorCode PetscOptionsHelpPrintedCheck(PetscOptionsHelpPrinted hp, const char *pre, const char… in PetscOptionsHelpPrintedCheck() argument [all …]
|
| /petsc/src/ts/tests/ |
| H A D | ex30.c | 556 …grid]}, hi[3] = {ctx->radius[grid], ctx->radius[grid], ctx->radius[grid]}, hp[3], vole; // would b… in go() local 570 hp[0] = (hi[0] - lo[0]) / Npi; in go() 571 hp[1] = (hi[1] - lo[1]) / Npj; in go() 572 hp[2] = (hi[2] - lo[2]) / Npk; in go() 573 if (dim == 2) hp[2] = 1; in go() 574 …4.7e, %14.7e; kT_m = %g; \n", (double)lo[1], (double)hi[1], (double)hp[0], (double)hp[1], (double)… in go() 575 …vole = hp[0] * hp[1] * hp[2] * ctx->n[grid]; … in go() 583 xx_t[grid][tid][pp] = lo[0] + hp[0] / 2.0 + pi * hp[0]; in go() 584 yy_t[grid][tid][pp] = lo[1] + hp[1] / 2.0 + pj * hp[1]; in go() 585 if (dim == 3) zz_t[grid][tid][pp] = lo[2] + hp[2] / 2.0 + pk * hp[2]; in go() [all …]
|
| /petsc/src/dm/impls/swarm/tests/ |
| H A D | ex7.c | 223 …PetscReal lo[3] = {-5, 0, -5}, hi[3] = {5, 5, 5}, h[3], hp[3], *xx_t[MAX_NUM_THRDS], *yy_t[MAX… in go() local 271 hp[i] = (hi[i] - lo[i]) / Np[i]; in go() 273 …Int_FMT " h = %g hp = %g\n", (double)lo[i], (double)hi[i], faces[i], (double)h[i], (double)hp[i])); in go() 288 xx_t[tid][pp] = lo[0] + hp[0] / 2. + pi * hp[0]; in go() 289 yy_t[tid][pp] = lo[1] + hp[1] / 2. + pj * hp[1]; in go()
|
| /petsc/doc/community/meetings/2023/ |
| H A D | index.md | 344 multi-level hp refinement with arbitrary hanging nodes. PETSc uses AMReX
|
| /petsc/doc/ |
| H A D | petsc.bib | 798 title = {Spectral/hp element methods for computational fluid dynamics}, 10539 title = {Dohp: Dual order $hp$-finite elements},
|