Home
last modified time | relevance | path

Searched full:mg (Results 1 – 25 of 159) sorted by relevance

1234567

/petsc/src/ksp/pc/impls/mg/
H A Dmgfunc.c118 PC_MG *mg = (PC_MG *)pc->data; in PCMGGetCoarseSolve() local
119 PC_MG_Levels **mglevels = mg->levels; in PCMGGetCoarseSolve()
145 PC_MG *mg = (PC_MG *)pc->data; in PCMGSetResidual() local
146 PC_MG_Levels **mglevels = mg->levels; in PCMGSetResidual()
150 …PetscCheck(mglevels, PetscObjectComm((PetscObject)pc), PETSC_ERR_ARG_WRONGSTATE, "Must set MG leve… in PCMGSetResidual()
179 PC_MG *mg = (PC_MG *)pc->data; in PCMGSetResidualTranspose() local
180 PC_MG_Levels **mglevels = mg->levels; in PCMGSetResidualTranspose()
184 …PetscCheck(mglevels, PetscObjectComm((PetscObject)pc), PETSC_ERR_ARG_WRONGSTATE, "Must set MG leve… in PCMGSetResidualTranspose()
218 PC_MG *mg = (PC_MG *)pc->data; in PCMGSetInterpolation() local
219 PC_MG_Levels **mglevels = mg->levels; in PCMGSetInterpolation()
[all …]
H A Dmg.c16 PC_MG *mg = (PC_MG *)pc->data; in PCMGMCycle_Private() local
49 if (mglevels->level == mglevels->levels - 1 && mg->ttol && reason) { in PCMGMCycle_Private()
53 if (rnorm <= mg->ttol) { in PCMGMCycle_Private()
54 if (rnorm < mg->abstol) { in PCMGMCycle_Private()
56 …erged. Residual norm %g is less than absolute tolerance %g\n", (double)rnorm, (double)mg->abstol)); in PCMGMCycle_Private()
59 … less than relative tolerance times initial residual norm %g\n", (double)rnorm, (double)mg->ttol)); in PCMGMCycle_Private()
126 PC_MG *mg = (PC_MG *)pc->data; in PCApplyRichardson_MG() local
127 PC_MG_Levels **mglevels = mg->levels; in PCApplyRichardson_MG()
160 mg->rtol = rtol; in PCApplyRichardson_MG()
161 mg->abstol = abstol; in PCApplyRichardson_MG()
[all …]
/petsc/src/ksp/pc/impls/hmg/
H A Dhmg.c8 …PC innerpc; /* A MG inner PC (Hypre or PCGAMG) to setup interpolations and coarse ope…
93 PC_MG *mg = (PC_MG *)pc->data; in PCSetUp_HMG() local
94 PC_HMG *hmg = (PC_HMG *)mg->innerctx; in PCSetUp_HMG()
213 PC_MG *mg = (PC_MG *)pc->data; in PCDestroy_HMG() local
214 PC_HMG *hmg = (PC_HMG *)mg->innerctx; in PCDestroy_HMG()
232 PC_MG *mg = (PC_MG *)pc->data; in PCView_HMG() local
233 PC_HMG *hmg = (PC_HMG *)mg->innerctx; in PCView_HMG()
251 PC_MG *mg = (PC_MG *)pc->data; in PCSetFromOptions_HMG() local
252 PC_HMG *hmg = (PC_HMG *)mg->innerctx; in PCSetFromOptions_HMG()
266 PC_MG *mg = (PC_MG *)pc->data; in PCHMGSetReuseInterpolation_HMG() local
[all …]
/petsc/src/ksp/pc/impls/gamg/
H A Dgamg.c28 PC_MG *mg = (PC_MG *)pc->data; in PCReset_GAMG() local
29 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCReset_GAMG()
36 mg->min_eigen_DinvA[level] = 0; in PCReset_GAMG()
37 mg->max_eigen_DinvA[level] = 0; in PCReset_GAMG()
63 PC_MG *mg = (PC_MG *)pc->data; in PCGAMGCreateLevel_GAMG() local
64 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCGAMGCreateLevel_GAMG()
504 PC_MG *mg = (PC_MG *)a_pc->data; in PCGAMGSquareGraph_GAMG() local
505 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCGAMGSquareGraph_GAMG()
540 PC_MG *mg = (PC_MG *)pc->data; in PCSetUp_GAMG() local
541 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCSetUp_GAMG()
[all …]
H A Dagg.c55 PC_MG *mg = (PC_MG *)pc->data; in PCGAMGSetNSmooths_AGG() local
56 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCGAMGSetNSmooths_AGG()
227 PC_MG *mg = (PC_MG *)pc->data; in PCGAMGSetAggressiveLevels_AGG() local
228 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCGAMGSetAggressiveLevels_AGG()
238 PC_MG *mg = (PC_MG *)pc->data; in PCGAMGMISkSetAggressive_AGG() local
239 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCGAMGMISkSetAggressive_AGG()
249 PC_MG *mg = (PC_MG *)pc->data; in PCGAMGSetAggressiveSquareGraph_AGG() local
250 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCGAMGSetAggressiveSquareGraph_AGG()
260 PC_MG *mg = (PC_MG *)pc->data; in PCGAMGSetLowMemoryFilter_AGG() local
261 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCGAMGSetLowMemoryFilter_AGG()
[all …]
H A Dclassical.c62 PC_MG *mg = (PC_MG *)pc->data; in PCGAMGClassicalSetType_GAMG() local
63 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCGAMGClassicalSetType_GAMG()
73 PC_MG *mg = (PC_MG *)pc->data; in PCGAMGClassicalGetType_GAMG() local
74 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCGAMGClassicalGetType_GAMG()
92 PC_MG *mg = (PC_MG *)pc->data; in PCGAMGCreateGraph_Classical() local
93 PC_GAMG *gamg = (PC_GAMG *)mg->innerctx; in PCGAMGCreateGraph_Classical()
187 PC_MG *mg = (PC_MG *)pc->data; in PCGAMGProlongator_Classical_Direct() local
188 PC_GAMG *gamg = (PC_GAMG *)mg->innerctx; in PCGAMGProlongator_Classical_Direct()
452 PC_MG *mg = (PC_MG *)pc->data; in PCGAMGTruncateProlongator_Private() local
453 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCGAMGTruncateProlongator_Private()
[all …]
H A Dgeo.c36 PC_MG *mg = (PC_MG *)pc->data; in PCSetCoordinates_GEO() local
37 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCSetCoordinates_GEO()
88 SETERRQ(PetscObjectComm((PetscObject)pc), PETSC_ERR_PLIB, "GEO MG needs coordinates"); in PCSetData_GEO()
411 …tscObjectComm((PetscObject)a_Prol), PETSC_ERR_PLIB, "configure with TRIANGLE to use geometric MG"); in triangulateAndFormProl()
520 PC_MG *mg = (PC_MG *)pc->data; in PCGAMGCreateGraph_GEO() local
521 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCGAMGCreateGraph_GEO()
545 /* create random permutation with sort for geo-mg */ in PCGAMGCoarsen_GEO()
604 PC_MG *mg = (PC_MG *)pc->data; in PCGAMGProlongator_GEO() local
605 PC_GAMG *pc_gamg = (PC_GAMG *)mg->innerctx; in PCGAMGProlongator_GEO()
729 PC_MG *mg = (PC_MG *)pc->data; in PCCreateGAMG_GEO() local
[all …]
/petsc/share/petsc/saws/js/
H A DgetCmdOptions.js27 if(pc_type == "mg") { //add extra info related to mg
60 if(pc_type == "mg")
95 if(pc_type == "mg") { //add extra info related to mg
H A DtreeInterface.js71 else if(selectedPc == "mg") { //extra options for mg
156 else if(pc_type == "mg") { //extra options for mg
283 else if(pc_type == "mg") {
287 …var defaults = getDefaults("mg",matInfo[endtag].symm,matInfo[endtag].posdef,matInfo[endtag].logstr…
403 else if(pc_type == "mg") {
404 appendExtraOptions("mg");
405 …var defaults = getDefaults("mg",matInfo[endtag].symm,matInfo[endtag].posdef,matInfo[endtag].logstr…
502 else if(matInfo[parentEndtag].pc_type == "mg" || matInfo[parentEndtag].pc_type == "gamg") {
544 else if(matInfo[endtag].pc_type == "mg") {
545 appendExtraOptions("mg");
[all …]
H A DrecordSawsData.js28 if(SAWs_pcVal == 'mg') {//some extra data for pc=multigrid
36 …//check if parent was mg because then this child is a mg_level and we might need to record a new r…
39 …parentEndtag] != undefined && data[parentEndtag].pc_type == "mg") { //check to see if parent was mg
H A DparsePrefix.js1 …to the endtag format to store information in an array (allows for indefinite mg/fieldsplit nesting)
15 if(chunk == "mg") {//mg_
32 var keywords = ["pc","ksp","sub","redundant","mg","asm"];
H A DdrawDiagrams.js27 else if(data[endtag].pc_type == "mg") {
67 //if child is mg, then it is time to switch drawing methods
68 else if(data[childEndtag] != undefined && data[childEndtag].pc_type == "mg") {
92 …else if(data[endtag].pc_type == "mg") { //draw multigrid diagram. multigrid diagram doesn't use an…
H A Ddefaults.js31 …ptions for the solver they selected (for example, pc_mg_blocks for pc_type=mg) and also the defaul…
33 else if(solver == "mg") {
/petsc/src/ksp/ksp/tutorials/
H A Dex50.c17 …./ex50 -da_grid_x 3 -da_grid_y 3 -pc_type mg -da_refine 3 -ksp_monitor -ksp_view -dm_view draw -dr…
18 …./ex50 -da_grid_x 100 -da_grid_y 100 -pc_type mg -pc_mg_levels 1 -mg_levels_0_pc_type ilu -mg_lev…
19 …./ex50 -da_grid_x 100 -da_grid_y 100 -pc_type mg -pc_mg_levels 1 -mg_levels_0_pc_type lu -mg_level…
20 …mpiexec -n 4 ./ex50 -da_grid_x 3 -da_grid_y 3 -pc_type mg -da_refine 10 -ksp_monitor -ksp_view -lo…
195 …args: -pc_type mg -pc_mg_type full -ksp_type cg -ksp_monitor_short -da_refine 3 -mg_coarse_pc_type…
200 …args: -pc_type mg -pc_mg_type full -ksp_type cg -ksp_monitor_short -da_refine 3 -mg_coarse_pc_type…
205 …args: -pc_type mg -pc_mg_type full -ksp_monitor_short -da_refine 5 -mg_coarse_ksp_type cg -mg_coar…
221 args: -da_grid_x 1025 -da_grid_y 1025 -pc_type mg -pc_mg_levels 9 -ksp_monitor
H A Dex29.c275 …args: -pc_type mg -pc_mg_type full -ksp_type fgmres -ksp_monitor_short -da_refine 8 -ksp_rtol 1.e-3
279 …args: -bc_type neumann -pc_type mg -pc_mg_type full -ksp_type fgmres -ksp_monitor_short -da_refine…
285mg -pc_mg_galerkin pmat -pc_mg_levels 4 -ksp_type richardson -mg_levels_ksp_type chebyshev -mg_lev…
289 args: -ksp_view -da_refine 2 -pc_type mg -pc_mg_distinct_smoothup -mg_levels_up_pc_type jacobi
293 …args: -ksp_view -da_refine 2 -pc_type mg -pc_mg_distinct_smoothup -mg_levels_up_ksp_max_it 3 -mg_l…
297 …args: -da_grid_x 10 -da_grid_y 2 -da_refine 2 -pc_type mg -ksp_monitor_short -mg_levels_ksp_max_it…
312 args: -pc_type mg -da_refine 2 -ksp_monitor -matptap_via hypre -pc_mg_galerkin both
H A Dex45.c195 …args: -ksp_monitor_short -da_grid_x 21 -da_grid_y 21 -da_grid_z 21 -pc_type mg -pc_mg_levels 3 -mg…
200mg -mg_levels_ksp_type richardson -mg_levels_pc_type jacobi -pc_mg_levels 2 -da_grid_x 65 -da_grid…
205mg -mg_levels_ksp_type richardson -mg_levels_pc_type jacobi -pc_mg_levels 2 -da_grid_x 65 -da_grid…
H A Dex35.cxx20 mpiexec -n $NP ./ex35 -problem 1 -error -n 64 -levels 3 -pc_type mg
21 mpiexec -n $NP ./ex35 -problem 1 -error -n 128 -levels 2 -pc_type mg
22 mpiexec -n $NP ./ex35 -problem 1 -error -n 256 -levels 1 -mg
23 mpiexec -n $NP ./ex35 -problem 1 -error -n 512 -levels 0 -mg
27 mpiexec -n $NP ./ex35 -problem 1 -file ./external_mesh.h5m -levels 2 -error -pc_type mg
70 mpiexec -n $NP ./ex35 -problem 3 -file input/square_with_hole.h5m -mg
71 mpiexec -n $NP ./ex35 -problem 3 -file input/square_with_hole.h5m -mg -levels 2 -io -ksp_monitor
78 Usage: ./ex35 -problem 1 -error -n 4 -levels 3 -mg\n \
80 Usage: ./ex35 -problem 3 -file input/square_with_hole.h5m -mg\n";
589 …PetscCall(PetscOptionsBool("-mg", "Use multigrid preconditioner", "ex35.cxx", user->usemg, &user->… in InitializeOptions()
[all …]
/petsc/share/petsc/saws/
H A Dreadme25 mg
27 ./ex19 -saws_options -da_refine 2 -pc_type mg -ksp_type fgmres -mg_coarse_pc_type redundant
43 …t_0_ksp_type gmres -fieldsplit_0_pc_type bjacobi -fieldsplit_1_ksp_type cg -fieldsplit_1_pc_type mg
/petsc/src/snes/tutorials/
H A Dex25.c104 args: -pc_type mg -da_refine 1 -ksp_type fgmres
109 args: -pc_type mg -da_refine 1 -ksp_type fgmres
114 … args: -pc_type mg -da_refine 1 -ksp_type fgmres -snes_type newtontrdc -snes_trdc_use_cauchy false
119 args: -pc_type mg -da_refine 1 -ksp_type fgmres -snes_type newtontrdc
H A Dex19.c645 args: -da_refine 3 -snes_monitor_short -pc_type mg -ksp_type fgmres -pc_mg_type full
675 …args: -snes_monitor_short -pc_type mg -dm_mat_type baij -mg_coarse_pc_type bjacobi -da_refine 3 -k…
681 …args: -snes_converged_reason -pc_type mg -dm_mat_type baij -mg_coarse_pc_type bjacobi -da_refine 3…
698 …args: -da_refine 3 -snes_monitor_short -pc_type mg -ksp_type fgmres -pc_mg_type full -snes_type ne…
704 …args: -da_refine 3 -snes_monitor_short -pc_type mg -ksp_type fgmres -pc_mg_type full -snes_type ne…
710 args: -da_refine 3 -snes_converged_reason -pc_type mg -mat_fd_type ds
716 args: -da_refine 3 -snes_converged_reason -pc_type mg -mat_fd_type ds -mat_fd_coloring_bcols
770 …args: -da_refine 3 -snes_monitor_short -pc_type mg -ksp_type fgmres -pc_mg_type full -mat_fd_color…
810 …te_type additiveoptimal -snes_composite_sneses ngs,newtonls -sub_0_snes_max_it 20 -sub_1_pc_type mg
825 …args: -pc_type fieldsplit -snes_view draw -fieldsplit_x_velocity_pc_type mg -fieldsplit_x_velocity…
[all …]
H A Dex20.c176 -ksp_rtol 5e-10 -ksp_converged_rate -pc_type mg \
187 -ksp_rtol 5e-10 -pc_type mg -pc_mg_adapt_cr \
198 -ksp_rtol 5e-10 -ksp_converged_rate -pc_type mg -pc_mg_type full \
208 -ksp_rtol 5e-10 -ksp_converged_rate -pc_type mg \
H A Dex9.c26 for M in 3 4 5 6 7; do ./ex9 -snes_grid_sequence $M -pc_type mg; done
28 …xec -n 4 ./ex9 -da_grid_x 12 -da_grid_y 12 -snes_converged_reason -snes_grid_sequence 4 -pc_type mg
275 suffix: mg
278 args: -snes_grid_sequence 3 -snes_converged_reason -pc_type mg
294 args: -snes_grid_sequence 2 -pc_type mg -snes_monitor_short -ksp_converged_reason
/petsc/doc/tutorials/
H A Dhandson.md61 $ mpiexec -n 4 ./ex50 -da_grid_x 1025 -da_grid_y 1025 -pc_type mg -pc_mg_levels 9 -ksp_monitor
176 $ mpiexec -n 4 ./ex19 -da_refine 5 -snes_monitor -ksp_monitor -snes_view -pc_type mg
238 $ mpiexec -n 1 ./ex19 -da_refine 5 -log_view -pc_type mg
270 $ mpiexec -n 4 ./ex19 -da_refine 5 -log_view -pc_type mg
/petsc/src/dm/impls/stag/tests/
H A Dex15.c1 static char help[] = "Test DMStag default MG components, on a Stokes-like system.\n\n";
633 …args: -dim 1 -ksp_type fgmres -pc_type mg -pc_mg_levels 2 -pc_mg_galerkin -mg_levels_pc_type lu -m…
639 …args: -dim 1 /ex15 -dim 1 -stag_grid_x 16 -ksp_type fgmres -pc_type mg -pc_mg_levels 2 -pc_mg_gale…
645 …args: -dim 1 -stag_grid_x 256 -ksp_converged_reason -ksp_type fgmres -pc_type mg -pc_mg_levels 2 -…
651 …args: -dim 1 -stag_grid_x 256 -ksp_converged_reason -ksp_type fgmres -pc_type mg -pc_mg_levels 2 -…
657 …args: -dim 2 -ksp_type fgmres -pc_type mg -pc_mg_levels 2 -pc_mg_galerkin -mg_levels_pc_type lu -m…
663 …args: -dim 1 /ex15 -dim 1 -stag_grid_x 16 -ksp_type fgmres -pc_type mg -pc_mg_levels 2 -pc_mg_gale…
669 …args: -dim 2 -ksp_type fgmres -pc_type mg -pc_mg_levels 2 -pc_mg_galerkin -mg_levels_pc_type field…
675 …args: -dim 2 -ksp_type fgmres -pc_type mg -pc_mg_levels 2 -pc_mg_galerkin -mg_levels_pc_type field…
681 …args: -dim 2 -pc_type mg -pc_mg_galerkin -mg_levels_pc_type fieldsplit -mg_levels_pc_fieldsplit_ty…
/petsc/src/ksp/pc/impls/wb/
H A Dwb.c692 PC_MG *mg = (PC_MG *)pc->data; in PCExoticSetType_Exotic() local
693 PC_Exotic *ctx = (PC_Exotic *)mg->innerctx; in PCExoticSetType_Exotic()
703 PC_MG *mg = (PC_MG *)pc->data; in PCSetUp_Exotic() local
704 PC_Exotic *ex = (PC_Exotic *)mg->innerctx; in PCSetUp_Exotic()
725 PC_MG *mg = (PC_MG *)pc->data; in PCDestroy_Exotic() local
726 PC_Exotic *ctx = (PC_Exotic *)mg->innerctx; in PCDestroy_Exotic()
739 PC_MG *mg = (PC_MG *)pc->data; in PCView_Exotic() local
741 PC_Exotic *ctx = (PC_Exotic *)mg->innerctx; in PCView_Exotic()
771 PC_MG *mg = (PC_MG *)pc->data; in PCSetFromOptions_Exotic() local
773 PC_Exotic *ctx = (PC_Exotic *)mg->innerctx; in PCSetFromOptions_Exotic()
[all …]

1234567