* help with fortran problem
@ 1997-05-08 7:46 Richard Holmes
0 siblings, 0 replies; only message in thread
From: Richard Holmes @ 1997-05-08 7:46 UTC (permalink / raw)
Hello all,
I have a Fortran routine that I link to my C code. I've compiled it
and run it successfully on Linux/Intel using gcc and g77 as well
as on a Sun using their C and Fortran compilers. On my Alpha machine
with gcc and f2c, though, it doesn't work.
The problem is in the Fortran routine as converted by f2c. I can't post
the whole thing, but the offending line is
epsmch = dpmeps_();
where epsmch is defined to be a doublereal.
For testing purposes, I've set dpmeps_() to be simply
doublereal dpmeps_()
{
return 1.0;
}
where the prototype created by f2c is
extern doublereal dpmeps_();
and is located within the function that calls it.
For some reason epsmch is always set to 0. Any idea why this is happening?
Rich
---------------------------------------
Richard Holmes
Los Alamos National Laboratory
Group XTA
MS B220
Los Alamos, NM 87545
(505) 667-3598
holmes@lanl.gov
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-05-08 7:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-05-08 7:46 help with fortran problem Richard Holmes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox