Home
last modified time | relevance | path

Searched refs:lu (Results 1 – 25 of 167) sorted by relevance

1234567

/petsc/src/mat/impls/aij/seq/superlu/
H A Dsuperlu.c62 Mat_SuperLU *lu = (Mat_SuperLU *)A->data; in MatView_Info_SuperLU() local
66 options = lu->options; in MatView_Info_SuperLU()
79 PetscCall(PetscViewerASCIIPrintf(viewer, " lwork: %" PetscInt_FMT "\n", lu->lwork)); in MatView_Info_SuperLU()
93 Mat_SuperLU *lu = (Mat_SuperLU *)A->data; in MatSolve_SuperLU_Private() local
101 if (lu->lwork == -1) PetscFunctionReturn(PETSC_SUCCESS); in MatSolve_SuperLU_Private()
107 lu->B.ncol = 1; /* Set the number of right-hand side */ in MatSolve_SuperLU_Private()
108 if (lu->options.Equil && !lu->rhs_dup) { in MatSolve_SuperLU_Private()
110 PetscCall(PetscMalloc1(n, &lu->rhs_dup)); in MatSolve_SuperLU_Private()
112 if (lu->options.Equil) { in MatSolve_SuperLU_Private()
115 PetscCall(PetscArraycpy(lu->rhs_dup, barray, n)); in MatSolve_SuperLU_Private()
[all …]
/petsc/src/mat/impls/aij/mpi/superlu_dist/
H A Dsuperlu_dist.c123 Mat_SuperLU_DIST *lu = (Mat_SuperLU_DIST *)F->data; in MatSuperluDistGetDiagU_SuperLU_DIST() local
126 …PetscStackCallExternalVoid("SuperLU_DIST:pGetDiagU", pGetDiagU(F->rmap->N, &lu->LUstruct, &lu->gri… in MatSuperluDistGetDiagU_SuperLU_DIST()
189 Mat_SuperLU_DIST *lu = (Mat_SuperLU_DIST *)A->data; in MatDestroy_SuperLU_DIST() local
193 PetscCall(PetscFree(lu->sbptr)); in MatDestroy_SuperLU_DIST()
195 if (lu->CleanUpSuperLU_Dist) { in MatDestroy_SuperLU_DIST()
197 …nalVoid("SuperLU_DIST:Destroy_CompRowLoc_Matrix_dist", Destroy_CompRowLoc_Matrix_dist(&lu->A_sup)); in MatDestroy_SuperLU_DIST()
198 if (lu->options.SolveInitialized) { in MatDestroy_SuperLU_DIST()
200 …if (lu->singleprecision) PetscStackCallExternalVoid("SuperLU_DIST:SolveFinalize", sSolveFinalize(& in MatDestroy_SuperLU_DIST()
203 …PetscStackCallExternalVoid("SuperLU_DIST:SolveFinalize", SolveFinalize(&lu->options, &lu->SOLVEstr… in MatDestroy_SuperLU_DIST()
206 if (lu->use3d) { in MatDestroy_SuperLU_DIST()
[all …]
/petsc/src/mat/impls/aij/seq/umfpack/
H A Dumfpack.c93 Mat_UMFPACK *lu = (Mat_UMFPACK *)A->data; in MatDestroy_UMFPACK() local
96 if (lu->CleanUpUMFPACK) { in MatDestroy_UMFPACK()
97 umfpack_UMF_free_symbolic(&lu->Symbolic); in MatDestroy_UMFPACK()
98 umfpack_UMF_free_numeric(&lu->Numeric); in MatDestroy_UMFPACK()
99 PetscCall(PetscFree(lu->Wi)); in MatDestroy_UMFPACK()
100 PetscCall(PetscFree(lu->W)); in MatDestroy_UMFPACK()
101 PetscCall(PetscFree(lu->perm_c)); in MatDestroy_UMFPACK()
103 PetscCall(MatDestroy(&lu->A)); in MatDestroy_UMFPACK()
111 Mat_UMFPACK *lu = (Mat_UMFPACK *)A->data; in MatSolve_UMFPACK_Private() local
112 Mat_SeqAIJ *a = (Mat_SeqAIJ *)lu->A->data; in MatSolve_UMFPACK_Private()
[all …]
/petsc/src/mat/impls/aij/seq/klu/
H A Dklu.c97 Mat_KLU *lu = (Mat_KLU *)A->data; in MatDestroy_KLU() local
100 if (lu->CleanUpKLU) { in MatDestroy_KLU()
101 klu_K_free_symbolic(&lu->Symbolic, &lu->Common); in MatDestroy_KLU()
102 klu_K_free_numeric(&lu->Numeric, &lu->Common); in MatDestroy_KLU()
103 PetscCall(PetscFree2(lu->perm_r, lu->perm_c)); in MatDestroy_KLU()
112 Mat_KLU *lu = (Mat_KLU *)A->data; in MatSolveTranspose_KLU() local
120 status = klu_K_solve(lu->Symbolic, lu->Numeric, A->rmap->n, 1, (PetscReal *)xa, &lu->Common); in MatSolveTranspose_KLU()
128 Mat_KLU *lu = (Mat_KLU *)A->data; in MatSolve_KLU() local
135 …PetscCheck(klu_K_tsolve(lu->Symbolic, lu->Numeric, A->rmap->n, 1, xa, 1, &lu->Common), PETSC_COMM_… in MatSolve_KLU()
142 Mat_KLU *lu = (Mat_KLU *)F->data; in MatLUFactorNumeric_KLU() local
[all …]
/petsc/src/ts/tutorials/power_grid/stability_9bus/
H A Dex9busnetworkops9 -sub_pc_type lu
18 -alg_sub_pc_type lu
21 #-alg_pc_type lu
H A Dpetscoptions9 -pc_type lu
/petsc/src/dm/impls/plex/tests/
H A Dex23.c213 Vec lx, lu; in TestFieldProjection() local
225 PetscCall(DMGetLocalVector(dm, &lu)); in TestFieldProjection()
228 PetscCall(PetscObjectSetName((PetscObject)lu, lname)); in TestFieldProjection()
229 if (!label) PetscCall(DMProjectFunctionLocal(dm, 0.0, afuncs, NULL, INSERT_VALUES, lu)); in TestFieldProjection()
230 …all(DMProjectFunctionLabelLocal(dm, 0.0, label, 1, val, 0, NULL, afuncs, NULL, INSERT_VALUES, lu)); in TestFieldProjection()
231 PetscCall(VecViewFromOptions(lu, NULL, "-local_input_view")); in TestFieldProjection()
236 if (!label) PetscCall(DMProjectFieldLocal(dm, 0.0, lu, funcs, INSERT_VALUES, lx)); in TestFieldProjection()
237 …else PetscCall(DMProjectFieldLabelLocal(dm, 0.0, label, 1, val, 0, NULL, lu, funcs, INSERT_VALUES,… in TestFieldProjection()
240 PetscCall(DMRestoreLocalVector(dm, &lu)); in TestFieldProjection()
250 Vec lx, lu; in TestFieldProjectionMultiple() local
[all …]
/petsc/src/ts/tutorials/hybrid/
H A Drun.sh7 ./ex1adj -pc_type lu -ts_event_tol 1e-10 -tend "$tend"
10 ./ex1fwd -pc_type lu -ts_event_tol 1e-10 -tend 0.25
/petsc/src/snes/tutorials/network/
H A Dex1options22 -coupled_sub_pc_type lu
50 -power_sub_pc_type lu
75 -water_sub_pc_type lu
/petsc/src/ksp/pc/impls/factor/
H A Dfactimpl.c178 PC_Factor *lu = (PC_Factor *)pc->data; in PCFactorSetMatSolverType_Factor() local
181 if (lu->fact && lu->fact->assembled) { in PCFactorSetMatSolverType_Factor()
185 PetscCall(MatFactorGetSolverType(lu->fact, &ltype)); in PCFactorSetMatSolverType_Factor()
190 PetscCall(PetscFree(lu->solvertype)); in PCFactorSetMatSolverType_Factor()
191 PetscCall(PetscStrallocpy(stype, &lu->solvertype)); in PCFactorSetMatSolverType_Factor()
197 PC_Factor *lu = (PC_Factor *)pc->data; in PCFactorGetMatSolverType_Factor() local
200 *stype = lu->solvertype; in PCFactorGetMatSolverType_Factor()
/petsc/src/ts/tutorials/phasefield/
H A Dbiharmonictest.m7 …system(['./biharmonic -ts_monitor -snes_vi_monitor -pc_type lu -vi -snes_max_it 250 -snes_converge…
8 …s_linesearch_minlambda 1.e-30 -snes_rtol 1.e-25 -snes_atol 1.e-15 -pc_type lu -vi -snes_converged_…
/petsc/src/ksp/pc/impls/factor/lu/
H A Dlu.c11 PC_LU *lu = (PC_LU *)pc->data; in PCFactorReorderForNonzeroDiagonal_LU() local
14 lu->nonzerosalongdiagonal = PETSC_TRUE; in PCFactorReorderForNonzeroDiagonal_LU()
15 if (z == (PetscReal)PETSC_DECIDE) lu->nonzerosalongdiagonaltol = 1.e-10; in PCFactorReorderForNonzeroDiagonal_LU()
16 else lu->nonzerosalongdiagonaltol = z; in PCFactorReorderForNonzeroDiagonal_LU()
22 PC_LU *lu = (PC_LU *)pc->data; in PCSetFromOptions_LU() local
33 …order to remove zeros from diagonal", "PCFactorReorderForNonzeroDiagonal", lu->nonzerosalongdiagon… in PCSetFromOptions_LU()
/petsc/src/snes/tutorials/
H A Dmakefile122 …0_fields 0,1,2 -pc_fieldsplit_1_fields 3 -fieldsplit_0_pc_type lu -fieldsplit_1_pc_type lu -snes_m…
132 …-${QUIET}${MPIEXEC} -n 1 ${MPIEXEC_TAIL} ./ex19 -da_grid_x 20 -da_grid_y 20 -pc_type lu -pc_factor…
142 …-${QUIET}${MPIEXEC} -n 1 ${MPIEXEC_TAIL} ./ex19 -da_refine 3 -snes_monitor_short -pc_type lu -pc_f…
H A Dex29.options11 -mg_coarse_pc_type lu
/petsc/src/ts/tutorials/network/
H A DpOption1 -pc_type lu
/petsc/src/ksp/ksp/tutorials/
H A Dex20options4 -mg_coarse_redundant_pc_type lu
/petsc/src/snes/tutorials/network/power/
H A Dpoweroptions10 -sub_pc_type lu
/petsc/src/sys/tests/output/
H A Dex47_3_prefix.out2 -mg_coarse_pc_type lu # (source: file)
/petsc/src/ts/tutorials/power_grid/
H A Dpetscopt_ex727 -pc_type lu
/petsc/src/snes/tests/
H A Dex2.c263 Vec lu, fieldVals; in main() local
305 PetscCall(DMGetLocalVector(dm, &lu)); in main()
306 PetscCall(DMProjectFunctionLocal(dm, 0.0, funcs, NULL, INSERT_ALL_VALUES, lu)); in main()
310 PetscCall(VecView(lu, selfviewer)); in main()
316 PetscCall(DMInterpolationEvaluate(interpolator, dm, lu, fieldVals)); in main()
345 PetscCall(DMRestoreLocalVector(dm, &lu)); in main()
/petsc/src/ksp/ksp/tests/output/
H A Dex63_2.out7 ../ex63 : Warning, the 7th option 'lu' was not recognized (use --help)!
28 type: lu
H A Dex63_2_alt.out7 ../ex63 : Warning, the 7th option 'lu' was not recognized (use --help)!
28 type: lu
/petsc/src/snes/tutorials/output/
H A Dex19_cgne.out12 type: lu
41 type: lu
/petsc/src/ksp/ksp/tutorials/output/
H A Dex83f_1.out12 type: lu
42 type: lu
/petsc/src/snes/tutorials/network/water/
H A Dwateroptions17 -waternet_sub_pc_type lu

1234567