[petsc-users] Configured with superlu but cannot find a package

张国熙 altriaex86 at gmail.com
Tue May 13 00:02:08 CDT 2014


Hi, there

>From the error message below I am sure I configured PETSc with superLU and
superLU-DIST. However, it told me there's no such package.
Or, is mpiaij not compatible with superlu? According to the manual, I think
it should be compatible with it. Thanks a lot.

[0]PETSC ERROR: --------------------- Error Message
------------------------------------
[0]PETSC ERROR: No support for this operation for this object type!
[0]PETSC ERROR: Matrix format mpiaij does not have a solver package superlu
for LU. Perhaps you must ./configure with --download-superlu!
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: Petsc Release Version 3.4.4, Mar, 13, 2014
[0]PETSC ERROR: See docs/changes/index.html for recent updates.
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
[0]PETSC ERROR: See docs/index.html for manual pages.
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: Unknown Name on a arch-linux2-c-debug named
altria-Aspire-5830TG by root Tue May 13 14:53:33 2014
[0]PETSC ERROR: Libraries linked from
/home/altria/software/petsc-3.4.4/arch-linux2-c-debug/lib
[0]PETSC ERROR: Configure run at Tue May 13 14:43:13 2014
[0]PETSC ERROR: Configure options --with-cc=gcc --with-fc=gfortran
--with-cxx=g++ --download-mpich --download-scalapack --download-metis
--download-parmetis --download-mumps --download-PASTIX --download-superLU
--download-superLU-dist --with-scalar-type=complex --with-clanguage=cxx

My code

    input(Ap,Ai,Ax,Az,size,nz);          //Process input
    MatSetOption(A,MAT_NEW_NONZERO_ALLOCATION_ERR, PETSC_FALSE);
    EPSCreate( PETSC_COMM_WORLD, &eps ); //Setup Solver
    EPSSetOperators(eps,A,NULL);
    EPSSetProblemType(eps,EPS_NHEP);
    EPSSetDimensions(eps,1,6,0);
    EPSSetType(eps,type);
    EPSSetTarget(eps,offset);
    EPSSetWhichEigenpairs(eps,EPS_TARGET_REAL); //Set Target


    //EPSSetExtraction(eps,EPS_HARMONIC);
    EPSGetST(eps,&st);               //shift-and-invert
    STSetType(st,STSINVERT);
    STSetShift(st,offset);
    STGetKSP(st,&ksp);
    KSPSetType(ksp,KSPPREONLY);
    KSPGetPC(ksp,&pc);
    PCSetType(pc,PCLU);
    PCFactorSetMatSolverPackage(pc,MATSOLVERSUPERLU);
    EPSSolve(eps);
    EPSGetConverged(eps,&nconv);


Function input

MatCreate(PETSC_COMM_WORLD,&A);
    MatSetType(A,MATMPIAIJ);
    MatSetSizes(A,PETSC_DECIDE, PETSC_DECIDE,size,size);
    MatMPIAIJSetPreallocationCSR(A,Ap,Ai,temp);
    MatAssemblyBegin(A,MAT_FINAL_ASSEMBLY);
    MatAssemblyEnd(A,MAT_FINAL_ASSEMBLY);



Guoxi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140513/ec8dd202/attachment.html>


More information about the petsc-users mailing list