mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-18 13:22:56 -06:00
Use more traditional implementation of cartCoord().
This commit is contained in:
parent
501a1d9a51
commit
29fa476715
@ -173,9 +173,11 @@ namespace Opm
|
||||
const int* dims,
|
||||
int* ijk)
|
||||
{
|
||||
ijk[2] = log_cart_coord / (dims[0]*dims[1]);
|
||||
ijk[1] = (log_cart_coord - ijk[2]*(dims[0]*dims[1])) / dims[0];
|
||||
ijk[0] = log_cart_coord % dims[0];
|
||||
int ix = log_cart_coord;
|
||||
|
||||
ijk[0] = ix % dims[0]; ix /= dims[0];
|
||||
ijk[1] = ix % dims[1]; ix /= dims[1];
|
||||
ijk[2] = ix % dims[2];
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user