Skip to content

Commit

Permalink
Merge pull request #204 from diegorsjv/bugfix/fortran-interface-strid…
Browse files Browse the repository at this point in the history
…e-passbyvalue

bugfix/fortran-bindings field_set_stride_xd pass by value
  • Loading branch information
GarrettDMorrison committed Nov 29, 2023
2 parents bcc5a25 + fbca454 commit b345842
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fortran/zfp.f90
Original file line number Diff line number Diff line change
Expand Up @@ -464,25 +464,25 @@ subroutine zfp_field_set_size_4d(field, nx, ny, nz, nw) bind(c, name="zfp_field_
subroutine zfp_field_set_stride_1d(field, sx) bind(c, name="zfp_field_set_stride_1d")
import
type(c_ptr), value :: field
integer(c_ptrdiff_t) :: sx
integer(c_ptrdiff_t), value :: sx
end subroutine

subroutine zfp_field_set_stride_2d(field, sx, sy) bind(c, name="zfp_field_set_stride_2d")
import
type(c_ptr), value :: field
integer(c_ptrdiff_t) :: sx, sy
integer(c_ptrdiff_t), value :: sx, sy
end subroutine

subroutine zfp_field_set_stride_3d(field, sx, sy, sz) bind(c, name="zfp_field_set_stride_3d")
import
type(c_ptr), value :: field
integer(c_ptrdiff_t) :: sx, sy, sz
integer(c_ptrdiff_t), value :: sx, sy, sz
end subroutine

subroutine zfp_field_set_stride_4d(field, sx, sy, sz, sw) bind(c, name="zfp_field_set_stride_4d")
import
type(c_ptr), value :: field
integer(c_ptrdiff_t) :: sx, sy, sz, sw
integer(c_ptrdiff_t), value :: sx, sy, sz, sw
end subroutine

function zfp_field_set_metadata(field, encoded_metadata) result(is_success) bind(c, name="zfp_field_set_metadata")
Expand Down

0 comments on commit b345842

Please sign in to comment.