Skip to content

Commit

Permalink
update interface for Fotran bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskermode committed Sep 20, 2023
1 parent 8a30b41 commit bdb1e99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libextxyz/fextxyz.f90
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ function extxyz_malloc(nbytes) bind(c) result(buffer)
type(C_PTR) :: buffer
end

function extxyz_read_ll(kv_grammar, fp, nat, info, arrays) bind(c)
function extxyz_read_ll(kv_grammar, fp, nat, info, arrays, comment) bind(c)
use iso_c_binding
integer(kind=C_INT) :: extxyz_read_ll
type(C_PTR), value :: kv_grammar, fp
integer(kind=C_INT) :: nat
type(C_PTR) :: info, arrays
character(kind=C_CHAR) :: comment(*)
end function extxyz_read_ll

function extxyz_write_ll(fp, nat, info, arrays) bind(c)
Expand Down Expand Up @@ -442,7 +443,7 @@ function read_extxyz_file(file, at, verbose) result(success)
c_info = c_loc(info)
c_arrays = c_loc(arrays)

err = extxyz_read_ll(kv_grammar, file, nat, c_info, c_arrays)
err = extxyz_read_ll(kv_grammar, file, nat, c_info, c_arrays, C_NULL_PTR)
success = (err == 1)

if (do_verbose) then
Expand Down

0 comments on commit bdb1e99

Please sign in to comment.