BUG: Corrected setting of values for ExplicitSetValue fieldSource (constraint)

This commit is contained in:
andy
2012-11-22 16:55:57 +00:00
parent 3a6fe7650f
commit d4121ea473

View File

@ -81,9 +81,7 @@ void Foam::ExplicitSetValue<Type>::setValue
<< ">::setValue for source " << name_ << endl;
}
List<Type> values(cells_.size());
UIndirectList<Type>(values, cells_) = injectionRate_[fieldI];
List<Type> values(cells_.size(), injectionRate_[fieldI]);
eqn.setValues(cells_, values);
}