NOC-MSM / pyBDY

pyBDY: a Python based regional NEMO model configuration toolbox.
GNU General Public License v3.0
7 stars 7 forks source link

Slow down of code #89

Closed jdha closed 2 years ago

jdha commented 2 years ago

When extracting tracers vectors i_run and j_run are used rather than min_i:max_i I can't remember the reason why this is so, but it seems to work fine for the benchmark data. However, using @vleguenn setup the reading of data is painfully slow (even though the number of bdy points << benchmark)

A quick test using np.min(i_run):np.max(i_run)+1 appears to remove the issue.

Need to check a little deeper before implementing this - I have a nagging suspicion this was done for a reason (maybe to get around the east-west wrap or north fold?)