Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Closes #2624) Add FortranWriter().schedule_node(). #2628

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JulienRemy
Copy link
Collaborator

Avoids defaulting to str(schedule) for Schedule().debug_string() and raising a VisitorError using FortranWriter()(Schedule()).

Copy link

codecov bot commented Jun 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.86%. Comparing base (1e94cd6) to head (05ab4fc).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2628   +/-   ##
=======================================
  Coverage   99.86%   99.86%           
=======================================
  Files         356      356           
  Lines       48438    48454   +16     
=======================================
+ Hits        48373    48389   +16     
  Misses         65       65           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 99 to 104
def debug_string(self):
debug_string = ""
for statement in self.children:
debug_string += statement.debug_string()
return debug_string

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this (and associated test) now that a "schedule_node" visitor has been introduced to the Writer, do we?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, I'd forgotten this defaults to DebugWriter and thus to FortranWriter. They're now removed.

@JulienRemy JulienRemy changed the title (Closes #2624) Add Schedule().debug_string() and FortranWriter().schedule_node(). (Closes #2624) Add FortranWriter().schedule_node(). Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants