Re: [petsc-users] Unconstrained optimization question

2024-06-26 Thread Jed Brown
You can use the PETSC_OPTIONS environment variable to specify options if you don't pass the command line arguments through. You can set -tao_grtol smaller to handle this difference in scales between the objective and the gradient, though applying ZjQcmQRYFpfptBannerStart

Re: [petsc-users] Unconstrained optimization question

2024-06-26 Thread Palmer, Bruce J via petsc-users
This is a fortran code that doesn’t make use of argc,argv (I tried running with the runtime options anyway, in case you implemented some magic I’m not familiar with, but didn’t see anything new in the output). I have a call to TaoView(tao, PETSC_VIEWER_STDOUT_SELF,ierr) in the code and it report

Re: [petsc-users] Doubt about TSMonitorSolutionVTK

2024-06-26 Thread MIGUEL MOLINOS PEREZ
Sorry, I did not put in cc petsc-users@mcs.anl.gov my replay. Miguel On Jun 24, 2024, at 6:39 PM, MIGUEL MOLINOS PEREZ wrote: Thank you Barry, This is exactly how I did it the first time. Miguel On Jun 24, 2024, at 6:37 PM, Barry Smith wrote: See, for e

Re: [petsc-users] Unconstrained optimization question

2024-06-26 Thread Barry Smith
Please run with -tao_monitor -tao_converged_reason and see why it has stopped. Barry > On Jun 26, 2024, at 4:34 PM, Palmer, Bruce J via petsc-users > wrote: > > This Message Is From an External Sender > This message came from outside your organization. > Hi, > > I’m trying to do an unc

[petsc-users] Unconstrained optimization question

2024-06-26 Thread Palmer, Bruce J via petsc-users
Hi, I’m trying to do an unconstrained optimization on a molecular scale problem. Previously, I was looking at an artificial molecular problem where all parameters were of order 1 and so the objective function and variables were also in the range of 1 or at least within a few orders of magnitude

Re: [petsc-users] Issues Compiling petsc4py with Cython

2024-06-26 Thread Stefano Zampini
> It was a version incompatibility issue, resolved by configuring it with petsc. Note that "configuring with PETSc" is not a standard Python installation procedure. You should be able to install it in your virtual environment by just doing $ ... activate venv $ cd src/binding/petsc4py $ PETS

Re: [petsc-users] Issues Compiling petsc4py with Cython

2024-06-26 Thread maitri ksh
It was a version incompatibility issue, resolved by configuring it with petsc. Thank you stefano & satish. On Wed, Jun 26, 2024 at 12:34 AM Satish Balay wrote: > Best to get latest petsc and build petsc4py along with petsc: > > For example: > > balay@petsc-gpu-02:/scratch/balay$ wget -q > https: