On Fri, 6 Dec 2019 at 06:31, Patrick Dupre <pdupre(a)gmx.com> wrote:
Hello,
Several times I called a fortran routine from a c program, it was OK.
I am trying to do the same with complex numbers in the call.
Is it a problem ?
in c, I use double complex
in f95, I use COMPLEX*16
Typo? From f2c.h <
https://www.netlib.org/f2c/f2c.h>:
typedef struct { doublereal r, i; } doublecomplex;
my fortran cade translated to c by f2c does not work
I get a segmentation fault:
are the formats of the complex incompatible different?
Do I need to add a compilation option?
Thank.
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
Tel: +33 (0)380395988
===========================================================================
_______________________________________________
users mailing list -- users(a)lists.fedoraproject.org
To unsubscribe send an email to users-leave(a)lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
--
George N. White III