Re: [petsc-dev] pointing out raw pointer in CUSPARRAY
12 Feb
2013
12 Feb
'13
6:54 p.m.
On Tue, Feb 12, 2013 at 7:31 PM, Pilhwa Lee <[email protected]> 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
4929
Age (days ago)
4929
Last active (days ago)
0 comments
1 participants
participants (1)
-
Matthew Knepley