Changeset 23910
- Timestamp:
- 05/07/19 01:06:11 (6 years ago)
- Location:
- issm/trunk-jpl/src/m/solvers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/solvers/stokesoptions.m
r20574 r23910 11 11 stokes.toolkit='petsc'; 12 12 stokes.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');22 13 stokes.issm_option_solver=getfieldvalue(options,'issm_option_solver','stokes'); 14 stokes.ksp_type = 'cr'; 15 stokes.pc_type = 'bjacobi'; 16 stokes.tol = 0.6; 17 stokes.elltol = 5e-5; 18 stokes.schur_pc = 1; 19 stokes.max_iter = 10000; -
issm/trunk-jpl/src/m/solvers/stokesoptions.py
r17497 r23910 18 18 raise RuntimeError('stokesoptions error message: multi-physics options not supported in Petsc 2') 19 19 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']] 23 23 24 24 #now, go through our arguments, and write over default options.
Note:
See TracChangeset
for help on using the changeset viewer.