PROGRAM my_prog ! -- A PROGRAM may CONTAIN INTEGER :: count ! procedures/subprograms REAL :: total ... CONTAINS SUBROUTINE my_int_sub ! -- internal SUBROUTINE ... END SUBROUTINE my_int_sub FUNCTION my_int_func ! -- internal FUNCTION ... END FUNCTION my_int_func END PROGRAM my_prog |
SUBROUTINE my_sub !...or FUNCTION CHARACTER, INTENT(INOUT) :: C ... CONTAINS FUNCTION my_func !...internal FUNCTION (could ... ! be SUBROUTINE also) END FUNCTION my_func END SUBROUTINE |
...previous | up (conts) | next... |