mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
Merged.
This commit is contained in:
commit
39e55a34cf
1 file changed
+3
-2
@@ -193,8 +193,9 @@ namespace Opm
|
||||
for (int c = 0; c < gg->number_of_cells; ++c) {
|
||||
// Find diagonal
|
||||
size_t j = csrmatrix_elm_index(c, c, h_->A);
|
||||
h_->A->sa[j] += porevol[c]*rock_comp[c]/dt;
|
||||
h_->b[c] += porevol[c]*rock_comp[c]*pressure[c]/dt;
|
||||
double d = porevol[c] * rock_comp[c] / dt;
|
||||
h_->A->sa[j] += d;
|
||||
h_->b[c] += d * pressure[c];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user