| /petsc/src/ksp/ksp/tests/ |
| H A D | ex12f.F90 | 14 PetscInt its, m, n, mlocal, nlocal 38 PetscCallA(MatGetLocalSize(A, mlocal, nlocal, ierr)) 42 & mlocal, nlocal, &
|
| /petsc/src/ksp/pc/impls/redundant/ |
| H A D | redundant.c | 69 PetscInt mstart, mend, mlocal, M; in PCSetUp_Redundant() local 131 mlocal = mend - mstart; in PCSetUp_Redundant() 132 PetscCall(PetscMalloc2(red->psubcomm->n * mlocal, &idx1, red->psubcomm->n * mlocal, &idx2)); in PCSetUp_Redundant() 140 PetscCall(ISCreateGeneral(comm, red->psubcomm->n * mlocal, idx1, PETSC_COPY_VALUES, &is1)); in PCSetUp_Redundant() 141 PetscCall(ISCreateGeneral(comm, red->psubcomm->n * mlocal, idx2, PETSC_COPY_VALUES, &is2)); in PCSetUp_Redundant() 147 PetscCall(ISCreateStride(comm, mlocal, mstart + red->psubcomm->color * M, 1, &is1)); in PCSetUp_Redundant() 148 PetscCall(ISCreateStride(comm, mlocal, mstart, 1, &is2)); in PCSetUp_Redundant()
|
| /petsc/src/ksp/pc/impls/gamg/ |
| H A D | agg.c | 468 PetscInt i, j, mlocal, nvec, bs; in PCSetData_AGG() local 472 PetscCall(MatGetLocalSize(a_A, &mlocal, NULL)); in PCSetData_AGG() 476 …heck(j == mlocal, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Attached null space vector size %" PetscInt_FM… in PCSetData_AGG() 478 pc_gamg->data_sz = (nvec + !!has_const) * mlocal; in PCSetData_AGG() 479 PetscCall(PetscMalloc1((nvec + !!has_const) * mlocal, &nullvec)); in PCSetData_AGG() 481 for (i = 0; i < mlocal; i++) nullvec[i] = 1.0; in PCSetData_AGG() 484 for (j = 0; j < mlocal; j++) nullvec[(i + !!has_const) * mlocal + j] = PetscRealPart(v[j]); in PCSetData_AGG()
|
| /petsc/src/snes/tests/ |
| H A D | ex69.c | 47 PetscInt mlocal, nlocal; in main() local 107 PetscCall(MatGetLocalSize(Jmf, &mlocal, &nlocal)); in main() 109 …PetscCall(MatCreateShell(PetscObjectComm((PetscObject)Jmf), mlocal, nlocal, PETSC_DECIDE, PETSC_DE… in main()
|
| /petsc/src/ksp/pc/impls/ml/ |
| H A D | ml.c | 677 PetscInt i, j, mlocal, nvec, M; in PCSetUp_ML() local 682 PetscCall(MatGetLocalSize(Aloc, &mlocal, NULL)); in PCSetUp_ML() 684 PetscCall(PetscMalloc1((nvec + !!has_const) * mlocal, &nullvec)); in PCSetUp_ML() 686 for (i = 0; i < mlocal; i++) nullvec[i] = 1.0 / M; in PCSetUp_ML() 689 for (j = 0; j < mlocal; j++) nullvec[(i + !!has_const) * mlocal + j] = v[j]; in PCSetUp_ML() 692 …e_Set_NullSpace", ML_Aggregate_Set_NullSpace(agg_object, bs, nvec + !!has_const, nullvec, mlocal)); in PCSetUp_ML()
|
| /petsc/src/tao/util/ |
| H A D | tao_util.c | 515 PetscInt i, nlocal, mlocal; in TaoSoftThreshold() local 521 PetscCall(VecGetLocalSize(out, &mlocal)); in TaoSoftThreshold() 523 …PetscCheck(nlocal == mlocal, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Input and output vectors need… in TaoSoftThreshold()
|
| /petsc/doc/manual/ |
| H A D | mat.md | 1277 MatCreateMPIAdj(MPI_Comm comm,int mlocal,PetscInt n,const PetscInt ia[],const PetscInt ja[],PetscIn… 1280 The argument `mlocal` indicates the number of rows of the graph being 1282 equal to the sum of all the `mlocal`. The arguments `ia` and `ja` 1305 - Process 0: `mlocal = 2`, `n = 4`, `ja =``{2,3, 3}`, 1307 - Process 1: `mlocal = 2`, `n = 4`, `ja =``{0, 0,1}`, 1317 - Process 0: `mlocal = 3`, `n = 6`, 1319 - Process 1: `mlocal = 3`, `n = 6`,
|