<div dir="ltr">Dear Petsc-Users,<div><br></div><div>I called the <a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESVISetVariableBounds.html#SNESVISetVariableBounds">SNESVISetVariableBounds</a> and received the following error:</div>
<div><br></div><div><div>[0]PETSC ERROR: Must call DMShellSetGlobalVector() or DMShellSetCreateGlobalVector()</div><div>[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.</div>
<div>[0]PETSC ERROR: Petsc Release Version 3.5.0, Jun, 30, 2014 </div></div><div>....</div><div><br></div><div><div>[0]PETSC ERROR: Configure options --with-x=0 -with-pic --with-external-packages-dir=/opt/apps/intel13/mvapich2_1_9/petsc/3.5/externalpackages --with-mpi-compilers=1 --with-mpi-dir=/opt/apps/intel13/mvapich2/1.9 --with-scalar-type=real --with-shared-libraries=1 --with-matlab --with-matlab-dir=/work/apps/matlab/2013a --with-spai=1 --download-spai --with-hypre=1 --download-hypre --with-mumps=1 --download-mumps --with-scalapack=1 --download-scalapack --with-blacs=1 --download-blacs --with-spooles=1 --download-spooles --with-superlu=1 --download-superlu --with-superlu_dist=1 --download-superlu_dist --with-parmetis=1 --download-parmetis --with-metis=1 --download-metis --with-hdf5=1 --with-hdf5-dir=/opt/apps/intel13/mvapich2_1_9/phdf5/1.8.9 --with-debugging=no --with-blas-lapack-dir=/opt/apps/intel/13/composer_xe_2013.3.163/mkl/lib/intel64 --with-mpiexec=mpirun_rsh --COPTFLAGS= --CXXOPTFLAGS= --FOPTFLAGS=</div>
<div>[</div><div>0]PETSC ERROR: #1 DMCreateGlobalVector_Shell() line 245 in /opt/apps/intel13/mvapich2_1_9/petsc/3.5/src/dm/impls/shell/dmshell.c</div><div>[0]PETSC ERROR: #2 DMCreateGlobalVector() line 681 in /opt/apps/intel13/mvapich2_1_9/petsc/3.5/src/dm/interface/dm.c</div>
<div>[0]PETSC ERROR: #3 DMGetGlobalVector() line 154 in /opt/apps/intel13/mvapich2_1_9/petsc/3.5/src/dm/interface/dmget.c</div></div><div><br></div><div>Could anyone give me a hint to the source of the error? Thank you.</div>
<div><br></div><div>Que</div><div><br></div></div>