fortran 95

Discussion in 'Mac Programming' started by fluberman, Nov 23, 2004.

  1. macrumors newbie

    Joined:
    Nov 23, 2004
    #1
    I have been a pc user all the time, although I spend most of time running my PC under linux and now I'm considering to switch. I am also doing some programming using fortran 95 (intel fortran for linux, which is free). As far as I know, under mac os x I can run g95 or gfortran but they are still under heavy development. Does somebody here have any experience in running g95/gfortran and how about it's performance compared to a commercial compiler such as Absoft fortran ? I do really want to swich, but this issue is important to me. Thanks.
     
  2. macrumors 6502a

    Hoef

    Joined:
    Jul 11, 2004
    Location:
    Houston, TX..... (keep walking)
    #2
    Wow .... What do you use fortran for if I may ask?
     
  3. thread starter macrumors newbie

    Joined:
    Nov 23, 2004
    #3
    scientific computing, especially cfd
     
  4. Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #4
    Maybe you'll find something you can use on Apple's own High Performance Computing page.

    I tried some simple MPI stuff for my parallell computing class, but as I don't have a cluster in the basement or even a dual processor Mac I can't say if really did any good... ;)
     
  5. macrumors 68040

    gwuMACaddict

    Joined:
    Apr 21, 2003
    Location:
    washington dc
    #5
    still used quite frequently in finite element analysis and computational fluids
     
  6. Moderator emeritus

    Joined:
    Jun 25, 2002
    Location:
    Gone but not forgotten.
    #6
    Absoft recently started selling IBM's XLF compiler, apparently, instead of their own. It's AltiVec-aware so it should provide good performance and it's G5/PPC970-aware so it can handle larger memory spaces.
     
  7. macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #7
    :confused: what the heck is that?

    Out of curiousity, what makes one language better than another in the field of computational fluids?

    I got to go gooooooogling now. :)
     
  8. macrumors 6502

    Joined:
    May 13, 2003
    Location:
    in bed
    #8
    Usually - the existing codebase. Somtimes better Compiler performance, however, if someone asks if there are compilers available - it's the existing codebase ,)
     
  9. macrumors 6502

    Joined:
    Apr 16, 2003
    Location:
    Boston, MA
    #9
    I took a class in Numerical methods during last semester (1st semester of grad school). We programmed exclusively in fortran, and I belive my prof. said g95 would work ok, though we used absoft's compiler.

    MP
     
  10. Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #10
    The usual argument is that Fortran has the highest efficiency in compiling to machine code...that is, the ratio of the theoretical number of floating point and integer ops that the actual scientific problem takes, to the number of ops that the *computer program* takes is very favorable. So it's good for techniques that are essentially brute force, in the sense that they model a complex system by modelling relatively simple equations (such as basic fluid equations or Maxwell's electromagnetic equations) on a really fine mesh and/or lots of elements.

    We used to use Fortran for modelling discrete particles (electrons and ions) in relativistic (but not QED) EM fields in plasma physics....

    Oooh, btw, is there stuff you can't do in G77?
     
  11. macrumors 6502

    Joined:
    Apr 16, 2003
    Location:
    Boston, MA
    #11
    My guess is that if he had been programming in F90/95, G77 wouldn't work, as it adheres to the old (F77) standard IIRC, which requires strict formatting and all - F90 is MUCH easier to code in than F77. I'd give G95 and gfortran a try -- they're available here :

    http://hpc.sourceforge.net/

    MP
     

Share This Page