Home
last modified time | relevance | path

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

/petsc/src/mat/tests/
H A Dex222.c9 char expltype[128], *etype = NULL; in main() local
17 if (flg) PetscCall(PetscStrallocpy(expltype, &etype)); in main()
29 PetscCall(PetscStrcmp(etype, MATSBAIJ, &sbaij)); in main()
49 PetscCall(MatComputeOperator(A, etype, &Ae)); in main()
59 PetscCall(MatConvert(A, etype, MAT_INITIAL_MATRIX, &A2)); in main()
62 …cCall(PetscPrintf(PETSC_COMM_WORLD, "Error %g > %g (type %s)\n", (double)err, (double)tol, etype)); in main()
66 PetscCall(MatComputeOperatorTranspose(A, etype, &Aet)); in main()
70 PetscCall(PetscFree(etype)); in main()
/petsc/src/dm/impls/da/
H A Ddagetelem.c300 PetscErrorCode DMDASetElementType(DM da, DMDAElementType etype) in DMDASetElementType() argument
307 PetscValidLogicalCollectiveEnum(da, etype, 2); in DMDASetElementType()
310 if (dd->elementtype != etype) { in DMDASetElementType()
314 dd->elementtype = etype; in DMDASetElementType()
338 PetscErrorCode DMDAGetElementType(DM da, DMDAElementType *etype) in DMDAGetElementType() argument
345 PetscAssertPointer(etype, 2); in DMDAGetElementType()
348 *etype = dd->elementtype; in DMDAGetElementType()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscdmda.pxi108 cdef inline PetscDMDAElementType daelementtype(object etype) \ argument
110 if (isinstance(etype, str)):
111 if etype in ("p1", "P1"): return DMDA_ELEMENT_P1
112 if etype in ("q1", "Q1"): return DMDA_ELEMENT_Q1
113 else: raise ValueError("unknown element type: %s" % etype)
114 return etype
H A DDMDA.pyx1085 cdef PetscDMDAElementType etype
1091 etype = daelementtype(elem_type)
1092 CHKERR(DMDASetElementType(self.dm, etype))
/petsc/src/dm/impls/swarm/
H A Dswarmpic_da.c202 DMDAElementType etype; in private_DMSwarmInsertPointsUsingCellDM_DA() local
206 PetscCall(DMDAGetElementType(celldm, &etype)); in private_DMSwarmInsertPointsUsingCellDM_DA()
208 switch (etype) { in private_DMSwarmInsertPointsUsingCellDM_DA()
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/util/
H A D_utility.py36 etype, value, tb = sys.exc_info()
37 ret = traceback.format_exception(etype, value, tb, chain=True)
/petsc/src/sys/objects/device/interface/
H A Dmark_dcontext.cxx113 const auto etype = event->dtype; in PetscDeviceContextWaitForEvent_Private() local
117 …etscCheck(etype == dtype, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Event type %s does not match dev… in PetscDeviceContextWaitForEvent_Private()
/petsc/src/dm/impls/moab/
H A Ddmmoab.cxx809 moab::EntityType etype; in DMMoabIsEntityOnBoundary() local
819 etype = dmmoab->mbiface->type_from_handle(ent); in DMMoabIsEntityOnBoundary()
820etype < moab::MBPOLYHEDRON, PETSC_COMM_WORLD, PETSC_ERR_ARG_OUTOFRANGE, "Entity type on the bounda… in DMMoabIsEntityOnBoundary()
826 if (etype == moab::MBVERTEX && edim == 0) { in DMMoabIsEntityOnBoundary()
/petsc/include/petsc/mpiuni/
H A Dmpi.h587 … MPI_File_set_view(mpi_fh, disp, etype, filetype, datarep, info) (MPIUNI_ARG(mpi_fh), MPIUNI_ARG(d… argument
/petsc/src/ksp/ksp/utils/dm/
H A Ddmproject.c616 DMDAElementType etype; in DMSwarmProjectFields_DA_Internal() local
619 PetscCall(DMDAGetElementType(celldm, &etype)); in DMSwarmProjectFields_DA_Internal()
620 …PetscCheck(etype != DMDA_ELEMENT_P1, PetscObjectComm((PetscObject)swarm), PETSC_ERR_SUP, "Only Q1 … in DMSwarmProjectFields_DA_Internal()
/petsc/src/dm/impls/plex/
H A Dplexsubmesh.c4552 PetscErrorCode DMGetEnclosurePoint(DM dmA, DM dmB, DMEnclosureType etype, PetscInt pB, PetscInt *pA) in DMGetEnclosurePoint() argument
4561 switch (etype) { in DMGetEnclosurePoint()
4593 …scObjectComm((PetscObject)dmA), PETSC_ERR_ARG_OUTOFRANGE, "Invalid enclosure type %d", (int)etype); in DMGetEnclosurePoint()