[Trilinos-Users] Matrix file format

Chris Baker cgbaker at gmail.com
Wed Aug 13 08:21:39 MDT 2008


Axel,

Try adding
#include "EpetraExt_CrsMatrixIn.h"

as in
epetraext/example/inout/HDF5Converter.cpp

Chris

On Wed, Aug 13, 2008 at 06:04, Axel CABLE <axel.cable at etu.univ-nantes.fr>wrote:

> Hi,
>
> I now get the following error while trying to read a matrix file using
> EpetraExt::MatlabFileToCrsMatrix:
>
> 'MatlabFileToCrsMatrix' is not a member of 'EpetraExt'
>
> code:
>
> Epetra_SerialComm Comm;
> int MyPID = Comm.MyPID();
> char FileName[] = "matrix_100.dat";
> Epetra_CrsMatrix * F;
> EpetraExt::MatlabFileToCrsMatrix ( FileName,Comm,F);
>
> Any idea?
> Thanks in advance!
>
>
>
>
>
> > Axel,
> >
> > I don't think you want the "int" declaration in the beginning of the
> line:
> >
> > int EpetraExt::MatlabFileToCrsMatrix ( FileName,Comm,F);
> >
> > Mike
> >
> > On 8/8/08 7:07 AM, "Axel CABLE" <axel.cable at etu.univ-nantes.fr> wrote:
> >
> > Mike,
> >
> > I have my sparse matrix in (row)(column)(value) format, which fortunately
> > seems to be the same as matlab format.
> >
> > I hence tried to use EpetraExt::MatlabFileToCrsMatrix, this way:
> >
> > Epetra_SerialComm Comm;
> > int MyPID = Comm.MyPID();
> >
> > char FileName[] = "matrix_100.dat";
> > Epetra_CrsMatrix * F;
> >
> > int EpetraExt::MatlabFileToCrsMatrix ( FileName,Comm,F);
> >
> >
> > Though, I get the following error:
> > error: invalid use of qualified-name 'EpetraExt::MatlabFileToCrsMatrix'
> >
> > Any idea?
> >
> > Thanks in advance!
> > Axel
> >
>
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20080813/c04a6a83/attachment.html 


More information about the Trilinos-Users mailing list