diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc index 6e71dfb2ef78aa54691bae8c555570e6bc507d69..cc5ece24d241498c30ef7c021212c79593569985 100644 --- a/src/one-body-sample.cc +++ b/src/one-body-sample.cc @@ -169,7 +169,7 @@ int main() { neumannNodes); { // constant 1D function - std::vector<Dune::FieldVector<double, 1>> b; + std::vector<Dune::FieldVector<double, 1>> nodalIntegrals; ConstantFunction<SmallVector, Dune::FieldVector<double, 1>> constantOneFunction(1); NeumannBoundaryAssembler<GridType, Dune::FieldVector<double, 1>> @@ -178,7 +178,7 @@ int main() { BoundaryFunctionalAssembler<P1Basis> boundaryFunctionalAssembler( p1Basis, neumannBoundary); boundaryFunctionalAssembler.assemble( - neumannBoundaryAssembler, b, + neumannBoundaryAssembler, nodalIntegrals, true); // resize the output vector and zero all of its entries }