| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscdmswarm.pxi | 26 PetscErrorCode DMSwarmCreateGlobalVectorFromField(PetscDM, const char[], PetscVec*) 27 PetscErrorCode DMSwarmDestroyGlobalVectorFromField(PetscDM, const char[], PetscVec*) 28 PetscErrorCode DMSwarmCreateLocalVectorFromField(PetscDM, const char[], PetscVec*) 29 PetscErrorCode DMSwarmDestroyLocalVectorFromField(PetscDM, const char[], PetscVec*) 30 … PetscErrorCode DMSwarmCreateGlobalVectorFromFields(PetscDM, PetscInt, const char *[], PetscVec *) 31 … PetscErrorCode DMSwarmDestroyGlobalVectorFromFields(PetscDM, PetscInt, const char *[], PetscVec *) 32 PetscErrorCode DMSwarmCreateLocalVectorFromFields(PetscDM, PetscInt, const char *[], PetscVec *) 33 … PetscErrorCode DMSwarmDestroyLocalVectorFromFields(PetscDM, PetscInt, const char *[], PetscVec *) 38 PetscErrorCode DMSwarmRegisterPetscDatatypeField(PetscDM, const char[], PetscInt, PetscDataType) 39 # PetscErrorCode DMSwarmRegisterUserStructField(PetscDM, const char[], size_t) [all …]
|
| H A D | petscsf.pxi | 5 ctypedef const char* PetscSFType 27 …PetscErrorCode PetscSFGetGraph(PetscSF, PetscInt*, PetscInt*, const PetscInt**, const PetscSFNode*… 28 …PetscErrorCode PetscSFSetGraph(PetscSF, PetscInt, PetscInt, const PetscInt*, PetscCopyMode, PetscS… 31 PetscErrorCode PetscSFComputeDegreeBegin(PetscSF, const PetscInt**) 32 PetscErrorCode PetscSFComputeDegreeEnd(PetscSF, const PetscInt**) 36 PetscErrorCode PetscSFCreateEmbeddedRootSF(PetscSF, PetscInt, const PetscInt*, PetscSF*) 37 PetscErrorCode PetscSFCreateEmbeddedLeafSF(PetscSF, PetscInt, const PetscInt*, PetscSF*) 44 PetscErrorCode PetscSFBcastBegin(PetscSF, MPI_Datatype, const void*, void*, MPI_Op) 45 PetscErrorCode PetscSFBcastEnd(PetscSF, MPI_Datatype, const void*, void*, MPI_Op) 46 PetscErrorCode PetscSFReduceBegin(PetscSF, MPI_Datatype, const void*, void*, MPI_Op) [all …]
|
| H A D | petscdt.pxi | 9 …PetscErrorCode PetscFECreateDefault(MPI_Comm, PetscInt, PetscInt, PetscBool, const char [], PetscI… 16 …atureGetData(PetscQuadrature, PetscInt*, PetscInt*, PetscInt*, const PetscReal *[], const PetscRea… 17 …uadratureSetData(PetscQuadrature, PetscInt, PetscInt, PetscInt, const PetscReal [], const PetscRea… 22 …rCode PetscQuadratureExpandComposite(PetscQuadrature, PetscInt, const PetscReal[], const PetscReal… 24 …PetscErrorCode PetscDTLegendreEval(PetscInt, const PetscReal*, PetscInt, const PetscInt*, PetscRea… 27 …PetscErrorCode PetscDTReconstructPoly(PetscInt, PetscInt, const PetscReal*, PetscInt, const PetscR… 35 …PetscErrorCode PetscGaussLobattoLegendreIntegrate(PetscInt, PetscReal *, PetscReal *, const PetscR…
|
| H A D | petscdmplex.pxi | 5 ctypedef const char* PetscDMPlexTransformType "DMPlexTransformType" 18 PetscErrorCode DMPlexCreateCohesiveSubmesh(PetscDM, PetscBool, const char[], PetscInt, PetscDM*) 25 PetscErrorCode DMPlexGetCone(PetscDM, PetscInt, const PetscInt*[]) 26 PetscErrorCode DMPlexSetCone(PetscDM, PetscInt, const PetscInt[]) 29 PetscErrorCode DMPlexGetConeOrientation(PetscDM, PetscInt, const PetscInt*[]) 30 PetscErrorCode DMPlexSetConeOrientation(PetscDM, PetscInt, const PetscInt[]) 36 PetscErrorCode DMPlexGetSupport(PetscDM, PetscInt, const PetscInt*[]) 37 PetscErrorCode DMPlexSetSupport(PetscDM, PetscInt, const PetscInt[]) 60 PetscErrorCode DMPlexGetMeet(PetscDM, PetscInt, const PetscInt[], PetscInt*, const PetscInt**) 61 … PetscErrorCode DMPlexRestoreMeet(PetscDM, PetscInt, const PetscInt[], PetscInt*, const PetscInt**) [all …]
|
| H A D | petscao.pxi | 3 ctypedef const char* PetscAOType "AOType" 11 PetscErrorCode AOCreateBasic(MPI_Comm, PetscInt, const PetscInt[], const PetscInt[], PetscAO*) 13 …PetscErrorCode AOCreateMemoryScalable(MPI_Comm, PetscInt, const PetscInt[], const PetscInt[], Pets… 15 PetscErrorCode AOCreateMapping(MPI_Comm, PetscInt, const PetscInt[], const PetscInt[], PetscAO*)
|
| H A D | petscopt.pxi | 38 PetscErrorCode PetscTokenFind(PetscToken, const char*[]) 62 cdef opt2str(const char *pre, const char *name): 67 cdef getopt_Bool(PetscOptions opt, const char *pre, const char *name, object deft): 75 cdef getopt_BoolArray(PetscOptions opt, const char *pre, const char *name, object deft): 91 cdef getopt_Int(PetscOptions opt, const char *pre, const char *name, object deft): 99 cdef getopt_IntArray(PetscOptions opt, const char *pre, const char *name, object deft): 114 cdef getopt_Real(PetscOptions opt, const char *pre, const char *name, object deft): 122 cdef getopt_RealArray(PetscOptions opt, const char *pre, const char *name, object deft): 137 cdef getopt_Scalar(PetscOptions opt, const char *pre, const char *name, object deft): 145 cdef getopt_ScalarArray(PetscOptions opt, const char *pre, const char *name, object deft): [all …]
|
| H A D | petscdm.pxi | 5 ctypedef const char* PetscDMType "DMType" 105 PetscErrorCode DMGetNamedLocalVector(PetscDM, const char[], PetscVec*) 106 PetscErrorCode DMRestoreNamedLocalVector(PetscDM, const char[], PetscVec*) 107 PetscErrorCode DMGetNamedGlobalVector(PetscDM, const char[], PetscVec*) 108 PetscErrorCode DMRestoreNamedGlobalVector(PetscDM, const char[], PetscVec*) 132 …PetscErrorCode DMGetPeriodicity(PetscDM, const PetscReal *[], const PetscReal *[], const PetscReal… 133 … PetscErrorCode DMSetPeriodicity(PetscDM, const PetscReal[], const PetscReal[], const PetscReal[]) 174 PetscErrorCode DMCreateSubDM(PetscDM, PetscInt, const PetscInt[], PetscIS*, PetscDM*) 178 PetscErrorCode DMCreateLabel(PetscDM, const char[]) 179 PetscErrorCode DMGetLabelValue(PetscDM, const char[], PetscInt, PetscInt*) [all …]
|
| H A D | petscsec.pxi | 15 PetscErrorCode PetscSectionGetFieldName(PetscSection, PetscInt, const char*[]) 16 PetscErrorCode PetscSectionSetFieldName(PetscSection, PetscInt, const char[]) 35 PetscErrorCode PetscSectionGetConstraintIndices(PetscSection, PetscInt, const PetscInt**) 36 PetscErrorCode PetscSectionSetConstraintIndices(PetscSection, PetscInt, const PetscInt*) 37 …PetscErrorCode PetscSectionGetFieldConstraintIndices(PetscSection, PetscInt, PetscInt, const Petsc… 38 …PetscErrorCode PetscSectionSetFieldConstraintIndices(PetscSection, PetscInt, PetscInt, const Petsc…
|
| H A D | petscis.pxi | 3 ctypedef const char* PetscISType "ISType" 30 PetscErrorCode ISGetIndices(PetscIS, const PetscInt*[]) 31 PetscErrorCode ISRestoreIndices(PetscIS, const PetscInt*[]) 53 PetscErrorCode ISBlockGetIndices(PetscIS, const PetscInt*[]) 54 PetscErrorCode ISBlockRestoreIndices(PetscIS, const PetscInt*[]) 65 ctypedef const char* PetscISLocalToGlobalMappingType "ISLocalToGlobalMappingType" 83 PetscErrorCode ISLocalToGlobalMappingGetIndices(PetscLGMap, const PetscInt*[]) 84 PetscErrorCode ISLocalToGlobalMappingRestoreIndices(PetscLGMap, const PetscInt*[]) 85 PetscErrorCode ISLocalToGlobalMappingGetBlockIndices(PetscLGMap, const PetscInt*[]) 86 PetscErrorCode ISLocalToGlobalMappingRestoreBlockIndices(PetscLGMap, const PetscInt*[]) [all …]
|
| H A D | petscfe.pxi | 5 ctypedef const char* PetscFEType 11 …PetscErrorCode PetscFECreateDefault(MPI_Comm, PetscInt, PetscInt, PetscBool, const char [], PetscI… 12 …PetscErrorCode PetscFECreateByCell(MPI_Comm, PetscInt, PetscInt, PetscDMPolytopeType, const char [… 25 PetscErrorCode PetscFEGetNumDof(PetscFE, const PetscInt**)
|
| H A D | petscdmstag.pxi | 40 …daryType, PetscInt, PetscInt, PetscInt, PetscDMStagStencilType, PetscInt, const PetscInt[], PetscD… 41 … PetscInt, PetscInt, PetscInt, PetscDMStagStencilType, PetscInt, const PetscInt[], const PetscInt[… 42 …, PetscInt, PetscInt, PetscDMStagStencilType, PetscInt, const PetscInt[], const PetscInt[], const … 55 …PetscErrorCode DMStagGetOwnershipRanges(PetscDM, const PetscInt*[], const PetscInt*[], const Petsc… 63 …PetscErrorCode DMStagSetOwnershipRanges(PetscDM, const PetscInt[], const PetscInt[], const PetscIn… 221 const PetscInt *lx, 222 const PetscInt *ly, 223 const PetscInt *lz):
|
| H A D | petscpc.pxi | 3 ctypedef const char* PetscPCType "PCType" 82 ctypedef const char* PetscPCGAMGType "PCGAMGType" 87 ctypedef const char* PetscPCHYPREType "const char*" 287 …PetscErrorCode PCBDDCSetLocalAdjacencyGraph(PetscPC, PetscInt, const PetscInt*, const PetscInt*, P… 296 const PetscInt*, 297 const PetscInt*, 305 const PetscInt*, 306 const PetscInt*, 315 …cInt, PetscDM*, PetscInt*, PetscInt*, const PetscInt**, const PetscInt*, PetscInt, const PetscInt*… 380 const PetscInt *dofmap, [all …]
|
| H A D | petscvec.pxi | 5 ctypedef const char* PetscVecType "VecType" 63 PetscErrorCode VecGetOwnershipRanges(PetscVec, const PetscInt*[]) 73 PetscErrorCode VecGetArrayRead(PetscVec, const PetscScalar*[]) 74 PetscErrorCode VecRestoreArrayRead(PetscVec, const PetscScalar*[]) 81 PetscErrorCode VecGetArrayReadAndMemType(PetscVec, const PetscScalar*[], PetscMemType*) 82 PetscErrorCode VecRestoreArrayReadAndMemType(PetscVec, const PetscScalar*[]) 99 …PetscErrorCode VecSetValues(PetscVec, PetscInt, const PetscInt[], const PetscScalar[], PetscInsert… 100 …PetscErrorCode VecSetValuesBlocked(PetscVec, PetscInt, const PetscInt[], const PetscScalar[], Pets… 105 …PetscErrorCode VecSetValuesLocal(PetscVec, PetscInt, const PetscInt[], const PetscScalar[], PetscI… 106 …PetscErrorCode VecSetValuesBlockedLocal(PetscVec, PetscInt, const PetscInt[], const PetscScalar[],… [all …]
|
| H A D | petscmat.pxi | 3 ctypedef const char* PetscMatType "MatType" 95 ctypedef const char* PetscMatOrderingType "MatOrderingType" 107 ctypedef const char* PetscMatSolverType "MatSolverType" 230 …PetscErrorCode MatCreateH2OpusFromMat(PetscMat, PetscInt, const PetscReal[], PetscBool, PetscReal,… 278 PetscErrorCode MatGetOwnershipRanges(PetscMat, const PetscInt*[]) 280 PetscErrorCode MatGetOwnershipRangesColumn(PetscMat, const PetscInt*[]) 308 …PetscErrorCode MatSetValues(PetscMat, PetscInt, const PetscInt[], PetscInt, const PetscInt[], cons… 309 …cErrorCode MatSetValuesBlocked(PetscMat, PetscInt, const PetscInt[], PetscInt, const PetscInt[], c… 310 PetscErrorCode MatSetValuesCOO(PetscMat, const PetscScalar[], PetscInsertMode) 315 …tscErrorCode MatSetValuesLocal(PetscMat, PetscInt, const PetscInt[], PetscInt, const PetscInt[], c… [all …]
|
| H A D | PETSc.pyx | 31 cdef inline object bytes2str(const char p[]): 40 cdef inline object str2bytes(object s, const char *p[]): 46 p[0] = <const char*>(<char*>s) 49 cdef inline object S_(const char p[]): 102 PetscErrorCode PetscSNPrintf(char[], size_t, const char[], ...) 103 … PetscErrorCode PetscERROR(MPI_Comm, const char[], PetscErrorCode, int, const char[], const char[]) 130 const PetscBool PETSC_TRUE 131 const PetscBool PETSC_FALSE 291 const char *cfunc, 292 const char *cfile, [all …]
|
| H A D | dlpack.pxi | 5 bint PyCapsule_IsValid(object, const char*) 6 void* PyCapsule_GetPointer(object, const char*) except? NULL 7 int PyCapsule_SetName(object, const char*) except -1 8 object PyCapsule_New(void*, const char*, PyCapsule_Destructor)
|
| H A D | petscdmda.pxi | 52 const PetscInt*[], 53 const PetscInt*[], 54 const PetscInt*[]) 78 PetscErrorCode DMDAGetElements(PetscDM, PetscInt*, PetscInt*, const PetscInt**) 79 PetscErrorCode DMDARestoreElements(PetscDM, PetscInt*, PetscInt*, const PetscInt**) 81 PetscErrorCode DMDASetFieldName(PetscDM, PetscInt, const char[]) 82 PetscErrorCode DMDAGetFieldName(PetscDM, PetscInt, const char*[]) 83 PetscErrorCode DMDASetCoordinateName(PetscDM, PetscInt, const char[]) 84 PetscErrorCode DMDAGetCoordinateName(PetscDM, PetscInt, const char*[]) 185 const PetscInt *lx, [all …]
|
| H A D | petscsys.pxi | 10 const char PETSC_AUTHOR_INFO[] 43 PetscErrorCode PetscVSNPrintf(char*, size_t, const char[], size_t *, va_list) 44 PetscErrorCode PetscVFPrintfDefault(FILE*, const char[], va_list) 52 PetscErrorCode PetscCitationsRegister(const char[], PetscBool*) 54 PetscErrorCode PetscHasExternalPackage(const char[], PetscBool*)
|
| H A D | DMSwarm.pyx | 83 cdef const char *cfieldname = NULL 104 cdef const char *cfieldname = NULL 127 cdef const char *cval = NULL 129 cdef const char **cfieldnames = NULL 154 cdef const char *cval = NULL 156 cdef const char **cfieldnames = NULL 183 cdef const char *cfieldname = NULL 204 cdef const char *cfieldname = NULL 227 cdef const char *cval = NULL 229 cdef const char **cfieldnames = NULL [all …]
|
| H A D | petscmpi.pxi | 5 const MPI_Comm MPI_COMM_NULL 6 const MPI_Comm MPI_COMM_SELF 7 const MPI_Comm MPI_COMM_WORLD 9 const MPI_Datatype MPI_DATATYPE_NULL 10 const MPI_Op MPI_OP_NULL
|
| /petsc/doc/changes/ |
| H A D | 37.md | 23 PetscOptionsHasName(PetscOptions,const char[],const char[],PetscBool *); 24 PetscOptionsGetInt(PetscOptions,const char[],const char [],PetscInt *,PetscBool *); 25 PetscOptionsGetBool(PetscOptions,const char[],const char [],PetscBool *,PetscBool *); 26 PetscOptionsGetReal(PetscOptions,const char[],const char[],PetscReal *,PetscBool *); 27 PetscOptionsGetScalar(PetscOptions,const char[],const char[],PetscScalar *,PetscBool *); 28 PetscOptionsGetIntArray(PetscOptions,const char[],const char[],PetscInt[],PetscInt *,PetscBool *); 29 …PetscOptionsGetRealArray(PetscOptions,const char[],const char[],PetscReal[],PetscInt *,PetscBool *… 30 …PetscOptionsGetScalarArray(PetscOptions,const char[],const char[],PetscScalar[],PetscInt *,PetscBo… 31 …PetscOptionsGetBoolArray(PetscOptions,const char[],const char[],PetscBool [],PetscInt *,PetscBool … 32 PetscOptionsGetString(PetscOptions,const char[],const char[],char[],size_t,PetscBool *); [all …]
|
| /petsc/doc/manual/ |
| H A D | fe.md | 59 static PetscErrorCode trig_inhomogeneous_u(PetscInt dim, PetscReal time, const PetscReal x[], Petsc… 68 …const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const PetscScalar u_t[], co… 69 …const PetscInt aOff[], const PetscInt aOff_x[], const PetscScalar a[], const PetscScalar a_t[], co… 70 …PetscReal t, const PetscReal x[], PetscInt numConstants, const PetscScalar constants[], PetscScala… 77 …const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const PetscScalar u_t[], co… 78 …const PetscInt aOff[], const PetscInt aOff_x[], const PetscScalar a[], const PetscScalar a_t[], co… 79 …PetscReal t, const PetscReal x[], PetscInt numConstants, const PetscScalar constants[], PetscScala… 86 …const PetscInt uOff[], const PetscInt uOff_x[], const PetscScalar u[], const PetscScalar u_t[], co… 87 …const PetscInt aOff[], const PetscInt aOff_x[], const PetscScalar a[], const PetscScalar a_t[], co… 88 …PetscReal t, PetscReal u_tShift, const PetscReal x[], PetscInt numConstants, const PetscScalar con…
|
| /petsc/src/snes/tutorials/ |
| H A D | build.zig | 3 const std = @import("std"); 10 const target = b.standardTargetOptions(.{}); 14 const mode = b.standardReleaseOptions(); 16 const exe = b.addExecutable("ex1z", "ex1z.zig"); 18 const PETSC_DIR = std.os.getenv("PETSC_DIR") orelse unreachable; 19 const PETSC_ARCH = std.os.getenv("PETSC_ARCH") orelse unreachable; 20 … var path = std.fs.path.join(std.heap.c_allocator, &[_][] const u8 { PETSC_DIR,PETSC_ARCH,"lib"}); 24 path = std.fs.path.join(std.heap.c_allocator, &[_][] const u8 { PETSC_DIR,"include"}); 26 … path = std.fs.path.join(std.heap.c_allocator, &[_][] const u8 { PETSC_DIR,PETSC_ARCH,"include"}); 34 const run_cmd = exe.run(); [all …]
|
| H A D | ex1z.zig | 1 const std = @import("std"); 2 const p = @cImport({@cInclude("petsc.h");});
|
| /petsc/lib/petsc/bin/ |
| H A D | getAPI.py | 92 …def __init__(self, name = None, typename = None, stars = 0, array = False, const = False, *args, *… argument 98 self.const = const 582 if i.count("const "): arg.const = True 618 …if fun.arguments and not fun.arguments[-1].const and fun.arguments[-1].typename == 'char' and arg.… 722 … Argument('prefix', 'char', stars = 0, array = True, const = True), 723 … Argument('mess', 'char', stars = 0, array = True, const = True), 724 … Argument('sec', 'char', stars = 0, array = True, const = True)] 738 …ool'].arguments = [Argument('opt', 'char', stars = 0, array = True, const = True), 739 … Argument('text', 'char', stars = 0, array = True, const = True), 740 … Argument('man', 'char', stars = 0, array = True, const = True), [all …]
|