<div dir="ltr"><div><div><div>I have a ghost vector "b" and I want to work with my local representation adding values in my local part and my ghost padding region. Is this possible or I have to use VecSetValues ?<br>                              <wbr>                              <wbr>                  <br>VecGhostGetLocalForm( b , &b_loc );                            <wbr>                              <wbr>                              <wbr>VecGetArray( b_loc, &b_arr );<br>...<br>VecSetValues( b_loc, n , index, r_e, ADD_VALUES );<br>VecRestoreArray( b_loc, &b_arr ); // this communicate something in the ghost padding region ?<br><br></div>I tried to see the code of VecRestoreArray but does not seem to be communicating anything. I am seeing some routines and I think that adding <br><br></div>VecGhostUpdateBegin(b, ADD_VALUES, SCATTER_REVERSE);<br>VecGhostUpdateEnd(b, ADD_VALUES, SCATTER_REVERSE);<br><br></div>can do what I want, i.e. adding the ghost padding regions on all the processes that correspond.Is this true ? Thank you, Guido.<br></div>