Open mankoff opened 1 year ago
I wouldn't be surprised if there is some error related to using lbound!=1. This is the relevant portion of the code: https://github.com/nbren12/call_py_fort/blob/b5f1ac561128c7920cf901c9274407b21ba8e706/src/callpy_mod.f90#L255.
I'm trying to pass an array between Fortran and Python but the dimensions and type are not matched. In Fortran I have
And I pass it with your library with:
And in Python the type and dimensions are:
Which outputs
The suspicious part above is the dimensions are
0:47
and not48
. This array,tgrnd
, is created with the following statement:I have a work-around: I can create a new array with explicit dimensions, then copy the values to that, e.g.,
And then if I pass
LIME_T
toset_state
, everything works. I'm not yet sure how to fix this issue, but wanted to raise it.