Last change
on this file since 13395 was 13395, checked in by Mathieu Morlighem, 12 years ago |
merged trunk-jpl and trunk for revision 13393
|
File size:
514 bytes
|
Line | |
---|
1 | function sor=soroptions(varargin)
|
---|
2 | %SOROPTIONS - return Relaxation Solver petsc options
|
---|
3 | %
|
---|
4 | % Usage:
|
---|
5 | % options=soroptions;
|
---|
6 |
|
---|
7 | %retrieve options provided in varargin
|
---|
8 | options=pairoptions(varargin{:});
|
---|
9 | sor=struct();
|
---|
10 |
|
---|
11 | %default sor options
|
---|
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.