Bugfix: vector was used with size zero.

This commit is contained in:
Atgeirr Flø Rasmussen
2013-10-16 14:02:15 +02:00
parent 88011cca2e
commit 847a8f4f7a

View File

@@ -50,6 +50,7 @@ namespace Opm
const int n = rt[0][0].size();
p_.resize(n);
poromult_.resize(n);
transmult_.resize(n);
for (int i = 0; i < n; ++i) {
p_[i] = rt[0][0][i];
poromult_[i] = rt[0][1][i];