I am a relative novice, I am using FTN95 with PLATO. I have a code with multiple subroutines in the same file, but outside the main program. ie, for illustration
PROGRAM
CALL SUBROUTINE A
CALL SUBROUTINE D
CALL SUBROUTINE E
CALL SUBROUTINE C
END PROGRAM
SUBROUTINE A
...
END SUBROUTINE A
SUBROUTINE B
...
END SUBROUTINE B
SUBROUTINE C
...
END SUBROUTINE C
SUBROUTINE D
...
END SUBROUTINE D
SUBROUTINE E
...
END SUBROUTINE E
When I run the code it runs fine for most calls to subroutines (i.e. A, D and E), but on C it returns 'error 426, CHARACTER dummy argument defined to be larger than actual argument'. when i look at the line that the error came up on, it is actually the END SUBROUTINE B, the end statement of another subroutine just before the one that is meant to be called. Furthermore, if I remove the subroutine whose END statement it is reading (as it isn't being used yet) then the error occurs on the END statement of the subroutine preceding that one!
The program is buggy, and was modified just before this happened, but i reverted back to an older version (which didn't have this problem last time it was run) and it now has the same problem.[/code]