[Trilinos-Users] Epetra_FECrsGraph error code
Williams, Alan B
william at sandia.gov
Mon May 11 15:58:32 MDT 2009
Riccardo,
It is in fact a performance warning.
The doxygen-generated documentation for Epetra_CrsGraph::InsertGlobalIndices can be found here:
http://trilinos.sandia.gov/packages/docs/r9.0/packages/epetra/doc/html/classEpetra__CrsGraph.html
But there's an error, it says a warning code of 1 is returned if the insertion requires allocating additional memory. It should say a warning code of 3 there.
The way to fix it is to specify NumIndicesPerRow when constructing the object, then internal allocations can be done with the correct sizes, and no re-allocations will be needed.
Note that Epetra_FECrsGraph inherits Epetra_CrsGraph and both take the NumIndicesPerRow argument.
If it isn't feasible for you to specify NumIndicesPerRow, you can ignore the positive warning code, but graph-creation is more efficient if you can fully specify this information at construction time.
Alan
> -----Original Message-----
> From: trilinos-users-bounces at software.sandia.gov
> [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf
> Of Riccardo Rossi
> Sent: Monday, May 11, 2009 9:31 AM
> To: trilinos-users at software.sandia.gov
> Subject: [Trilinos-Users] Epetra_FECrsGraph error code
>
> Hello everyone,
> i am getting a rather annoying problem in building up
> the Graph for
> a distributed matrix using the "Epetra_FECrsGraph".
>
> The code runs smoothly until the end of the simulation, nevertheless i
> get
> ierr = 3
> in
> InsertGlobalIndices.
>
> The thing is (from my point of view) quite weird as the indices i am
> trying to add look perfectly reasonable, and the matrix i
> obtain at the
> end (just ignoring the error) is perfectly suitable for a direct or
> sparse solver.
> Could it be "just" a performance warning? (if so..how should
> i fix it?)
>
> any help on this would be useful ... i could not get the
> meaning of the
> error code "3" (or of any error codes)
>
> thank you
> Riccardo
> -
> ________________________________________________________________
> Riccardo Rossi, Ph.D, Civil Engineer
> member of the Kratos Group: kratos.cimne.upc.es
> Centro Internacional de Métodos Numéricos en Ingeniería (CIMNE)
> Universidad Politécnica de Cataluña (UPC)
> Edificio C-1, campus Norte UPC
> Gran Capitan, s/n
> 08034 Barcelona, España
> Tel. (+34) 93 401 73 99
> ________________________________________________________________
>
> AVISO IMPORTANTE
>
> Los datos de carácter personal contenidos en el mensaje, se
> registrarán
> en un fichero para facilitar la gestión de las comunicaciones
> de CIMNE.
> Se pueden ejercitar los derechos de acceso, rectificación,
> cancelación y
> oposición por escrito, dirigiéndose a nuestras oficinas de CIMNE, Gran
> Capitán s/n, Edificio C1 - Campus Norte UPC, 08034 Barcelona, España.
>
> AVÍS IMPORTANT
>
> Les dades de caràcter personal contingudes en aquest missatge es
> registraran en un fitxer per facilitar la gestió de les comunicacions
> del CIMNE. Es poden exercir els drets d'accés, rectificació,
> cancel·lació i oposició, per escrit a les nostres oficines del CIMNE,
> Gran Capità s/n, Edifici C1, Campus Nord UPC, 08034
> Barcelona, Espanya.
>
> IMPORTANT NOTICE
>
> All personal data contained in this mail will be processed
> confidentially and stored in a file property of CIMNE in
> order to manage
> corporate communications. You may exercise the right of access,
> rectification, deletion and objection by letter sent to CIMNE, Gran
> Capitán, Edificio C1 - Campus Norte UPC, 08034 Barcelona, Spain.
>
>
>
> On Wed, 2009-05-06 at 12:00 -0600,
> trilinos-users-request at software.sandia.gov wrote:
> > Send Trilinos-Users mailing list submissions to
> > trilinos-users at software.sandia.gov
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > http://software.sandia.gov/mailman/listinfo/trilinos-users
> > or, via email, send a message with subject or body 'help' to
> > trilinos-users-request at software.sandia.gov
> >
> > You can reach the person managing the list at
> > trilinos-users-owner at software.sandia.gov
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Trilinos-Users digest..."
> >
> >
> > Today's Topics:
> >
> > 1. Optimization (Who Dat)
> > 2. Re: Optimization (Bartlett, Roscoe A)
> > 3. Re: Optimization (Erik Boman)
> >
> >
> >
> ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Tue, 5 May 2009 15:45:37 -0400
> > From: "Who Dat" <izonth at hotmail.com>
> > Subject: [Trilinos-Users] Optimization
> > To: trilinos-users at software.sandia.gov
> > Message-ID: <COL106-W23D1847BC5CB8218252778C1690 at phx.gbl>
> > Content-Type: text/plain; charset="windows-1252"
> >
> >
> > Are there any plans to add an optimization package based on
> evolutionary techniques?
> >
> > _________________________________________________________________
> > Windows Live?: Keep your life in sync.
> >
> http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> https://software.sandia.gov/pipermail/trilinos-users/attachmen
ts/20090505/d9d750c4/attachment-0001.html
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Tue, 5 May 2009 13:54:12 -0600
> > From: "Bartlett, Roscoe A" <rabartl at sandia.gov>
> > Subject: Re: [Trilinos-Users] Optimization
> > To: Who Dat <izonth at hotmail.com>,
> "trilinos-users at software.sandia.gov"
> > <trilinos-users at software.sandia.gov>
> > Message-ID:
> >
> <9C5EDABC60AD90488D506008E9277E4A138F32C56D at ES02SNLNT.srn.sandia.gov>
> > Content-Type: text/plain; charset="us-ascii"
> >
> > What do you meant by "evolutionary techniques"? Do you
> have a reference?
> >
> > Thanks,
> >
> > - Ross
> >
> >
> > ________________________________
> > From: trilinos-users-bounces at software.sandia.gov
> [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf
> Of Who Dat
> > Sent: Tuesday, May 05, 2009 1:46 PM
> > To: trilinos-users at software.sandia.gov
> > Subject: [Trilinos-Users] Optimization
> >
> > Are there any plans to add an optimization package based on
> evolutionary techniques?
> >
> > ________________________________
> > Windows Live(tm): Keep your life in sync. Check it
> out.<http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_
synch_052009>
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL:
> https://software.sandia.gov/pipermail/trilinos-users/attachmen
ts/20090505/a31d7334/attachment-0001.html
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Tue, 05 May 2009 13:58:10 -0600
> > From: Erik Boman <egboman at sandia.gov>
> > Subject: Re: [Trilinos-Users] Optimization
> > To: "Bartlett, Roscoe A" <rabartl at sandia.gov>
> > Cc: "trilinos-users at software.sandia.gov"
> > <trilinos-users at software.sandia.gov>
> > Message-ID: <1241553490.29453.110.camel at octopi.sandia.gov>
> > Content-Type: text/plain; charset=utf-8
> >
> > I presume "evolutionary" as in genetic algorithms.
> > I suggest you look at ACRO, https://software.sandia.gov/trac/acro
> >
> > Erik
> >
> > On Tue, 2009-05-05 at 13:54 -0600, Bartlett, Roscoe A wrote:
> > > What do you meant by "evolutionary techniques"? Do you have a
> > > reference?
> > >
> > > Thanks,
> > >
> > > - Ross
> > >
> > >
> > >
> > >
> ______________________________________________________________
> > > From: trilinos-users-bounces at software.sandia.gov
> > >
> [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf
> > > Of Who Dat
> > > Sent: Tuesday, May 05, 2009 1:46 PM
> > > To: trilinos-users at software.sandia.gov
> > > Subject: [Trilinos-Users] Optimization
> > >
> > >
> > > Are there any plans to add an optimization
> package based on
> > > evolutionary techniques?
> > >
> > >
> > >
> ______________________________________________________________
> > > Windows Live?: Keep your life in sync. Check it out.
> >
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > Trilinos-Users mailing list
> > Trilinos-Users at software.sandia.gov
> > http://software.sandia.gov/mailman/listinfo/trilinos-users
> >
> >
> > End of Trilinos-Users Digest, Vol 45, Issue 5
> > *********************************************
> >
>
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
More information about the Trilinos-Users
mailing list