Go Back   IceInSpace > General Astronomy > General Chat
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread
  #1  
Old 29-08-2019, 05:51 PM
spacezebra's Avatar
spacezebra (Petra)
Lost in Namibia

spacezebra is offline
 
Join Date: Aug 2005
Location: Albury NSW
Posts: 3,134
Fortran95 expertise needed

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
Reply With Quote
  #2  
Old 29-08-2019, 06:11 PM
gary
Registered User

gary is offline
 
Join Date: Apr 2005
Location: Mt. Kuring-Gai
Posts: 5,999
Hi Petra,

I could take a quick look.

Gary
Reply With Quote
  #3  
Old 29-08-2019, 06:34 PM
sheeny's Avatar
sheeny (Al)
Spam Hunter

sheeny is offline
 
Join Date: Jun 2005
Location: Oberon NSW
Posts: 14,437
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.
Reply With Quote
  #4  
Old 29-08-2019, 09:37 PM
spacezebra's Avatar
spacezebra (Petra)
Lost in Namibia

spacezebra is offline
 
Join Date: Aug 2005
Location: Albury NSW
Posts: 3,134
Thank you so so much guys, what is the best way to send it to you?

Cheers Petra
Reply With Quote
  #5  
Old 29-08-2019, 11:00 PM
gary
Registered User

gary is offline
 
Join Date: Apr 2005
Location: Mt. Kuring-Gai
Posts: 5,999
If it is multiple source files, zip it into an archive and email to wildcard@wildcard-innovations.com.au
Reply With Quote
  #6  
Old 30-08-2019, 09:57 AM
OICURMT's Avatar
OICURMT
Oh, I See You Are Empty!

OICURMT is offline
 
Join Date: Apr 2010
Location: Laramie, WY - United States of America
Posts: 1,555
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
Reply With Quote
  #7  
Old 30-08-2019, 10:39 AM
Wavytone
Registered User

Wavytone is offline
 
Join Date: Jul 2008
Location: Killara, Sydney
Posts: 4,147
Why is it in FORTRAN and not a more modern language ?
Reply With Quote
  #8  
Old 30-08-2019, 10:44 AM
spacezebra's Avatar
spacezebra (Petra)
Lost in Namibia

spacezebra is offline
 
Join Date: Aug 2005
Location: Albury NSW
Posts: 3,134
Greetings

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

Cheers Petra

Quote:
Originally Posted by Wavytone View Post
Why is it in FORTRAN and not a more modern language ?
Reply With Quote
  #9  
Old 30-08-2019, 01:30 PM
Wavytone
Registered User

Wavytone is offline
 
Join Date: Jul 2008
Location: Killara, Sydney
Posts: 4,147
I can think of half a dozen languages I’d prefer - starting with Xojo.
Reply With Quote
  #10  
Old 30-08-2019, 02:17 PM
gary
Registered User

gary is offline
 
Join Date: Apr 2005
Location: Mt. Kuring-Gai
Posts: 5,999
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
Reply With Quote
  #11  
Old 30-08-2019, 04:20 PM
tonybarry's Avatar
tonybarry (Tony)
Registered User

tonybarry is offline
 
Join Date: Aug 2007
Location: Penrith, Sydney
Posts: 558
Quote:
Originally Posted by Wavytone View Post
I can think of half a dozen languages I’d prefer - starting with Xojo.
Me too. Xojo is civilised. Especially the web server.

Regards,
Tony Barry
WSAAG
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time is now 11:19 PM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Advertisement
Bintel
Advertisement