Home
last modified time | relevance | path

Searched refs:maxn (Results 1 – 7 of 7) sorted by relevance

/petsc/src/vec/is/sf/tests/
H A Dex4k.kokkos.cxx38 PetscInt maxn = 512 * 1024; /* max 4M bytes messages */ in main() local
58 PetscCall(PetscOptionsGetInt(NULL, NULL, "-maxn", &maxn, NULL)); /* maxn PetscScalars */ in main()
62 PetscCall(PetscMalloc1(maxn, &iremote)); in main()
74 PetscCall(PetscMalloc2(maxn, &rootdata, maxn, &leafdata)); in main()
76 PetscCallCXX(rootdata = (PetscScalar *)Kokkos::kokkos_malloc(sizeof(PetscScalar) * maxn)); in main()
77 PetscCallCXX(leafdata = (PetscScalar *)Kokkos::kokkos_malloc(sizeof(PetscScalar) * maxn)); in main()
79 PetscCall(PetscMalloc2(maxn, &pbuf, maxn, &ebuf)); in main()
80 for (i = 0; i < maxn; i++) { in main()
85 for (n = 1, i = 0; n <= maxn; n *= 2, i++) { in main()
111 for (n = 1, j = 0; n <= maxn; n *= 2, j++) { in main()
[all …]
/petsc/src/ksp/ksp/guess/impls/pod/
H A Dpod.c13 PetscInt maxn; /* maximum number of snapshots */ member
59 PetscCall(VecDestroyVecs(pod->maxn, &pod->xsnap)); in KSPGuessReset_POD()
60 PetscCall(VecDestroyVecs(pod->maxn, &pod->bsnap)); in KSPGuessReset_POD()
76maxn * pod->maxn, &pod->corr, pod->maxn, &pod->eigs, pod->maxn * pod->maxn, &pod->eigv, 6 * pod->m… in KSPGuessSetUp_POD()
78 PetscCall(PetscMalloc1(7 * pod->maxn, &pod->rwork)); in KSPGuessSetUp_POD()
81 PetscCall(PetscMalloc1(3 * pod->maxn, &pod->dots_iallreduce)); in KSPGuessSetUp_POD()
84 PetscCall(PetscBLASIntCast(pod->maxn, &bN)); in KSPGuessSetUp_POD()
101 PetscCall(VecDuplicateVecs(vseq, pod->maxn, &pod->xsnap)); in KSPGuessSetUp_POD()
110 PetscCall(VecDuplicateVecs(vseq, pod->maxn, &pod->bsnap)); in KSPGuessSetUp_POD()
130 PetscCall(VecDestroyVecs(pod->maxn, &pod->bsnap)); in KSPGuessDestroy_POD()
[all …]
/petsc/src/ts/impls/bdf/
H A Dbdf.c338 PetscInt i, maxn = PETSC_STATIC_ARRAY_LENGTH(bdf->work); in TSResizeRegister_BDF() local
341 …PetscAssert(maxn == 8, PetscObjectComm((PetscObject)ts), PETSC_ERR_PLIB, "names need to be redefin… in TSResizeRegister_BDF()
343 …for (i = 1; i < PetscMin(bdf->n + 1, maxn); i++) PetscCall(TSResizeRegisterVec(ts, names[i], bdf->… in TSResizeRegister_BDF()
345 for (i = 1; i < maxn; i++) { in TSResizeRegister_BDF()
/petsc/src/dm/impls/swarm/tests/
H A Dex5.c299 PetscInt n, maxn; in DMSwarmTSRedistribute() local
307 PetscCall(TSGetMaxSteps(ts, &maxn)); in DMSwarmTSRedistribute()
317 PetscCall(TSSetMaxSteps(ts, maxn)); in DMSwarmTSRedistribute()
/petsc/src/ts/tutorials/hamiltonian/
H A Dex3.c1482 PetscInt n, maxn; in DMSwarmTSRedistribute() local
1490 PetscCall(TSGetMaxSteps(ts, &maxn)); in DMSwarmTSRedistribute()
1499 PetscCall(TSSetMaxSteps(ts, maxn)); in DMSwarmTSRedistribute()
1655 PetscInt maxn; in main() local
1682 PetscCall(TSGetMaxSteps(ts, &maxn)); in main()
1683 user.steps = maxn; in main()
H A Dex2.c2206 PetscInt n, maxn; in DMSwarmTSRedistribute() local
2214 PetscCall(TSGetMaxSteps(ts, &maxn)); in DMSwarmTSRedistribute()
2223 PetscCall(TSSetMaxSteps(ts, maxn)); in DMSwarmTSRedistribute()
2401 PetscInt maxn; in main() local
2431 PetscCall(TSGetMaxSteps(ts, &maxn)); in main()
2432 ctx.steps = maxn; in main()
H A Dex4.c2811 PetscInt n, maxn; in DMSwarmTSRedistribute() local
2819 PetscCall(TSGetMaxSteps(ts, &maxn)); in DMSwarmTSRedistribute()
2828 PetscCall(TSSetMaxSteps(ts, maxn)); in DMSwarmTSRedistribute()
3003 PetscInt maxn; in main() local
3035 PetscCall(TSGetMaxSteps(ts, &maxn)); in main()
3036 ctx.steps = maxn; in main()