PDA

View Full Version here: : Fortran95 expertise needed


spacezebra
29-08-2019, 05:51 PM
Greetings all

I would like to touch base with someone who would be willing to review a very short program need to calculate some astro information about redshift and c/Ho.

Happy to pay for time, really just need to get over a stumbling block I have with the code.

Really need someone who is pretty switched on to this language, primarily I am flying blind on this one.

Cheers Petra

gary
29-08-2019, 06:11 PM
Hi Petra,

I could take a quick look.

Gary

sheeny
29-08-2019, 06:34 PM
No guarantees Petra - it's been about 30 years since I last programmed in Fortran, but it is the one and only proper language. Happy to have a look if you're still stuck.


Al.

spacezebra
29-08-2019, 09:37 PM
Thank you so so much guys, what is the best way to send it to you?

Cheers Petra

gary
29-08-2019, 11:00 PM
If it is multiple source files, zip it into an archive and email to wildcard@wildcard-innovations.com.au

OICURMT
30-08-2019, 09:57 AM
I'll take a look at it as well... if others are stumped. If it can't compile, then try https://www.lahey.com/check.htm (https://www.lahey.com/check.htm)

Wavytone
30-08-2019, 10:39 AM
Why is it in FORTRAN and not a more modern language ?

spacezebra
30-08-2019, 10:44 AM
Greetings

Good question...answers range from...I like a challenge to... I have no idea.

Cheers Petra

Wavytone
30-08-2019, 01:30 PM
I can think of half a dozen languages I’d prefer - starting with Xojo.

gary
30-08-2019, 02:17 PM
Hi Petra,

I've have sent you some emails but one salient issue was that you never
explicitly initialise the variable z.

I could get it to run and produce output by initialising z=0.0 otherwise
with GNU f95 compiler the executable never terminates.

The last item in the first line of output produces a floating point NaN.
There is a division the first time around where the denominator d_L
is zero or pretty nearly to it.

I added other recommendations in the emails.

Best Regards

Gary

tonybarry
30-08-2019, 04:20 PM
Me too. Xojo is civilised. Especially the web server.

Regards,
Tony Barry
WSAAG