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
In order to fully support the CISM model ingestion, we need to add generation for computed GOTO statements in the Gromet generation. This involves in making sure that the expr field in the GoTo CAST node is appropriately being generated and then translated to Gromet correctly.
The content you are editing has changed. Please copy your edits and refresh the page.
## Summary of Changes
- Adds CAST support for ingesting Computed GO TO
- Adds support for generating GroMEt for CAST files containing Computed
GO TOs.
- Adds a test script `test_goto_computed.py` that contains a unit test
for a small Fortran file that has a Computed GO TO.
- Fixes a small issue in the Annotated CAST generation in
`cast_to_annotated_cast.py`. This fix allows correct support of Computed
GO TOs.
- Updates CAST Visualizer to support visualizing GO TO and Label CAST
nodes.
### CAST Computed GO TO Conversion
Since the expression in Computed GO TOs evaluates to an index rather
than a label, we make a small conversion to the expression in the CAST
to support this. We utilize the _get Gromet function to handle this
indexing.
So:
```fortran
GO TO (100,200,300,400), x+y
```
gets converted to:
```python
_get(["100", "200", "300", "400"], x+y)
```
### Related issues
Resolves#698Resolves#701Resolves#773
---------
Co-authored-by: Tito Ferra <[email protected]> f899664
In order to fully support the CISM model ingestion, we need to add generation for computed GOTO statements in the Gromet generation. This involves in making sure that the
expr
field in theGoTo
CAST node is appropriately being generated and then translated to Gromet correctly.Tasks
The text was updated successfully, but these errors were encountered: