[petsc-users] issues with VecSetValues in petsc 3.19
Matthew Knepley
knepley at gmail.com
Mon Apr 17 04:40:35 CDT 2023
On Mon, Apr 17, 2023 at 5:36 AM Edoardo alinovi <edoardo.alinovi at gmail.com>
wrote:
> Hello Barry, Matt, Jed,
>
> I have just installed the latest and greatest version of petsc and I am
> hitting a problem I did not have in previous releases.
>
> Here is the error:
>
>
>
>
> *[1]PETSC ERROR: --------------------- Error Message
> --------------------------------------------------------------[1]PETSC
> ERROR: Object is in wrong state[1]PETSC ERROR: Not for unassembled vector,
> did you call VecAssemblyBegin()/VecAssemblyEnd()?[1]PETSC ERROR: WARNING!
> There are option(s) set that were not used! Could be the program crashed
> before they were used or a spelling mistake, etc!*
>
> the vector x I am filling is created with:
>
> - call VecDuplicate(this%rhs, x, ierr)
>
> rhs is allocated and I called VecAssemblyBegin()/VecAssemblyEnd() on, do I
> need to call it on duplicated vectors as well now on?
>
Only if you change the values. Can you show the entire stack from the error
message?
Thanks,
Matt
> Thank you!
>
--
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/20230417/866569b6/attachment-0001.html>
More information about the petsc-users
mailing list