PetscOptions (Options Database) - Low-level Interface

The options database holds the -ksp_type gmres-style settings PETSc objects read in their SetFromOptions calls. The high-level PETSc.PetscOptions type (see Utilities) covers the common cases; the functions here give full control.

A PetscOptions handle with a NULL pointer denotes the global options database.

Basic Usage

using PETSc, MPI
MPI.Init()
petsclib = PETSc.getlib()
PETSc.initialize(petsclib)

opts = LibPETSc.PetscOptions{typeof(petsclib)}()    # NULL handle: the global database

LibPETSc.PetscOptionsSetValue(petsclib, opts, "-ksp_type", "gmres")
LibPETSc.PetscOptionsSetValue(petsclib, opts, "-ksp_max_it", "50")

maxit, set = LibPETSc.PetscOptionsGetInt(petsclib, opts, "", "-ksp_max_it")   # (50, PETSC_TRUE)
has = LibPETSc.PetscOptionsHasName(petsclib, opts, "", "-ksp_type")           # PETSC_TRUE

LibPETSc.PetscOptionsClearValue(petsclib, opts, "-ksp_max_it")
PETSc.finalize(petsclib)

pre is an optional prefix ("mg_levels_"), "" for none. The PetscOptionsGet* functions return the value and a PetscBool telling whether the option was set.

Function Reference

PetscOptions

PETSc.LibPETSc.PetscOptionsAllUsed — Method
N::PetscInt = PetscOptionsAllUsed(petsclib::PetscLibType, options::AbstractPetscOptions)

Returns a count of the number of options in the database that have never been selected.

Not Collective

Input Parameter:

  • options - options database, use NULL for default global database

Output Parameter:

  • N - count of options not used

Level: advanced

See also: PetscOptionsView()

External Links

source
PETSc.LibPETSc.PetscOptionsClear — Method
PetscOptionsClear(petsclib::PetscLibType, options::AbstractPetscOptions)

Removes all options form the database leaving it empty.

Logically Collective

Input Parameter:

  • options - options database, use NULL for the default global database

Level: developer

See also: PetscOptionsInsert()

External Links

source
PETSc.LibPETSc.PetscOptionsClearValue — Method
PetscOptionsClearValue(petsclib::PetscLibType, options::AbstractPetscOptions, name::String)

Clears an option name-value pair in the options database, overriding whatever is already present.

Logically Collective

Input Parameters:

  • options - options database, use NULL for the default global database
  • name - name of option, this SHOULD have the - prepended

Level: intermediate

See also: PetscOptionsInsert()

External Links

source
PETSc.LibPETSc.PetscOptionsCreate — Method
options::PetscOptions = PetscOptionsCreate(petsclib::PetscLibType)

Creates an empty options database.

Logically Collective

Output Parameter:

  • options - Options database object

Level: advanced

See also: PetscOptionsDestroy(), PetscOptionsPush(), PetscOptionsPop(), PetscOptionsInsert(), PetscOptionsSetValue()

External Links

source
PETSc.LibPETSc.PetscOptionsCreateViewer — Method
viewer::PetscViewer,format::PetscViewerFormat,set::PetscBool = PetscOptionsCreateViewer(petsclib::PetscLibType, comm::MPI_Comm, options::Union{Ptr, AbstractPetscOptions}, pre::String, name::String)

Creates a viewer appropriate for the type indicated by the user

Collective

Input Parameters:

  • comm - the communicator to own the viewer
  • options - options database, use NULL for default global database
  • pre - the string to prepend to the name or NULL
  • name - the options database name that will be checked for

Output Parameters:

  • viewer - the viewer, pass NULL if not needed
  • format - the PetscViewerFormat requested by the user, pass NULL if not needed
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: intermediate

