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

Hong Zhang hzhang at mcs.anl.gov
Tue May 13 09:16:04 CDT 2014


国熙 :

>
> [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
                                                         ^^^^^^
                                            ^^^^^^^^

Superlu is a sequential package. For parallel, you must use superlu_dist.
Suggest install both Superlu and superlu_dist ( --download-superlu_dist).

Hong

> 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 16:06:00 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 15:58:29 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-superlu
> --download-superlu_dist --with-scalar-type=complex --with-clanguage=cxx
>
>
>
> 2014-05-13 15:10 GMT+10:00 Satish Balay <balay at mcs.anl.gov>:
>
>> Hm - none of these options should have any 'capitalized' letters
>>
>> [and superlu_dist has an '_' - not a '-'
>>
>> --download-PASTIX --download-superLU--download-superLU-dist
>>
>> They should be:
>>
>> --download-pastix --download-superlu --download-superlu_dist
>>
>> Satish
>>
>> On Tue, 13 May 2014, 张国熙 wrote:
>>
>> > 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
>> >
>
>


More information about the petsc-users mailing list