×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Subroutine need fixing

Subroutine need fixing

Subroutine need fixing

(OP)
I have a user subroutine which I found freely available online and I am trying to create a .for (FORTRAN file) out of it and use it with my models, I tried fixing it by removing the errors and warnings but I still get some , I have no experience with programming languages but I really need the code in order to run my models , any help in fixing the syntax errors or problems inside it is highly appreciated

I have attached the subroutine in a file for your review, thanks a lot

Kind Regards

RE: Subroutine need fixing

Could you post the file again but post the original: not a version that has been copied into word and has had all the spacing rearranged. If you are using .for, columns
  • 1-5 are for numeric labels
  • 6 for continuation
  • 7..72 for the code.
  • ! anywhere is a comment
  • a non numeric character in column 1 indicates a comment. C is a hangover from Fortran 66 but still widely used.
If you mess with the spacing, nobody will be able to build your program. Could you also post the errors you are getting and which compiler/OS you are using.

RE: Subroutine need fixing

(OP)
Hi xwb ,

thank you for the comments you mentioned

the file was posted initially in one of the forums online and I took it from there ,I tried to fix it by myself but I couldn't , I have already put it inside a Microsoft visual studio 2008 file and I will post it here tomorrow morning.

Thank you again for your comments and hope to hear again from you

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources