Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Freal Loops?

  1. Apr 27, 2010 #1
    freal Loops???

    Hi everybody..

    I have a question.
    Recently, I'm using g95 to run my Fortran 95 program.
    But it occur an error, which is:

    REAL expression in DO loop at <1> - to enable REAL loop parameters use -freal-loops

    What is freal loop exactly?
    and How to solve this problem?

    Any help is appreciated.
  2. jcsd
  3. Apr 28, 2010 #2


    User Avatar
    Homework Helper

    Re: freal Loops???

    Do loops normally use integers. To allow "reals" (floating point) to be used in loops, you need to add a command line parameter when invoking the compiler.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook