Commit 664bceb6 authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

fix dimension mismatch for masking conditions

No related merge requests found
Pipeline #42617 passed with stages
in 3 minutes and 57 seconds
Showing with 3 additions and 3 deletions
+3 -3
......@@ -68,7 +68,7 @@ void run_evald(EvalDInterface const &opt)
// process temporal masks (if provided)
xt::xtensor<bool, 2> masks;
xt::xtensor<std::array<char, 32>, 2> conditions;
xt::xtensor<std::array<char, 32>, 1> conditions;
if (not opt.msk.empty())
{
......@@ -86,7 +86,7 @@ void run_evald(EvalDInterface const &opt)
n_msk++;
in_file.close();
conditions = xt::xtensor<std::array<char, 32>, 2> ({n_msk, 1});
conditions = xt::xtensor<std::array<char, 32>, 1> ({n_msk});
in_file.open(opt.cdt);
int ss = 0;
......@@ -100,7 +100,7 @@ void run_evald(EvalDInterface const &opt)
std::array<char, 32> arr ({});
std::copy(line.begin(), line.end(), arr.data());
xt::view(conditions, ss, 0) = arr;
xt::view(conditions, ss) = arr;
ss++;
}
in_file.close();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment