resize and use ADB::null() to initialize.

This commit is contained in:
Liu Ming
2014-10-16 09:59:59 +08:00
parent 6d76151b6d
commit f1f0fa9c29

View File

@@ -223,7 +223,7 @@ namespace {
} }
// If deck has polymer, residual_ should contain polymer equation. // If deck has polymer, residual_ should contain polymer equation.
rq_.resize(fluid_.numPhases()+1); rq_.resize(fluid_.numPhases()+1);
residual_.material_balance_eq.resize(fluid_.numPhases()+1); residual_.material_balance_eq.resize(fluid_.numPhases()+1, ADB::null());
assert(poly_pos_ == fluid_.numPhases()); assert(poly_pos_ == fluid_.numPhases());
} }
dp_max_rel_ = param.getDefault("dp_max_rel", dp_max_rel_); dp_max_rel_ = param.getDefault("dp_max_rel", dp_max_rel_);