[Trilinos-Users] Changes to Epetra in Trilinos 11.0

Willenbring, James M jmwille at sandia.gov
Fri Sep 28 13:09:29 MDT 2012


All,
Trilinos 11.0 is scheduled for external release next week.  Prior to the release, we would like users to be aware of an important change that is coming to Epetra, and in particular a problem that could occur when upgrading to Trilinos 11.0.
Epetra supports 64-bit global indices beginning with Trilinos Release 11.0 by using the "long long" datatype.  Epetra still supports 32-bit global indices and the interface for using them remains the same.  However, existing Epetra-dependent code may not compile if it relied on automatic type conversion to "int" from non-int types when constructing Epetra objects or calling certain member functions.  This is because now there can be ambiguity due to overloading.  Use explicit conversion as illustrated below:
-         int lid = owned_x->Map().LID(node_list[node] * num_eq);
+         int lid = owned_x->Map().LID(static_cast<int>(node_list[node] * num_eq));

 Thank you for your interest in Trilinos

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20120928/d1d862a1/attachment.html 


More information about the Trilinos-Users mailing list