mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Move source term assembly out main loop.
This commit is contained in:
parent
38aaa867bb
commit
f06b5e3589
@ -266,10 +266,6 @@ ifs_tpfa_assemble(struct UnstructuredGrid *G,
|
||||
h->A->sa[j2] -= trans[f];
|
||||
}
|
||||
}
|
||||
|
||||
if ((F != NULL) && (F->src != NULL)) {
|
||||
h->b[c] += F->src[c];
|
||||
}
|
||||
}
|
||||
|
||||
is_neumann = 1;
|
||||
@ -277,6 +273,12 @@ ifs_tpfa_assemble(struct UnstructuredGrid *G,
|
||||
is_neumann = assemble_bc_contrib(G, F->bc, trans, h);
|
||||
}
|
||||
|
||||
if ((F != NULL) && (F->src != NULL)) {
|
||||
for (c = 0; c < G->number_of_cells; c++) {
|
||||
h->b[c] += F->src[c];
|
||||
}
|
||||
}
|
||||
|
||||
if (is_neumann) {
|
||||
/* Remove zero eigenvalue associated to constant pressure */
|
||||
h->A->sa[0] *= 2;
|
||||
|
Loading…
Reference in New Issue
Block a user