Last change
on this file since 25762 was 25762, checked in by jdquinn, 4 years ago |
CHG: Changes in support of binaries Python API; clean up
|
File size:
810 bytes
|
Rev | Line | |
---|
[25246] | 1 | from pairoptions import pairoptions
|
---|
| 2 | from collections import OrderedDict
|
---|
| 3 |
|
---|
| 4 |
|
---|
[25762] | 5 | def conditionnumberoptions(*args):
|
---|
| 6 | """MULTIGRIDOPTIONS - use Multigrid
|
---|
[25246] | 7 |
|
---|
[25762] | 8 | Usage:
|
---|
| 9 | options = mgoptions
|
---|
| 10 | """
|
---|
| 11 |
|
---|
[25246] | 12 | #retrieve options provided in *args
|
---|
| 13 | options = pairoptions(*args)
|
---|
| 14 | cn = OrderedDict()
|
---|
| 15 | cn.toolkit = 'petsc'
|
---|
| 16 | cn.mat_type = getfieldvalue(options, 'mat_type', 'mpiaij')
|
---|
| 17 | cn.ksp_type = getfieldvalue(options, 'ksp_type', 'gmres')
|
---|
| 18 | cn.pc_type = getfieldvalue(options, 'pc_type', 'none')
|
---|
| 19 | cn.ksp_monitor_singular_value = getfieldvalue(options, 'ksp_monitor_singular_value', '')
|
---|
| 20 | cn.ksp_gmres_restart = getfieldvalue(options, 'ksp_gmres_restart', 1000)
|
---|
| 21 | cn.info = getfieldvalue(options, 'info', '')
|
---|
| 22 | cn.log_summary = getfieldvalue(options, 'log_summary', '')
|
---|
| 23 | return solverOptions
|
---|
Note:
See
TracBrowser
for help on using the repository browser.