Changeset 23910


Ignore:
Timestamp:
05/07/19 01:06:11 (6 years ago)
Author:
wester
Message:

CHG: Adjusted stokesoptions for appropriate use in combination with SchurCG

Location:
issm/trunk-jpl/src/m/solvers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/solvers/stokesoptions.m

    r20574 r23910  
    1111stokes.toolkit='petsc';
    1212stokes.mat_type=getfieldvalue(options,'mat_type','mpiaij');
    13 stokes.ksp_max_it=getfieldvalue(options,'ksp_max_it',1000);
    14 stokes.ksp_type=getfieldvalue(options,'ksp_type','gmres');
    15 stokes.pc_type=getfieldvalue(options,'pc_type','fieldsplit');
    16 stokes.pc_field_split_type=getfieldvalue(options,'pc_field_split_type','schur');
    17 stokes.fieldsplit_0_pc_type=getfieldvalue(options,'fieldsplit_0_pc_type','hypre');
    18 stokes.fieldsplit_0_ksp_type=getfieldvalue(options,'fieldsplit_0_ksp_type','gmres');
    19 stokes.fieldsplit_0_pc_hypre_type=getfieldvalue(options,'fieldsplit_0_pc_hypre_type','boomerang');
    20 stokes.fieldsplit_1_pc_type=getfieldvalue(options,'fieldsplit_1_pc_type','jacobi');
    21 stokes.fieldsplit_1_ksp_type=getfieldvalue(options,'fieldsplit_1_ksp_type','preonly');
    2213stokes.issm_option_solver=getfieldvalue(options,'issm_option_solver','stokes');
     14stokes.ksp_type = 'cr';
     15stokes.pc_type = 'bjacobi';
     16stokes.tol = 0.6;
     17stokes.elltol = 5e-5;
     18stokes.schur_pc = 1;
     19stokes.max_iter = 10000;
  • issm/trunk-jpl/src/m/solvers/stokesoptions.py

    r17497 r23910  
    1818                raise RuntimeError('stokesoptions error message: multi-physics options not supported in Petsc 2')
    1919        if PETSC_VERSION==3.:
    20                 options=[['toolkit','petsc'],['mat_type','mpiaij'],['ksp_max_it',1000],['ksp_type','gmres'],['pc_type','fieldsplit'],['pc_field_split_type','schur'],\
    21         ['fieldsplit_0_pc_type','hypre'],['fieldsplit_0_ksp_type','gmres'],['fieldsplit_0_pc_hypre_type','boomerang'],\
    22         ['fieldsplit_1_pc_type','jacobi'],['fieldsplit_1_ksp_type','preonly'],['issm_option_solver','stokes']]
     20                options=[['toolkit','petsc'],['mat_type','mpiaij'],['ksp_type','cr'],['pc_type','bjacobi'],['tol',0.6],\
     21        ['elltol',5e-5],['schur_pc',1],\
     22        ['max_iter',10000],['issm_option_solver','stokes']]
    2323
    2424        #now, go through our arguments, and write over default options.
Note: See TracChangeset for help on using the changeset viewer.