[petsc-users] PetscSF Fortran interface

Nicholas Arnold-Medabalimi narnoldm at umich.edu
Sat Nov 19 20:04:46 CST 2022


Hi

Thanks, this is awesome. Thanks for the very prompt fix. Just one question:
will the array outputs on the fortran side copies (and need to be
deallocated) or direct access to the dmplex?

Sincerely
Nicholas

On Sat, Nov 19, 2022 at 8:21 PM Junchao Zhang <junchao.zhang at gmail.com>
wrote:

> Hi, Nicholas,
>   See this MR, https://gitlab.com/petsc/petsc/-/merge_requests/5860
>   It is in testing, but you can try branch jczhang/add-petscsf-fortran to
> see if it works for you.
>
>   Thanks.
> --Junchao Zhang
>
> On Sat, Nov 19, 2022 at 4:16 PM Nicholas Arnold-Medabalimi <
> narnoldm at umich.edu> wrote:
>
>> Hi Junchao
>>
>> Thanks. I was wondering if there is any update on this. I may write a
>> small interface for those two routines myself in the interim but I'd
>> appreciate any insight you have.
>>
>> Sincerely
>> Nicholas
>>
>> On Wed, Nov 16, 2022 at 10:39 PM Junchao Zhang <junchao.zhang at gmail.com>
>> wrote:
>>
>>> Hi, Nicholas,
>>>   I will have a look and get back to you.
>>>   Thanks.
>>> --Junchao Zhang
>>>
>>>
>>> On Wed, Nov 16, 2022 at 9:27 PM Nicholas Arnold-Medabalimi <
>>> narnoldm at umich.edu> wrote:
>>>
>>>> Hi Petsc Users
>>>>
>>>> I'm in the process of adding some Petsc for mesh management into an
>>>> existing Fortran Solver. It has been relatively straightforward so far but
>>>> I am running into an issue with using PetscSF routines. Some like the
>>>> PetscSFGetGraph work no problem but a few of my routines require the use of
>>>> PetscSFGetLeafRanks and PetscSFGetRootRanks and those don't seem to be in
>>>> the fortran interface and I just get a linking error. I also don't seem to
>>>> see a PetscSF file in the finclude. Any clarification or assistance would
>>>> be appreciated.
>>>>
>>>>
>>>> Sincerely
>>>> Nicholas
>>>>
>>>> --
>>>> Nicholas Arnold-Medabalimi
>>>>
>>>> Ph.D. Candidate
>>>> Computational Aeroscience Lab
>>>> University of Michigan
>>>>
>>>
>>
>> --
>> Nicholas Arnold-Medabalimi
>>
>> Ph.D. Candidate
>> Computational Aeroscience Lab
>> University of Michigan
>>
>

-- 
Nicholas Arnold-Medabalimi

Ph.D. Candidate
Computational Aeroscience Lab
University of Michigan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221119/851c9192/attachment-0001.html>


More information about the petsc-users mailing list