From 607e9fb87c117fd050c439789b9a317e0552ec52 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Thu, 3 Nov 2011 16:30:17 +0100
Subject: [PATCH] Add updateTerm

---
 src/one-body-sample.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index 043d8855..7da8b25a 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -193,6 +193,10 @@ int main() {
           leafView, p1Basis, neumannNodes, neumannTerm);
       f += neumannTerm;
 
+      VectorType updateTerm(grid.size(grid.maxLevel(), dim));
+      stiffnessMatrix.mv(u1, updateTerm);
+      f += updateTerm;
+
       // {{{ Assemble terms for the nonlinearity
       // TODO: Random value
       std::vector<double> normalStress;
-- 
GitLab