| /petsc/src/binding/petsc4py/demo/hpddm/ |
| H A D | hpddm.py | 65 gc, oc = pc.getHPDDMComplexities() variable 67 print("grid complexity = ", gc, ", operator complexity = ", oc, sep = "")
|
| /petsc/src/binding/petsc4py/src/lib-petsc/compat/ |
| H A D | hpddm.h | 16 …xities(PETSC_UNUSED PC pc,PETSC_UNUSED PetscReal *gc, PETSC_UNUSED PetscReal *oc){PetscHPDDMError;} in PCHPDDMGetComplexities() argument
|
| /petsc/src/mat/impls/is/ |
| H A D | matis.c | 109 PetscInt dc, stc, oc, ctd, cto; in MatGetNonzeroColumnsLocal_Private() local 142 if (Po) PetscCall(MatGetLocalSize(Po, NULL, &oc)); in MatGetNonzeroColumnsLocal_Private() 143 else oc = 0; in MatGetNonzeroColumnsLocal_Private() 144 PetscCall(PetscMalloc1((dc + oc) / bs, &aux)); in MatGetNonzeroColumnsLocal_Private() 172 cto = oc / bs; in MatGetNonzeroColumnsLocal_Private() 605 PetscInt dc, oc, stc, *aux; in MatMPIXAIJComputeLocalToGlobalMapping_Private() local 608 PetscCall(MatGetLocalSize(Ao, NULL, &oc)); in MatMPIXAIJComputeLocalToGlobalMapping_Private() 609 PetscCheck(!oc || garray, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "garray not present"); in MatMPIXAIJComputeLocalToGlobalMapping_Private() 611 PetscCall(PetscMalloc1((dc + oc) / bs, &aux)); in MatMPIXAIJComputeLocalToGlobalMapping_Private() 613 for (i = 0; i < oc / bs; i++) aux[i + dc / bs] = (ismpiaij ? garray[i * bs] / bs : garray[i]); in MatMPIXAIJComputeLocalToGlobalMapping_Private() [all …]
|
| /petsc/src/ksp/pc/impls/mg/ |
| H A D | mg.c | 1306 PetscErrorCode PCMGGetGridComplexity(PC pc, PetscReal *gc, PetscReal *oc) in PCMGGetGridComplexity() argument 1317 if (oc) PetscAssertPointer(oc, 3); in PCMGGetGridComplexity() 1320 if (oc) *oc = 0; in PCMGGetGridComplexity() 1338 if (nnz0 > 0 && oc) *oc = (PetscReal)(soc / nnz0); in PCMGGetGridComplexity()
|
| /petsc/src/mat/impls/hypre/ |
| H A D | mhypre.c | 256 PetscInt cum, dr, dc, oc, str, stc, nnz, i, jd, jo, M, N; in MatConvert_HYPRE_IS() local 291 oc = hypre_CSRMatrixNumCols(hoffd); in MatConvert_HYPRE_IS() 304 PetscCall(PetscMalloc1(dc + oc, &aux)); in MatConvert_HYPRE_IS() 306 for (i = 0; i < oc; i++) aux[i + dc] = col_map_offd[i]; in MatConvert_HYPRE_IS() 307 PetscCall(ISCreateGeneral(comm, dc + oc, aux, PETSC_OWN_POINTER, &is)); in MatConvert_HYPRE_IS() 354 PetscCall(MatCreateSeqAIJWithArrays(PETSC_COMM_SELF, dr, dc + oc, iptr, jptr, data, &lA)); in MatConvert_HYPRE_IS()
|
| /petsc/src/ksp/pc/impls/gamg/ |
| H A D | gamg.c | 1707 PetscReal gc, oc; in PCView_GAMG() local 1734 gc = oc = 0; in PCView_GAMG() 1735 PetscCall(PCMGGetGridComplexity(pc, &gc, &oc)); in PCView_GAMG() 1736 …rASCIIPrintf(viewer, " Complexity: grid = %g operator = %g\n", (double)gc, (double)oc)); in PCView_GAMG()
|
| /petsc/src/ksp/pc/impls/hpddm/ |
| H A D | pchpddm.cxx | 503 PetscErrorCode PCHPDDMGetComplexities(PC pc, PetscReal *gc, PetscReal *oc) in PCHPDDMGetComplexities() argument 514 if (oc) { in PCHPDDMGetComplexities() 515 PetscAssertPointer(oc, 3); in PCHPDDMGetComplexities() 516 *oc = 0; in PCHPDDMGetComplexities() 553 if (oc) *oc = static_cast<PetscReal>(accumulate[1] / nnz1); in PCHPDDMGetComplexities() 563 PetscReal oc, gc; in PCView_HPDDM() local 573 PetscCall(PCHPDDMGetComplexities(pc, &gc, &oc)); in PCView_HPDDM() 590 …PetscViewerASCIIPrintf(viewer, "grid and operator complexities: %g %g\n", (double)gc, (double)oc)); in PCView_HPDDM()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | PC.pyx | 2562 cdef PetscReal gc = 0.0, oc = 0.0 2563 CHKERR(PCHPDDMGetComplexities(self.pc, &gc, &oc)) 2564 return (toReal(gc), toReal(oc))
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | testcase3D.cas | 4338 (vof/oc/wave/sample-size 200) 4339 (vof/oc/wave-spect/dir-integral-m 2) 4340 (vof/oc/wave-spect/freq-integral-m 0) 4343 (vof/oc/forced-outlet-bc? #f) 4344 (vof/oc/n-waves-shallow 2) 4345 (vof/oc/n-waves 20) 4346 (vof/oc/wave/buffer-layer-ht 0.) 4347 (vof/oc/wave/buffer-layer-frac 0.02) 4348 (vof/oc/wave/buffer-layer-spec 0) 4349 (vof/oc/wave/verbosity 0) [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plex.c | 6181 const PetscInt oc = 0; in DMPlexSetClosurePermutationTensor() local 6182 const PetscInt ofb = oc + PetscSqr(k - 1) * (k - 1); in DMPlexSetClosurePermutationTensor() 6242 …for (c = 0; c < Nc; ++c, ++offset) perm[offset] = (oc + (j * (k - 1) + i) * (k - 1) + n) * Nc + c … in DMPlexSetClosurePermutationTensor()
|