Last change
on this file since 17806 was 17806, checked in by Mathieu Morlighem, 11 years ago |
merged trunk-jpl and trunk for revision 17804
|
File size:
444 bytes
|
Rev | Line | |
---|
[16901] | 1 | function solverOptions=dgmresmgoptions(varargin)
|
---|
| 2 |
|
---|
| 3 | %retrieve options provided in varargin
|
---|
| 4 | options=pairoptions(varargin{:});
|
---|
| 5 | solverOptions=struct();
|
---|
| 6 | solverOptions.toolkit='petsc';
|
---|
| 7 |
|
---|
| 8 |
|
---|
| 9 | PETSC_VERSION=petscversion();
|
---|
| 10 | if PETSC_VERSION==3,
|
---|
| 11 | solverOptions.mat_type=getfieldvalue(options, 'mat_type','mpiaij');
|
---|
| 12 | solverOptions.ksp_type=getfieldvalue(options, 'ksp_type','dgmres');
|
---|
| 13 | solverOptions.pc_type=getfieldvalue(options, 'pc_type', 'mg');
|
---|
| 14 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.