Skip to content
Snippets Groups Projects
Commit ae8f7bea authored by Max Kahnt's avatar Max Kahnt
Browse files

Properly initialize test vector.

parent dd7391f0
No related branches found
No related tags found
1 merge request!18Feature/energynorm matrix provider
Pipeline #
......@@ -253,15 +253,12 @@ int main() try
NVector nVector;
forEach(nVector, [&](auto& n) { n = fVector; });
BNVector bnVector(bnSize);
for(auto& bn : bnVector)
bn = nVector;
NMatrix nMatrix;
fillDiagonalStatic(nMatrix, fMatrix);
BNMatrix bnMatrix;
fillDiagonal(bnMatrix, nMatrix, bnSize);
// TODO DEBUG
using namespace Dune::Indices;
std::cout << "Entry 0" << bnMatrix[0][0][_0][_0][0][0] << std::endl;
std::cout << "Entry 0" << bnMatrix[0][0][_1][_1][0][0] << std::endl;
// test
passed = passed && testWith(bnMatrix, bnVector, sqrt(bnSize)*sqrt(2)*5.0, "blocked multitype vectors");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment