[petsc-dev] Better -help for -pc_factor_mat_solver_package
Barry Smith
bsmith at mcs.anl.gov
Wed Oct 19 19:37:27 CDT 2011
On Oct 19, 2011, at 6:33 PM, Jed Brown wrote:
> This is currently being handled by having MatCreate() dynamically compose all the possible (matrix format, solver package) combinations in the Mat, but then we have no way to have -help list the possibilities. What about having a static list
>
> typedef struct _n_MatFactorSolverPackageLink *MatFactorSolverPackageLink;
> struct _n_MatFactorSolverPackageLink {
> MatType type;
> PetscFList package_list;
> MatFactorSolverPackageLink *next;
> }
>
> MatFactorRegisterSolverPackage(MATMPIAIJ,MATSOLVERSUPERLU_DIST,path,"MatGetFactor_mpiaij_superlu_dist",MatGetFactor_mpiaij_superlu_dist);
>
>
This change seems fine.
Barry
More information about the petsc-dev
mailing list