[petsc-users] SNESDMDASNESSetFunctionLocal in Fortran

Khaled Nabil Shar Abdelaziz kabdelaz at purdue.edu
Sun May 14 11:06:24 CDT 2023


Hey there,

I'm having a problem with the DMDASNESSetFunctionLocal() function in C and its Fortran counterpart. The thing is, in C, you can pass a bunch of variables using the ctx parameter, but in Fortran, it only seems to accept one variable.

What's weird is that the SNESSetFunction() function has a similar ctx parameter, but in Fortran, it can handle multiple variables for ctx, unlike DMDASNESSetFunctionLocal(). Do you know if this is on purpose, or am I missing something?

Thanks in advance!

Best regards,
Khaled
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230514/3a713f07/attachment.html>


More information about the petsc-users mailing list