Skip to content
Snippets Groups Projects
Commit 196f237b authored by Timo Koch's avatar Timo Koch
Browse files

[assembler] Only print warning if actually running in parallel

parent a0c9aad1
No related branches found
No related tags found
1 merge request!2439Feature/fix assembler parallel warning
......@@ -184,7 +184,7 @@ public:
}
else if (!warningIssued)
{
if (gridView().comm().rank() == 0)
if (gridView().comm().size() > 1 && gridView().comm().rank() == 0)
std::cout << "\nWarning: norm calculation adds entries corresponding to\n"
<< "overlapping entities multiple times. Please use the norm\n"
<< "function provided by a linear solver instead." << std::endl;
......
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