[Trilinos-Users] How to compile correctly

Alicia M Klinvex aklinvex at purdue.edu
Thu Nov 6 07:24:15 MST 2014


Copying this to the list so the other developers know your compilation issue has been resolved.

----- Original Message -----
From: maireni at cimne.upc.edu
To: "Alicia M Klinvex" <aklinvex at purdue.edu>
Sent: Thursday, November 6, 2014 6:24:19 AM
Subject: Re: [Trilinos-Users] How to compile correctly

Hello Alicia,
The compilation problem was because i did not include yet
the library libtpetra. So Sorry.
Regards

Nelson



El 2014-11-06 01:31, Alicia M Klinvex escribió:
> Hello Nelson,
> 
> I'm copying your message to the rest of the user mailing list so that
> someone else can help you with linking.
> 
> And don't apologize for "bothering me."  This is what we're here for! 
> :-)
> 
> Best wishes,
> Alicia
> 
> 
> 
> ----- Original Message -----
> From: maireni at cimne.upc.edu
> To: "Alicia M Klinvex" <aklinvex at purdue.edu>
> Sent: Wednesday, November 5, 2014 5:42:04 AM
> Subject: Re: [Trilinos-Users] Returned mail: see transcript for details
> 
> Hello Alicia Klinvex,
> 
> I can understand how the class Tpetra::CrsMatrix
> works but i have some dudes about construct the row and column map
> you pointed before. The main goal is construct
> the mass and stiffness sparse matrix in trilinos way for then call
> Anasazi.
> 
> At instance, look for example this part of my code
> 
> typedef double scalar_type;
> typedef int   local_ordinal_type;
> typedef long  global_ordinal_type;
> 
> typedef ArrayRCP< size_t >              RowPointersType;
> typedef ArrayRCP< local_ordinal_type >  ColumnIndicesType;
> typedef ArrayRCP< scalar_type >   	ValuesType;
> 
> typedef Tpetra::CrsMatrix<scalar_type> TpetraCrsMatrix;
> typedef Tpetra::Operator<scalar_type> TpetraOp_type;
> typedef TpetraCrsMatrix::map_type map_type;
> 
> 
> ///data for K
> RCP< const map_type > rowMap;
> RCP< const map_type > colMap;
> RowPointersType       ArowPointer(reinterpret_cast<size_t*>(ArowPtr), 
> 0,
> rowPointersize, true);
> ColumnIndicesType     AcolumnInd(AcolIdx,  0, Anz,            true);
> ValuesType  	      Avalues(Aval,        0, Anz,            true);
> 
> // Create Stiffness CrsMatrix sparse matrix.
> TpetraCrsMatrix K(rowMap, colMap, ArowPointer, AcolumnInd, Avalues);
> 
> I can not figure out how to create the maps to works in serial.
> Even, in the end of compilation i have this error.
> There is an order in the linking Trilinos library?
> There are no reference in google about it but   DSO missing from 
> command
> line yes.
> 
> ld: eigen_amesos.o: undefined reference to symbol
> '_ZN6Tpetra11DistributorD1Ev'
> /usr/local/trilinos-11.12.1/lib/libtpetra.so.11: error adding symbols:
> DSO missing from command line
> make[1]: *** [../amls] Error 1
> make[1]: Leaving directory `/home/nelson/Amls/src'
> 
> 
> 
> Thanks and sorry for bother you.
> 
> Regards
> 
> Nelson
> 
> 
> 
> El 2014-11-04 21:57, Alicia M Klinvex escribió:
>> Hello Nelson,
>> 
>> My name is Alicia, and I am an Anasazi developer.  I'm glad you've
>> decided to try Anasazi :-)
>> 
>> I assume what you're asking is how to take your three CSR arrays and
>> turn them into a CrsMatrix that you can pass to an Anasazi
>> eigensolver.  If you're using Tpetra, the constructor you're looking
>> for is this:
>> http://trilinos.org/docs/r11.10/packages/tpetra/doc/html/classTpetra_1_1CrsMatrix.html#a139a91ad9430f012bfb3bcb8fe413ae1
>> (If you're using Epetra instead, or want to know the difference
>> between Epetra and Tpetra, let me know.)
>> 
>> Note that this constructor will expect the row map and column map,
>> which define how the data is distributed over the MPI processes.  If
>> you don't understand how to create those maps, please let me know and
>> I'll help you out.
>> 
>> Does that answer your question?
>> 
>> Best wishes,
>> Alicia Klinvex
>> 
>> 
>> 
>> ----- Original Message -----
>> From: maireni at cimne.upc.edu
>> To: trilinos-users at software.sandia.gov
>> Sent: Tuesday, November 4, 2014 3:41:49 AM
>> Subject: Re: [Trilinos-Users] Returned mail: see transcript for 
>> details
>> 
>> 
>> Dear Heidi Thornquist,
>> 
>>   Allow me introduce myself first. My name is Nelson Lafontaine,
>>   i am a PhD student from UPC, Barcelona, Spain. Now i am Beijing 
>> China
>>   working with the Psor Chen Pu in the Automatic Multilevel
>> Substructure
>>   Methods (AMLS).
>>   I see you are a Anasazi developer and i write to you because i am
>>   interested in use
>>   this library. My installation of Trilinos (trilinos-11.12.1) was
>>   successfully,
>>   even  i can run some test examples that you are define in Anasazi
>> files.
>> 
>>   However, like you create your own class of matrices and vector,
>>   my data i can provided to solve my eigen problem is in the form of
>>   a Compressed Sparse Row (CSR). My question  is if exist a way to 
>> call
>>   the eigen-solver defined in Anasazi just providing the data of
>>   compressed
>>   Sparse row format, or if is possible to create the matrices types
>>   defined
>>   in Anasazi just using the CRS format.
>> 
>>   Thanks in advance for your time.
>> 
>>   Nelson
>> _______________________________________________
>> Trilinos-Users mailing list
>> Trilinos-Users at software.sandia.gov
>> https://software.sandia.gov/mailman/listinfo/trilinos-users


More information about the Trilinos-Users mailing list