[petsc-users] About MPIRUN

Matthew Knepley knepley at gmail.com
Tue Dec 6 07:58:03 CST 2022


On Tue, Dec 6, 2022 at 6:45 AM 김성익 <ksi2443 at gmail.com> wrote:

> Hello,
>
>
> There is a code which can run in not mpirun and also it can run in
> mpi_linear_solver_server.
> However, it has an error in just mpirun case such as mpirun -np ./program.
> The error output is as below.
> [0]PETSC ERROR: --------------------- Error Message
> --------------------------------------------------------------
> [0]PETSC ERROR: Object is in wrong state
> [0]PETSC ERROR: Not for unassembled vector
> [0]PETSC ERROR: See https://petsc.org/release/faq/ for trouble shooting.
> [0]PETSC ERROR: Petsc Release Version 3.18.1, unknown
> [0]PETSC ERROR: ./app on a arch-linux-c-debug named ubuntu by ksi2443 Tue
> Dec  6 03:39:13 2022
> [0]PETSC ERROR: Configure options -download-mumps -download-scalapack
> -download-parmetis -download-metis
> [0]PETSC ERROR: #1 VecCopy() at
> /home/ksi2443/petsc/src/vec/vec/interface/vector.c:1625
> [0]PETSC ERROR: #2 KSPInitialResidual() at
> /home/ksi2443/petsc/src/ksp/ksp/interface/itres.c:60
> [0]PETSC ERROR: #3 KSPSolve_GMRES() at
> /home/ksi2443/petsc/src/ksp/ksp/impls/gmres/gmres.c:227
> [0]PETSC ERROR: #4 KSPSolve_Private() at
> /home/ksi2443/petsc/src/ksp/ksp/interface/itfunc.c:899
> [0]PETSC ERROR: #5 KSPSolve() at
> /home/ksi2443/petsc/src/ksp/ksp/interface/itfunc.c:1071
> [0]PETSC ERROR: #6 main() at /home/ksi2443/Downloads/coding/a1.c:450
> [0]PETSC ERROR: No PETSc Option Table entries
> [0]PETSC ERROR: ----------------End of Error Message -------send entire
> error message to petsc-maint at mcs.anl.gov----------
>
> How can I fix this??
>

It looks like we do not check the assembled state in parallel, since it
cannot cause a problem, but every time you
update values with VecSetValues(), you should call VecAssemblyBegin/End().

  Thanks

      Matt


> Thanks,
> Hyung Kim
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221206/7ed06f8a/attachment-0001.html>


More information about the petsc-users mailing list