Fortran Constructs Supported

When writing code fragments in Fortran, keep these guidelines in mind:

  • Only enter one statement on a line. You cannot continue a statement onto more than one line.
     
  • You can use GOTO, GO TO, ENDIF, and END IF statements; while ELSEIF is not allowed, you can use ELSE IF.
     
  • Syntax is free-form. No column rules apply.
     
  • You can enter comments in several formats. For example, you can use the following format:

        C I=I+1
        /*
        I=I+1
        J=J+1
        ARRAY1(I,J)= I * J
        */

  • The space character is significant and is sometimes required. (Some Fortran 77 compilers ignore all space characters.) For example:

    Valid
    Invalid
    DO 100 I=1,10
    DO100I=1,10
    CALL RINGBELL
    CALL RING BELL
    X .EQ. 1
    X.EQ.1

 

 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0