Update compressible transport solver for new src convention.

Namely, that inflowing transport sources are water *surface* volumes,
not water *reservoir* volumes.
This commit is contained in:
Atgeirr Flø Rasmussen
2012-10-02 14:37:18 +02:00
parent 8c24c40a2a
commit 358e6e93b1

View File

@@ -152,7 +152,7 @@ namespace Opm
B_cell = 1.0/tm.A_[np*np*cell + 0];
double src_flux = -tm.source_[cell];
bool src_is_inflow = src_flux < 0.0;
influx = src_is_inflow ? src_flux : 0.0;
influx = src_is_inflow ? B_cell* src_flux : 0.0;
outflux = !src_is_inflow ? src_flux : 0.0;
comp_term = (tm.porevolume_[cell] - tm.porevolume0_[cell])/tm.porevolume0_[cell];
dtpv = tm.dt_/tm.porevolume0_[cell];