On Tue, Feb 12, 2013 at 7:31 PM, Pilhwa Lee <leep at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130212/080b325b/attachment-0001.html>
