source: issm/trunk/src/m/solvers/soroptions.m@ 13395

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
RevLine 
[11871]1function sor=soroptions(varargin)
[6014]2%SOROPTIONS - return Relaxation Solver petsc options
3%
4% Usage:
5% options=soroptions;
6
7%retrieve options provided in varargin
[11871]8options=pairoptions(varargin{:});
9sor=struct();
[6014]10
11%default sor options
[11871]12sor.mat_type=getfieldvalue(options,'mat_type','aij');
13sor.ksp_type=getfieldvalue(options,'ksp_type','cg');
14sor.pc_type=getfieldvalue(options,'pc_type','sor');
15sor.pc_sor_omega=getfieldvalue(options,'pc_sor_omega',1.1);
16sor.pc_sor_its=getfieldvalue(options,'pc_sor_its',2);
Note: See TracBrowser for help on using the repository browser.