| Rev | Line | |
|---|
| [25246] | 1 | from pairoptions import pairoptions
|
|---|
| 2 | from collections import OrderedDict
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 | def richardsongasmoptions(*args):
|
|---|
| 6 |
|
|---|
| 7 | #retrieve options provided in *args
|
|---|
| 8 | options = pairoptions(*args)
|
|---|
| 9 | solverOptions = OrderedDict()
|
|---|
| 10 | solverOptions['toolkit'] = 'petsc'
|
|---|
| 11 | solverOptions['mat_type'] = options.getfieldvalue('mat_type', 'mpiaij')
|
|---|
| 12 | solverOptions['ksp_type'] = options.getfieldvalue('ksp_type', 'richardson')
|
|---|
| 13 | solverOptions['pc_type'] = options.getfieldvalue('pc_type', 'gasm')
|
|---|
| 14 |
|
|---|
| 15 | return solverOptions
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.