diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2021-09-03 21:56:18 +0300 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2021-09-03 21:56:18 +0300 |
commit | 88f988ae6226ffb5e3c9ae41a2d0cf9fd982109a (patch) | |
tree | b1f9e3da5777b47411510a39e35e375995cf89b1 /numpy/f2py/crackfortran.py | |
parent | 345c9d9c4dd479755eb298dda4316809a4739fea (diff) | |
download | numpy-88f988ae6226ffb5e3c9ae41a2d0cf9fd982109a.tar.gz |
Fix a bug in dependencies. Implement support for relational operations.
Diffstat (limited to 'numpy/f2py/crackfortran.py')
-rwxr-xr-x | numpy/f2py/crackfortran.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index 2adca9fba..306665720 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -2701,11 +2701,6 @@ def analyzevars(block): 'required' if is_required else 'optional') if v_attr: vars[v]['attrspec'] = v_attr - else: - # n is output or hidden argument, hence it - # will depend on all variables in d - n_deps.extend(coeffs_and_deps) - if coeffs_and_deps is not None: # extend v dependencies with ones specified in attrspec for v, (solver, deps) in coeffs_and_deps.items(): @@ -2716,6 +2711,8 @@ def analyzevars(block): v_deps.extend(aa[7:-1].split(',')) if v_deps: vars[v]['depend'] = list(set(v_deps)) + if n not in v_deps: + n_deps.append(v) elif isstring(vars[n]): if 'charselector' in vars[n]: if '*' in vars[n]['charselector']: |