What do you do with something like a void pointer? I’m looking at the 
TaoSetObjectiveAndGradient function and it wants to pass a void *ctx pointer. 
You can set this to null, but apparently you have to specify the type. What 
type should I use? Is there something called PETSC_NULL_VOID or 
PETSC_NULL_CONTEXT or do I use something else?

From: Matthew Knepley <knep...@gmail.com>
Date: Tuesday, December 12, 2023 at 8:33 AM
To: Palmer, Bruce J <bruce.pal...@pnnl.gov>
Cc: petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov>
Subject: Re: [petsc-users] Fortran Interface
Check twice before you click! This email originated from outside PNNL.

On Tue, Dec 12, 2023 at 11:27 AM Palmer, Bruce J via petsc-users 
<petsc-users@mcs.anl.gov<mailto:petsc-users@mcs.anl.gov>> wrote:
Does documentation for the PETSc fortran interface still exist? I looked at the 
web pages for 3.20 (petsc.org/release<http://petsc.org/release>) but if you go 
under the tab C/Fortran API, only descriptions for the C interface are there.

I think after the most recent changes, the interface was supposed to be very 
close to C, so we just document the differences on specific pages, and put the 
general stuff here:

  https://petsc.org/release/manual/fortran/

   Thanks,

     Matt

Bruce Palmer


--
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/>

Reply via email to