Skip to content

Conversation

@w9cf
Copy link

@w9cf w9cf commented Nov 8, 2025

I followed your suggestion to make a new class. The changes to use nvfortran are all in the file fortran.py which contains the class SourceModuleFortran. The two fortran examples are updated to use this.

I am sure there are other problems, let me know what you think, and especially if the whole idea seems unsuitable.

@inducer
Copy link
Owner

inducer commented Nov 9, 2025

Sorry, not a fan of this either, since this duplicates the code, meaning that there are now two copies that need to be maintained. As I mentioned in #491, I was hoping for the two module kinds to share code, but via inheritance, not via if/else. Sorry if I wasn't clear.

While we're at it, there should be an automated test for this functionality. See .gitlab-ci.yml for the CI configuration (you'll need to tweak that install Nvfortran.)

@w9cf w9cf closed this Nov 15, 2025
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