On Fri, 6 Dec 2019 at 06:31, Patrick Dupre <pdu...@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:
 
typedef struct { doublereal r, i; } doublecomplex;
 
 
This is f2c, I tried to avoid to use this old package
now there is is a complex librairy in gcc
which has all the functions for the complex,
In my opinion, f2c is only recommanded when you use the converter f2c
Actually, f2c, is not capable to convert all the Frotran progams, and it does
not make a great job as soon as the code is a bit complex
 
 
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: pdu...@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@lists.fedoraproject.org
To unsubscribe send an email to users-le...@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
 
_______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@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
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@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

Reply via email to