only clearing matrix B and C when only_wells false.

to save a little calculation.
This commit is contained in:
Kai Bao 2017-09-22 15:47:24 +02:00
parent c6be20c5cb
commit f7e1623b7a
2 changed files with 9 additions and 4 deletions

View File

@ -218,8 +218,11 @@ namespace Opm
bool only_wells)
{
// clear all entries
duneB_ = 0.0;
duneC_ = 0.0;
if (!only_wells) {
duneB_ = 0.0;
duneC_ = 0.0;
}
duneD_ = 0.0;
resWell_ = 0.0;

View File

@ -522,8 +522,10 @@ namespace Opm
const int np = number_of_phases_;
// clear all entries
duneB_ = 0.0;
duneC_ = 0.0;
if (!only_wells) {
duneB_ = 0.0;
duneC_ = 0.0;
}
invDuneD_ = 0.0;
resWell_ = 0.0;