mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
only clearing matrix B and C when only_wells false.
to save a little calculation.
This commit is contained in:
parent
c6be20c5cb
commit
f7e1623b7a
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user