Line | |
---|
1 | from pairoptions import pairoptions
|
---|
2 | from collections import OrderedDict
|
---|
3 |
|
---|
4 |
|
---|
5 | function cn = conditionnumberoptions(*args)
|
---|
6 | #MULTIGRIDOPTIONS - use Multigrid
|
---|
7 | #
|
---|
8 | # Usage:
|
---|
9 | # options = mgoptions
|
---|
10 |
|
---|
11 | #retrieve options provided in *args
|
---|
12 | options = pairoptions(*args)
|
---|
13 | cn = OrderedDict()
|
---|
14 | cn.toolkit = 'petsc'
|
---|
15 | cn.mat_type = getfieldvalue(options, 'mat_type', 'mpiaij')
|
---|
16 | cn.ksp_type = getfieldvalue(options, 'ksp_type', 'gmres')
|
---|
17 | cn.pc_type = getfieldvalue(options, 'pc_type', 'none')
|
---|
18 | cn.ksp_monitor_singular_value = getfieldvalue(options, 'ksp_monitor_singular_value', '')
|
---|
19 | cn.ksp_gmres_restart = getfieldvalue(options, 'ksp_gmres_restart', 1000)
|
---|
20 | cn.info = getfieldvalue(options, 'info', '')
|
---|
21 | cn.log_summary = getfieldvalue(options, 'log_summary', '')
|
---|
22 | return solverOptions
|
---|
Note:
See
TracBrowser
for help on using the repository browser.