You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically because allocatable arrays get proxied into a dimension helper call f2pysetupfunc(maxdata,f2py_lanedata_getdims_theta,ndata)...
! -*- f90 -*-! This file is autogenerated with f2py (version:2.2.0.dev0+git20241104.531a694)! It contains Fortran 90 wrappers to fortran functions.subroutinef2pyinittypes(f2pysetupfunc)
use types, only : int32
use types, only : int64
use types, only : real64
external f2pysetupfunc
call f2pysetupfunc(int32,int64,real64)
endsubroutine f2pyinittypessubroutinef2py_lanedata_getdims_theta(r,s,f2pysetdata,flag)
use lanedata, only: d => theta
integer flag
external f2pysetdata
logical ns
integer r,i
integer(8) s(*)
ns =.FALSE.if (allocated(d)) thendo i=1,r
if ((size(d,i).ne.s(i)).and.(s(i).ge.0)) then
ns =.TRUE.end ifend doif (ns) thendeallocate(d)
end ifend ifif ((.not.allocated(d)).and.(s(1).ge.1)) thenallocate(d(s(1),s(2)))
end ifif (allocated(d)) thendo i=1,r
s(i) =size(d,i)
end doend if
flag =1call f2pysetdata(d,allocated(d))
endsubroutine f2py_lanedata_getdims_thetasubroutinef2pyinitlanedata(f2pysetupfunc)
use lanedata, only : maxdata
use lanedata, only : theta
use lanedata, only : ndata
external f2pysetupfunc
external f2py_lanedata_getdims_theta
call f2pysetupfunc(maxdata,f2py_lanedata_getdims_theta,ndata)
endsubroutine f2pyinitlanedata
I installed using
Yes, it is including the
lanedata
module. Interestingly, the allocatable module variabletheta
, however, is not listed bydir
but it is accessible, and returns
None
if not allocated and returns the array when allocated. Even when allocated, however, it is not listed.This may not be new behaviour (I do not recall having tried this before), but is a bit curious, and might be confusing.
Before allocating
and after allocating (
laneemden.solver.test()
)Originally posted by @2sn in #27695 (comment)
The text was updated successfully, but these errors were encountered: