Complex Integration of Fortran function in Arb Library using Fortran-C Interoperability

22 views
Skip to first unread message

Akhil Akkapelli

unread,
Jul 19, 2024, 3:35:16 AMJul 19
to flint-devel
I'm trying to use the acb_calc_integrate function from the Arb C library to calculate the integral of a Fortran function through Fortran-C interoperability.

However, I'm encountering a segmentation fault when integrating a Fortran program with the polynomial function f(z) = 1 + z + z^2 + z^3 as the integrand. This issue doesn't occur when the polynomial function is f(z) = 1 + z + z^2, and the same Fortran program works fine. This issue is not present when integrating in equivalent C program.

I'm looking for assistance to understand why this segmentation fault is happening in Fortran and how to fix it. I have detailed the issue in an issue report on the Flint GitHub repository here:https://github.com/flintlib/flint/issues/2036.

Any help would be appreciated.

Albin Ahlbäck

unread,
Jul 19, 2024, 6:12:43 AMJul 19
to flint...@googlegroups.com, Akhil Akkapelli
Have you tried with a newer version of FLINT? Is the problem the same,
still? It either looks like a linker issue or calling convention issue
(ABI issue).

Best,
Albin
> --
>
> ---
> You received this message because you are subscribed to the Google
> Groups "flint-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to flint-devel...@googlegroups.com
> <mailto:flint-devel...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/flint-devel/5fa3f3f6-9f3d-4b27-8d20-905eca0ec319n%40googlegroups.com <https://groups.google.com/d/msgid/flint-devel/5fa3f3f6-9f3d-4b27-8d20-905eca0ec319n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Rudi Gaelzer

unread,
Jul 19, 2024, 12:45:54 PMJul 19
to flint-devel
You could try posing your question to the Fortran Discourse Forum  (https://fortran-lang.discourse.group).
Reply all
Reply to author
Forward
0 new messages