Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Declare variables only when they are first used
This allows simultaneous declaration and assignment as per Erik's previous commit, which seems to give a noticeable performance increase, at least with the PGI compiler on Kraken, and also allows multiple assignments to the same variable in a single calculation.
- Loading branch information
Showing
2 changed files
with
32 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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