Lines Matching refs:example
12 You must declare MPI objects using `MPIU_XXX` (for example `MPIU_Comm`, which the PETSc include fil…
13 …andle `MPIU_Status` declarations and access to entries using the Fortran preprocessor. For example,
71 The include files are nested, that is, for example, `petsc/finclude/petscmat.h` automatically inclu…
92 For example,
111 To make a variable no longer point to its previously assigned PETSc object use, for example,
135 - One must pass pointers to arrays for arguments that output an array, for example `PetscScalar, po…
137 - `PETSC_DECIDE` and friends need to match the argument type, for example `PETSC_DECIDE_INTEGER`.
154 example, the Fortran and C variants of `KSPSolve()` are given,
176 a single value one can use the Fortran [] notation to pass the scalar as an array, for example
183 for arrays used to receive data from a PETSc routine. For example,
196 argument (for example, the fifth argument of `MatCreateSeqAIJ()`).
199 `SCALAR`, `VEC`, `MAT`, etc depending on the argument type). For example, when no options prefix is…
207 Where the code expects an array, then use `PETSC_NULL_XXX_ARRAY`. For example:
214 certain arrays they must pass `PETSC_NULL_XXX_POINTER` as the argument. For example,
254 …in a pointer to an array and the PETSc routine returns an array containing the values. For example,
271 result. For example,
281 …an pass a string long enough to hold the result, but not the separate length argument. For example,
291 regardless of whether C or Fortran is being used. For example,
296 Indexing into Fortran arrays, for example obtained with `VecGetArray()`, uses the Fortran
304 Some PETSc functions take as arguments user-functions and contexts for the function. For example
378 Certain PETSc functions return a context in an argument, for example, `SNESGetApplicationContext()`…
386 In Fortran, they must be declared as a pointer with, for example,
394 …ters to unknown types. PETSc provides macros to provide this information easily using, for example,
401 …these lines into the Fortran source code where one inserts interface definitions, see, for example,
488 to the end of each Fortran routine name; for example, the Fortran
497 for example, as follows: