Comments (8)
Actually, I don't see any relation of the global index of a cell with the extent of one region that would justify the previous version. To me the change looks like a bugfix.
We take the global index and compute i and j to determine whether the connection between the two cells is an NNC or not below.
from opm-common.
Actually, I don't see any relation of the global index of a cell with the extent of one region that would justify the previous version. To me the change looks like a bugfix.
Okay, then there's something I really don't understand. The usual way to compute the linearised Cartesian index of a zero-based IJK-tuple is
and the way to recover the IJK tuple from
We take the global index and compute i and j to determine whether the connection between the two cells is an NNC or not below.
Sure, but the derivation of nz
instead of ny
.
from opm-common.
Sorry for my sloppy reading. Missed that aspect. That looks indeed strange/wrong. Also: why don't we also need to use k for the determination?
Maybe we should reuseGridDims::getijk
here to prevent confusion?
from opm-common.
Missed [the
$n_y$ vs.$n_z$ ] aspect. That looks indeed strange/wrong
Okay, cool. I was beginning to think I was losing my mind.
Maybe we should reuse
GridDims::getijk
here to prevent confusion?
Yes, I think that'd be a great idea. Unless you want to do the work, I can create a PR to that effect.
Also: why don't we also need to use k for the determination?
I don't know. It is, of course, possible that the original code did need to care about pinched-out layers, but nowadays the possibility that cells (I,J,K) and (I,J,K+3) would be connected across a pinch-out. I think that would classify as a non-neighbouring connection for the purpose of MULTREGT, but I'm not completely sure.
from opm-common.
I don't know. It is, of course, possible that the original code did need to care about pinched-out layers, but nowadays the possibility that cells (I,J,K) and (I,J,K+3) would be connected across a pinch-out. I think that would classify as a non-neighbouring connection for the purpose of MULTREGT, but I'm not completely sure.
I think it does. All the documentatuion says so, all the code treats it like this (e.g. when writing out NNCs)
from opm-common.
Concerning work: Yes please create the PR.
from opm-common.
Concerning work: Yes please create the PR.
Please see PR #3639 for my proposed change.
from opm-common.
Closing this as the PR is merged.
from opm-common.
Related Issues (20)
- Source code of the opm python library HOT 2
- Test data_InterRegFlow fails on ppc64el built with -O3 optimization level HOT 9
- Update Manual to Reflect Real PYACTION Requirements
- Difference between mpi-default-bin and mpi-default-dev HOT 3
- Consider Python 3.11 support HOT 4
- Problem with the keyword EQUIL HOT 2
- Buckley-Leverett 1D HOT 3
- Tabulated test fails on some 64bit architectures HOT 2
- Extend support for SWATINIT with mixed-wet Pc curves
- [BugReport] EclipseState::hasInputLgrs() definition missing
- Compilation with GCC 8.2.0 fails HOT 10
- UDQ update status not reflected in restart HOT 1
- Unnecessary population of thcwaterData HOT 1
- Missing `SectionType` for parsing parts of data file (BUG?): `RUNSPEC` and `EDIT` HOT 10
- Bug or feature? Field property created only with EQUALS returns false for has_key
- Cannot open initially shut well with neither ACTIONX nor PYACTION HOT 1
- Reliable order of FIP regions statistics/reports
- Inconsistent handling of PORV/MULTPV in EDIT section
- error: redefinition of class std::numeric_limits<__float128> HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opm-common.