diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc index 60561cc3929ae6b1a26181f5b421f7be413abc6c..7460c74de63df598e65674f1e295625e8feea73c 100644 --- a/src/one-body-sample.cc +++ b/src/one-body-sample.cc @@ -190,8 +190,8 @@ int main() { VectorType u2 = u1; CellVectorType vonMisesStress; - VectorType b1(grid.size(grid.maxLevel(), dim)); - VectorType b2(grid.size(grid.maxLevel(), dim)); + VectorType b1; + VectorType b2; std::vector<Dune::FieldVector<double, 1>> nodalIntegrals; assemble_frictional<GridType, GridType::LeafGridView, SmallVector, P1Basis>(