Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=idx_t), | intent(out) | :: | options(METIS_NOPTIONS) | The array of options that will be initialized. |
METIS_OK
- Indicates that the function returned normally.
Initializes the options array into its default values.
The passed array options
must have the size METIS_NOPTIONS
(40).
To be able to use the option parameters specified in the metis_interface module
it is recommended to use zero-based indexing for the options array:
integer(kind=idx_t) :: opts(0:39)
To set Fortran style index-numbering use:
use metis_enum, only: METIS_OPTION_NUMBERING use metis_interface, only: idx_t, METIS_SetDefaultOptions integer(kind=idx_t) :: opts(0:39) call METIS_SetDefaultOptions(opts) opts(METIS_OPTION_NUMBERING) = 1 ! Fortran-style index numbering
Other options can also be changed using parameters specified in the metis_interface module.
use metis_enum, only : METIS_OPTION_DBGLVL, METIS_DBG_INFO use metis_interface, only : idx_t, METIS_SetDefaultOptions integer(kind=idx_t) :: opts(0:39) call METIS_SetDefaultOptions(opts) opts(METIS_OPTION_DBGLVL) = METIS_DBG_INFO ! Show various diagnostic messages end