Skip to content

Commit

Permalink
Update with SWIG XL compiler fix (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj authored Dec 17, 2019
1 parent 17cba35 commit d8e6a25
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/flc.f90
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ subroutine SWIGTM_fout_char_Sm_(imout, fout)
character(kind=C_CHAR), dimension(:), pointer :: chars
integer(kind=C_SIZE_T) :: i
call c_f_pointer(imout%data, chars, [imout%size])
allocate(character(kind=C_CHAR, len=imout%size) :: fout)
allocate(character(len=imout%size) :: fout)
do i=1, imout%size
fout(i:i) = char(ichar(chars(i)))
end do
Expand Down
6 changes: 3 additions & 3 deletions src/flc_string.f90
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ function swigf_string_size(self) &

subroutine SWIGTM_fout_bool(imout, fout)
use, intrinsic :: ISO_C_BINDING
integer(kind=C_INT), intent(IN) :: imout
logical, intent(OUT) :: fout
integer(kind=C_INT), intent(in) :: imout
logical, intent(out) :: fout
! TODO: fout = (imout /= 0) ???
if (imout /= 0) then
fout = .true.
Expand Down Expand Up @@ -686,7 +686,7 @@ subroutine SWIGTM_fout_char_Sm_(imout, fout)
character(kind=C_CHAR), dimension(:), pointer :: chars
integer(kind=C_SIZE_T) :: i
call c_f_pointer(imout%data, chars, [imout%size])
allocate(character(kind=C_CHAR, len=imout%size) :: fout)
allocate(character(len=imout%size) :: fout)
do i=1, imout%size
fout(i:i) = char(ichar(chars(i)))
end do
Expand Down
6 changes: 3 additions & 3 deletions src/flc_vector.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1234,8 +1234,8 @@ function swigf_VectorInt4_capacity(self) &

subroutine SWIGTM_fout_bool(imout, fout)
use, intrinsic :: ISO_C_BINDING
integer(kind=C_INT), intent(IN) :: imout
logical, intent(OUT) :: fout
integer(kind=C_INT), intent(in) :: imout
logical, intent(out) :: fout
! TODO: fout = (imout /= 0) ???
if (imout /= 0) then
fout = .true.
Expand Down Expand Up @@ -2463,7 +2463,7 @@ subroutine SWIGTM_fout_char_Sm_(imout, fout)
character(kind=C_CHAR), dimension(:), pointer :: chars
integer(kind=C_SIZE_T) :: i
call c_f_pointer(imout%data, chars, [imout%size])
allocate(character(kind=C_CHAR, len=imout%size) :: fout)
allocate(character(len=imout%size) :: fout)
do i=1, imout%size
fout(i:i) = char(ichar(chars(i)))
end do
Expand Down

0 comments on commit d8e6a25

Please sign in to comment.