Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed integer initialization issue in rwf #31

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions fortran/rwfortran.f
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ end subroutine wlist_float
c
c
c
subroutine wlist_int(string,list,n)
integer :: n,i
real*8 :: list(n)
character*11 :: tmp
character*(*) :: string
Cf2py intent(inout) string
Cf2py intent(in,copy) list
Cf2py integer intent(hide),depend(list) :: n=shape(list,0)
do i = 1,n
call wint(list(i),tmp)
string((i-1)*11+1:i*11) = tmp
enddo
end subroutine wlist_int
c subroutine wlist_int(string,list,n)
c integer :: n,i
c integer*8 :: list(n)
c character*11 :: tmp
c character*(*) :: string
c Cf2py intent(inout) string
c Cf2py intent(in,copy) list
c Cf2py integer intent(hide),depend(list) :: n=shape(list,0)
c do i = 1,n
c call wint(list(i),tmp)
c string((i-1)*11+1:i*11) = tmp
c enddo
c end subroutine wlist_int
c
c
c
Expand Down Expand Up @@ -66,13 +66,13 @@ end subroutine wreal
c
c
c
subroutine wint(x,a)
real*8 :: x
integer*4 :: y
character*11 :: a
y = int(x)
write(a,'(I11)') y
end subroutine wint
c subroutine wint(x,a)
c real*8 :: x
c integer :: y
c character*11 :: a
c y = int(x)
c write(a,'(I11)') y
c end subroutine wint
c
c
c
Expand Down Expand Up @@ -153,7 +153,7 @@ end subroutine rlist
c
subroutine rilist(string,io_status,ilist,n)
integer :: n,i,io_status
integer*8 :: ilist(n)
integer*4 :: ilist(n)
character*80 :: string
Cf2py intent(inout) string
Cf2py intent(inout) io_status
Expand Down Expand Up @@ -301,4 +301,4 @@ subroutine lcomp(NDIGIT, STRING, io_status, II, JJ, NROW, KIJ, N)
do M = 1,NROW
KIJ(M) = real(TMP(M))
enddo
end subroutine lcomp
end subroutine lcomp