[Trilinos-Users] Trouble using Ifpack

Marzio Sala marzio.sala at gmail.com
Mon Dec 24 02:01:14 MST 2007


Hi Davood,

the row matrix A is given as a pointer, see
http://trilinos.sandia.gov/packages/docs/r8.0/packages/ifpack/doc/html/index.html#ifp_example
.

Maybe try using "&A" instead of "A" while calling Create().

Hope this helps,
-Marzio


On Dec 23, 2007 7:12 PM, Davood Ansari <david.ansari at gmail.com> wrote:

> Hi every one
>
> Maybe some one you can help me out:
>
> I get the following compilation error:
>
> ../sources/parpoissons.cxx(460): error: no instance of overloaded function
> "Ifpack::Create" matches the argument list
>             argument types are: (std::string, Epetra_FECrsMatrix, int)
>             object type is: Ifpack
>         Ifpack_Preconditioner* Prec = Factory.Create(PrecType, A,
> OverlapLevel);
>                                               ^
>  when I try to compile the following chunk :  ( A is a Epetra_FECrsMatrix
> )
>
>     .
>      .
>     .
> # include "Teuchos_ParameterList.hpp"
> # include "Teuchos_RefCountPtr.hpp"
>
> # include "Ifpack_ConfigDefs.h"
> # include "Ifpack_Preconditioner.h"
> # include " Ifpack.h"
>     .
>     .
>     .
>     Ifpack Factory;
>
>     string PrecType = "ILU"; // use incomplete LU on each process
>     int OverlapLevel = 1; // one row of overlap among the processes
>     Ifpack_Preconditioner* Prec = Factory.Create(PrecType, A,
> OverlapLevel);
>
> I use this compilation string (in my makefile)
>
> MKL_IP = /opt/intel/mkl/10.0.011/include
> MKL_LP = /opt/intel/mkl/10.0.011/lib/em64t
> MKL_LL = -lmkl_solver -lmkl_lapack -lguide -lpthread -lmkl
> Tri_IP = /opt/Trilinos/Parallel/include
> Tri_LP = /opt/Trilinos/Parallel/lib
> Tri_LL = -lamesos -lanasazi -laztecoo -lbelos -lepetra -lepetraext
> -lgaleri -lifpack -lloca -lml -lnew_package -lnox -lrtop -lstratimikos
> -lstratimikosamesos -lstratimikosaztecoo -lstratimikosifpack -lstratimikosml
> -lteuchos -lthyra -lthyraepetra -lthyraepetraext -ltriutils
> .
> .
> .
> mpiicpc ../sources/parpoissons.cxx -I$(MKL_IP) -L$(MKL_LP) $(MKL_LL)
> -I$(Tri_IP) -L$(Tri_LP) $(Tri_LL) -o ./parpoissons $(OPTIONS1)
>
>
> Can you be any chance tell what is going wrong in there ?
>
> Davood
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>


-- 
http://marzio.sala.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20071224/81af884a/attachment.html


More information about the Trilinos-Users mailing list