Skip to content

35 improve speed of saulyev algorithm in 1d semi lagrangian advection diffusion solver#38

Open
matteomasi wants to merge 5 commits intomainfrom
35-improve-speed-of-saulyev-algorithm-in-1d-semi-lagrangian-advection-diffusion-solver
Open

35 improve speed of saulyev algorithm in 1d semi lagrangian advection diffusion solver#38
matteomasi wants to merge 5 commits intomainfrom
35-improve-speed-of-saulyev-algorithm-in-1d-semi-lagrangian-advection-diffusion-solver

Conversation

@matteomasi
Copy link
Collaborator

Added Numba JIT compilation of Saul'yev solver for diffusion (dispersion), with significant speed up of the for loop.
The Numba functions cannot directly be tested, so during test runs an environment variable os.environ["NUMBA_DISABLE_JIT"] = "1" is set in conftest.py to disable Numba.
A benchmark script benchmark_semilag.py was also added to see the speed increase of the pure-python function vs the optimized one.

@sonarqubecloud
Copy link

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.

Improve speed of Saul'yev algorithm in 1D semi-Lagrangian advection-diffusion solver

1 participant