[petsc-users] DMPlexGetCone in Fortran

Bernardo Rocha bernardomartinsrocha at gmail.com
Thu Apr 5 20:57:04 CDT 2018


OK, thanks a lot.
I had to rename the files and add -ffixed-form as argument to the compiler.
Best regards,
Bernardo

On Thu, Apr 5, 2018 at 8:21 PM, Matthew Knepley <knepley at gmail.com> wrote:

> On Thu, Apr 5, 2018 at 7:16 PM, Bernardo Rocha <
> bernardomartinsrocha at gmail.com> wrote:
>
>> Hello everyone,
>>
>> I've been trying to use DMPlex in a Fortran 77 application
>> (unfortunately this is legacy code and I can't move to F90).
>>
>> Is there a way to use DMPlexGetCone on it?
>> Although the documentation online says it is only available for F90,
>> I'm wondering if there is a trick like the ones in the users manual for
>> routines
>> that return an array. I tried, but I'm not sure it it is right.
>>
>
> We have standardized our array handling with F90, and I don't think we
> will go back
> to supporting new things for F77-style arrays.
>
> That being said, I think all you have to do is compile that source with an
> F90 compiler. You
> should not have to change anything. If you want the F90 array to look like
> an F77 array,
> just pass it as a function argument (I think this works).
>
>   Thanks,
>
>      Matt
>
>
>> Best regards,
>> Bernardo M. Rocha
>>
> --
> 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.caam.rice.edu/~mk51/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180405/fb9fb4e0/attachment.html>


More information about the petsc-users mailing list