<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">I want to know <br>1. What is the relationship between Vhat and LocalVhat. Is the LocalVhat a copy of the Vhat plus the Ghost values. I think the LocalVhat will consume more memeory than the Vhat, am i right?<br>2. can i direct call VecGetArrary to the Vhat if i do not operate on the ghost value.<br><br><br></div></div><span title="neteasefooter"><span id="netease_mail_footer"></span></span></div> Vec Vhat;<br> Vec LocalVhat;<br> double* VhatVec;<br><br> VecCreateGhost(PETSC_COMM_WORLD,aMesh->Nx*aMesh->Ny/Commsize,PETSC_DECIDE,aMesh->nghosts,&aMesh->ghosts[0],&Vhat); &nb
sp; <br> VecGhostGetLocalForm(Vhat,&LocalVhat);<br> VecGhostUpdateBegin(Vhat,INSERT_VALUES,SCATTER_FORWARD);<br> VecGhostUpdateEnd(Vhat,INSERT_VALUES,SCATTER_FORWARD); <br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>