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

Errors in compling fortran

  1. Apr 7, 2009 #1
    Hi there

    I compile the following Fortran program but it shows more error it output file.
    can you help me.

    with Regards,
    jamshid

    INCLUDE '(SCOHLP)'
    INCLUDE '(PAPROP)'
    *
    *
    ******LOGICAL LFIRST
    ******SAVE LFIRST, ZMIN, DELTAZ
    ******DATA LFIRST /.TRUE./
    * Initialization, to be done only at first call
    ******IF (LFIRST) THEN
    *********LFIRST = .FALSE.
    * It is always good to write a warning on standard output that a
    * user routine has been used
    *********WRITE(LUNOUT,*)
    *****& "**** Using routine fluscw to get differential yield in z ****"
    *********ZMIN = 5.D+00 ! write here the limits of the z range
    *********ZMAX = 45.D+00 ! where you want to do the scoring
    *********NINTRV = 400.D+00 ! and the number of z intervals
    *********DELTAZ = (ZMAX - ZMIN)/DBLE(NINTRV)
    ******END IF
    ******FLUSCW = ONEONE
    ******LSCZER = .FALSE.
    * The following applies only to yield detectors (there could be others)
    ******IF (ISCRNG .EQ. 5) THEN
    * find the z interval number
    *********INTERV = INT((ZZ - ZMIN)/DELTAZ) + 1
    * don't score if detector number is different from interval number
    *********LSCZER = JSCRNG .NE. INTERV
    * multiply the score by 4pi to get integral result in omega
    *********IF (.NOT. LSCZER) FLUSCW = FOUFOU * PIPIPI
    ******END IF
    ******RETURN
    ******END
     
  2. jcsd
  3. Apr 17, 2009 #2
    When your post includes code (especially Fortran which is column dependent), you can post it in advanced mode (button below message window), select the text of the code and press the code button. The columns will be preserved and it will be easier to understand than forcing spaces with asterisks.

    Also, code with include statements automatically means that the source code is incomplete, and your chances of getting help is reduced, unless the problem occurs clearly in the section of code posted.

    This brings us to the third point, which is it is up to you to indicate where the problem is. The code you posted is incomplete, so readers cannot compile it to see where the problem is, the error messages have not been posted nor described, so it would not be surprising that you did not get help.

    To sum it up, you need to help yourself by posting exactly what is bothering you, and what you expect for help.

    Hope that helps.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Errors in compling fortran
  1. Fortran error (Replies: 33)

  2. [FORTRAN] Runtime error (Replies: 12)

Loading...