From 2cc5a7eb103ee419e9b4ac8fd57fa7baf36707cd Mon Sep 17 00:00:00 2001
From: Thibault Hallouin <thibault.hallouin@inrae.fr>
Date: Wed, 19 Apr 2023 18:21:31 +0200
Subject: [PATCH] fix typo in internal variable name

it had no effect on numerical results
---
 include/evalhyd/detail/probabilist/ranks.hpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/evalhyd/detail/probabilist/ranks.hpp b/include/evalhyd/detail/probabilist/ranks.hpp
index d28675c..ee30290 100644
--- a/include/evalhyd/detail/probabilist/ranks.hpp
+++ b/include/evalhyd/detail/probabilist/ranks.hpp
@@ -226,7 +226,7 @@ namespace evalhyd
             )
             {
                 // initialise output variable
-                xt::xtensor<double, 5> REL_DIAG =
+                xt::xtensor<double, 5> RANK_HIST =
                         xt::zeros<double>({n_sit, n_ldt, n_msk, n_exp, n_mbr + 1});
 
                 // compute variable one mask at a time to minimise memory imprint
@@ -246,7 +246,7 @@ namespace evalhyd
                         );
 
                         // compute the rank diagram
-                        xt::view(REL_DIAG, xt::all(), xt::all(), m, e, xt::all()) =
+                        xt::view(RANK_HIST, xt::all(), xt::all(), m, e, xt::all()) =
                                 xt::view(o_j, xt::all(), xt::all(),
                                          m, e, xt::all())
                                 / l
@@ -254,7 +254,7 @@ namespace evalhyd
                     }
                 }
 
-                return REL_DIAG;
+                return RANK_HIST;
             }
 
             /// Compute the Delta score.
-- 
GitLab