Last change
on this file since 13975 was 13975, checked in by Mathieu Morlighem, 12 years ago |
merged trunk-jpl and trunk for revision 13974
|
File size:
510 bytes
|
Rev | Line | |
---|
[11871] | 1 | function sor=soroptions(varargin)
|
---|
[6014] | 2 | %SOROPTIONS - return Relaxation Solver petsc options
|
---|
| 3 | %
|
---|
| 4 | % Usage:
|
---|
| 5 | % options=soroptions;
|
---|
[13975] | 6 |
|
---|
[6014] | 7 | %retrieve options provided in varargin
|
---|
[11871] | 8 | options=pairoptions(varargin{:});
|
---|
| 9 | sor=struct();
|
---|
[6014] | 10 |
|
---|
| 11 | %default sor options
|
---|
[11871] | 12 | sor.mat_type=getfieldvalue(options,'mat_type','aij');
|
---|
| 13 | sor.ksp_type=getfieldvalue(options,'ksp_type','cg');
|
---|
| 14 | sor.pc_type=getfieldvalue(options,'pc_type','sor');
|
---|
| 15 | sor.pc_sor_omega=getfieldvalue(options,'pc_sor_omega',1.1);
|
---|
| 16 | sor.pc_sor_its=getfieldvalue(options,'pc_sor_its',2);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.