Skip to content
Snippets Groups Projects
Commit d55c6874 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[common.vector]removed obsolete print method

parent 13eb644b
No related branches found
No related tags found
No related merge requests found
...@@ -12,18 +12,18 @@ namespace Stuff { ...@@ -12,18 +12,18 @@ namespace Stuff {
namespace Common { namespace Common {
template <class T, class stream = std::ostream> // template< class T, class stream = std::ostream >
void print(const T& arg, stream& out = std::cout, std::string name = "", std::string prefix = "") // void print(const T& arg, stream& out = std::cout, std::string name = "", std::string prefix = "") {
{ // out << prefix;
out << prefix; // if (!name.empty())
if (!name.empty()) // out << name << " = ";
out << name << " = "; // out << "[";
out << "["; // for (unsigned int i = 0; i < (arg.size() - 1); ++i)
for (unsigned int i = 0; i < (arg.size() - 1); ++i) { // {
out << arg[i] << ", "; // out << arg[i] << ", ";
} // }
out << arg[arg.size() - 1] << "]" << std::endl; // out << arg[arg.size() - 1] << "]" << std::endl;
} //}
template <class VectorImp> template <class VectorImp>
void clear(Dune::DenseVector<VectorImp>& vector) void clear(Dune::DenseVector<VectorImp>& vector)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment