Commit 01a40e6d by Kilian Weishaupt

### TEMP: solver output matrix

parent d6dc2d4c
 ... ... @@ -1066,6 +1066,30 @@ private: using BlockVector = typename Dune::BlockVector; BlockVector y(numRows); Dune::writeMatrixToMatlab(M, "matrix.mat"); Dune::writeVectorToMatlab(bTmp, "rhs.mat"); // Dune::Hybrid::forEach(b, [&size](const auto& subVector) // { // // the size of the individual vector blocks equals the respective number of equations. // const auto numEq = std::decay_t::block_type::size(); // size += numEq * subVector.size(); // }); std::ofstream blocksizes; blocksizes.open ("blocksizes.txt"); blocksizes << "Size of pressure block (free flow): " << b[Dune::Indices::_0].size() << std::endl; blocksizes << "Size of velocity block (free flow): " << b[Dune::Indices::_1].size() << std::endl; // blocksizes << "Size of pressure block (Darcy): " << b[Dune::Indices::_2].size() << std::endl; blocksizes.close(); std::ofstream indices; indices.open ("indices.txt"); indices << "0" << std::endl; indices << b[Dune::Indices::_0].size() << std::endl; // indices << "Size of pressure block (Darcy): " << b[Dune::Indices::_2].size() << std::endl; indices.close(); // solve const bool converged = ls.solve(M, y, bTmp); ... ...
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