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
I have just run into an odd situation where the following would occur:
Python 3.8.8 (default, Feb 24 2021, 16:52:30)
[GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from fparser.two import Fortran2003
>>> Fortran2003.Else_Stmt('ELSE') == Fortran2003.Return_Stmt('RETURN')
True
I have not dug any deeper into this but it seems unexpected. In my particular case this occurs with an If_Construct that looks something like this:
IF (N == 0) THEN
VAL = Z0
RETURN
ELSE
VAL = Z1
RETURN
ENDIF
From an earlier search I would have the Else_Stmt node already available and do something like if_construct_node.children.index(else_stmt_node), which I would expect to yield 3 but instead returns 2.
The text was updated successfully, but these errors were encountered:
I have just run into an odd situation where the following would occur:
I have not dug any deeper into this but it seems unexpected. In my particular case this occurs with an
If_Construct
that looks something like this:From an earlier search I would have the
Else_Stmt
node already available and do something likeif_construct_node.children.index(else_stmt_node)
, which I would expect to yield 3 but instead returns 2.The text was updated successfully, but these errors were encountered: