ϬB0 d Z ddd ZdZddlZddlmZ dd lmZ dd
lm Z m
Z
ddlT i Zd Z
d
ej j z ZdZdZd ZdS )aJ
Build F90 module support for f2py2e.
Copyright 2000 Pearu Peterson all rights reserved,
Pearu Peterson
Permission to use, modify, and distribute this software is given under the
terms of the NumPy License.
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
$Date: 2005/02/03 19:30:23 $
Pearu Peterson
z$Revision: 1.27 $
z
See `f2py -v` N ) capi_maps) func2subr)undo_rmbadnameundo_rmbadname1)*c t | r| gS t | sg S g }| d D ]9}t | r| | '|t | z }:|S )Nbody)ismodulehasbodyappendfindf90modules)mretbs k/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/numpy/f2py/f90mod_rules.pyr r " sz {{ s
1::
C
vY * *A;; *JJqMMMMq)))CCJ a external f2pysetdata
logical ns
integer r,i
integer(%d) s(*)
ns = .FALSE.
if (allocated(d)) then
do i=1,r
if ((size(d,i).ne.s(i)).and.(s(i).ge.0)) then
ns = .TRUE.
end if
end do
if (ns) then
deallocate(d)
end if
end if
if ((.not.allocated(d)).and.(s(1).ge.1)) thenz end if
if (allocated(d)) then
do i=1,r
s(i) = size(d,i)
end do
end if
flag = 1
call f2pysetdata(d,allocated(d))z end if
if (allocated(d)) then
do i=1,r
s(i) = size(d,i)
end do
!s(r) must be equal to len(d(1))
end if
flag = 2
call f2pysetdata(d,allocated(d))c ddl m} g g g ddgddddgg d}d g}|fd
}d g}|fd}t | D ]}g g g g |d gg f\ }} }
}}}
g }g }g }t | r&|d
D ]}| |d |d D ]a}|d | }||vrM t
t t | s*|
| | | bt d|d z |
r%t dd
|
z d g}|fd}d g}|fd}t j | } |d|d z |d|d z t | r=|d }t |t rd
| } || |
r |d |
D ])}|d | }| | t j | }t j | }t j || }|d dd }| dd }|sd}t* } |dt- | d|d d|d |d!t j | d" |d#t j || z t | r@|d }t |t rd
| } |d$|z t3 | rM| d%|d d&| |
| d' | d(|z | d) |d*|d d+|d, |d-| d' z |d.|d d/t- | d |d0 |d1 t4 z |d1<