-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance Improvements and Code Simplification (#494)
* add working example to test speedups as size grows in three dimensions * update pre-commit hooks * update example * udpate to run for just a single set of parameters * update for base timing results * add small positive changes * update runtime, boolean operations, and gamma * compartmentalize the vortex calculation * apply vortex calculation to transverse velocity * remove comments * small improvements * reformat * small improvements to crespo hernandez * add more numexpression where it counts most * add more numexpression * remove np.array around boolean arrays * add control run time for develop * remove @Profile * refactor vortex calculation * refactor characteristic wake width * refactor precalculate * slick minor speedup * jensen speedup by calculating in one fell swoop * fix type annotation * repalce filtering with where statements * remove commented out old code * switch numpy add reduce for multiple additions * unblacken solver for most changes * unblacken cumulative gauss for most changes * unblacken gauss for most changes * make exponents consistent * Maintain profiling decorators These are super useful for both memory and performance (runtime) profiling * Correct a merge conflict * update ruff settings * Fix formatting * Fix formatting * Fix formatting * Expand in-line comments for Jensen model Also removes the implementation of the model that doesn't use numexpr. This was helpful in initial development of v3, but it's no longer practical. * Revert code structure but maintain speed ups This change should be revisited. There’s good changes, especially putting the vortex calculations in functions, but it should more directly relate to the model papers * Remove redundant np.array type-casts * Remove speed test example --------- Co-authored-by: Rafael M Mudafort <rafael.mudafort@nrel.gov> Co-authored-by: Rafael M Mudafort <rafmudaf@gmail.com>
- Loading branch information
1 parent
9c73a41
commit 67104dd
Showing
11 changed files
with
238 additions
and
261 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
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
Oops, something went wrong.