Lines Matching refs:as

102 …d `PetscReal` are simply aliases for basic Fortran types and cannot be written as `type(tPetscInt)`
134 - One must use type specific `PETSC_NULL` arguments, such as `PETSC_NULL_INTEGER`, {any}`sec_nullpt…
140 make sure you have them marked as double precision (e.g., pass in `10.d0`
141 instead of `10.0` or declare them as PETSc variables, e.g.
142 `PetscScalar one = 1.0`). Otherwise, the compiler interprets the input as a single
151 In the Fortran version, each PETSc routine has as its final argument an
174 Many PETSc functions take arrays as arguments; in Fortran they must be passed as arrays even if the…
176 a single value one can use the Fortran [] notation to pass the scalar as an array, for example
213 When a PETSc function returns multiple arrays, such as `DMDAGetOwnershipRanges()` and the user does…
214 certain arrays they must pass `PETSC_NULL_XXX_POINTER` as the argument. For example,
222 Arguments that are fully defined Fortran derived types (C structs), such as `MatFactorInfo` or `Pet…
223 cannot be passed as null from Fortran. A properly defined variable must be passed in for those argu…
297 convention and generally begin with 1 except for special routines such as `DMDAVecGetArray()` which…
304 Some PETSc functions take as arguments user-functions and contexts for the function. For example
323 and `ctx` can be almost anything (represented as `void *` in C).
325 In Fortran, it has to be a derived type as in
378 …gument, for example, `SNESGetApplicationContext()`. In C, they are handled as a `void *` pointer s…
379 such as
386 In Fortran, they must be declared as a pointer with, for example,
406 When a function pointer (declared as external in Fortran) is passed as an argument to a PETSc funct…
408 function references a routine written in the same language as the PETSc
413 If you are using Fortran classes that have bound functions (methods) as in
415 to function pointer setting routines, such as `SNESSetFunction()`. Instead, one must use `SNESSetFu…
497 for example, as follows: