| /petsc/src/mat/utils/ |
| H A D | veccreatematdense.c | 25 PetscErrorCode MatCreateDenseFromVecType(MPI_Comm comm, VecType vtype, PetscInt m, PetscInt n, Pets… in MatCreateDenseFromVecType() argument 31 PetscCall(PetscStrcmpAny(vtype, &isstd, VECSTANDARD, VECMPI, VECSEQ, "")); in MatCreateDenseFromVecType() 32 PetscCall(PetscStrcmpAny(vtype, &iscuda, VECCUDA, VECMPICUDA, VECSEQCUDA, "")); in MatCreateDenseFromVecType() 33 PetscCall(PetscStrcmpAny(vtype, &iship, VECHIP, VECMPIHIP, VECSEQHIP, "")); in MatCreateDenseFromVecType() 34 PetscCall(PetscStrcmpAny(vtype, &iskokkos, VECKOKKOS, VECMPIKOKKOS, VECSEQKOKKOS, "")); in MatCreateDenseFromVecType() 35 PetscCheck(isstd || iscuda || iship || iskokkos, comm, PETSC_ERR_SUP, "Not for type %s", vtype); in MatCreateDenseFromVecType()
|
| H A D | isltog.c | 28 VecType vtype; in MatCreateFromISLocalToGlobalMapping() local 35 PetscCall(VecGetType(v, &vtype)); in MatCreateFromISLocalToGlobalMapping() 38 PetscCall(VecSetType(lv, vtype)); in MatCreateFromISLocalToGlobalMapping()
|
| /petsc/src/vec/vec/interface/ |
| H A D | vecreg.c | 194 PetscErrorCode VecGetRootType_Private(Vec vec, VecType *vtype) in VecGetRootType_Private() argument 200 PetscAssertPointer(vtype, 2); in VecGetRootType_Private() 206 *vtype = VECCUDA; in VecGetRootType_Private() 208 *vtype = VECHIP; in VecGetRootType_Private() 210 *vtype = VECKOKKOS; in VecGetRootType_Private() 212 *vtype = VECVIENNACL; in VecGetRootType_Private() 214 *vtype = VECSTANDARD; in VecGetRootType_Private()
|
| /petsc/src/mat/tutorials/ |
| H A D | ex19.c | 12 VecType vtype; in main() local 27 PetscCall(VecGetType(X, &vtype)); in main() 29 …PetscCall(MatCreateDenseFromVecType(PETSC_COMM_WORLD, vtype, n, n, PETSC_DECIDE, PETSC_DECIDE, lda… in main()
|
| /petsc/src/mat/impls/h2opus/ |
| H A D | math2opussampler.hpp | 148 VecType vtype; in sample() local 152 PetscCallVoid(MatGetVecType(this->A, &vtype)); in sample() 159 PetscCallVoid(MatSetVecType(X, vtype)); in sample() 160 PetscCallVoid(MatSetVecType(Y, vtype)); in sample() 166 PetscCallVoid(MatSetVecType(X, vtype)); in sample() 167 PetscCallVoid(MatSetVecType(Y, vtype)); in sample()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexply.c | 24 char line[PETSC_MAX_PATH_LEN], ntype[16], itype[16], name[1024], vtype[16]; in DMPlexCreatePLYFromFile() local 87 vtype[Nvp] = 'f'; in DMPlexCreatePLYFromFile() 91 vtype[Nvp] = 'd'; in DMPlexCreatePLYFromFile() 95 vtype[Nvp] = 'c'; in DMPlexCreatePLYFromFile() 158 if (vtype[p] == 'f') { in DMPlexCreatePLYFromFile() 164 } else if (vtype[p] == 'd') { in DMPlexCreatePLYFromFile() 167 } else if (vtype[p] == 'c') { in DMPlexCreatePLYFromFile()
|
| /petsc/src/mat/interface/ |
| H A D | matreg.c | 223 PetscErrorCode MatGetVecType(Mat mat, VecType *vtype) in MatGetVecType() argument 227 PetscAssertPointer(vtype, 2); in MatGetVecType() 228 *vtype = mat->defaultvectype; in MatGetVecType() 248 PetscErrorCode MatSetVecType(Mat mat, VecType vtype) in MatSetVecType() argument 253 PetscCall(PetscStrallocpy(vtype, &mat->defaultvectype)); in MatSetVecType()
|
| H A D | matproduct.c | 306 VecType vtype; in MatProductNumeric_X_Dense() local 308 PetscCall(MatGetVecType(A, &vtype)); in MatProductNumeric_X_Dense() 309 PetscCall(PetscStrcmp(vtype, VECCUDA, &iscuda)); in MatProductNumeric_X_Dense() 310 if (!iscuda) PetscCall(PetscStrcmp(vtype, VECSEQCUDA, &iscuda)); in MatProductNumeric_X_Dense() 311 if (!iscuda) PetscCall(PetscStrcmp(vtype, VECMPICUDA, &iscuda)); in MatProductNumeric_X_Dense()
|
| /petsc/src/ts/tutorials/network/ |
| H A D | pipes.c | 22 …PetscInt i, e, v, numEdges, numVertices, nedges, *eowners = NULL, estart, eend, *vtype = NULL, … in WashNetworkDistribute() local 52 vtype = wash->vtype; in WashNetworkDistribute() 58 …PetscCallMPI(MPI_Send(vtype + 2 * eowners[i], 2 * (eowners[i + 1] - eowners[i]), MPIU_INT, i, tag,… in WashNetworkDistribute() 62 PetscCall(PetscMalloc1(2 * (eend - estart), &vtype)); in WashNetworkDistribute() 66 PetscCallMPI(MPI_Recv(vtype, 2 * (eend - estart), MPIU_INT, 0, tag, comm, &status)); in WashNetworkDistribute() 94 wash->vtype = vtype; in WashNetworkDistribute() 414 PetscCall(PetscFree(wash->vtype)); in WashNetworkCleanUp() 424 PetscInt i, numVertices, numEdges, *vtype; in WashNetworkCreate() local 582 PetscCall(PetscMalloc1(2 * numEdges, &vtype)); in WashNetworkCreate() 585 vtype[i] = junctions[v].type; in WashNetworkCreate() [all …]
|
| H A D | wash.h | 61 PetscInt *vtype; member
|
| /petsc/src/mat/tests/ |
| H A D | ex69.c | 47 VecType vtype; in main() local 82 PetscCall(VecGetType(t, &vtype)); in main() 88 PetscCall(VecSetType(v, vtype)); in main() 123 PetscCall(MatShellSetVecType(S, vtype)); in main()
|
| /petsc/lib/petsc/bin/ |
| H A D | petsc_gen_xdmf.py | 93 vtype = f[1].attrs['vector_field_type'] 95 vtype = vtype.decode() 96 xtype = self.typeMap[vtype]
|
| /petsc/src/sys/classes/draw/interface/ |
| H A D | drawreg.c | 377 char vtype[256]; in PetscDrawSetFromOptions() local 402 …draw_type", "Type of graphical output", "PetscDrawSetType", PetscDrawList, def, vtype, 256, &flg)); in PetscDrawSetFromOptions() 404 PetscCall(PetscDrawSetType(draw, vtype)); in PetscDrawSetFromOptions()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex7.c | 336 const char *vtype; in ComputeFFT() local 340 PetscCall(VecGetType(x, &vtype)); in ComputeFFT() 341 PetscCall(VecSetType(xComp[i], vtype)); in ComputeFFT() 483 const char *vtype; in TestFreeField() local 487 PetscCall(VecGetType(etaHat, &vtype)); in TestFreeField() 488 PetscCall(VecSetType(etaComp[i], vtype)); in TestFreeField()
|
| H A D | ex28.c | 313 VecType vtype; in main() local 341 PetscCall(DMGetVecType(pack, &vtype)); in main() 342 PetscCall(DMSetVecType(dau, vtype)); in main() 343 PetscCall(DMSetVecType(dak, vtype)); in main()
|
| /petsc/src/ksp/ksp/utils/lmvm/ |
| H A D | lmvmimpl.c | 115 VecType vtype, Bvtype; in MatAllocate_LMVM() local 119 PetscCall(VecGetType(X, &vtype)); in MatAllocate_LMVM() 121 PetscCall(PetscStrcmp(vtype, Bvtype, &same)); in MatAllocate_LMVM() 126 PetscCall(MatSetVecType(B, vtype)); in MatAllocate_LMVM() 127 if (lmvm->created_J0) PetscCall(MatSetVecType(lmvm->J0, vtype)); in MatAllocate_LMVM()
|
| /petsc/src/ksp/ksp/interface/ |
| H A D | itcreate.c | 920 PetscErrorCode KSPMonitorMakeKey_Internal(const char name[], PetscViewerType vtype, PetscViewerForm… in KSPMonitorMakeKey_Internal() argument 925 PetscCall(PetscStrlcat(key, vtype, PETSC_MAX_PATH_LEN)); in KSPMonitorMakeKey_Internal() 965 PetscErrorCode KSPMonitorRegister(const char name[], PetscViewerType vtype, PetscViewerFormat forma… in KSPMonitorRegister() argument 971 PetscCall(KSPMonitorMakeKey_Internal(name, vtype, format, key)); in KSPMonitorRegister()
|
| H A D | itcl.c | 251 PetscViewerType vtype; in KSPMonitorSetFromOptions() local 262 PetscCall(PetscViewerGetType(viewer, &vtype)); in KSPMonitorSetFromOptions() 263 PetscCall(KSPMonitorMakeKey_Internal(name, vtype, format, key)); in KSPMonitorSetFromOptions()
|
| /petsc/src/mat/impls/normal/ |
| H A D | normmh.c | 294 VecType vtype; in MatCreateNormalHermitian() local 334 PetscCall(MatGetVecType(A, &vtype)); in MatCreateNormalHermitian() 335 PetscCall(MatSetVecType(*N, vtype)); in MatCreateNormalHermitian()
|
| H A D | normm.c | 408 VecType vtype; in MatCreateNormal() local 445 PetscCall(MatGetVecType(A, &vtype)); in MatCreateNormal() 446 PetscCall(MatSetVecType(*N, vtype)); in MatCreateNormal()
|
| /petsc/src/tao/bound/utils/ |
| H A D | isutil.c | 32 VecType vtype; in TaoVecGetSubVec() local 50 PetscCall(VecGetType(vfull, &vtype)); in TaoVecGetSubVec() 56 PetscCall(VecSetType(*vreduced, vtype)); in TaoVecGetSubVec()
|
| /petsc/src/sys/classes/viewer/interface/ |
| H A D | viewreg.c | 624 char vtype[256]; in PetscViewerSetFromOptions() local 632 …ject)viewer)->type_name ? ((PetscObject)viewer)->type_name : PETSCVIEWERASCII), vtype, 256, &flg)); in PetscViewerSetFromOptions() 633 if (flg) PetscCall(PetscViewerSetType(viewer, vtype)); in PetscViewerSetFromOptions()
|
| /petsc/src/ksp/pc/impls/mg/ |
| H A D | gdsw.c | 285 VecType vtype; in PCMGGDSWCreateCoarseSpace_Private() local 288 PetscCall(MatGetVecType(A, &vtype)); in PCMGGDSWCreateCoarseSpace_Private() 289 PetscCall(PetscStrstr(vtype, "cuda", &found)); in PCMGGDSWCreateCoarseSpace_Private()
|
| /petsc/src/snes/utils/dm/ |
| H A D | dmadapt.c | 104 static PetscErrorCode DMAdaptorMonitorMakeKey_Internal(const char name[], PetscViewerType vtype, Pe… in DMAdaptorMonitorMakeKey_Internal() argument 109 PetscCall(PetscStrlcat(key, vtype, PETSC_MAX_PATH_LEN)); in DMAdaptorMonitorMakeKey_Internal() 146 PetscErrorCode DMAdaptorMonitorRegister(const char name[], PetscViewerType vtype, PetscViewerFormat… in DMAdaptorMonitorRegister() argument 152 PetscCall(DMAdaptorMonitorMakeKey_Internal(name, vtype, format, key)); in DMAdaptorMonitorRegister() 417 PetscViewerType vtype; in DMAdaptorMonitorSetFromOptions() local 427 PetscCall(PetscViewerGetType(viewer, &vtype)); in DMAdaptorMonitorSetFromOptions() 428 PetscCall(DMAdaptorMonitorMakeKey_Internal(name, vtype, format, key)); in DMAdaptorMonitorSetFromOptions()
|
| /petsc/src/ksp/ksp/impls/hpddm/ |
| H A D | hpddm.cxx | 240 VecType vtype; in KSPSolve_HPDDM_Private() local 246 PetscCall(MatGetVecType(A, &vtype)); in KSPSolve_HPDDM_Private() 248 …r_list<std::string>::const_iterator it = std::find(list.begin(), list.end(), std::string(vtype)); in KSPSolve_HPDDM_Private() 249 …etscMemType as the right-hand side and solution, PetscMemType(%s) != %s", vtype, PetscMemTypeToStr… in KSPSolve_HPDDM_Private()
|