Fix in VectorValues::hasSameStructure

release/4.3a0
Richard Roberts 2012-11-26 19:21:07 +00:00
parent 1755136b1b
commit 8ca71f833d
1 changed files with 2 additions and 1 deletions

View File

@ -148,7 +148,8 @@ bool VectorValues::hasSameStructure(const VectorValues& other) const {
if(this->size() != other.size())
return false;
for(size_t j=0; j<size(); ++j)
if(this->dim(j) != other.dim(j))
// Directly accessing maps instead of using VV::dim in case some values are empty
if(this->maps_[j].rows() != other.maps_[j].rows())
return false;
return true;
}