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

Rearrange terms

parent 527858a8
No related branches found
No related tags found
No related merge requests found
......@@ -379,17 +379,17 @@ int main(int argc, char *argv[]) {
FunctionalAssembler<P0Basis>(p0Basis)
.assemble(localStressAssembler, vonMisesStress, true);
Dune::MyVTKWriter<GridView> writer(leafView);
std::string const filename((boost::format("obs%d") % run).str());
auto const displacement_ptr =
Dune::make_shared<VTKBasisGridFunction<P1Basis, VectorType> const>(
p1Basis, u4, "displacement");
auto const vonmises_ptr = Dune::make_shared<
VTKBasisGridFunction<P0Basis, CellVectorType> const>(
p0Basis, vonMisesStress, "stress");
Dune::MyVTKWriter<GridView> writer(leafView);
writer.addVertexData(displacement_ptr);
writer.addCellData(vonmises_ptr);
std::string const filename((boost::format("obs%d") % run).str());
writer.write(filename.c_str());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment