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:
@@ -218,8 +218,11 @@ namespace Opm
|
|||||||
bool only_wells)
|
bool only_wells)
|
||||||
{
|
{
|
||||||
// clear all entries
|
// clear all entries
|
||||||
duneB_ = 0.0;
|
if (!only_wells) {
|
||||||
duneC_ = 0.0;
|
duneB_ = 0.0;
|
||||||
|
duneC_ = 0.0;
|
||||||
|
}
|
||||||
|
|
||||||
duneD_ = 0.0;
|
duneD_ = 0.0;
|
||||||
resWell_ = 0.0;
|
resWell_ = 0.0;
|
||||||
|
|
||||||
|
|||||||
@@ -522,8 +522,10 @@ namespace Opm
|
|||||||
const int np = number_of_phases_;
|
const int np = number_of_phases_;
|
||||||
|
|
||||||
// clear all entries
|
// clear all entries
|
||||||
duneB_ = 0.0;
|
if (!only_wells) {
|
||||||
duneC_ = 0.0;
|
duneB_ = 0.0;
|
||||||
|
duneC_ = 0.0;
|
||||||
|
}
|
||||||
invDuneD_ = 0.0;
|
invDuneD_ = 0.0;
|
||||||
resWell_ = 0.0;
|
resWell_ = 0.0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user