mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
1. The geo_.z() is now called directly instead of first converted to ADB
vector 2. Added some whitespaces fro readability
This commit is contained in:
parent
5dcc4aab3a
commit
34cc4f7da0
@ -1008,11 +1008,8 @@ namespace Opm {
|
||||
|
||||
// compute gravity potensial using the face average as in eclipse and MRST
|
||||
const ADB rhoavg = ops_.caver * rho;
|
||||
const V vz = geo_.z();
|
||||
std::vector<int> blocksizes = rhoavg.blockPattern();
|
||||
ADB z = ADB::constant(vz,blocksizes);
|
||||
|
||||
const ADB dp = ops_.ngrad * state.pressure - geo_.gravity()[2] * (rhoavg * (ops_.ngrad * z));
|
||||
const ADB dp = ops_.ngrad * state.pressure - geo_.gravity()[2] * (rhoavg * (ops_.ngrad * geo_.z().matrix()));
|
||||
|
||||
head = transi*dp;
|
||||
//head = transi*(ops_.ngrad * state.pressure) + gflux;
|
||||
|
Loading…
Reference in New Issue
Block a user