Skip to content
Snippets Groups Projects
Commit d46adcc8 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

bugfix in getResultantStress: make sure the boundary patch is on the maxlevel

[[Imported from SVN: r1792]]
parent 2116f8e4
No related branches found
No related tags found
No related merge requests found
......@@ -1023,6 +1023,10 @@ getResultantForce(const BoundaryPatch<GridType>& boundary,
if (sol.size()!=indexSet.size(gridDim))
DUNE_THROW(Exception, "Solution vector doesn't match the grid!");
/** \todo Eigentlich sollte das BoundaryPatch ein LeafBoundaryPatch sein */
if (boundary.level() != grid_->maxLevel())
DUNE_THROW(Exception, "The boundary patch has to refer to the max level!");
FieldVector<double,3> canonicalStress(0);
canonicalTorque = 0;
......
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