Ignore:
Timestamp:
09/20/10 10:13:52 (14 years ago)
Author:
Eric.Larour
Message:

New way of running the petsc solver, that provides more flexibilty.
We have a new petscoptions field in the model, that can be filled
with petsc options, instead of the solver_string, which disappers.
The petscoptins gets resolved into a petscrc string (for serial runs)
and a petsc.rc file (for parallel runs) at runtime. The petscrc string
acts the same way than the solver_string. But the petsc.rc file acts
in a different way. Itt is loaded at runtime, when first doing Petsc Initialize.
This allows tweaking and rerunning of the same deck, each time using different
options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/solvers/solversettoasm.m

    r5894 r5903  
    55%      md=solversettoasm(md)
    66
    7 %md.solverstring=' -mat_type aij -ksp_type cgs -pc_type asm -sub_mat_type mumps -sub_pc_type lu -pc_asm_overlap 4 -pc_factor_shift_positive_definite true';
    8 %md.solverstring=' -mat_type aij -ksp_type cgs -pc_type asm -sub_pc_type lu -pc_asm_overlap 4 ';
    9 md.solverstring=' -mat_type aij -ksp_type gmres -pc_type asm -sub_pc_type lu -pc_asm_overlap 4 ';
     7%md.petscoptions={{'mat_type','aij'},{'ksp_type','cgs'},{'pc_type','asm'},{sub_mat_type','mumps'},{'sub_pc_type','lu'},{'pc_asm_overlap',4},{'pc_factor_shift_positive_definite','true'}};
     8%md.petscoptions={{'mat_type','aij'},{'ksp_type','cgs'},{'pc_type','asm'},{'sub_pc_type','lu'},{'pc_asm_overlap',4}};
     9md.petscoptions={{'mat_type','aij'},{'ksp_type','gmres'},{'pc_type','asm'},{'sub_pc_type','lu'},{'pc_asm_overlap',4}};
Note: See TracChangeset for help on using the changeset viewer.