Repository navigation
Feature/performance - #234
Merged
Merged
Conversation
…on catchment size. Added unit test for full code coverage
Replace the per-vegetation numpy chain (soil water stress, actual transpiration and layer-wise abstraction) with a fused @njit(parallel=True) kernel over pixels. swdf is precomputed in numpy to preserve the original float32 ETRef precision; moisture state (W1/W1a/W1b/ Ta/RWS) is indexed by vegetation, soil properties by land-use class. Results are bit-identical on the ETRS89 and Congo benchmarks and the slow MCT/split/kinematic reference suite. dynamic_canopy drops from ~17s to ~4s on the 100k-pixel Congo benchmark.
After centralizing thread control, configure_parallelism applies the numba thread count itself; Lisflood_initial just calls it once at startup. Correct the module docstring which still described numba as configured separately.
…rance for FlowMomentum results test, as values are big
…execution in parallel
…count in PBS and SLURM cluster nodes
…m when not requested
… confusion with main var
… gauges, lakes and reservoir usage
…al according to catchment size
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.
Performance optimizations: