Skip to content

Commit

Permalink
Merge branch 'master' into faster-reachability
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun authored Sep 20, 2023
2 parents aa88d82 + 66010ec commit 9d27e72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions dace/frontend/fortran/ast_components.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Copyright 2019-2023 ETH Zurich and the DaCe authors. All rights reserved.
from fparser.two.Fortran2008 import Fortran2008 as f08
from fparser.two import Fortran2008
from fparser.two import Fortran2008 as f08
from fparser.two import Fortran2003 as f03
from fparser.two import symbol_table

Expand Down Expand Up @@ -608,7 +607,7 @@ def type_declaration_stmt(self, node: FASTNode):
if i.string.lower() == "parameter":
symbol = True

if isinstance(i, Fortran2008.Attr_Spec_List):
if isinstance(i, f08.Attr_Spec_List):

dimension_spec = get_children(i, "Dimension_Attr_Spec")
if len(dimension_spec) == 0:
Expand Down Expand Up @@ -1052,7 +1051,7 @@ def specification_part(self, node: FASTNode):

decls = [self.create_ast(i) for i in node.children if isinstance(i, f08.Type_Declaration_Stmt)]

uses = [self.create_ast(i) for i in node.children if isinstance(i, f08.Use_Stmt)]
uses = [self.create_ast(i) for i in node.children if isinstance(i, f03.Use_Stmt)]
tmp = [self.create_ast(i) for i in node.children]
typedecls = [i for i in tmp if isinstance(i, ast_internal_classes.Type_Decl_Node)]
symbols = []
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ charset-normalizer==3.1.0
click==8.1.3
dill==0.3.6
Flask==2.3.2
fparser==0.1.2
fparser==0.1.3
idna==3.4
importlib-metadata==6.6.0
itsdangerous==2.1.2
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
include_package_data=True,
install_requires=[
'numpy', 'networkx >= 2.5', 'astunparse', 'sympy<=1.9', 'pyyaml', 'ply', 'websockets', 'requests', 'flask',
'fparser >= 0.1.2', 'aenum >= 3.1', 'dataclasses; python_version < "3.7"', 'dill',
'fparser >= 0.1.3', 'aenum >= 3.1', 'dataclasses; python_version < "3.7"', 'dill',
'pyreadline;platform_system=="Windows"', 'typing-compat; python_version < "3.8"'
] + cmake_requires,
extras_require={
Expand Down

0 comments on commit 9d27e72

Please sign in to comment.