On Nov 5, 2008, at 5:52 PM, Kirk, Benjamin (JSC-EG) wrote:
I see your nutty and raise you bat-shit crazy:PETSc allows you to provide your own buffer for storing the local elements when you create a vector... Does Trilinos have something similar? If so, I propose we take the implementation in DistributedVector, push it down into NumericVector, and beef it up.
I believe that if you're careful how you create your data arrays you should be able to do the same for Trilinos. Look at the "View" constructors for Epetra MultiVectors:
http://trilinos.sandia.gov/packages/docs/dev/packages/epetra/doc/html/classEpetra__MultiVector.html#z351_2If you pass Epetra_DataAccess as "View" and pass in a two-dimensional array (in our case it would just be one dimensional for a vector) it should just use your places in memory when you pass that Vector to Trilinos stuff.
Essentially, you could manage all of your own memory then just wrap it before you pass it off.
Derek
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Libmesh-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-devel
