Last change
on this file since 11995 was 11995, checked in by Mathieu Morlighem, 13 years ago |
merged trunk-jpl and trunk for revision 11994M
|
File size:
539 bytes
|
Rev | Line | |
---|
[11995] | 1 | function jacobicg=jacobiacgoptions(varargin)
|
---|
[10565] | 2 | %ASMOPTIONS - return Additive Shwartz Method with Jacobi preconditioner petsc options
|
---|
| 3 | %
|
---|
| 4 | % Usage:
|
---|
| 5 | % options=jacobiasmoptions;
|
---|
| 6 |
|
---|
| 7 | %retrieve options provided in varargin
|
---|
[11995] | 8 | options=pairoptions(varargin{:});
|
---|
| 9 | jacobicg=struct();
|
---|
[10565] | 10 |
|
---|
| 11 | %default jacobiasm options
|
---|
[11995] | 12 | jacobicg.mat_type=getfieldvalue(options,'mat_type','aij');
|
---|
| 13 | jacobicg.ksp_type=getfieldvalue(options,'ksp_type','cg');
|
---|
| 14 | jacobicg.ksp_max_it=getfieldvalue(options,'ksp_max_it',100);
|
---|
| 15 | jacobicg.ksp_rtol=getfieldvalue(options,'ksp_rtol',1e-15);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.