[Trilinos-Users] using ifpack2

Alicia Klinvex aklinvex at purdue.edu
Sun Dec 14 13:20:51 MST 2014


Hello Mike,

The Factory create function takes an RCP to a CONSTANT matrix.  Your matrix
is not defined as constant (as in RCP<const crs_matrix_type>).  My guess is
that's what's causing the problem.

- Alicia

On Sun, Dec 14, 2014 at 11:34 AM, Mike Atambo <mikeat4999 at gmail.com> wrote:
>
>
> im using trilinos   11.12.1  and im having some trouble  compiling a piece
> of code:
> here is the error message:
>
>   trilinos_anasazi_ifp_david.cxx(292): error: no instance of overloaded
> function "Ifpack2::Factory::create" matches the argument list
>             argument types are: (std::string,
> Teuchos::RCP<Tpetra::CrsMatrix<double, int, int,
> KokkosClassic::DefaultNode::DefaultNodeType>>)
>             object type is: Ifpack2::Factory
>     Teuchos::RCP<prec_type> prec = factory.create ( precType, mat );
>
>   make: *** [ifpdanasazi.x] Error 2
>                                            ^
> prec_type, precType and mat are   defined as:
>
>   typedef Ifpack2::Preconditioner<complex_scalar, local_ordinal_type,
> global_ordinal_type, Node>  prec_type
>
>   std::string precType = "ILUT";
>
>   typedef Tpetra::CrsMatrix<complex_scalar , local_ordinal_type,
> global_ordinal_type, Node> crs_matrix_type ;
>
>    RCP<crs_matrix_type>  mat = rcp (new crs_matrix_type
> (EqualMatDistribution, 0, Tpetra::DynamicProfile ));
>
> The installation seems fine, and i was able to run an eigenvalue problem
> using the LOBPCG and Tpetra,  and one  if the examples  on  belos using
> ifpack2 preconditioner works well
>
>
>
> Regards
> Mike
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> https://software.sandia.gov/mailman/listinfo/trilinos-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20141214/edca0c5d/attachment.html>


More information about the Trilinos-Users mailing list