Merge pull request #5078 from aritorto/throwMULTZ

Throw for LGRs combine with TRANX/Y/Z
This commit is contained in:
Markus Blatt 2023-12-20 12:03:11 +01:00 committed by GitHub
commit 78e8ceccba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);