Recent content by tch2

  1. T

    Fortran FORTRAN 90 Unexpected Statement Function Statement in Nested Do Loop

    Thanks! I have now found that my read statement is going to cause some trouble too! Looks like I am reading in year and emissions each as a one dimensional array, and then trying to re-write them as a scalar entity?
  2. T

    Fortran FORTRAN 90 Unexpected Statement Function Statement in Nested Do Loop

    Thanks! I have now found that my read statement is going to cause some trouble too! Looks like I am reading in year and emissions each as a one dimensional array, and then trying to re-write them as a scalar entity.
  3. T

    Fortran FORTRAN 90 Unexpected Statement Function Statement in Nested Do Loop

    In the following code, highlighted in bold, I am using a nested DO loop to create a running sum of the yearly emissions ("emissions") read out of histem.txt, to create a cumulative emissions curve. The code generates an "Unexpected STATEMENT FUNCTION statement for sum in cem(i) = sum...