Searched refs:cspace (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/ksp/pc/impls/mg/ |
| H A D | gdsw.c | 216 …reateCoarseSpace_Private(PC pc, PetscInt l, DM dm, KSP smooth, PetscInt Nc, Mat guess, Mat *cspace) in PCMGGDSWCreateCoarseSpace_Private() argument 228 *cspace = NULL; in PCMGGDSWCreateCoarseSpace_Private() 293 PetscCall(MatCreate(PetscObjectComm((PetscObject)A), cspace)); in PCMGGDSWCreateCoarseSpace_Private() 294 PetscCall(MatSetSizes(*cspace, n, PETSC_DECIDE, PETSC_DECIDE, NG)); in PCMGGDSWCreateCoarseSpace_Private() 295 PetscCall(MatSetType(*cspace, ptype)); in PCMGGDSWCreateCoarseSpace_Private() 297 PetscCall(MatSetBlockSizes(*cspace, rbs, cbs[0] == cbs[1] ? cbs[0] : 1)); in PCMGGDSWCreateCoarseSpace_Private() 298 PetscCall(MatPreallocatorPreallocate(preallocator, PETSC_FALSE, *cspace)); in PCMGGDSWCreateCoarseSpace_Private() 300 PetscCall(MatSetOption(*cspace, MAT_ROW_ORIENTED, PETSC_FALSE)); in PCMGGDSWCreateCoarseSpace_Private() 320 PetscCall(MatSetValues(*cspace, nri, ri, ncg, cidx + c, v, INSERT_VALUES)); in PCMGGDSWCreateCoarseSpace_Private() 323 PetscCall(MatSetValues(*cspace, nrg, rg, ncg, cidx + c, v, INSERT_VALUES)); in PCMGGDSWCreateCoarseSpace_Private() [all …]
|
| H A D | mgadapt.c | 150 …eSpace_Internal(PC pc, PetscInt l, PCMGCoarseSpaceType cstype, PetscInt Nc, Mat cspace, Mat *space) in PCMGComputeCoarseSpace_Internal() argument 186 PetscCall((*coarseConstructor)(pc, l, dm, smooth, Nc, cspace, space)); in PCMGComputeCoarseSpace_Internal() 208 …PCMGAdaptInterpolator_Internal(PC pc, PetscInt l, KSP csmooth, KSP fsmooth, Mat cspace, Mat fspace) in PCMGAdaptInterpolator_Internal() argument 220 if (Interp == fspace && !cspace) PetscFunctionReturn(PETSC_SUCCESS); in PCMGAdaptInterpolator_Internal() 221 PetscCall(DMAdaptInterpolator(cdm, dm, Interp, fsmooth, fspace, cspace, &InterpAdapt, pc)); in PCMGAdaptInterpolator_Internal() 222 …if (mg->mespMonitor) PetscCall(DMCheckInterpolator(dm, InterpAdapt, cspace, fspace, 0.5 /* PETSC_S… in PCMGAdaptInterpolator_Internal()
|
| /petsc/src/dm/dt/dualspace/impls/refined/ |
| H A D | dualspacerefined.c | 101 PetscDualSpace cspace = sp->pointSpaces[c - pStart]; in PetscDualSpaceSetUp_Refined() local 105 if (!cspace) continue; in PetscDualSpaceSetUp_Refined() 108 PetscCall(DMPlexGetCone(cspace->dm, 0, &refCone)); in PetscDualSpaceSetUp_Refined() 114 PetscCall(PetscDualSpaceGetPointSubspace(cspace, refpoint, &espace)); in PetscDualSpaceSetUp_Refined()
|