[petsc-users] Dynamic SNESVI bounds

Barry Smith bsmith at petsc.dev
Thu Sep 10 18:26:48 CDT 2020


  Yes, it should be simple to write the code to do this.

  Provide a function that calls SNESVISetVariableBounds() using your criteria then call SNESSetUpdate() to have that function called on each iteration of SNES to reset the bounds.

  If this will converge to what you desire I have no clue. But each step will find a result that satisfies the current bounds you set.

  Barry

  


> On Sep 10, 2020, at 5:15 PM, Alexander B Prescott <alexprescott at email.arizona.edu> wrote:
> 
> Hi there,
> 
> I have a quick question (hopefully) that I didn't find addressed in the documentation or user list archives. Is it possible to change the SNES Variational Inequality bounds from one solver iteration to the next?
> My goal is to update the bounds such that a specific entry in the solution vector remains the supremum throughout the entire execution.
> 
> Best,
> Alexander
> 
> -- 
> Alexander Prescott
> alexprescott at email.arizona.edu <mailto:alexprescott at email.arizona.edu>
> PhD Candidate, The University of Arizona
> Department of Geosciences
> 1040 E. 4th Street
> Tucson, AZ, 85721

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200910/ced97758/attachment.html>


More information about the petsc-users mailing list