See also: PetscViewerDestroy(), PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsInt(), PetscOptionsString(), PetscOptionsReal(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList(), PetscOptionsPushCreateViewerOff(), PetscOptionsPopCreateViewerOff(), PetscOptionsCreateViewerOff()

External Links

source
PETSc.LibPETSc.PetscOptionsCreateViewers — Method
n_max::PetscInt,set::PetscBool = PetscOptionsCreateViewers(petsclib::PetscLibType, comm::MPI_Comm, options::AbstractPetscOptions, pre::String, name::String, viewers::Vector{PetscViewer}, formats::Vector{PetscViewerFormat})

Create multiple viewers from a comma-separated list in the options database

Collective

Input Parameters:

  • comm - the communicator to own the viewers
  • options - options database, use NULL for default global database
  • pre - the string to prepend to the name or NULL
  • name - the options database name that will be checked for
  • n_max - on input: the maximum number of viewers; on output: the number of viewers in the comma-separated list

Output Parameters:

  • viewers - an array to hold at least n_max PetscViewers, or NULL if not needed; on output: if not NULL, the

first n_max entries are initialized PetscViewers

  • formats - an array to hold at least n_max PetscViewerFormats, or NULL if not needed; on output: if not

NULL, the first n_max entries are valid PetscViewewFormats

  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: intermediate

See also: PetscOptionsCreateViewer()

External Links

source
PETSc.LibPETSc.PetscOptionsDestroy — Method
PetscOptionsDestroy(petsclib::PetscLibType, options::AbstractPetscOptions)

Destroys an option database.

Logically Collective on whatever communicator was associated with the call to PetscOptionsCreate()

Input Parameter:

  • options - the PetscOptions object

Level: advanced

See also: PetscOptionsInsert(), PetscOptionsPush(), PetscOptionsPop(), PetscOptionsSetValue()

External Links

source
PETSc.LibPETSc.PetscOptionsFindPair — Method
value::String,set::PetscBool = PetscOptionsFindPair(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String)

Gets an option name-value pair from the options database.

Not Collective

Input Parameters:

  • options - options database, use NULL for the default global database
  • pre - the string to prepend to the name or NULL, this SHOULD NOT have the "-" prepended
  • name - name of option, this SHOULD have the "-" prepended

Output Parameters:

  • value - the option value (optional, not used for all options)
  • set - whether the option is set (optional)

Level: developer

See also: PetscOptionsSetValue(), PetscOptionsClearValue()

External Links

source
PETSc.LibPETSc.PetscOptionsGetAll — Method
copts::Ptr{Cchar} = PetscOptionsGetAll(petsclib::PetscLibType, options::AbstractPetscOptions)

Lists all the options the program was run with in a single string.

Not Collective

Input Parameter:

  • options - the options database, use NULL for the default global database

Output Parameter:

  • copts - pointer where string pointer is stored

Level: advanced

See also: PetscOptionsAllUsed(), PetscOptionsView(), PetscOptionsPush(), PetscOptionsPop(), PetscOptionsLeftGet()

External Links

source
PETSc.LibPETSc.PetscOptionsGetBool — Method
ivalue::PetscBool,set::PetscBool = PetscOptionsGetBool(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String)

Gets the Logical (true or false) value for a particular option in the database.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - the string to prepend to the name or NULL
  • name - the option one is seeking

Output Parameters:

  • ivalue - the logical value to return
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: beginner

See also: PetscOptionsGetBool3(), PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsGetInt(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsGetBool3 — Method
ivalue::PetscBool3,set::PetscBool = PetscOptionsGetBool3(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String)

Gets the ternary logical (true, false or unknown) value for a particular option in the database.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - the string to prepend to the name or NULL
  • name - the option one is seeking

Output Parameters:

  • ivalue - the ternary logical value to return
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: beginner

See also: PetscOptionsGetBool(), PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsGetInt(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsGetBoolArray — Method
nmax::PetscInt,set::PetscBool = PetscOptionsGetBoolArray(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String, dvalue::Vector{PetscBool}, nmax::PetscInt)

Gets an array of Logical (true or false) values for a particular option in the database. The values must be separated with commas with no intervening spaces.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - string to prepend to each name or NULL
  • name - the option one is seeking

Output Parameters:

  • dvalue - the Boolean values to return
  • nmax - On input maximum number of values to retrieve, on output the actual number of values retrieved
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: beginner

See also: PetscOptionsGetInt(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsGetCreateViewerOff — Method
flg::PetscBool = PetscOptionsGetCreateViewerOff(petsclib::PetscLibType)

do PetscOptionsCreateViewer(), PetscOptionsViewer(), and PetscOptionsCreateViewers() return viewers

Logically Collective

Output Parameter:

  • flg - whether viewers are returned.

Level: developer

See also: PetscOptionsCreateViewer(), PetscOptionsPushCreateViewerOff(), PetscOptionsPopCreateViewerOff()

External Links

source
PETSc.LibPETSc.PetscOptionsGetEList — Method
value::PetscInt,set::PetscBool = PetscOptionsGetEList(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, opt::String, list::String, ntext::PetscInt)

Puts a list of option values that a single one may be selected from

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - the string to prepend to the name or NULL
  • opt - option name
  • list - the possible choices (one of these must be selected, anything else is invalid)
  • ntext - number of choices

Output Parameters:

  • value - the index of the value to return (defaults to zero if the option name is given but no choice is listed)
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: intermediate

See also: PetscOptionsGetInt(), PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsGetEnum — Method
value::PetscEnum,set::PetscBool = PetscOptionsGetEnum(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, opt::String, list::String)

Gets the enum value for a particular option in the database.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - option prefix or NULL
  • opt - option name
  • list - array containing the list of choices, followed by the enum name, followed by the enum prefix, followed by a null

Output Parameters:

  • value - the value to return
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: beginner

See also: PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetInt(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsInt(), PetscOptionsString(), PetscOptionsReal(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList(), PetscOptionsGetEList(), PetscOptionsEnum()

External Links

source
PETSc.LibPETSc.PetscOptionsGetEnumArray — Method
nmax::PetscInt,set::PetscBool = PetscOptionsGetEnumArray(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String, list::String, ivalue::Vector{PetscEnum}, nmax::PetscInt)

Gets an array of enum values for a particular option in the database.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - option prefix or NULL
  • name - option name
  • list - array containing the list of choices, followed by the enum name, followed by the enum prefix, followed by a null

Output Parameters:

  • ivalue - the enum values to return
  • nmax - On input maximum number of values to retrieve, on output the actual number of values retrieved
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: beginner

See also: PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetInt(), PetscOptionsGetEnum(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsInt(), PetscOptionsString(), PetscOptionsReal(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList(), PetscOptionsGetEList(), PetscOptionsEnum()

External Links

source
PETSc.LibPETSc.PetscOptionsGetInt — Method
ivalue::PetscInt,set::PetscBool = PetscOptionsGetInt(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String)

Gets the integer value for a particular option in the database.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - the string to prepend to the name or NULL
  • name - the option one is seeking

Output Parameters:

  • ivalue - the integer value to return
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: beginner

See also: PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsInt(), PetscOptionsString(), PetscOptionsReal(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsGetIntArray — Method
nmax::PetscInt,set::PetscBool = PetscOptionsGetIntArray(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String, ivalue::Vector{PetscInt}, nmax::PetscInt)

Gets an array of integer values for a particular option in the database.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - string to prepend to each name or NULL
  • name - the option one is seeking

Output Parameters:

  • ivalue - the integer values to return
  • nmax - On input maximum number of values to retrieve, on output the actual number of values retrieved
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: beginner

See also: PetscOptionsGetInt(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsGetMPIInt — Method
ivalue::PetscMPIInt,set::PetscBool = PetscOptionsGetMPIInt(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String)

Gets the MPI integer value for a particular option in the database.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - the string to prepend to the name or NULL
  • name - the option one is seeking

Output Parameters:

  • ivalue - the MPI integer value to return
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: beginner

See also: PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsInt(), PetscOptionsString(), PetscOptionsReal(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsGetReal — Method
dvalue::PetscReal,set::PetscBool = PetscOptionsGetReal(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String)

Gets the double precision value for a particular option in the database.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - string to prepend to each name or NULL
  • name - the option one is seeking

Output Parameters:

  • dvalue - the double value to return
  • set - PETSC_TRUE if found, PETSC_FALSE if not found

Level: beginner

See also: PetscOptionsGetInt(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsGetRealArray — Method
nmax::PetscInt,set::PetscBool = PetscOptionsGetRealArray(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String, dvalue::Vector{PetscReal}, nmax::PetscInt)

Gets an array of double precision values for a particular option in the database. The values must be separated with commas with no intervening spaces.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - string to prepend to each name or NULL
  • name - the option one is seeking

Output Parameters:

  • dvalue - the double values to return
  • nmax - On input maximum number of values to retrieve, on output the actual number of values retrieved
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: beginner

See also: PetscOptionsGetInt(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsGetScalar — Method
dvalue::PetscScalar,set::PetscBool = PetscOptionsGetScalar(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String)

Gets the scalar value for a particular option in the database.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - string to prepend to each name or NULL
  • name - the option one is seeking

Output Parameters:

  • dvalue - the scalar value to return
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: beginner

See also: PetscOptionsGetInt(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsGetScalarArray — Method
nmax::PetscInt,set::PetscBool = PetscOptionsGetScalarArray(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String, dvalue::Vector{PetscScalar}, nmax::PetscInt)

Gets an array of scalars for a particular option in the database. The values must be separated with commas with no intervening spaces.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - string to prepend to each name or NULL
  • name - the option one is seeking

Output Parameters:

  • dvalue - the scalar values to return
  • nmax - On input maximum number of values to retrieve, on output the actual number of values retrieved
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: beginner

See also: PetscOptionsGetInt(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsGetString — Method
string::Union{Bool,String} = PetscOptionsGetString(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String, string::String, len::Csize_t)

Gets the string value for a particular option in the database.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - string to prepend to name or NULL
  • name - the option one is seeking
  • len - maximum length of the string including null termination

Output Parameters:

  • string - returns the value of the parameter ifn set, otherwise false

Level: beginner

See also: PetscOptionsGetInt(), PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsGetStringArray — Method
strings::Ptr{Cchar},nmax::PetscInt,set::PetscBool = PetscOptionsGetStringArray(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String)

Gets an array of string values for a particular option in the database. The values must be separated with commas with no intervening spaces.

Not Collective; No Fortran Support

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - string to prepend to name or NULL
  • name - the option one is seeking

Output Parameters:

  • strings - location to copy strings
  • nmax - On input maximum number of strings, on output the actual number of strings found
  • set - PETSC_TRUE if found, else PETSC_FALSE

Level: beginner

See also: PetscOptionsGetInt(), PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsGetVec — Method
set::PetscBool = PetscOptionsGetVec(petsclib::PetscLibType, options::AbstractPetscOptions, prefix::String, key::String, v::AbstractPetscVec)

Gets a Vec from the options database as an array of real values

Collective

Input Parameters:

  • options - the options database, or NULL for the default global one
  • prefix - an option prefix, or NULL
  • key - the option name (must include the leading -)

Output Parameters:

  • v - the vector to fill in on option match; unchanged if the option is not found
  • set - PETSC_TRUE if the option was found (may be NULL)

Level: intermediate

See also: Vec, PetscOptionsGetRealArray(), PetscOptionsGetInt(), PetscOptionsGetReal(), VecView()

External Links

source
PETSc.LibPETSc.PetscOptionsGetenv — Method
flag::PetscBool = PetscOptionsGetenv(petsclib::PetscLibType, comm::MPI_Comm, name::String, env::String, len::Csize_t)

Gets an environmental variable, broadcasts to all processors in communicator from MPI rank zero

Collective

Input Parameters:

  • comm - communicator to share variable
  • name - name of environmental variable
  • len - amount of space allocated to hold variable

Output Parameters:

  • flag - if not NULL indicates if the variable was found
  • env - value of variable

Level: advanced

See also: PetscOptionsHasName()

External Links

source
PETSc.LibPETSc.PetscOptionsHasHelp — Method
set::PetscBool = PetscOptionsHasHelp(petsclib::PetscLibType, options::AbstractPetscOptions)

Determines whether the "-help" option is in the database.

Not Collective

Input Parameter:

  • options - options database, use NULL for default global database

Output Parameter:

  • set - PETSC_TRUE if found else PETSC_FALSE.

Level: advanced

See also: PetscOptionsHasName()

External Links

source
PETSc.LibPETSc.PetscOptionsHasName — Method
set::PetscBool = PetscOptionsHasName(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String)

Determines whether a certain option is given in the database. This returns true whether the option is a number, string or Boolean, even if its value is set to false.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - string to prepend to the name or NULL
  • name - the option one is seeking

Output Parameter:

  • set - PETSC_TRUE if found else PETSC_FALSE.

Level: beginner

See also: PetscOptionsGetInt(), PetscOptionsGetReal(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsInsert — Method
argc::Cint = PetscOptionsInsert(petsclib::PetscLibType, options::AbstractPetscOptions, args::Cchar, file::String)

Inserts into the options database from the command line, the environmental variable and a file.

Collective on PETSC_COMM_WORLD

Input Parameters:

  • options - options database or NULL for the default global database
  • argc - count of number of command line arguments
  • args - the command line arguments
  • file - [optional] PETSc database file, append ":yaml" to filename to specify YAML options format.

Use NULL or empty string to not check for code specific file. Also checks ~/.petscrc, .petscrc and petscrc. Use -skip_petscrc in the code specific file (or command line) to skip ~/.petscrc, .petscrc and petscrc files.

Options Database Keys:

  • -options_file filename - read options from a file
  • -options_file_yaml filename - read options from a YAML file

Level: advanced

See also: PetscOptionsDestroy(), PetscOptionsView(), PetscOptionsInsertString(), PetscOptionsInsertFile(), PetscInitialize()

External Links

source
PETSc.LibPETSc.PetscOptionsInsertArgs — Method
PetscOptionsInsertArgs(petsclib::PetscLibType, options::AbstractPetscOptions, argc::Cint, args::String)

Inserts options into the database from a array of strings

Logically Collective

Input Parameters:

  • options - options object
  • argc - the array length
  • args - the string array

Level: intermediate

See also: PetscOptions, PetscOptionsInsertString(), PetscOptionsInsertFile()

External Links

source
PETSc.LibPETSc.PetscOptionsInsertFile — Method
PetscOptionsInsertFile(petsclib::PetscLibType, comm::MPI_Comm, options::AbstractPetscOptions, file::String, require::PetscBool)

Inserts options into the database from a file.

Collective

Input Parameters:

  • comm - the processes that will share the options (usually PETSC_COMM_WORLD)
  • options - options database, use NULL for default global database
  • file - name of file,

".yml" and ".yaml" filename extensions are inserted as YAML options, append ":yaml" to filename to force YAML options.

  • require - if PETSC_TRUE will generate an error if the file does not exist

Level: developer

See also: PetscOptionsSetValue(), PetscOptionsView(), PetscOptionsHasName(), PetscOptionsGetInt(), PetscOptionsGetReal(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsInsertFileYAML — Method
PetscOptionsInsertFileYAML(petsclib::PetscLibType, comm::MPI_Comm, options::AbstractPetscOptions, file::String, require::PetscBool)

Insert a YAML-formatted file in the options database

Collective

Input Parameters:

  • comm - the processes that will share the options (usually PETSC_COMM_WORLD)
  • options - options database, use NULL for default global database
  • file - name of file
  • require - if PETSC_TRUE will generate an error if the file does not exist

Level: intermediate

See also: PetscOptionsSetValue(), PetscOptionsView(), PetscOptionsHasName(), PetscOptionsGetInt(), PetscOptionsGetReal(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList(), PetscOptionsInsertFile(), PetscOptionsInsertStringYAML()

External Links

source
PETSc.LibPETSc.PetscOptionsInsertString — Method
PetscOptionsInsertString(petsclib::PetscLibType, options::AbstractPetscOptions, in_str::String)

Inserts options into the database from a string

Logically Collective

Input Parameters:

  • options - options object
  • in_str - string that contains options separated by blanks

Level: intermediate

The collectivity of this routine is complex; only the MPI processes that call this routine will have the affect of these options. If some processes that create objects call this routine and others do not the code may fail in complicated ways because the same parallel solvers may incorrectly use different options on different ranks.

Contributed by Boyana Norris

See also: PetscOptionsSetValue(), PetscOptionsView(), PetscOptionsHasName(), PetscOptionsGetInt(), PetscOptionsGetReal(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList(), PetscOptionsInsertFile()

External Links

source
PETSc.LibPETSc.PetscOptionsInsertStringYAML — Method
PetscOptionsInsertStringYAML(petsclib::PetscLibType, options::AbstractPetscOptions, in_str::String)

Inserts YAML-formatted options into the options database from a string

Logically Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • in_str - YAML-formatted string options

Level: intermediate

See also: PetscOptionsSetValue(), PetscOptionsView(), PetscOptionsHasName(), PetscOptionsGetInt(), PetscOptionsGetReal(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList(), PetscOptionsInsertFile(), PetscOptionsInsertFileYAML()

External Links

source
PETSc.LibPETSc.PetscOptionsLeft — Method
PetscOptionsLeft(petsclib::PetscLibType, options::AbstractPetscOptions)

Prints to screen any options that were set and never used.

Not Collective

Input Parameter:

  • options - options database; use NULL for default global database

Options Database Key:

  • -options_left - activates PetscOptionsAllUsed() within PetscFinalize()

Level: advanced

See also: PetscOptionsAllUsed()

External Links

source
PETSc.LibPETSc.PetscOptionsLeftGet — Method
N::PetscInt,names::Vector{String},values::Vector{String} = PetscOptionsLeftGet(petsclib::PetscLibType, options::AbstractPetscOptions)

Returns all options that were set and never used.

Not Collective

Input Parameter:

  • options - options database, use NULL for default global database

Output Parameters:

  • N - count of options not used
  • names - names of options not used
  • values - values of options not used

Level: advanced

See also: PetscOptionsAllUsed(), PetscOptionsLeft()

External Links

source
PETSc.LibPETSc.PetscOptionsLeftRestore — Method
PetscOptionsLeftRestore(petsclib::PetscLibType, options::AbstractPetscOptions, N::PetscInt, names::String, values::String)

Free memory for the unused PETSc options obtained using PetscOptionsLeftGet().

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • N - count of options not used
  • names - names of options not used
  • values - values of options not used

Level: advanced

See also: PetscOptionsAllUsed(), PetscOptionsLeft(), PetscOptionsLeftGet()

External Links

source
PETSc.LibPETSc.PetscOptionsMonitorDefault — Method
PetscOptionsMonitorDefault(petsclib::PetscLibType, name::String, value::String, source::PetscOptionSource, ctx::Ptr{Cvoid})

Print all options set value events using the supplied PetscViewer.

Logically Collective

Input Parameters:

  • name - option name string
  • value - option value string
  • source - The source for the option
  • ctx - a PETSCVIEWERASCII or NULL

Level: intermediate

See also: PetscOptionsMonitorSet()

External Links

source
PETSc.LibPETSc.PetscOptionsMonitorSet — Method
PetscOptionsMonitorSet(petsclib::PetscLibType, monitor::external, mctx::Ptr{Cvoid}, monitordestroy::Ptr{Cvoid})

Sets an ADDITIONAL function to be called at every method that modified the PETSc options database.

Not Collective

Input Parameters:

  • monitor - pointer to function (if this is NULL, it turns off monitoring
  • mctx - [optional] context for private data for the monitor routine (use NULL if

no context is desired)

  • monitordestroy - [optional] routine that frees monitor context (may be NULL), see PetscCtxDestroyFn for its calling sequence

Calling sequence of monitor:

  • name - option name string
  • value - option value string, a value of NULL indicates the option is being removed from the database. A value

of "" indicates the option is in the database but has no value.

  • source - option source
  • mctx - optional monitoring context, as set by PetscOptionsMonitorSet()

Options Database Keys:

  • -options_monitor viewer - turn on default monitoring of changes to the options database
  • -options_monitor_cancel - turn off any option monitors except the default monitor obtained with -options_monitor

Level: intermediate

See also: PetscOptionsMonitorDefault(), PetscInitialize(), PetscCtxDestroyFn

External Links

source
PETSc.LibPETSc.PetscOptionsPop — Method
PetscOptionsPop(petsclib::PetscLibType)

Pop the most recent PetscOptionsPush() to return to the previous default options

Logically Collective on whatever communicator was associated with the call to PetscOptionsCreate()

Level: advanced

See also: PetscOptionsCreate(), PetscOptionsInsert(), PetscOptionsSetValue(), PetscOptionsLeft()

External Links

source
PETSc.LibPETSc.PetscOptionsPrefixPop — Method
PetscOptionsPrefixPop(petsclib::PetscLibType, options::AbstractPetscOptions)

Remove the latest options prefix, see PetscOptionsPrefixPush() for details

Logically Collective on the MPI_Comm used when called PetscOptionsPrefixPush()

Input Parameter:

  • options - options database, or NULL for the default global database

Level: advanced

See also: PetscOptionsPrefixPush(), PetscOptionsPush(), PetscOptionsPop(), PetscOptionsCreate(), PetscOptionsSetValue()

External Links

source
PETSc.LibPETSc.PetscOptionsPrefixPush — Method
PetscOptionsPrefixPush(petsclib::PetscLibType, options::AbstractPetscOptions, prefix::String)

Designate a prefix to be used by all options insertions to follow.

Logically Collective

Input Parameters:

  • options - options database, or NULL for the default global database
  • prefix - The string to append to the existing prefix

Options Database Keys:

  • -prefix_push some_prefix_ - push the given prefix
  • -prefix_pop - pop the last prefix

Level: advanced

See also: PetscOptionsPrefixPop(), PetscOptionsPush(), PetscOptionsPop(), PetscOptionsCreate(), PetscOptionsSetValue()

External Links

source
PETSc.LibPETSc.PetscOptionsPush — Method
PetscOptionsPush(petsclib::PetscLibType, opt::AbstractPetscOptions)

Push a new PetscOptions object as the default provider of options Allows using different parts of a code to use different options databases

Logically Collective

Input Parameter:

  • opt - the options obtained with PetscOptionsCreate()

Level: advanced

See also: PetscOptionsPop(), PetscOptionsCreate(), PetscOptionsInsert(), PetscOptionsSetValue(), PetscOptionsLeft()

External Links

source
PETSc.LibPETSc.PetscOptionsPushCreateViewerOff — Method
PetscOptionsPushCreateViewerOff(petsclib::PetscLibType, flg::PetscBool)

sets if PetscOptionsCreateViewer(), PetscOptionsViewer(), and PetscOptionsCreateViewers() return viewers.

Logically Collective

Input Parameter:

  • flg - PETSC_TRUE to turn off viewer creation, PETSC_FALSE to turn it on.

Level: developer

See also: PetscOptionsCreateViewer(), PetscOptionsPopCreateViewerOff()

External Links

source
PETSc.LibPETSc.PetscOptionsReject — Method
PetscOptionsReject(petsclib::PetscLibType, options::AbstractPetscOptions, pre::String, name::String, mess::String)

Generates an error if a certain option is given.

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • pre - the option prefix (may be NULL)
  • name - the option name one is seeking
  • mess - error message (may be NULL)

Level: advanced

See also: PetscOptionsGetInt(), PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsSetAlias — Method
PetscOptionsSetAlias(petsclib::PetscLibType, options::AbstractPetscOptions, newname::String, oldname::String)

Makes a key and alias for another key

Logically Collective

Input Parameters:

  • options - options database, or NULL for default global database
  • newname - the alias
  • oldname - the name that alias will refer to

Level: advanced

See also: PetscOptionsGetInt(), PetscOptionsGetReal(), PetscOptionsHasName(), PetscOptionsGetString(), PetscOptionsGetIntArray(), PetscOptionsGetRealArray(), PetscOptionsBool(), PetscOptionsName(), PetscOptionsBegin(), PetscOptionsEnd(), PetscOptionsHeadBegin(), PetscOptionsStringArray(), PetscOptionsRealArray(), PetscOptionsScalar(), PetscOptionsBoolGroupBegin(), PetscOptionsBoolGroup(), PetscOptionsBoolGroupEnd(), PetscOptionsFList(), PetscOptionsEList()

External Links

source
PETSc.LibPETSc.PetscOptionsSetValue — Method
PetscOptionsSetValue(petsclib::PetscLibType, options::AbstractPetscOptions, name::String, value::Union{Ptr, String})

Sets an option name-value pair in the options database, overriding whatever is already present.

Logically Collective

Input Parameters:

  • options - options database, use NULL for the default global database
  • name - name of option, this SHOULD have the - prepended
  • value - the option value (not used for all options, so can be NULL)

Level: intermediate

See also: PetscOptionsInsert(), PetscOptionsClearValue()

External Links

source
PETSc.LibPETSc.PetscOptionsStringToBool — Method
a::PetscBool = PetscOptionsStringToBool(petsclib::PetscLibType, value::String)

Converts a string to a PetscBool

Not Collective

Input Parameter:

  • value - the string to convert; may be NULL or ""

Output Parameter:

  • a - the resulting PetscBool

Level: developer

See also: PetscOptionsStringToInt(), PetscOptionsStringToReal(), PetscOptionsStringToScalar(), PetscOptionsGetBool()

External Links

source
PETSc.LibPETSc.PetscOptionsStringToInt — Method
a::PetscInt = PetscOptionsStringToInt(petsclib::PetscLibType, name::String)

Converts a string to an integer value. Handles special cases such as "default" and "decide"

Not Collective

Input Parameter:

  • name - the string to convert

Output Parameter:

  • a - the resulting PetscInt value

Level: developer

See also: PetscOptionsStringToReal(), PetscOptionsStringToScalar(), PetscOptionsStringToBool(), PetscOptionsGetInt()

External Links

source
PETSc.LibPETSc.PetscOptionsStringToReal — Method
a::PetscReal = PetscOptionsStringToReal(petsclib::PetscLibType, name::String)

Converts a string to a PetscReal value. Handles special cases like default and decide

Not Collective

Input Parameter:

  • name - the string to convert

Output Parameter:

  • a - the resulting PetscReal value

Level: developer

See also: PetscOptionsStringToInt(), PetscOptionsStringToScalar(), PetscOptionsStringToBool(), PetscOptionsGetReal()

External Links

source
PETSc.LibPETSc.PetscOptionsStringToScalar — Method
a::PetscScalar = PetscOptionsStringToScalar(petsclib::PetscLibType, name::String)

Converts a string to a PetscScalar value; when PETSc is built with complex scalars, parses an optional imaginary part

Not Collective

Input Parameter:

  • name - the string to convert

Output Parameter:

  • a - the resulting PetscScalar value

Level: developer

See also: PetscOptionsStringToInt(), PetscOptionsStringToReal(), PetscOptionsStringToBool(), PetscOptionsGetScalar()

External Links

source
PETSc.LibPETSc.PetscOptionsUsed — Method
used::PetscBool = PetscOptionsUsed(petsclib::PetscLibType, options::AbstractPetscOptions, name::String)

Indicates if PETSc has used a particular option set in the database

Not Collective

Input Parameters:

  • options - options database, use NULL for default global database
  • name - string name of option

Output Parameter:

  • used - PETSC_TRUE if the option was used, otherwise false, including if option was not found in options database

Level: advanced

See also: PetscOptionsView(), PetscOptionsLeft(), PetscOptionsAllUsed()

External Links

source
PETSc.LibPETSc.PetscOptionsValidKey — Method
valid::PetscBool = PetscOptionsValidKey(petsclib::PetscLibType, key::String)

PETSc Options database keys must begin with one or two dashes (-) followed by a letter.

Not Collective

Input Parameter:

  • key - string to check if valid

Output Parameter:

  • valid - PETSC_TRUE if a valid key

Level: intermediate

See also: PetscOptionsCreate(), PetscOptionsInsert()

External Links

source
PETSc.LibPETSc.PetscOptionsView — Method
PetscOptionsView(petsclib::PetscLibType, options::AbstractPetscOptions, viewer::PetscViewer)

Prints the options that have been loaded. This is useful for debugging purposes.

Logically Collective, No Fortran Support

Input Parameters:

  • options - options database, use NULL for default global database
  • viewer - must be an PETSCVIEWERASCII viewer

Options Database Key:

  • -options_view - Activates PetscOptionsView() within PetscFinalize()

Level: advanced

See also: PetscOptionsAllUsed()

External Links

source

Options helpers (PetscOptionsGetViewer, ...)

PETSc.LibPETSc.PetscOptionsHelpPrintedCheck — Method
found::PetscBool = PetscOptionsHelpPrintedCheck(petsclib::PetscLibType, hp::PetscOptionsHelpPrCinted, pre::String, name::String)

Checks if a particular pre, name pair has previous been entered (meaning the help message was printed)

Not Collective

Input Parameters:

  • hp - the object used to manage tracking what help messages have been printed
  • pre - the prefix part of the string, many be NULL
  • name - the string to look for (cannot be NULL)

Output Parameter:

  • found - PETSC_TRUE if the string was already set

Level: intermediate

See also: PetscOptionsHelpPrintedCreate()

External Links

source
PETSc.LibPETSc.PetscOptionsHelpPrintedCreate — Method
hp::PetscOptionsHelpPrCinted = PetscOptionsHelpPrintedCreate(petsclib::PetscLibType)

Creates an object used to manage tracking which help messages have been printed so they will not be printed again.

Output Parameter:

  • hp - the created object

Not Collective

Level: developer

See also: PetscOptionsHelpPrintedCheck(), PetscOptionsHelpPrintChecked()

External Links

source
PETSc.LibPETSc.PetscOptionsHelpPrintedDestroy — Method
PetscOptionsHelpPrintedDestroy(petsclib::PetscLibType, hp::Union{PetscOptionsHelpPrCinted, Ref{PetscOptionsHelpPrCinted}})

Destroys the object used to track which help messages have already been printed

Not Collective

Input Parameter:

  • hp - pointer to the PetscOptionsHelpPrinted object to destroy; set to NULL on return

Level: developer

See also: PetscOptionsHelpPrintedCreate(), PetscOptionsHelpPrintedCheck()

External Links

source