On Mon, Apr 17, 2023 at 5:36 AM Edoardo alinovi <edoardo.alin...@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/>