Verified Commit 2ecc93d2 authored by Alexander Jaust's avatar Alexander Jaust
Browse files

Fix dimension checks

parent 4ede4bf9
Pipeline #19410 passed with stages
in 3 minutes and 19 seconds
......@@ -356,7 +356,7 @@ void CouplingAdapter::readBlockDataFromPrecice(const int dataID,
precice_->readBlockScalarData(dataID, vertexIDs_.size(),
vertexIDs_.data(), data.data());
} else {
assert(vertexIDs_.size() * getDimension() == data.size());
assert(vertexIDs_.size() * getDimensions() == data.size());
precice_->readBlockVectorData(dataID, vertexIDs_.size(),
vertexIDs_.data(), data.data());
}
......@@ -372,7 +372,7 @@ void CouplingAdapter::writeBlockDataToPrecice(const int dataID,
precice_->writeBlockScalarData(dataID, vertexIDs_.size(),
vertexIDs_.data(), data.data());
} else {
assert(vertexIDs_.size() == data.size());
assert(vertexIDs_.size()*getDimensions() == data.size());
precice_->writeBlockVectorData(dataID, vertexIDs_.size(),
vertexIDs_.data(), data.data());
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment