Close

Results 1 to 9 of 9
  1. #1
    DF VIP Member Tammer's Avatar
    Join Date
    Jul 2001
    Location
    Unknown
    Posts
    1,042
    Thanks
    8
    Thanked:        31
    Karma Level
    387

    Default Fortran Code Help!

    I have to do a project at uni, which involves using some fortran codes to gain results for some numerical formulas.

    I've hardly looked at a fortran code in my life, and was told to run this one for tomorrow. Unfortunately my supervisor has the flu, and won't be able to give any advice for the next week or so, so i'm left on my own.

    After removing the errors i compiled, but when i tried to run it gave me:

    sue: unformatted io not allowed
    apparent state: unit 21 named Q.dat
    lately reading sequential unformatted external IO
    Abort.

    Any ideas on how to fix the problem. Have attached the file below.

    Also, on a side note, where would be the best site to find basic notes on how using fortran.

    Thanks in advance
    Last edited by Tammer; 31st July 2006 at 03:48 PM.

  2. #2

  3. #3
    DF VIP Member Conkers's Avatar
    Join Date
    Jun 2001
    Location
    Out Here !
    Posts
    2,060
    Thanks
    62
    Thanked:        157
    Karma Level
    449

    Default Re: Fortran Code Help!

    fook me FORTRAN ???

    They tried to teach me that @ uni 10 years ago..... it was as utterly irrelevant then as it is now.
    The beardy old tw@ts that teach this drivvel need to get a job in the real world and realise that crap like this sunk with the ark !!

    Tell 'em to get fooked and write it in C !

    (not my most useful reply I'll grant you , sorry !)

  4. #4
    DF VIP Member Shambles's Avatar
    Join Date
    Jul 2004
    Location
    (oYo)
    Posts
    10,564
    Thanks
    0
    Thanked:        0
    Karma Level
    1061

    Default Re: Fortran Code Help!

    Tammer. It's 20 years since I last wrote Fortran. If you're reading directly into INTEGER don't you need a FORMAT statement? Failing that are you sure chan21 ain't empty before the indices are exhausted (ie EOF)?

    Can you read directly into "Q" as a 64bit real without a format picture?

  5. #5
    DF VIP Member
    RhinoBanga's Avatar
    Join Date
    Nov 2000
    Location
    127.0.0.1
    Posts
    1,780
    Thanks
    20
    Thanked:        13
    Karma Level
    389

    Default Re: Fortran Code Help!

    Quote Originally Posted by pingobingo
    fook me FORTRAN ???

    They tried to teach me that @ uni 10 years ago..... it was as utterly irrelevant then as it is now.
    The beardy old tw@ts that teach this drivvel need to get a job in the real world and realise that crap like this sunk with the ark !!

    Tell 'em to get fooked and write it in C !

    (not my most useful reply I'll grant you , sorry !)
    Wrong, in the scientific community Fortran is still used extensively due to it's speed.

    We use it extensively where I work (geophysical data analysis) and we have proved that it beats C/C++ in many computational tasks on a variety of different platforms (AMD64/HP/SUN/SGI).

    However saying all that give me C/C++ anyday as it's a crap language to work with.

  6. #6
    DF VIP Member Conkers's Avatar
    Join Date
    Jun 2001
    Location
    Out Here !
    Posts
    2,060
    Thanks
    62
    Thanked:        157
    Karma Level
    449

    Default Re: Fortran Code Help!

    Quote Originally Posted by RhinoBanga
    However saying all that give me C/C++ anyday as it's a crap language to work with.
    lol..... really though considering how many students heads are being filled with this crap, how many actually end up using it....

  7. #7
    DF VIP Member /dev/null's Avatar
    Join Date
    Feb 2004
    Location
    Behind You
    Posts
    2,952
    Thanks
    0
    Thanked:        0
    Karma Level
    451

    Default Re: Fortran Code Help!

    Maths processing speed...?

    Code:
    MOV     R1, #0x4
    MOV     R2, #0x3
    ADD     R0, R1, R2
    Stick that into an ARM processor and see who wins!
    Last edited by /dev/null; 24th March 2005 at 02:07 PM.

  8. #8
    DF VIP Member
    RhinoBanga's Avatar
    Join Date
    Nov 2000
    Location
    127.0.0.1
    Posts
    1,780
    Thanks
    20
    Thanked:        13
    Karma Level
    389

    Default Re: Fortran Code Help!

    LOL ... I think 99% of people would prefer to write in at least a 3GL.

  9. #9
    DF VIP Member /dev/null's Avatar
    Join Date
    Feb 2004
    Location
    Behind You
    Posts
    2,952
    Thanks
    0
    Thanked:        0
    Karma Level
    451

    Default Re: Fortran Code Help!

    Ye, I was trying to make the point that if you want fast code then you gotta work for it, hehe!
    Actually though, I prefer coding in Assembly than in any 3GL! [that's in context - I wouldn't choose ASM over C for a program on windows etc, however I prefer coding in ASM for small hardware systems rather than coding in C etc for large windows/unix systems! - if that makes sense! ]

Similar Threads

  1. Code for Blaupunkt Car 300 Radio?
    By fais in forum Radio Decoding
    Replies: 8
    Last Post: 30th March 2004, 03:38 PM
  2. Fortran, any experts about?
    By GETanner in forum Programming
    Replies: 3
    Last Post: 9th September 2002, 10:44 AM
  3. nokia 5110 puk code
    By MAURICEMERSEYSI in forum Unlocking Questions & Solutions
    Replies: 1
    Last Post: 8th September 2002, 11:16 PM
  4. sony z5:security code
    By Danger Mouse in forum Unlocking Questions & Solutions
    Replies: 1
    Last Post: 6th September 2002, 05:41 PM
  5. Eurotunnel cheap fare or discount code - priviledge member?
    By shedsounds in forum Cheapskates Corner
    Replies: 2
    Last Post: 5th September 2002, 10:21 AM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •