Home
last modified time | relevance | path

Searched refs:typeName (Results 1 – 11 of 11) sorted by relevance

/petsc/config/BuildSystem/config/
H A Dtypes.py26 def check(self, typeName, defaultType = None, includes = []): argument
28 self.log.write('Checking for type: '+typeName+'\n')
35 found = self.checkCompile(include,typeName+' a;\n(void)a')
37 self.addTypedef(defaultType, typeName)
39 self.log.write(typeName+' found\n')
99 …def checkSizeof(self, typeName, typeSizes, otherInclude = None, lang='C', save=True, codeBegin=''): argument
101 self.log.write('Checking for size of type: ' + typeName + '\n')
102 typename = typeName.replace(' ', '-').replace('*', 'p')
117 checkName = typeName
118 if typeName == 'enum':
[all …]
/petsc/src/snes/tutorials/
H A Dex47cu.cu26 char *tmp, typeName[256]; in main() local
31 PetscCall(PetscOptionsGetString(NULL, NULL, "-dm_vec_type", typeName, sizeof(typeName), &flg)); in main()
33 PetscCall(PetscStrstr(typeName, "cuda", &tmp)); in main()
/petsc/src/sys/classes/random/interface/
H A Drandomc.c120 char typeName[256]; in PetscRandomSetTypeFromOptions_Private() local
130 …pe", "PetscRandom type", "PetscRandomSetType", PetscRandomList, defaultType, typeName, 256, &opt)); in PetscRandomSetTypeFromOptions_Private()
132 PetscCall(PetscRandomSetType(rnd, typeName)); in PetscRandomSetTypeFromOptions_Private()
/petsc/src/dm/label/tutorials/
H A Dex1.c10 const char *labelName, *typeName; in ViewLabels() local
22 PetscCall(DMLabelGetType(label, &typeName)); in ViewLabels()
23 …ViewerASCIIPrintf(viewer, "Label %" PetscInt_FMT ": name: %s type: %s\n", l, labelName, typeName)); in ViewLabels()
/petsc/src/ts/trajectory/interface/
H A Dtraj.c617 char typeName[256]; in TSTrajectorySetTypeFromOptions_Private() local
624 …"TSTrajectory method", "TSTrajectorySetType", TSTrajectoryList, defaultType, typeName, 256, &opt)); in TSTrajectorySetTypeFromOptions_Private()
626 PetscCall(TSTrajectorySetType(tj, ts, typeName)); in TSTrajectorySetTypeFromOptions_Private()
/petsc/src/dm/impls/plex/transform/interface/
H A Dplextransform.c335 char typeName[1024], active[PETSC_MAX_PATH_LEN]; in DMPlexTransformSetFromOptions() local
342 … "DMPlexTransform", "DMPlexTransformSetType", DMPlexTransformList, defName, typeName, 1024, &flg)); in DMPlexTransformSetFromOptions()
343 if (flg) PetscCall(DMPlexTransformSetType(tr, typeName)); in DMPlexTransformSetFromOptions()
1682 const char *typeName; in DMPlexTransformCreateCellVertices_Internal() local
1689 PetscCall(DMPlexTransformGetType(tr, &typeName)); in DMPlexTransformCreateCellVertices_Internal()
1690 PetscCall(DMPlexTransformSetType(reftr, typeName)); in DMPlexTransformCreateCellVertices_Internal()
/petsc/src/vec/vec/interface/
H A Dvector.c1398 char typeName[256]; in VecSetTypeFromOptions_Private() local
1410 …OptionsFList("-vec_type", "Vector type", "VecSetType", VecList, defaultType, typeName, 256, &opt)); in VecSetTypeFromOptions_Private()
1412 PetscCall(VecSetType(vec, typeName)); in VecSetTypeFromOptions_Private()
/petsc/src/snes/utils/dm/
H A Ddmadapt.c492 char typeName[PETSC_MAX_PATH_LEN]; in DMAdaptorSetFromOptions() local
500 …t("-adaptor_type", "DMAdaptor", "DMAdaptorSetType", DMAdaptorList, defName, typeName, 1024, &flg)); in DMAdaptorSetFromOptions()
501 if (flg) PetscCall(DMAdaptorSetType(adaptor, typeName)); in DMAdaptorSetFromOptions()
/petsc/src/dm/interface/
H A Ddm.c888 char typeName[256]; in DMSetFromOptions() local
899 …Vector type used for created vectors", "DMSetVecType", VecList, dm->vectype, typeName, 256, &flg)); in DMSetFromOptions()
900 if (flg) PetscCall(DMSetVecType(dm, typeName)); in DMSetFromOptions()
901 …ces", "DMSetMatType", MatList, dm->mattype ? dm->mattype : typeName, typeName, sizeof(typeName), &… in DMSetFromOptions()
902 if (flg) PetscCall(DMSetMatType(dm, typeName)); in DMSetFromOptions()
/petsc/src/ts/tutorials/
H A Dex30.c1613 char typeName[256]; in CreateMesh() local
1618 …pe used for created matrices", "DMSetMatType", MatList, MATAIJ, typeName, sizeof(typeName), &flg)); in CreateMesh()
1619 if (flg) PetscCall(DMSetMatType(*dm, typeName)); in CreateMesh()
/petsc/src/ts/interface/
H A Dts.c99 char typeName[256]; in TSSetFromOptions() local
110 …PetscCall(PetscOptionsFList("-ts_type", "TS method", "TSSetType", TSList, defaultType, typeName, 2… in TSSetFromOptions()
111 if (opt) PetscCall(TSSetType(ts, typeName)); in TSSetFromOptions()