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:
743 bytes
|
Line | |
---|
1 | function jacobiasm=jacobiasmoptions(varargin)
|
---|
2 | %ASMOPTIONS - return Additive Shwartz Method with Jacobi preconditioner petsc options
|
---|
3 | %
|
---|
4 | % Usage:
|
---|
5 | % options=jacobiasmoptions;
|
---|
6 |
|
---|
7 | %retrieve options provided in varargin
|
---|
8 | options=pairoptions(varargin{:});
|
---|
9 | jacobiasm=struct();
|
---|
10 |
|
---|
11 | %default jacobiasm options
|
---|
12 | jacobiasm.mat_type=getfieldvalue(options,'mat_type','aij');
|
---|
13 | jacobiasm.ksp_type=getfieldvalue(options,'ksp_type','gmres');
|
---|
14 | jacobiasm.pc_type=getfieldvalue(options,'pc_type','asm');
|
---|
15 | jacobiasm.sub_pc_type=getfieldvalue(options,'sub_pc_type','jacobi');
|
---|
16 | jacobiasm.pc_asm_overlap=getfieldvalue(options,'pc_asm_overlap',3);
|
---|
17 | jacobiasm.ksp_max_it=getfieldvalue(options,'ksp_max_it',100);
|
---|
18 | jacobiasm.ksp_rtol=getfieldvalue(options,'ksp_rtol',1e-15);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.