source: issm/trunk-jpl/src/m/solvers/conditionnumberoptions.py@ 25246

Last change on this file since 25246 was 25246, checked in by bdef, 5 years ago

NEW : Translation of solver options to py with an automatic translater (SolvOptionTranslater.sh)

File size: 821 bytes
RevLine 
[25246]1from pairoptions import pairoptions
2from collections import OrderedDict
3
4
5function 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.