Closed awnawab closed 1 month ago
Documentation for this branch can be viewed at https://sites.ecmwf.int/docs/loki/303/index.html
Attention: Patch coverage is 99.03537%
with 3 lines
in your changes are missing coverage. Please review.
Project coverage is 95.14%. Comparing base (
f3e7d90
) to head (6707094
).
Files | Patch % | Lines |
---|---|---|
...oki/transformations/block_index_transformations.py | 98.70% | 2 Missing :warning: |
...i/transformations/tests/test_block_index_inject.py | 98.97% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks again @reuterbal for the derived-type enrichment fix 🙏
In order to mitigate the cost of creating thread-local copies of data structures, per-block views of fields can be replaced with full field views and the block-index can be inserted into the field pointer.
This is achieved via two transformations:
BlockViewToFieldViewTransformation
: A very IFS specific transformation that simply replaces per-block view pointers with full field pointers. It also injects the missing type definitions forFIELD_RANKSUFF_ARRAY
types.BlockIndexInjectTransformation
: A general transformation that injects the block-index to all arrays that have a local rank one less than their declared rank