Fortran backend - #281
Open
mpmdean wants to merge 3 commits into
Open
Conversation
* models/ops legacy compatibility changed initial Hilbert space to omit the filled core shell * update basis shape test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR does two things.
Firstly, add a Fortran backend where the same user-facing interface can be redirected to execute the Fortran. This presents a more convenient uniform front-facing interface for users allowing us to remove the somewhat bloated, duplicated scripting stuff from the user facing part of the codebase.
]
Secondly it addressed as a portability issue. Previously, the calls into the Fortran happened almost exclusively with rights to disc. The only thing that was directly passed between Python and Fortran was the MPI communicator. Despite these layers being actually very separate, passing the MPI communicator forced the co-compilation of the Fortran and the NumPy. This made it very difficult to install.
With a little bit of orchestration within the code. It's possible for the Python to make a subroutine call to execute the Fortran. This should make the code trivially installable in all cases, but still allow the Fortran to run contingent only having the Fortran itself compiled.