On Tue, Feb 12, 2013 at 7:31 PM, Pilhwa Lee <leep@cims.nyu.edu> wrote:
Dear folks,

I try to get PetscScalar array from CUSPARRAY as follows:

CUSPARRAY *cusparray;
PetscScalar *abc;

abc = VecCUSPCastToRawPtr(*cusparray);

std::cout << abc[0];

However, there comes a segmentation violation error. Any opinions are welcome. Thanks.

Aren't these device pointers?

  Matt
 
With best regards,
Pilhwa



--
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
-- Norbert Wiener