| /petsc/src/ksp/pc/impls/mg/ |
| H A D | mg.c | 49 if (mglevels->level == mglevels->levels - 1 && mg->ttol && reason) { in PCMGMCycle_Private() 127 PC_MG_Levels **mglevels = mg->levels; in PCApplyRichardson_MG() 130 PetscInt levels = mglevels[0]->levels, i; in PCApplyRichardson_MG() local 134 for (i = 0; i < levels; i++) { in PCApplyRichardson_MG() 141 PetscCall(KSPGetPC(mglevels[levels - 1]->smoothd, &tpc)); in PCApplyRichardson_MG() 143 PetscCall(KSPGetPC(mglevels[levels - 1]->smoothu, &tpc)); in PCApplyRichardson_MG() 146 PetscCall(VecDestroy(&mglevels[levels - 1]->b)); in PCApplyRichardson_MG() 147 mglevels[levels - 1]->b = b; in PCApplyRichardson_MG() 149 if (!mglevels[levels - 1]->b) { in PCApplyRichardson_MG() 152 PetscCall(KSPCreateVecs(mglevels[levels - 1]->smoothd, 1, &vec, 0, NULL)); in PCApplyRichardson_MG() [all …]
|
| H A D | mgfunc.c | 119 PC_MG_Levels **mglevels = mg->levels; in PCMGGetCoarseSolve() 146 PC_MG_Levels **mglevels = mg->levels; in PCMGSetResidual() 180 PC_MG_Levels **mglevels = mg->levels; in PCMGSetResidualTranspose() 219 PC_MG_Levels **mglevels = mg->levels; in PCMGSetInterpolation() 250 PC_MG_Levels **mglevels = mg->levels; in PCMGSetOperators() 281 PC_MG_Levels **mglevels = mg->levels; in PCMGGetInterpolation() 321 PC_MG_Levels **mglevels = mg->levels; in PCMGSetRestriction() 355 PC_MG_Levels **mglevels = mg->levels; in PCMGGetRestriction() 388 PC_MG_Levels **mglevels = mg->levels; in PCMGSetRScale() 422 PC_MG_Levels **mglevels = mg->levels; in PCMGGetRScale() [all …]
|
| /petsc/src/ksp/pc/tests/ |
| H A D | ex5.c | 31 PetscInt x_mesh = 15, levels = 3, cycles = 1, use_jacobi = 0; in main() local 44 PetscCall(PetscOptionsGetInt(NULL, NULL, "-l", &levels, NULL)); in main() 55 PetscCall(PetscMalloc1(levels, &N)); in main() 57 for (i = 1; i < levels; i++) { in main() 62 PetscCall(Create1dLaplacian(N[levels - 1], &cmat)); in main() 68 PetscCall(PCMGSetLevels(pcmg, levels, NULL)); in main() 78 for (i = 0; i < levels - 1; i++) { in main() 81 PetscCall(PCMGSetResidual(pcmg, levels - 1 - i, residual, NULL)); in main() 85 PetscCall(PCMGSetInterpolation(pcmg, levels - 1 - i, mat[i])); in main() 86 PetscCall(PCMGSetRestriction(pcmg, levels - 1 - i, mat[i])); in main() [all …]
|
| /petsc/src/ksp/pc/impls/mg/ftn-custom/ |
| H A D | zmgf.c | 10 PETSC_EXTERN void pcmgsetlevels_(PC *pc, PetscInt *levels, MPI_Fint fcomms[], PetscErrorCode *ierr) in pcmgsetlevels_() argument 15 *ierr = PetscMalloc1(*levels, &ccomms); in pcmgsetlevels_() 17 for (PetscInt i = 0; i < *levels; i++) ccomms[i] = MPI_Comm_f2c(fcomms[i]); in pcmgsetlevels_() 19 *ierr = PCMGSetLevels(*pc, *levels, ccomms); in pcmgsetlevels_()
|
| /petsc/src/dm/partitioner/impls/multistage/ |
| H A D | mspart.c | 21 PetscInt levels; member 66 …rASCIIPrintf(viewer, "Multistage graph partitioner: total stages %" PetscInt_FMT "\n", p->levels)); in PetscPartitionerView_Multistage() 69 for (PetscInt l = 0; l < p->levels; l++) { in PetscPartitionerView_Multistage() 139 for (PetscInt l = 0; l < p->levels; l++) PetscCall(PetscViewerASCIIPopTab(viewer)); in PetscPartitionerView_Multistage() 146 …istage_CreateStages(MPI_Comm comm, const PetscInt *options, PetscInt *nlevels, MPI_Group *levels[]) in PetscPartitionerMultistage_CreateStages() argument 163 *levels = lgroup; in PetscPartitionerMultistage_CreateStages() 202 *levels = lgroup; in PetscPartitionerMultistage_CreateStages() 232 *levels = lgroup; in PetscPartitionerMultistage_CreateStages() 276 *levels = lgroup; in PetscPartitionerMultistage_CreateStages() 299 PetscInt nstages = p->levels; in PetscPartitionerReset_Multistage() [all …]
|
| /petsc/src/ksp/pc/impls/hpddm/ |
| H A D | pchpddm.cxx | 28 if (data->levels) { in PCReset_HPDDM() 29 for (PetscInt i = 0; i < PETSC_PCHPDDM_MAXLEVELS && data->levels[i]; ++i) { in PCReset_HPDDM() 30 PetscCall(KSPDestroy(&data->levels[i]->ksp)); in PCReset_HPDDM() 31 PetscCall(PCDestroy(&data->levels[i]->pc)); in PCReset_HPDDM() 32 PetscCall(PetscFree(data->levels[i])); in PCReset_HPDDM() 34 PetscCall(PetscFree(data->levels)); in PCReset_HPDDM() 329 PC_HPDDM_Level **levels = data->levels; in PCSetFromOptions_HPDDM() local 338 if (!data->levels) { in PCSetFromOptions_HPDDM() 339 PetscCall(PetscCalloc1(PETSC_PCHPDDM_MAXLEVELS, &levels)); in PCSetFromOptions_HPDDM() 340 data->levels = levels; in PCSetFromOptions_HPDDM() [all …]
|
| /petsc/doc/ |
| H A D | build_man_index.py | 21 def printindex(outfilename, headfilename, levels, titles, tables): argument 41 for i, level in enumerate(levels): 150 def createtable(dirname,levels,secname,editbranch): argument 159 for level in levels: table.append([]) 163 if level.lower() in levels: 164 table[levels.index(level.lower())].append(filename) 225 levels = ['beginner','intermediate','advanced','developer','deprecated','none'] 246 table = createtable(dirname,levels,secname,edit_branch) 249 printindex(outfilename,headfilename,levels,titles,table)
|
| /petsc/src/snes/impls/fas/ |
| H A D | fasfunc.c | 74 PetscErrorCode SNESFASSetLevels(SNES snes, PetscInt levels, MPI_Comm *comms) in SNESFASSetLevels() argument 87 if (levels == fas->levels) { in SNESFASSetLevels() 99 PetscCall(PetscObjectComposedDataSetInt((PetscObject)snes, PetscMGLevelId, levels - 1)); in SNESFASSetLevels() 100 for (i = levels - 1; i >= 0; i--) { in SNESFASSetLevels() 103 fas->levels = levels; in SNESFASSetLevels() 114 … PetscCall(PetscObjectIncrementTabLevel((PetscObject)fas->next, (PetscObject)snes, levels - i)); in SNESFASSetLevels() 139 PetscErrorCode SNESFASGetLevels(SNES snes, PetscInt *levels) in SNESFASGetLevels() argument 145 PetscAssertPointer(levels, 2); in SNESFASGetLevels() 147 *levels = fas->levels; in SNESFASGetLevels() 174 …levels - 1, PetscObjectComm((PetscObject)snes), PETSC_ERR_ARG_OUTOFRANGE, "Requested level %" Pets… in SNESFASGetCycleSNES() [all …]
|
| H A D | fas.c | 89 if (dm_levels > fas->levels) { in SNESSetUp_FAS() 139 …if (fas->smoothd && fas->level != fas->levels - 1) PetscCall(SNESSetFunction(fas->smoothd, NULL, S… in SNESSetUp_FAS() 140 …if (fas->smoothu && fas->level != fas->levels - 1) PetscCall(SNESSetFunction(fas->smoothu, NULL, S… in SNESSetUp_FAS() 155 if (fas->level != fas->levels - 1) { in SNESSetUp_FAS() 183 PetscInt levels = 1; in SNESSetFromOptions_FAS() local 198 …etscOptionsInt("-snes_fas_levels", "Number of Levels", "SNESFASSetLevels", levels, &levels, &flg)); in SNESSetFromOptions_FAS() 200 PetscCall(DMGetRefineLevel(snes->dm, &levels)); in SNESSetFromOptions_FAS() 201 levels++; in SNESSetFromOptions_FAS() 204 PetscCall(SNESFASSetLevels(snes, levels, NULL)); in SNESSetFromOptions_FAS() 280 …scInt_FMT ", cycles=%" PetscInt_FMT "\n", SNESFASTypes[fas->fastype], fas->levels, fas->n_cycles)); in SNESView_FAS() [all …]
|
| /petsc/src/ksp/pc/impls/factor/ |
| H A D | factimpl.c | 86 PetscErrorCode PCFactorGetLevels_Factor(PC pc, PetscInt *levels) in PCFactorGetLevels_Factor() argument 91 *levels = ilu->info.levels; in PCFactorGetLevels_Factor() 122 PetscErrorCode PCFactorSetLevels_Factor(PC pc, PetscInt levels) in PCFactorSetLevels_Factor() argument 127 if (!pc->setupcalled) ilu->info.levels = levels; in PCFactorSetLevels_Factor() 128 else if (ilu->info.levels != levels) { in PCFactorSetLevels_Factor() 131 ilu->info.levels = levels; in PCFactorSetLevels_Factor() 281 } else if (factor->info.levels == 1) { in PCView_Factor() 282 …scViewerASCIIPrintf(viewer, " %" PetscInt_FMT " level of fill\n", (PetscInt)factor->info.levels)); in PCView_Factor() 284 …cViewerASCIIPrintf(viewer, " %" PetscInt_FMT " levels of fill\n", (PetscInt)factor->info.levels)); in PCView_Factor() 321 …rintf(viewer, " lvls=%" PetscInt_FMT ",order=%s", (PetscInt)factor->info.levels, factor->ordering)… in PCView_Factor()
|
| H A D | factor.c | 307 PetscErrorCode PCFactorGetLevels(PC pc, PetscInt *levels) in PCFactorGetLevels() argument 311 PetscUseMethod(pc, "PCFactorGetLevels_C", (PC, PetscInt *), (pc, levels)); in PCFactorGetLevels() 331 PetscErrorCode PCFactorSetLevels(PC pc, PetscInt levels) in PCFactorSetLevels() argument 335 …PetscCheck(levels >= 0, PetscObjectComm((PetscObject)pc), PETSC_ERR_ARG_OUTOFRANGE, "negative leve… in PCFactorSetLevels() 336 PetscValidLogicalCollectiveInt(pc, levels, 2); in PCFactorSetLevels() 337 PetscTryMethod(pc, "PCFactorSetLevels_C", (PC, PetscInt), (pc, levels)); in PCFactorSetLevels()
|
| /petsc/src/dm/impls/stag/tutorials/ |
| H A D | ex4.c | 35 LevelCtx *levels; member 94 NULL, NULL, &ctx->levels[ctx->n_levels - 1]->dm_stokes)); in main() 97 … DMSTAG_STENCIL_BOX, 1, NULL, NULL, NULL, &ctx->levels[ctx->n_levels - 1]->dm_stokes)); in main() 99 dm_stokes = ctx->levels[ctx->n_levels - 1]->dm_stokes; in main() 105 …if (ctx->dim == 2) PetscCall(DMStagCreateCompatibleDMStag(dm_stokes, 2, 0, 1, 0, &ctx->levels[ctx-… in main() 106 …= 3) PetscCall(DMStagCreateCompatibleDMStag(dm_stokes, 0, 2, 0, 1, &ctx->levels[ctx->n_levels - 1]… in main() 108 dm_coefficients = ctx->levels[ctx->n_levels - 1]->dm_coefficients; in main() 114 …PetscCall(DMCoarsen(ctx->levels[level]->dm_stokes, MPI_COMM_NULL, &ctx->levels[level - 1]->dm_stok… in main() 115 …PetscCall(DMCoarsen(ctx->levels[level]->dm_coefficients, MPI_COMM_NULL, &ctx->levels[level - 1]->d… in main() 124 PetscCall(DMStagGetGlobalSizes(ctx->levels[level]->dm_stokes, &N[0], &N[1], &N[2])); in main() [all …]
|
| /petsc/share/petsc/saws/js/ |
| H A D | treeInterface.js | 72 var levels = $("#temp_pc_mg_levels").val(); 73 if(levels.match(/[^0-9]/) || levels < 1) { 79 var levels = $("#temp_pc_gamg_levels").val(); 80 if(levels.match(/[^0-9]/) || levels < 1) { 157 var levels = $("#temp_pc_mg_levels").val(); 166 $("#pc_mg_levels" + endtag).val(levels); 170 var levels = $("#temp_pc_gamg_levels").val(); 179 $("#pc_gamg_levels" + endtag).val(levels);
|
| /petsc/src/ksp/pc/tests/output/ |
| H A D | ex10_1.out | 5 Maximum number of levels 25 11 Number of levels of aggressive coarsening 0 37 Num levels: 3
|
| /petsc/src/ksp/ksp/tutorials/amrex/output/ |
| H A D | amrex_1.testout | 3 MLMG: # of AMR levels: 1 4 # of MG levels on the coarsest AMR level: 6
|
| /petsc/src/mat/impls/aij/seq/bas/ |
| H A D | basfactor.c | 14 PetscReal fill = info->fill, levels = info->levels; in MatICCFactorSymbolic_SeqAIJ_Bas() local 26 if (!levels && perm_identity) { in MatICCFactorSymbolic_SeqAIJ_Bas() 49 PetscCall(spbas_power(Pattern_0, (int)levels + 1, &Pattern_P)); in MatICCFactorSymbolic_SeqAIJ_Bas()
|
| /petsc/src/sys/tests/output/ |
| H A D | ex21_1.out | 2 Number of levels 3
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_dmda.py | 256 levels = self.da.refineHierarchy(2) 257 self.assertTrue(isinstance(levels, list)) 258 self.assertEqual(len(levels), 2) 259 for item in levels: 265 levels = self.da.coarsenHierarchy(2) 266 self.assertTrue(isinstance(levels, list)) 267 self.assertEqual(len(levels), 2) 268 for item in levels:
|
| /petsc/src/ksp/ksp/tutorials/output/ |
| H A D | ex55_hypre_device.out | 28 Maximum number of levels 25 34 Number of levels of aggressive coarsening 0
|
| H A D | ex55_hypre_device_alt.out | 26 Maximum number of levels 25 32 Number of levels of aggressive coarsening 0
|
| H A D | ex36_1.out | 1 Number of mesh hierarchy levels: 1
|
| H A D | ex35_3.out | 1 Number of mesh hierarchy levels: 1
|
| H A D | ex36_2.out | 1 Number of mesh hierarchy levels: 2
|
| H A D | ex35_2.out | 1 Number of mesh hierarchy levels: 3
|
| H A D | ex49_hypre_nullspace_alt.out | 21 Maximum number of levels 25 27 Number of levels of aggressive coarsening 0
|