Skip to content
Snippets Groups Projects
Commit b4f23bf3 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Cleanup

parent 6b309a5b
No related branches found
No related tags found
No related merge requests found
...@@ -451,16 +451,19 @@ int main(int argc, char *argv[]) { ...@@ -451,16 +451,19 @@ int main(int argc, char *argv[]) {
u4 += u4_diff; u4 += u4_diff;
s4_old = *s4_new; s4_old = *s4_new;
if (parset.get<bool>("printEvolution")) { if (!parset.get<bool>("printEvolution"))
// Print displacement on frictional boundary continue;
boost::format const formatter("s[%02d] = %+3e, "
"%|40t|u[%02d] = %+3e"); // Find the first node that belongs to the frictional boundary
for (size_t i = 0; i < frictionalNodes.size(); ++i) for (size_t i = 0; i < frictionalNodes.size(); ++i) {
if (frictionalNodes[i][0]) { if (!frictionalNodes[i][0])
std::cout << boost::format(formatter) % i % (*s4_new)[i] % i % u4[i] continue;
boost::format const formatter("s[%03d] = %+3e, "
"%|40t|u[%03d] = %+3e");
std::cout << boost::format(formatter) % run % (*s4_new)[i] % run % u4[i]
<< std::endl; << std::endl;
break; // Only print the first element break;
}
} }
// Compute von Mises stress and write everything to a file // Compute von Mises stress and write everything to a file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment