<div dir="ltr"><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;color:rgb(56,118,29)">Hi dear whoever reads this:</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;color:rgb(56,118,29)"><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;color:rgb(56,118,29)">I have a quick question:</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;color:rgb(56,118,29)">After matrix assembly, suppouse I have matrix A. Assuming I used 16 processors, if I want each processor to print out their local contents of the A, how do I proceed? (I simply want to know how the matrix is stored from generating to communicating to solving, so I get to display all the time to get better undersdtanding)</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;color:rgb(56,118,29)"><br></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;color:rgb(56,118,29)">I read the examples, and I tried things like below and sooooo many different codes from examples, it still is not working.</div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;color:rgb(56,118,29)"><div class="gmail_default"> PetscViewer viewer;</div><div class="gmail_default"> PetscMPIInt my_rank;</div><div class="gmail_default"> MPI_Comm_rank(PETSC_COMM_WORLD,&my_rank); </div><div class="gmail_default"> PetscPrintf(MPI_COMM_SELF,"[%d] rank\n",my_rank);</div><div class="gmail_default"> PetscViewerASCIIOpen(MPI_COMM_SELF,NULL,&viewer);</div><div class="gmail_default"> PetscViewerPushFormat(viewer,PETSC_VIEWER_ASCII_INFO);</div><div class="gmail_default"> MatView(impOP,viewer);</div><div><br></div><div>Plea......se give me some hints</div><div><br></div><div>Thank you so very much!</div><div><br></div></div><div class="gmail_default" style="font-family:'comic sans ms',sans-serif;color:rgb(56,118,29)"><br></div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font face="comic sans ms, sans-serif" color="#0b5394">Longyin Cui (or you know me as Eric);</font><div><font face="comic sans ms, sans-serif" color="#0b5394">Student from C.S. division;</font></div><div><font face="comic sans ms, sans-serif" color="#0b5394">Cell: 7407047169;</font></div><div><font face="comic sans ms, sans-serif" color="#0b5394">return 0;</font></div><div><font color="#00ffff"><br></font></div></div></div></div></div></div>
</div>