Skip to content
Snippets Groups Projects
Commit 34e37ed8 authored by Boman Romain's avatar Boman Romain
Browse files

correction print Problem

parent bf2717e2
No related branches found
Tags v1.1
No related merge requests found
......@@ -16,10 +16,10 @@ Problem::write(std::ostream &out) const
out << " + mesh:\n";
out << msh;
out << " + sources:\n";
for(auto s : srcs) std::cout << *s;
for(auto s : srcs) out << *s << '\n';
out << " + media:\n";
for(auto m : media) std::cout << *m;
for(auto m : media) out << *m << '\n';
out << " + boundaries:\n";
for(auto b : bnds) std::cout << *b;
for(auto b : bnds) out << *b << '\n';
}
......@@ -32,7 +32,8 @@ Source::Source(waves::Problem &pbl, std::string const &name) : Group(pbl.msh, na
void
Source::write(std::ostream &out) const
{
out << "Source on " << *tag << '\n';
out << "Source on " << *tag;
out << "(" << nodes.size() << " nodes)";
//std::for_each(nodes.begin(), nodes.end(), [&](Node *n) { out << '\t' << *n << '\n'; });
for(auto n : nodes) { out << '\t' << *n << '\n'; }
//for(auto n : nodes) { out << '\t' << *n << '\n'; }
}
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