File: //usr/local/lib/python3.10/dist-packages/numpy/f2py/__pycache__/f90mod_rules.cpython-310.pyc
o
���gz% � @ sz d Z ddd� ZdZddlZddlmZ dd lmZ dd
lm Z m
Z
ddlT i Zdd
� Z
de�� j ZdZdZdd� ZdS )a2
Build F90 module support for f2py2e.
Copyright 1999 -- 2011 Pearu Peterson all rights reserved.
Copyright 2011 -- present NumPy Developers.
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.
z$Revision: 1.27 $�
���z
See `f2py -v`� N� )� capi_maps)� func2subr)�undo_rmbadname�undo_rmbadname1)�*c C sP t | �r| gS t| �s
g S g }| d D ]}t |�r|�|� q|t|� }q|S )N�body)�ismodule�hasbody�append�findf90modules)�m�ret�b� r �B/usr/local/lib/python3.10/dist-packages/numpy/f2py/f90mod_rules.pyr s r 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 % C s� ddl m} g g g ddgddd�dgg d�}d g}|fd
d�}d g}|fdd
�}t| �}t| �D �]�}g g g g |d gg f\} }
}}}
}g }g }g }t|�r\|d D ] }|
�|d � qR|d �� D ]}|d | }||
vrttt �|�s|�|� |�|� qbt
d|d � |d |v r�|s�t
d|d � d�� q0|r�t
dd�|� � d g}|fdd�}d g}|fdd�}t�
|�}|d|d � |d|d � t|�r�|d }t|t�r�d�|�}||� |r�|d� |D ]�}|d | }|�|� t�|�}tj| }t�||�}|d �dd ��� }|�d!d ��� }|�sd }t}|d"t|�|d# ||t�|�f � |d$t�||� � t|��rW|d }t|t��rQd�|�}|d%| � t|��r�|
�d&|d |f � |�|
d' � | �d(| � |�d)� |d*|d |f � |d+|
d' � |d,|d t|�f � |d-� |d. t |d.<