I have been given the task converting some Fortran 77 code. I have a main program that calls a subroutine like so:
Now, GASP is a large string array, so it should be passing a single element of position IFPTN, which is a string. The GOD1D subroutine looks like:
In the GOD1D there is a dimension statement like so:
So, it appears that this dimension statement converts a passed single string into an array of a specified length and also populates the entire array with the same string value. Is that how the process will always work? I have several variables that seem to under go this same system. Thanks for your help.
Code:
CALL GOD1D(GASP(IFPTN),...)
Code:
SUBROUTINE GOD1D(GAS,...)
Code:
CHARACTER*3 GAS(1:799)