[Trilinos-Users] Strange Problem Using View Mode
Michael A Heroux
maherou at sandia.gov
Sun Dec 9 12:01:58 MST 2007
Davood,
It it difficult to give detailed advice without more information. However,
generally speaking ³View² mode has several restrictions:
* You must guarantee the integrity of the arrays you ask the Epetra matrix
object to use.
* For each row, you can insert values only one time.
View mode is intended to wrap an existing Crs-like matrix.
If this does help, please give more detail.
Mike
On 12/7/07 10:04 PM, "Davood Ansari" <david.ansari at gmail.com> wrote:
> Hi
>
> I have built my Trilinos using intel's compilers mpi library.
> Every thing seems to work fine. Yet when I use the "View"
> mode when constructing objects It comes across all sorts of
> strange problems. For example when I try to construct my
> Epetra_Crs Matrix form a ready made Crs_Graph:
>
> Epetra_CrsMatrix A(Copy, Graph) ;
>
> every thing is fine but the following leads to runtime errors:
>
> Epetra_CrsMatrix A(View, Graph) ;
> for example when I try to get a cout << endl << A this is what I get :
> ------------------------------------------------------------------------------
> -----------------------------------------------------------------------------
>
> mpirun -np 2 ./parpoissons
> WARNING: Can't read mpd.hosts for list of hosts, start only on current
>
> Dec 8 11:57:17 PID1: Assembling FE Sparse Matrix Structure ...
> Dec 8 11:57:17 PID1: Loading MeshData.gms ...
>
> Dec 8 11:57:17 PID0: Assembling FE Sparse Matrix Structure ...
> Dec 8 11:57:17 PID0: Loading MeshData.gms ...
>
> Epetra::CrsMatrix
>
> Epetra::CrsMatrix
>
> Number of Global Rows = 29
> Number of Global Cols = 29
> Number of Global Diagonals = 29
> Number of Global Nonzeros = 165
> Global Maximum Num Entries = 9
>
>
>
>
>
> Number of My Rows = 15
> Number of My Cols = 29
> Number of My Diagonals = 15
> Number of My Nonzeros = 71
> My Maximum Num Entries = 5
>
>
> Number of My Rows = 14
> Number of My Cols = 29
> Number of My Diagonals = 14
> Number of My Nonzeros = 94
> My Maximum Num Entries = 9
>
> Processor Row Index Col Index Value
> rank 0 in job 1 davood_55948 caused collective abort of all ranks
> exit status of rank 0: killed by signal 11
> ------------------------------------------------------------------------------
> -----------------------------------------------------------------------------
>
> I had a similar run time issue when using "View" mode for constructing the
> Crs_Graph as well.
> In that case the Fill.Compelete() would return -1 as a runtime error whih is
> not explained in the
> documents as well. Every thing works fine when I use "Copy" mode.
>
> Is this a bug or system configuration issue ?
> Please advise
> Davood
>
>
>
> _______________________________________________
> 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/20071209/16ecef37/attachment.html
More information about the Trilinos-Users
mailing list