<div dir="ltr"><div class="gmail_default" style="font-size:small">Dear all,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Running with ./ex23 -ksp_type cg, everything works well.</div>
<div class="gmail_default" style="font-size:small">If running with mpi: mpiexec -n 4 ./ex23 -ksp_type cg</div><div class="gmail_default" style="font-size:small">In /src/ksp/ksp/impls/cg/cg.c, when I try to make a copy of the solution vector X by VecCopy(X, myX), the following error comes out. </div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><div class="gmail_default">[1]PETSC ERROR: --------------------- Error Message ------------------------------------</div><div class="gmail_default">
[1]PETSC ERROR: Object is in wrong state!</div><div class="gmail_default">[1]PETSC ERROR: Not for unassembled vector!</div><div class="gmail_default">[1]PETSC ERROR: ------------------------------------------------------------------------</div>
<div class="gmail_default">[1]PETSC ERROR: Petsc Release Version 3.4.2, Jul, 02, 2013 </div><div class="gmail_default">[1]PETSC ERROR: See docs/changes/index.html for recent updates.</div><div class="gmail_default">[1]PETSC ERROR: See docs/faq.html for hints about trouble shooting.</div>
<div class="gmail_default">[1]PETSC ERROR: See docs/index.html for manual pages.</div><div class="gmail_default">[1]PETSC ERROR: ------------------------------------------------------------------------</div><div class="gmail_default">
[1]PETSC ERROR: ./ex23 on a ksp-intel named head.cluster by lchen Fri Aug 23 11:57:49 2013</div><div class="gmail_default">[1]PETSC ERROR: Libraries linked from /home/lchen/petsc-3.4.2/ftksp-intel/lib</div><div class="gmail_default">
[1]PETSC ERROR: Configure run at Mon Aug 19 18:32:17 2013</div><div class="gmail_default">[1]PETSC ERROR: Configure options PETSC_ARCH=ksp-intel --with-shared-libraries=0 --with-blas-lib=/opt/acml5.3.0/gfortran64/lib/libacml.a --with-lapack-lib=/opt/acml5.3.0/gfortran64/lib/libacml.a</div>
<div class="gmail_default">[1]PETSC ERROR: ------------------------------------------------------------------------</div><div class="gmail_default">[1]PETSC ERROR: VecCopy() line 1686 in /home/lchen/petsc-3.4.2/src/vec/vec/interface/vector.c</div>
<div style="font-size:small"><br></div><div style="font-size:small">But VecCopy(myX, X) works.<br></div><div style="font-size:small">Any problem with my copy?</div><div style="font-size:small">Are there any methods to copy X to myX? </div>
<div style="font-size:small">Thanks,</div><div style="font-size:small"><br></div><div style="font-size:small">Longxiang</div></div></div>