Refactor construction of driving forces in preparation of well support.

This commit is contained in:
Bård Skaflestad 2012-03-16 11:59:51 +01:00
parent 3dbd7e4599
commit 78687dc5c9

View File

@ -109,7 +109,9 @@ namespace Opm
} }
} }
const ifs_tpfa_forces F = { &src[0], bcs }; ifs_tpfa_forces F = { 0 };
if (! src.empty()) { F.src = &src[0]; }
F.bc = bcs;
ifs_tpfa_assemble(gg, &F, &trans_[0], &gpress_omegaweighted_[0], h_); ifs_tpfa_assemble(gg, &F, &trans_[0], &gpress_omegaweighted_[0], h_);