From af257740c8166c155429ccb8b555658cd66a135c Mon Sep 17 00:00:00 2001 From: Antonella Ritorto Date: Tue, 19 Dec 2023 20:31:42 +0100 Subject: [PATCH] Throw for LGRs combine with TRANX/Y/Z --- ebos/ecltransmissibility_impl.hh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ebos/ecltransmissibility_impl.hh b/ebos/ecltransmissibility_impl.hh index 5412c71c9..dd38c54de 100644 --- a/ebos/ecltransmissibility_impl.hh +++ b/ebos/ecltransmissibility_impl.hh @@ -795,8 +795,12 @@ updateFromEclState_(bool global) for (auto it = trans.begin(); it != trans.end(); ++it, ++key, ++perform) { - if(*perform) + if(*perform) { + if(grid_.maxLevel()>0) { + OPM_THROW(std::invalid_argument, "Calculations on TRANX/TRANY/TRANZ arrays are not support with LGRS, yet."); + } fp->apply_tran(*key, *it); + } } resetTransmissibilityFromArrays_(is_tran, trans);