<p dir="ltr">Hi, </p>
<p dir="ltr">So I can use PetscScalar view directly to view the u_array? 
<br><br></p>
<p dir="ltr">Sent using <a 
href="https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.2.7&pv=5.0.2">CloudMagic</a> 
</p>
<div class="cm_quote" style=" color: #787878"></div><br><div 
id="oldcontent" style="background: rgb(255, 255, 255);"><blockquote 
style="">On Wed, Aug 19, 2015 at 10:41 PM, Satish Balay <<a 
href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br><div 
id="oldcontent" style="background: rgb(255, 255, 255);"><blockquote 
style=""><p dir="ltr">check PetscScalarView()
<br>

<br>
Satish
<br>

<br>
On Tue, 21 Jul 2015, TAY wee-beng wrote:
<br>

<br>
> Hi,
<br>

<br>
> I need to check the contents of the array which was declared using:
<br>

<br>
> PetscScalar,pointer ::
<br>
> u_array(:,:,:),v_array(:,:,:),w_array(:,:,:),p_array(:,:,:)
<br>

<br>
> I tried to use :
<br>

<br>
> call PetscViewerASCIIOpen(MPI_COMM_WORLD,"pres.txt",viewer,ierr)
<br>

<br>
> call VecView(p_array,viewer,ierr)
<br>

<br>
> or
<br>

<br>
> call MatView(p_array,viewer,ierr)
<br>

<br>
> call PetscViewerDestroy(viewer,ierr)
<br>

<br>
> but I got segmentation error. So is there a PETSc routine I can use?
<br>

<br>

<br>

<br>
</p>
</blockquote></div></blockquote></div>