pyhelp icon indicating copy to clipboard operation
pyhelp copied to clipboard

Define SUBROUTINE and FUNCTION argument typespec explicitely in HELP

Open jnsebgosselin opened this issue 6 years ago • 0 comments

As mentionned in https://github.com/jnsebgosselin/pyhelp/pull/22#issuecomment-434715877, arguments of each SUBROUTINE or FUNCTION should be explicitly defined. This is to avoid warning or the type vars2fortran: No typespec for argument "nt". Block: leap when compiling with f2py.

For example, the SUBROUTINE READIN does not produce such a warnings.

C      ************************* READIN *************************
C
C  SUBROUTINE READIN READS ET AND SOIL DESIGN DATA, AND WEATHER HEADERS
C
      SUBROUTINE READIN (fpath_precip, fpath_tasavg, fpath_solrad,
     1 fpath_evapo, fpath_soil)
      
      CHARACTER(len=260), INTENT(IN) :: fpath_precip
      CHARACTER(len=260), INTENT(IN) :: fpath_tasavg
      CHARACTER(len=260), INTENT(IN) :: fpath_solrad
      CHARACTER(len=260), INTENT(IN) :: fpath_evapo
      CHARACTER(len=260), INTENT(IN) :: fpath_soil

So I think this can be safely ignored for the moment.

jnsebgosselin avatar Nov 01 '18 14:11 jnsebgosselin